├── _less
└── panel.less
├── js
└── devtools.js
├── manifest.json
├── README.md
├── devtools.html
├── panel.html
├── package.json
├── gulpfile.js
├── LICENSE
└── .gitignore
/_less/panel.less:
--------------------------------------------------------------------------------
1 | .panel {
2 | border: 1px solid red;
3 | }
4 |
--------------------------------------------------------------------------------
/js/devtools.js:
--------------------------------------------------------------------------------
1 | // custom panel
2 | chrome.devtools.panels.create('My Panel', '', 'panel.html', function (panel) {
3 | console.log('My panel created', panel);
4 | });
5 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ECharts Debugger",
3 | "manifest_version": 2,
4 | "version": "0.1.0",
5 | "description": "ECharts Debug extention",
6 | "author": "Ovilia",
7 | "devtools_page": "devtools.html"
8 | }
9 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ECharts Devtools
2 |
3 | Devtools for debugging ECharts.
4 |
5 | (Under construction...)
6 |
7 | ## Build
8 |
9 | ### Build Once
10 |
11 | ```
12 | gulp
13 | ```
14 |
15 | ### Build and Watch
16 |
17 | ```
18 | gulp watch
19 | ```
20 |
--------------------------------------------------------------------------------
/devtools.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ECharts Devtools
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/panel.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ECharts Debugger
7 |
8 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "echarts-devtools",
3 | "version": "0.1.0",
4 | "description": "ECharts Devtools",
5 | "scripts": {},
6 | "repository": {
7 | "type": "git",
8 | "url": "git+https://github.com/Ovilia/ECharts-Devtools.git"
9 | },
10 | "author": "",
11 | "license": "MIT",
12 | "bugs": {
13 | "url": "https://github.com/Ovilia/ECharts-Devtools/issues"
14 | },
15 | "homepage": "https://github.com/Ovilia/ECharts-Devtools#readme",
16 | "devDependencies": {
17 | "del": "^4.0.0",
18 | "gulp": "^4.0.0",
19 | "gulp-less": "^4.0.1"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | const { src, dest, parallel, series, watch } = require('gulp');
2 | const less = require('gulp-less');
3 | const del = require('del');
4 |
5 | function css() {
6 | return src('_less/*.less')
7 | .pipe(less())
8 | .pipe(dest('dist/css'));
9 | }
10 |
11 | function copyAssets() {
12 | return src(['./*.html', 'manifest.json'])
13 | .pipe(dest('dist'));
14 | }
15 |
16 | function js() {
17 | return src(['./js/*.js'])
18 | .pipe(dest('dist/js'));
19 | }
20 |
21 | function clean() {
22 | return del('dist');
23 | }
24 |
25 | function watchTask() {
26 | watch('./_less/*.less', css);
27 | watch(['./*.html', 'manifest.json'], copyAssets);
28 | watch('./js/*.js', js);
29 | }
30 |
31 | const defaults = series(clean, parallel(css, js, copyAssets));
32 |
33 | exports.css = css;
34 | exports.watch = series(defaults, watchTask);
35 | exports.default = defaults;
36 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 羡辙
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 |
3 | # Logs
4 | logs
5 | *.log
6 | npm-debug.log*
7 | yarn-debug.log*
8 | yarn-error.log*
9 |
10 | # Runtime data
11 | pids
12 | *.pid
13 | *.seed
14 | *.pid.lock
15 |
16 | # Directory for instrumented libs generated by jscoverage/JSCover
17 | lib-cov
18 |
19 | # Coverage directory used by tools like istanbul
20 | coverage
21 |
22 | # nyc test coverage
23 | .nyc_output
24 |
25 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26 | .grunt
27 |
28 | # Bower dependency directory (https://bower.io/)
29 | bower_components
30 |
31 | # node-waf configuration
32 | .lock-wscript
33 |
34 | # Compiled binary addons (https://nodejs.org/api/addons.html)
35 | build/Release
36 |
37 | # Dependency directories
38 | node_modules/
39 | jspm_packages/
40 |
41 | # TypeScript v1 declaration files
42 | typings/
43 |
44 | # Optional npm cache directory
45 | .npm
46 |
47 | # Optional eslint cache
48 | .eslintcache
49 |
50 | # Optional REPL history
51 | .node_repl_history
52 |
53 | # Output of 'npm pack'
54 | *.tgz
55 |
56 | # Yarn Integrity file
57 | .yarn-integrity
58 |
59 | # dotenv environment variables file
60 | .env
61 |
62 | # next.js build output
63 | .next
64 |
--------------------------------------------------------------------------------