├── src ├── content │ └── content.js ├── background │ └── background.js ├── popup │ ├── popup.js │ ├── popup.html │ └── App.vue ├── option │ ├── option.js │ ├── option.html │ └── App.vue └── manifest.json ├── static └── img │ └── icon.png ├── .babelrc.js ├── .gitignore ├── package.json ├── readme.md └── webpack.config.js /src/content/content.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/background/background.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/img/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ylfeng250/vue-crx/HEAD/static/img/icon.png -------------------------------------------------------------------------------- /.babelrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "plugins": ["@babel/plugin-transform-runtime"], 3 | "presets": ["@babel/preset-env"] 4 | } -------------------------------------------------------------------------------- /src/popup/popup.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | new Vue({ 4 | el: '#popup', 5 | render: h => h(App) 6 | }) -------------------------------------------------------------------------------- /src/option/option.js: -------------------------------------------------------------------------------- 1 | import Vue from "vue"; 2 | import App from "./App.vue"; 3 | new Vue({ 4 | el: "#option", 5 | render: (h) => h(App), 6 | }); 7 | -------------------------------------------------------------------------------- /src/popup/popup.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | 6 |