echarts-for-react 1.2.5 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -28
- package/lib/{echarts-for-react.js → core.js} +7 -8
- package/lib/index.js +39 -0
- package/package.json +45 -28
- package/src/{echarts-for-react.js → core.js} +8 -6
- package/src/index.js +10 -0
- package/.babelrc +0 -8
- package/.eslintrc +0 -54
- package/.npmignore +0 -3
- package/.travis.yml +0 -3
- package/__tests__/test.spec.js +0 -63
- package/demo/AirportCoordComponent.jsx +0 -321
- package/demo/CalendarComponent.jsx +0 -199
- package/demo/ChartAPIComponent.jsx +0 -127
- package/demo/ChartShowLoadingComponent.jsx +0 -93
- package/demo/ChartWithEventComponent.jsx +0 -93
- package/demo/DynamicChartComponent.jsx +0 -189
- package/demo/EchartsComponent.jsx +0 -47
- package/demo/GCalendarComponent.jsx +0 -72
- package/demo/GaugeComponent.jsx +0 -323
- package/demo/GraphComponent.jsx +0 -54
- package/demo/LiquidfillComponent.jsx +0 -32
- package/demo/LunarCalendarComponent.jsx +0 -492
- package/demo/MainPageComponent.jsx +0 -48
- package/demo/MapChartComponent.jsx +0 -203
- package/demo/ModuleLoadChartComponent.jsx +0 -54
- package/demo/SimpleChartComponent.jsx +0 -90
- package/demo/ThemeChartComponent.jsx +0 -114
- package/demo/TreemapComponent.jsx +0 -273
- package/demo/demo.css +0 -151
- package/demo/demo.jsx +0 -17
- package/demo/dist/bundle.js +0 -67
- package/demo/dist/bundle.js.map +0 -1
- package/index.html +0 -20
- package/webpack.config.js +0 -27
package/index.html
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
-
<title>echarts-for-react</title>
|
|
6
|
-
<meta name="keywords" content="echarts, baidu, react, components, hustcc, echarts-for-react" />
|
|
7
|
-
<meta name="description" content="baidu Echarts(v3.0) components for React wrapper. 一个简单的echarts(v3.0)的react封装。" />
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
<div id="wrapper">
|
|
11
|
-
|
|
12
|
-
</div>
|
|
13
|
-
<script type="text/javascript" src="demo/dist/bundle.js"></script>
|
|
14
|
-
<!-- sorry for ad -->
|
|
15
|
-
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
|
16
|
-
<span style="display:none">
|
|
17
|
-
<script src="http://s4.cnzz.com/stat.php?id=1257060683&web_id=1257060683" language="JavaScript"></script>
|
|
18
|
-
</span>
|
|
19
|
-
</body>
|
|
20
|
-
</html>
|
package/webpack.config.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var webpack = require('webpack');
|
|
2
|
-
var uglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
|
|
3
|
-
var definePlugin = webpack.DefinePlugin;
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
entry: './demo/demo.jsx',
|
|
7
|
-
output: {
|
|
8
|
-
path: './demo/dist/', filename: 'bundle.js'
|
|
9
|
-
},
|
|
10
|
-
module: {
|
|
11
|
-
loaders:[{
|
|
12
|
-
test: /\.js[x]?$/,
|
|
13
|
-
exclude: /node_modules/,
|
|
14
|
-
loader: 'babel-loader?presets[]=es2015&presets[]=react&presets[]=stage-0'
|
|
15
|
-
}, {
|
|
16
|
-
test: /\.css$/,
|
|
17
|
-
loader: 'style-loader!css-loader'
|
|
18
|
-
}, {
|
|
19
|
-
test: /\.(png|jpg)$/,
|
|
20
|
-
loader: 'url-loader?limit=512'
|
|
21
|
-
}]
|
|
22
|
-
},
|
|
23
|
-
plugins: [
|
|
24
|
-
new uglifyJsPlugin({compress: {warnings: false}}),
|
|
25
|
-
new definePlugin({'process.env': {NODE_ENV: '"production"'}})
|
|
26
|
-
]
|
|
27
|
-
};
|