- 浏览: 2551056 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Charts and Console(1)UI Console and RESTful Client
Redux Introduction
http://www.jianshu.com/p/53faad8a152a
http://www.alloyteam.com/2015/09/react-redux/
https://zhuanlan.zhihu.com/p/21337964
Redux —> Action, Reducer, Store
Action -
function addTodo(text){
return {
type: ‘ADD_TODO’,
text
}
}
Reducer - deal with action, update state
Store -
import { createStore } from ‘redux’
import todoApp from ‘./reducers’
let store = createStore( todoApp, window.STATE_FROM_SERVER)
dispatch(addTodo(text))
dispatch(completeTodo(index))
http://sillycat.iteye.com/blog/2377442
http://sillycat.iteye.com/blog/2377580
http://sillycat.iteye.com/blog/2377592
http://sillycat.iteye.com/blog/2377909
http://sillycat.iteye.com/blog/2377910
http://www.chartjs.org/docs/latest/notes/comparison.html
https://github.com/jackhutu/jackblog-react
http://www.alloyteam.com/2015/09/react-redux/
https://zhuanlan.zhihu.com/p/21337964
Add “Redux DevTools” from this Link https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd
ReactJS
Simple CRUD Demo https://github.com/ariesmcrae/reactjs-crud-boilerplate
https://github.com/facebookincubator/create-react-app
I create a demo project called monitor-console. It is using bootstrap.
How to talk to the backend is as follow:
https://github.com/jackhutu/jackblog-react/blob/master/src/api/resources.js
Check package axios
https://github.com/mzabriskie/axios
http://coderlt.coding.me/2017/03/21/axios-api-md/
Google OAuth
http://sillycat.iteye.com/blog/2239827
http://sillycat.iteye.com/blog/2236954
http://sillycat.iteye.com/blog/2232877
http://sillycat.iteye.com/blog/2232889
http://sillycat.iteye.com/blog/2227060
http://sillycat.iteye.com/blog/1848592
Mock server
http://sillycat.iteye.com/blog/2194907
https://github.com/mrak/stubby4node
Set up the Mock Server
>sudo npm install -g stubby
Start the mock server as follow:
>stubby -d mock_server/monitor.json -w -l 0.0.0.0 -s 9000
The format of the file will be similar in https://github.com/mrak/stubby4node#installation
The axios is a very simple and useful API library.
import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:9000';
axios.defaults.headers.post['Content-Type'] = 'application/json';
class CourseApi {
static getAllCourses() {
return axios.get('/courses');
}
static saveCourse(course) {
course = Object.assign({}, course); // to avoid manipulating object passed in. const json = "{\n" +
" \"id\": \"react-flux-building-applications\",\n" +
" \"title\": \"Building Applications in React and Flux\",\n" +
" \"watchHref\": \"http://www.pluralsight.com/courses/react-flux-building-applications\",\n" +
" \"authorId\": \"cory-house\",\n" +
" \"length\": \"5:08\",\n" +
" \"category\": \"JavaScript\"\n" +
"}";
return axios.post('/courses', json);
}
static deleteCourse(courseId) {
const query = "react-flux-building-applications";
return axios.delete('/courses/' + query);
}
static getCourse(courseId) {
const query = "react-flux-building-applications";
return axios.get('/courses/' + query);
}
}
export default CourseApi;
The sample code and project will be in monitor-console
References:
https://github.com/jackhutu/jackblog-react
http://www.chartjs.org/docs/latest/notes/comparison.html
ReactJS
http://sillycat.iteye.com/blog/2377442
http://sillycat.iteye.com/blog/2377580
http://sillycat.iteye.com/blog/2377592
http://sillycat.iteye.com/blog/2377909
http://sillycat.iteye.com/blog/2377910
Connect to Backend
https://github.com/mzabriskie/axios
http://www.opendigg.com/p/axios
http://www.10tiao.com/html/496/201606/2652401931/1.html
https://ykloveyxk.github.io/2017/02/25/axios%E5%85%A8%E6%94%BB%E7%95%A5/
Redux Introduction
http://www.jianshu.com/p/53faad8a152a
http://www.alloyteam.com/2015/09/react-redux/
https://zhuanlan.zhihu.com/p/21337964
Redux —> Action, Reducer, Store
Action -
function addTodo(text){
return {
type: ‘ADD_TODO’,
text
}
}
Reducer - deal with action, update state
Store -
import { createStore } from ‘redux’
import todoApp from ‘./reducers’
let store = createStore( todoApp, window.STATE_FROM_SERVER)
dispatch(addTodo(text))
dispatch(completeTodo(index))
http://sillycat.iteye.com/blog/2377442
http://sillycat.iteye.com/blog/2377580
http://sillycat.iteye.com/blog/2377592
http://sillycat.iteye.com/blog/2377909
http://sillycat.iteye.com/blog/2377910
http://www.chartjs.org/docs/latest/notes/comparison.html
https://github.com/jackhutu/jackblog-react
http://www.alloyteam.com/2015/09/react-redux/
https://zhuanlan.zhihu.com/p/21337964
Add “Redux DevTools” from this Link https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd
ReactJS
Simple CRUD Demo https://github.com/ariesmcrae/reactjs-crud-boilerplate
https://github.com/facebookincubator/create-react-app
I create a demo project called monitor-console. It is using bootstrap.
How to talk to the backend is as follow:
https://github.com/jackhutu/jackblog-react/blob/master/src/api/resources.js
Check package axios
https://github.com/mzabriskie/axios
http://coderlt.coding.me/2017/03/21/axios-api-md/
Google OAuth
http://sillycat.iteye.com/blog/2239827
http://sillycat.iteye.com/blog/2236954
http://sillycat.iteye.com/blog/2232877
http://sillycat.iteye.com/blog/2232889
http://sillycat.iteye.com/blog/2227060
http://sillycat.iteye.com/blog/1848592
Mock server
http://sillycat.iteye.com/blog/2194907
https://github.com/mrak/stubby4node
Set up the Mock Server
>sudo npm install -g stubby
Start the mock server as follow:
>stubby -d mock_server/monitor.json -w -l 0.0.0.0 -s 9000
The format of the file will be similar in https://github.com/mrak/stubby4node#installation
The axios is a very simple and useful API library.
import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:9000';
axios.defaults.headers.post['Content-Type'] = 'application/json';
class CourseApi {
static getAllCourses() {
return axios.get('/courses');
}
static saveCourse(course) {
course = Object.assign({}, course); // to avoid manipulating object passed in. const json = "{\n" +
" \"id\": \"react-flux-building-applications\",\n" +
" \"title\": \"Building Applications in React and Flux\",\n" +
" \"watchHref\": \"http://www.pluralsight.com/courses/react-flux-building-applications\",\n" +
" \"authorId\": \"cory-house\",\n" +
" \"length\": \"5:08\",\n" +
" \"category\": \"JavaScript\"\n" +
"}";
return axios.post('/courses', json);
}
static deleteCourse(courseId) {
const query = "react-flux-building-applications";
return axios.delete('/courses/' + query);
}
static getCourse(courseId) {
const query = "react-flux-building-applications";
return axios.get('/courses/' + query);
}
}
export default CourseApi;
The sample code and project will be in monitor-console
References:
https://github.com/jackhutu/jackblog-react
http://www.chartjs.org/docs/latest/notes/comparison.html
ReactJS
http://sillycat.iteye.com/blog/2377442
http://sillycat.iteye.com/blog/2377580
http://sillycat.iteye.com/blog/2377592
http://sillycat.iteye.com/blog/2377909
http://sillycat.iteye.com/blog/2377910
Connect to Backend
https://github.com/mzabriskie/axios
http://www.opendigg.com/p/axios
http://www.10tiao.com/html/496/201606/2652401931/1.html
https://ykloveyxk.github.io/2017/02/25/axios%E5%85%A8%E6%94%BB%E7%95%A5/
发表评论
-
MongoDB 2019(3)Security and Auth
2019-11-16 06:48 241MongoDB 2019(3)Security and Aut ... -
Memory Leak in NodeJS
2018-12-20 06:26 735Memory Leak in NodeJS I have d ... -
Remote Desktop Client
2018-12-07 13:19 1198Remote Desktop Client There is ... -
MetaBase UI Console(2)Docker on MySQL
2018-11-29 06:58 944MetaBase UI Console(2)Docker on ... -
AWS Lambda and Serverless Timeout
2018-09-20 01:20 629AWS Lambda and Serverless Timeo ... -
2018 WebSocket(1)Introduction
2018-03-20 01:22 11092018 WebSocket(1)Introduction ... -
2018 TypeScript Update(3)Introduction Basic Grammar
2018-03-08 03:08 6082018 TypeScript Update(3)Introd ... -
2018 TypeScript Update(2)Introduction Basic Grammar - Classes and Functions
2018-03-06 05:32 5562018 TypeScript Update(2)Introd ... -
2018 TypeScript Update(1)Introduction Basic Grammar - Types and Interface
2018-03-03 01:15 6042018 TypeScript Update(1)Introd ... -
Charts and Console(6)Paging
2018-03-01 00:12 583Charts and Console(6)Paging Th ... -
Vue.JS(3)Google Login
2018-02-14 04:53 1317Vue.JS(3)Google Login I just p ... -
Vue.JS(2)Monitor Water Console - ChartJS and Axios
2018-02-14 03:17 725Vue.JS(2)Monitor Water Console ... -
Vue.JS(1)Introduction and Basic Demo
2018-02-08 06:47 615Vue.JS(1)Introduction and Basic ... -
Charts and Console(5)Validation Form
2017-10-03 05:12 809Charts and Console(5)Validation ... -
Charts and Console(4)Display and Enhancement
2017-09-20 05:39 637Charts and Console(4)Display an ... -
Charts and Console(3)Auth and Login
2017-09-13 03:45 667Charts and Console(3)Auth and L ... -
Charts and Console(2)Login and Proxy
2017-08-31 05:39 878Charts and Console(2)Login and ... -
Blog Project(2)Express Backend API - istanbul - mocha - bunyan
2017-06-09 00:05 483Blog Project(2)Express Backend ... -
ReactJS(5)Composition vs Inheritance
2017-06-06 05:55 1116ReactJS(5)Composition vs Inheri ... -
ReactJS(4)Forms Lifting State Up
2017-06-06 04:34 1019ReactJS(4)Forms Lifting State U ...
相关推荐
1.Axhub Charts Pro V1.0.8 Axure 2.Element UI Axure 3.ecahrs Axure
1. **数据绑定**:WPF的核心特性之一是数据绑定,这使得UI元素可以直接与数据源关联,实时反映数据的变化。在创建图表时,数据绑定可以极大地简化代码,提高效率。 2. **图表控件**:WPF Data Visualization库中的...
Axure制作原型时,方便实用的统计图表元件。 内容包括:饼状图、柱状图、折线图、环形图,区间图,甘特图,面积图,色块图,玫瑰图,仪表盘,水波图,雷达图,漏斗图,k线图,散点图,气泡图,双轴图等,非常实用。
可自定义条形图 -可自定义折线图 -可自定义饼图 -X和Y轴标签自定义 -X和Y轴线自定义 -多个数据集可用.....等
1. **C#基础与图形API**:首先,书中会介绍C#语言的基础知识,包括面向对象编程概念、类库的使用等,然后深入探讨.NET Framework提供的图形API,如System.Drawing和Windows Presentation Foundation (WPF)中的...
WPF(Windows Presentation Foundation)是微软提供的一套UI框架,支持矢量图形、动画以及数据绑定等功能。本书可能会详细介绍如何使用WPF进行高级图形编程,包括如何创建动态图表、交互式图形界面等。 ### 四、...
State of the art charts, 2D and 3D. Beautiful, Responsive and Interactive. Completely customizable from the editor and does not require even one line of code. Can be used within any platform including...
在ui界面实现简单图形的绘制,在ui界面的widget控件提升为QChartView(png图片,代码截图)
All charts are completly customizable and can be set up quickly either from code or from the unity editor. Graph And Chart can be used with any platform including VR/AR, mobile ,web and desktop. All ...
图书名称:The Truthful Art: Data, Charts, and Maps for Communication 作者:Alberto Cairo 出版社:New Riders 页数:154 出版时间:2016 语言:English 格式:EPUB 内容简介: No matter what your actual ...
In Good Charts, dataviz maven Scott Berinato provides an essential guide to how visualization works and how to use this new language to impress and persuade. Dataviz today is where spreadsheets and ...
1. **组件丰富**:Kendo UI包含了数据网格(Grid)、日历(Calendar)、下拉列表(ComboBox)、日期选择器(DatePicker)、时间选择器(TimePicker)、滑块(Slider)、图表(Charts)等多种UI组件,覆盖了日常开发...
本文旨在介绍《NEW CHARTS AND NAUTICAL DOCUMENTS》中提及的电子海图及其相关标准,特别是国际水道测量组织(International Hydrographic Organization, IHO)制定的S-57标准。 #### 二、电子海图与相关标准的重要...
Use the JavaFX platform to create rich-client Java applications and discover how you can use this powerful Java-based UI platform, which is capable of handling large-scale data-driven business ...
Awesome Charts是一个库,旨在帮助构建美丽的图表毫不费力。主要目标是为构建UI画布图表提供所有必要的类,这些类很容易自定义,不需要大量的设置时间。当前版本的库支持LineChart, BarChart和PieChart。
LiveCharts 是一个流行的开源图表库,专为 .NET Framework 和 .NET Core 平台设计,用于在 WPF、UWP 和 WinForms 应用程序中创建动态、交互式的数据可视化图表。这个库允许开发者轻松地将各种图表类型,如柱状图、...
1. **WPF图表基础**:WPF中的图表组件主要由System.Windows.Controls.DataVisualization库提供,包括Chart、Series、Axis等元素。开发者可以通过这些元素组合,轻松创建基本的图表类型。 2. **数据绑定**:WPF的...