├── static └── .gitkeep ├── config ├── prod.env.js ├── dev.env.js └── index.js ├── babel.config.js ├── src ├── assets │ ├── logo.png │ ├── xlsx.js │ └── value.js ├── router │ ├── index.js │ ├── caseDetail.vue │ └── home.vue ├── store │ └── index.js ├── components │ ├── edit-div.vue │ ├── end-diaolog.vue │ ├── input-select.vue │ ├── state-fields.vue │ ├── event-item.vue │ └── data-field.vue ├── main.js ├── Main.vue └── mixins │ └── data-field-edit.js ├── autoScript ├── img │ └── icon.png ├── devtools.html ├── background.html ├── create-panels.js ├── manifest.json ├── js │ ├── highlight.js │ └── bind-unbind.js └── background.js ├── .editorconfig ├── .gitignore ├── .babelrc ├── .postcssrc.js ├── index.html ├── README.md ├── gulpfile.js ├── package.json └── test.html /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /config/prod.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | module.exports = { 3 | NODE_ENV: '"production"' 4 | } 5 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjj5855/chrome-extensions-auto-script/master/src/assets/logo.png -------------------------------------------------------------------------------- /autoScript/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjj5855/chrome-extensions-auto-script/master/autoScript/img/icon.png -------------------------------------------------------------------------------- /autoScript/devtools.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /autoScript/background.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Hello, World!
8 | 9 | 10 | -------------------------------------------------------------------------------- /config/dev.env.js: -------------------------------------------------------------------------------- 1 | 'use strict' 2 | const merge = require('webpack-merge') 3 | const prodEnv = require('./prod.env') 4 | 5 | module.exports = merge(prodEnv, { 6 | NODE_ENV: '"development"' 7 | }) 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | /autoScript/devtool 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | 8 | # Editor directories and files 9 | .idea 10 | .vscode 11 | *.suo 12 | *.ntvs* 13 | *.njsproj 14 | *.sln 15 | 16 | *.zip 17 | -------------------------------------------------------------------------------- /autoScript/create-panels.js: -------------------------------------------------------------------------------- 1 | // 创建自定义面板,同一个插件可以创建多个自定义面板 2 | // 几个参数依次为:panel标题、图标(其实设置了也没地方显示)、要加载的页面、加载成功后的回调 3 | chrome.devtools.panels.create('autoScript', 'img/icon.png', 'devtool/index.html', function(panel) { 4 | console.log('create devtool panel!'); // 注意这个log一般看不到 5 | }); 6 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | ["env", { 4 | "modules": false, 5 | "targets": { 6 | "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] 7 | } 8 | }], 9 | "stage-2" 10 | ], 11 | "plugins": ["transform-vue-jsx", "transform-runtime"] 12 | } 13 | -------------------------------------------------------------------------------- /.postcssrc.js: -------------------------------------------------------------------------------- 1 | // https://github.com/michael-ciniawsky/postcss-load-config 2 | 3 | module.exports = { 4 | "plugins": { 5 | "postcss-import": {}, 6 | "postcss-url": {}, 7 | // to edit target browsers: use "browserslist" field in package.json 8 | "autoprefixer": {} 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |