extension-create 2.0.0-alpha.22 → 2.0.0-alpha.24
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/dist/module.js +26 -14
- package/dist/template/README.md +1 -1
- package/dist/test-template-action/README.md +35 -0
- package/dist/test-template-action/action/index.html +40 -0
- package/dist/test-template-action/action/scripts.js +11 -0
- package/dist/test-template-action/action/styles.css +23 -0
- package/dist/test-template-action/images/extension_128.png +0 -0
- package/dist/test-template-action/images/extension_16.png +0 -0
- package/dist/test-template-action/images/extension_48.png +0 -0
- package/dist/test-template-action/manifest.json +21 -0
- package/dist/test-template-action/package.json +21 -0
- package/dist/test-template-action-chatgpt/.env.example +1 -0
- package/dist/test-template-action-chatgpt/README.md +35 -0
- package/dist/test-template-action-chatgpt/action/ActionApp.tsx +118 -0
- package/dist/test-template-action-chatgpt/action/index.html +13 -0
- package/dist/test-template-action-chatgpt/action/scripts.tsx +12 -0
- package/dist/test-template-action-chatgpt/action/styles.css +8 -0
- package/dist/test-template-action-chatgpt/images/chatgpt.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension_128.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension_16.png +0 -0
- package/dist/test-template-action-chatgpt/images/extension_48.png +0 -0
- package/dist/test-template-action-chatgpt/manifest.json +21 -0
- package/dist/test-template-action-chatgpt/package.json +30 -0
- package/dist/test-template-action-chatgpt/postcss.config.js +6 -0
- package/dist/test-template-action-chatgpt/tailwind.config.js +8 -0
- package/dist/test-template-action-chatgpt/tsconfig.json +22 -0
- package/dist/test-template-config-stylelint/README.md +35 -0
- package/dist/test-template-config-stylelint/images/extension_128.png +0 -0
- package/dist/test-template-config-stylelint/images/extension_16.png +0 -0
- package/dist/test-template-config-stylelint/images/extension_48.png +0 -0
- package/dist/test-template-config-stylelint/images/stylelint.svg +1 -0
- package/dist/test-template-config-stylelint/manifest.json +15 -0
- package/dist/test-template-config-stylelint/newtab/index.html +40 -0
- package/dist/test-template-config-stylelint/newtab/scripts.js +11 -0
- package/dist/test-template-config-stylelint/newtab/styles.css +20 -0
- package/dist/test-template-config-stylelint/package.json +23 -0
- package/dist/test-template-config-stylelint/stylelint.config.json +1 -0
- package/dist/test-template-content/README.md +35 -0
- package/dist/test-template-content/background.js +21 -0
- package/dist/test-template-content/content/scripts.js +32 -0
- package/dist/test-template-content/content/styles.css +54 -0
- package/dist/test-template-content/images/extension_128.png +0 -0
- package/dist/test-template-content/images/extension_16.png +0 -0
- package/dist/test-template-content/images/extension_48.png +0 -0
- package/dist/test-template-content/manifest.json +35 -0
- package/dist/test-template-content/package.json +20 -0
- package/dist/test-template-content-css-module/README.md +35 -0
- package/dist/test-template-content-css-module/background.js +21 -0
- package/dist/test-template-content-css-module/content/Logo.module.css +11 -0
- package/dist/test-template-content-css-module/content/scripts.js +33 -0
- package/dist/test-template-content-css-module/content/styles.css +40 -0
- package/dist/test-template-content-css-module/images/extension_128.png +0 -0
- package/dist/test-template-content-css-module/images/extension_16.png +0 -0
- package/dist/test-template-content-css-module/images/extension_48.png +0 -0
- package/dist/test-template-content-css-module/manifest.json +35 -0
- package/dist/test-template-content-css-module/package.json +20 -0
- package/dist/test-template-content-less/README.md +35 -0
- package/dist/test-template-content-less/background.js +21 -0
- package/dist/test-template-content-less/content/scripts.js +32 -0
- package/dist/test-template-content-less/content/styles.less +51 -0
- package/dist/test-template-content-less/images/extension_128.png +0 -0
- package/dist/test-template-content-less/images/extension_16.png +0 -0
- package/dist/test-template-content-less/images/extension_48.png +0 -0
- package/dist/test-template-content-less/manifest.json +35 -0
- package/dist/test-template-content-less/package.json +21 -0
- package/dist/test-template-content-main-world/README.md +35 -0
- package/dist/test-template-content-main-world/background.js +1 -0
- package/dist/test-template-content-main-world/content/scripts.js +20 -0
- package/dist/test-template-content-main-world/content/styles.css +46 -0
- package/dist/test-template-content-main-world/extension.config.js +8 -0
- package/dist/test-template-content-main-world/images/extension_128.png +0 -0
- package/dist/test-template-content-main-world/images/extension_16.png +0 -0
- package/dist/test-template-content-main-world/images/extension_48.png +0 -0
- package/dist/test-template-content-main-world/manifest.json +37 -0
- package/dist/test-template-content-main-world/package.json +20 -0
- package/dist/test-template-content-preact/README.md +35 -0
- package/dist/test-template-content-preact/background.ts +1 -0
- package/dist/test-template-content-preact/content/ContentApp.tsx +92 -0
- package/dist/test-template-content-preact/content/scripts.tsx +14 -0
- package/dist/test-template-content-preact/content/styles.css +10 -0
- package/dist/test-template-content-preact/images/chromeWindow.png +0 -0
- package/dist/test-template-content-preact/images/extension_128.png +0 -0
- package/dist/test-template-content-preact/images/extension_16.png +0 -0
- package/dist/test-template-content-preact/images/extension_48.png +0 -0
- package/dist/test-template-content-preact/images/preact.png +0 -0
- package/dist/test-template-content-preact/images/tailwind.png +0 -0
- package/dist/test-template-content-preact/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-preact/images/typescript.png +0 -0
- package/dist/test-template-content-preact/manifest.json +31 -0
- package/dist/test-template-content-preact/package.json +29 -0
- package/dist/test-template-content-preact/postcss.config.js +6 -0
- package/dist/test-template-content-preact/tailwind.config.js +8 -0
- package/dist/test-template-content-preact/tsconfig.json +27 -0
- package/dist/test-template-content-react/README.md +35 -0
- package/dist/test-template-content-react/background.ts +1 -0
- package/dist/test-template-content-react/content/ContentApp.tsx +86 -0
- package/dist/test-template-content-react/content/scripts.tsx +17 -0
- package/dist/test-template-content-react/content/styles.css +10 -0
- package/dist/test-template-content-react/images/chromeWindow.png +0 -0
- package/dist/test-template-content-react/images/extension_128.png +0 -0
- package/dist/test-template-content-react/images/extension_16.png +0 -0
- package/dist/test-template-content-react/images/extension_48.png +0 -0
- package/dist/test-template-content-react/images/react.png +0 -0
- package/dist/test-template-content-react/images/tailwind.png +0 -0
- package/dist/test-template-content-react/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-react/images/typescript.png +0 -0
- package/dist/test-template-content-react/manifest.json +28 -0
- package/dist/test-template-content-react/package.json +28 -0
- package/dist/test-template-content-react/postcss.config.js +6 -0
- package/dist/test-template-content-react/tailwind.config.js +8 -0
- package/dist/test-template-content-react/tsconfig.json +22 -0
- package/dist/test-template-content-sass/README.md +35 -0
- package/dist/test-template-content-sass/background.js +21 -0
- package/dist/test-template-content-sass/content/scripts.js +32 -0
- package/dist/test-template-content-sass/content/styles.scss +51 -0
- package/dist/test-template-content-sass/images/extension_128.png +0 -0
- package/dist/test-template-content-sass/images/extension_16.png +0 -0
- package/dist/test-template-content-sass/images/extension_48.png +0 -0
- package/dist/test-template-content-sass/manifest.json +35 -0
- package/dist/test-template-content-sass/package.json +21 -0
- package/dist/test-template-content-sass-module/README.md +35 -0
- package/dist/test-template-content-sass-module/background.js +21 -0
- package/dist/test-template-content-sass-module/content/Logo.module.scss +18 -0
- package/dist/test-template-content-sass-module/content/scripts.js +33 -0
- package/dist/test-template-content-sass-module/content/styles.scss +40 -0
- package/dist/test-template-content-sass-module/images/extension_128.png +0 -0
- package/dist/test-template-content-sass-module/images/extension_16.png +0 -0
- package/dist/test-template-content-sass-module/images/extension_48.png +0 -0
- package/dist/test-template-content-sass-module/manifest.json +35 -0
- package/dist/test-template-content-sass-module/package.json +21 -0
- package/dist/test-template-content-tailwind/README.md +35 -0
- package/dist/test-template-content-tailwind/background.js +21 -0
- package/dist/test-template-content-tailwind/content/content.js +45 -0
- package/dist/test-template-content-tailwind/content/scripts.js +6 -0
- package/dist/test-template-content-tailwind/content/styles.css +10 -0
- package/dist/test-template-content-tailwind/images/chromeWindow.png +0 -0
- package/dist/test-template-content-tailwind/images/extension_128.png +0 -0
- package/dist/test-template-content-tailwind/images/extension_16.png +0 -0
- package/dist/test-template-content-tailwind/images/extension_48.png +0 -0
- package/dist/test-template-content-tailwind/images/react.png +0 -0
- package/dist/test-template-content-tailwind/images/tailwind.png +0 -0
- package/dist/test-template-content-tailwind/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-tailwind/manifest.json +35 -0
- package/dist/test-template-content-tailwind/package.json +23 -0
- package/dist/test-template-content-tailwind/postcss.config.js +6 -0
- package/dist/test-template-content-tailwind/tailwind.config.js +8 -0
- package/dist/test-template-content-typescript/README.md +35 -0
- package/dist/test-template-content-typescript/background.ts +26 -0
- package/dist/test-template-content-typescript/content/scripts.ts +33 -0
- package/dist/test-template-content-typescript/content/styles.css +51 -0
- package/dist/test-template-content-typescript/images/extension_128.png +0 -0
- package/dist/test-template-content-typescript/images/extension_16.png +0 -0
- package/dist/test-template-content-typescript/images/extension_48.png +0 -0
- package/dist/test-template-content-typescript/images/typescript.png +0 -0
- package/dist/test-template-content-typescript/manifest.json +35 -0
- package/dist/test-template-content-typescript/package.json +21 -0
- package/dist/test-template-content-typescript/tsconfig.json +22 -0
- package/dist/test-template-content-vue/README.md +35 -0
- package/dist/test-template-content-vue/background.ts +1 -0
- package/dist/test-template-content-vue/content/ContentApp.vue +90 -0
- package/dist/test-template-content-vue/content/scripts.ts +13 -0
- package/dist/test-template-content-vue/content/shims-vue.d.ts +6 -0
- package/dist/test-template-content-vue/content/styles.css +10 -0
- package/dist/test-template-content-vue/images/chromeWindow.png +0 -0
- package/dist/test-template-content-vue/images/extension_128.png +0 -0
- package/dist/test-template-content-vue/images/extension_16.png +0 -0
- package/dist/test-template-content-vue/images/extension_48.png +0 -0
- package/dist/test-template-content-vue/images/tailwind.png +0 -0
- package/dist/test-template-content-vue/images/tailwind_bg.png +0 -0
- package/dist/test-template-content-vue/images/typescript.png +0 -0
- package/dist/test-template-content-vue/images/vue.svg +8 -0
- package/dist/test-template-content-vue/manifest.json +31 -0
- package/dist/test-template-content-vue/package.json +25 -0
- package/dist/test-template-content-vue/postcss.config.js +6 -0
- package/dist/test-template-content-vue/tailwind.config.js +8 -0
- package/dist/test-template-content-vue/tsconfig.json +22 -0
- package/dist/test-template-declarative_net_request/README.md +35 -0
- package/dist/test-template-declarative_net_request/images/extension_128.png +0 -0
- package/dist/test-template-declarative_net_request/images/extension_16.png +0 -0
- package/dist/test-template-declarative_net_request/images/extension_48.png +0 -0
- package/dist/test-template-declarative_net_request/manifest.json +34 -0
- package/dist/test-template-declarative_net_request/package.json +21 -0
- package/dist/test-template-declarative_net_request/public/public_ruleset.json +72 -0
- package/dist/test-template-declarative_net_request/rules_1.json +72 -0
- package/dist/test-template-init/README.md +35 -0
- package/dist/test-template-init/manifest.json +7 -0
- package/dist/test-template-init/package.json +32 -0
- package/dist/test-template-locales/README.md +35 -0
- package/dist/test-template-locales/_locales/en/messages.json +10 -0
- package/dist/test-template-locales/_locales/pt_BR/messages.json +10 -0
- package/dist/test-template-locales/action/index.html +40 -0
- package/dist/test-template-locales/action/scripts.js +3 -0
- package/dist/test-template-locales/action/styles.css +23 -0
- package/dist/test-template-locales/images/extension_128.png +0 -0
- package/dist/test-template-locales/images/extension_16.png +0 -0
- package/dist/test-template-locales/images/extension_48.png +0 -0
- package/dist/test-template-locales/manifest.json +19 -0
- package/dist/test-template-locales/package.json +21 -0
- package/dist/test-template-new-less/README.md +35 -0
- package/dist/test-template-new-less/images/extension_128.png +0 -0
- package/dist/test-template-new-less/images/extension_16.png +0 -0
- package/dist/test-template-new-less/images/extension_48.png +0 -0
- package/dist/test-template-new-less/manifest.json +15 -0
- package/dist/test-template-new-less/newtab/index.html +40 -0
- package/dist/test-template-new-less/newtab/scripts.js +11 -0
- package/dist/test-template-new-less/newtab/styles.less +19 -0
- package/dist/test-template-new-less/package.json +21 -0
- package/dist/test-template-new-preact/README.md +35 -0
- package/dist/test-template-new-preact/images/extension_128.png +0 -0
- package/dist/test-template-new-preact/images/extension_16.png +0 -0
- package/dist/test-template-new-preact/images/extension_48.png +0 -0
- package/dist/test-template-new-preact/images/preact.png +0 -0
- package/dist/test-template-new-preact/manifest.json +15 -0
- package/dist/test-template-new-preact/newtab/NewTabApp.tsx +27 -0
- package/dist/test-template-new-preact/newtab/index.html +13 -0
- package/dist/test-template-new-preact/newtab/scripts.tsx +5 -0
- package/dist/test-template-new-preact/newtab/styles.css +32 -0
- package/dist/test-template-new-preact/package.json +29 -0
- package/dist/test-template-new-preact/tsconfig.json +22 -0
- package/dist/test-template-new-react/README.md +35 -0
- package/dist/test-template-new-react/images/extension_128.png +0 -0
- package/dist/test-template-new-react/images/extension_16.png +0 -0
- package/dist/test-template-new-react/images/extension_48.png +0 -0
- package/dist/test-template-new-react/images/react.png +0 -0
- package/dist/test-template-new-react/manifest.json +15 -0
- package/dist/test-template-new-react/newtab/NewTabApp.tsx +27 -0
- package/dist/test-template-new-react/newtab/index.html +13 -0
- package/dist/test-template-new-react/newtab/scripts.tsx +12 -0
- package/dist/test-template-new-react/newtab/styles.css +23 -0
- package/dist/test-template-new-react/package.json +28 -0
- package/dist/test-template-new-react/tsconfig.json +22 -0
- package/dist/test-template-new-sass/README.md +35 -0
- package/dist/test-template-new-sass/images/extension_128.png +0 -0
- package/dist/test-template-new-sass/images/extension_16.png +0 -0
- package/dist/test-template-new-sass/images/extension_48.png +0 -0
- package/dist/test-template-new-sass/manifest.json +15 -0
- package/dist/test-template-new-sass/newtab/index.html +40 -0
- package/dist/test-template-new-sass/newtab/scripts.js +11 -0
- package/dist/test-template-new-sass/newtab/styles.scss +19 -0
- package/dist/test-template-new-sass/package.json +22 -0
- package/dist/test-template-new-tailwind/README.md +35 -0
- package/dist/test-template-new-tailwind/images/chromeWindow.png +0 -0
- package/dist/test-template-new-tailwind/images/extension_128.png +0 -0
- package/dist/test-template-new-tailwind/images/extension_16.png +0 -0
- package/dist/test-template-new-tailwind/images/extension_48.png +0 -0
- package/dist/test-template-new-tailwind/images/react.png +0 -0
- package/dist/test-template-new-tailwind/images/tailwind.png +0 -0
- package/dist/test-template-new-tailwind/images/tailwind_bg.png +0 -0
- package/dist/test-template-new-tailwind/manifest.json +15 -0
- package/dist/test-template-new-tailwind/newtab/NewTabApp.tsx +67 -0
- package/dist/test-template-new-tailwind/newtab/index.html +13 -0
- package/dist/test-template-new-tailwind/newtab/scripts.tsx +12 -0
- package/dist/test-template-new-tailwind/newtab/styles.css +3 -0
- package/dist/test-template-new-tailwind/package.json +28 -0
- package/dist/test-template-new-tailwind/postcss.config.js +6 -0
- package/dist/test-template-new-tailwind/tailwind.config.js +8 -0
- package/dist/test-template-new-tailwind/tsconfig.json +22 -0
- package/dist/test-template-new-typescript/README.md +35 -0
- package/dist/test-template-new-typescript/images/extension_128.png +0 -0
- package/dist/test-template-new-typescript/images/extension_16.png +0 -0
- package/dist/test-template-new-typescript/images/extension_48.png +0 -0
- package/dist/test-template-new-typescript/images/typescript.png +0 -0
- package/dist/test-template-new-typescript/manifest.json +15 -0
- package/dist/test-template-new-typescript/newtab/index.html +25 -0
- package/dist/test-template-new-typescript/newtab/scripts.ts +10 -0
- package/dist/test-template-new-typescript/newtab/styles.css +18 -0
- package/dist/test-template-new-typescript/package.json +22 -0
- package/dist/test-template-new-typescript/tsconfig.json +22 -0
- package/dist/test-template-new-vue/README.md +35 -0
- package/dist/test-template-new-vue/images/extension_128.png +0 -0
- package/dist/test-template-new-vue/images/extension_16.png +0 -0
- package/dist/test-template-new-vue/images/extension_48.png +0 -0
- package/dist/test-template-new-vue/images/vue.svg +8 -0
- package/dist/test-template-new-vue/manifest.json +15 -0
- package/dist/test-template-new-vue/newtab/NewTabApp.vue +30 -0
- package/dist/test-template-new-vue/newtab/index.html +13 -0
- package/dist/test-template-new-vue/newtab/scripts.ts +7 -0
- package/dist/test-template-new-vue/newtab/styles.css +36 -0
- package/dist/test-template-new-vue/package.json +25 -0
- package/dist/test-template-new-vue/tsconfig.json +22 -0
- package/dist/test-template-sidebar/README.md +35 -0
- package/dist/test-template-sidebar/images/extension_128.png +0 -0
- package/dist/test-template-sidebar/images/extension_16.png +0 -0
- package/dist/test-template-sidebar/images/extension_48.png +0 -0
- package/dist/test-template-sidebar/manifest.json +37 -0
- package/dist/test-template-sidebar/package.json +21 -0
- package/dist/test-template-sidebar/puzzle.png +0 -0
- package/dist/test-template-sidebar/sidebar/index.html +39 -0
- package/dist/test-template-sidebar/sidebar/scripts.js +11 -0
- package/dist/test-template-sidebar/sidebar/styles.css +27 -0
- package/dist/test-template-sidebar/test_16.png +0 -0
- package/dist/test-template-sidebar/test_32.png +0 -0
- package/dist/test-template-sidebar/test_48.png +0 -0
- package/dist/test-template-sidebar/test_64.png +0 -0
- package/dist/test-template-special-folders-pages/README.md +35 -0
- package/dist/test-template-special-folders-pages/background.js +5 -0
- package/dist/test-template-special-folders-pages/images/extension_128.png +0 -0
- package/dist/test-template-special-folders-pages/images/extension_16.png +0 -0
- package/dist/test-template-special-folders-pages/images/extension_48.png +0 -0
- package/dist/test-template-special-folders-pages/images/notpublic-file.png +0 -0
- package/dist/test-template-special-folders-pages/manifest.json +26 -0
- package/dist/test-template-special-folders-pages/package.json +21 -0
- package/dist/test-template-special-folders-pages/pages/custom.html +8 -0
- package/dist/test-template-special-folders-pages/pages/main.css +18 -0
- package/dist/test-template-special-folders-pages/pages/main.html +16 -0
- package/dist/test-template-special-folders-pages/pages/main.js +1 -0
- package/dist/test-template-special-folders-pages/public/css/file.css +3 -0
- package/dist/test-template-special-folders-pages/public/html/file.html +8 -0
- package/dist/test-template-special-folders-pages/public/img/icon.png +0 -0
- package/dist/test-template-special-folders-pages/public/js/file.js +0 -0
- package/dist/test-template-special-folders-pages/sandbox/index.html +24 -0
- package/dist/test-template-special-folders-pages/sandbox/scripts.js +0 -0
- package/dist/test-template-special-folders-pages/sandbox/styles.css +1 -0
- package/dist/test-template-special-folders-scripts/README.md +35 -0
- package/dist/test-template-special-folders-scripts/background.js +24 -0
- package/dist/test-template-special-folders-scripts/images/extension_128.png +0 -0
- package/dist/test-template-special-folders-scripts/images/extension_16.png +0 -0
- package/dist/test-template-special-folders-scripts/images/extension_48.png +0 -0
- package/dist/test-template-special-folders-scripts/manifest.json +27 -0
- package/dist/test-template-special-folders-scripts/package.json +21 -0
- package/dist/test-template-special-folders-scripts/pages/index.css +5 -0
- package/dist/test-template-special-folders-scripts/pages/index.html +3 -0
- package/dist/test-template-special-folders-scripts/pages/index.js +1 -0
- package/dist/test-template-special-folders-scripts/public/extension.png +0 -0
- package/dist/test-template-special-folders-scripts/scripts/content-script.js +3 -0
- package/dist/test-template-storage/README.md +35 -0
- package/dist/test-template-storage/images/extension_128.png +0 -0
- package/dist/test-template-storage/images/extension_16.png +0 -0
- package/dist/test-template-storage/images/extension_48.png +0 -0
- package/dist/test-template-storage/manifest.json +15 -0
- package/dist/test-template-storage/package.json +21 -0
- package/dist/test-template-storage/schema.json +44 -0
- package/package.json +3 -3
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Sidebar Extension</title>
|
|
7
|
+
<link
|
|
8
|
+
rel="stylesheet"
|
|
9
|
+
href="https://unpkg.com/sakura.css/css/sakura.css"
|
|
10
|
+
media="screen"
|
|
11
|
+
/>
|
|
12
|
+
<link
|
|
13
|
+
rel="stylesheet"
|
|
14
|
+
href="https://unpkg.com/sakura.css/css/sakura-dark.css"
|
|
15
|
+
media="screen and (prefers-color-scheme: dark)"
|
|
16
|
+
/>
|
|
17
|
+
<link rel="stylesheet" href="./styles.css" media="screen" />
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<header>
|
|
21
|
+
<h1>
|
|
22
|
+
<img
|
|
23
|
+
class="sidebar"
|
|
24
|
+
src="../images/extension_128.png"
|
|
25
|
+
alt="The Extension logo"
|
|
26
|
+
/>
|
|
27
|
+
<br />
|
|
28
|
+
Welcome to your Sidebar Extension
|
|
29
|
+
</h1>
|
|
30
|
+
<p>
|
|
31
|
+
Learn more about creating cross-browser extensions at
|
|
32
|
+
<a href="https://extension.js.org" target="_blank"
|
|
33
|
+
>https://extension.js.org</a
|
|
34
|
+
>.
|
|
35
|
+
</p>
|
|
36
|
+
</header>
|
|
37
|
+
</body>
|
|
38
|
+
<script src="./scripts.js"></script>
|
|
39
|
+
</html>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
body {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: center;
|
|
4
|
+
align-items: center;
|
|
5
|
+
height: calc(100vh - 26px);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
h1 {
|
|
9
|
+
font-size: 4.7em;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.sidebar {
|
|
13
|
+
border-radius: 24px;
|
|
14
|
+
border: 4px solid;
|
|
15
|
+
background: white;
|
|
16
|
+
border-color: #ccc;
|
|
17
|
+
border-radius: 24px;
|
|
18
|
+
filter: grayscale(1);
|
|
19
|
+
transition:
|
|
20
|
+
filter 2s,
|
|
21
|
+
border-color 2s;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sidebar:hover {
|
|
25
|
+
filter: grayscale(0);
|
|
26
|
+
border-color: aquamarine;
|
|
27
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# test-template-special-folders-pages
|
|
2
|
+
|
|
3
|
+
> An Extension.js example.
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run the following scripts:
|
|
8
|
+
|
|
9
|
+
### pnpm dev
|
|
10
|
+
|
|
11
|
+
**Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### pnpm start
|
|
18
|
+
|
|
19
|
+
**Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm start
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### pnpm build
|
|
26
|
+
|
|
27
|
+
**Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm build
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Learn More
|
|
34
|
+
|
|
35
|
+
To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "test-template-special-folders-pages",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"manifest_version": 3,
|
|
5
|
+
"description": "An Extension.js example.",
|
|
6
|
+
"icons": {
|
|
7
|
+
"16": "images/extension_16.png",
|
|
8
|
+
"48": "images/extension_48.png",
|
|
9
|
+
"128": "images/extension_128.png"
|
|
10
|
+
},
|
|
11
|
+
"background": {
|
|
12
|
+
"chromium:service_worker": "background.js",
|
|
13
|
+
"firefox:scripts": [
|
|
14
|
+
"background.js"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"action": {
|
|
18
|
+
"default_popup": "pages/main.html"
|
|
19
|
+
},
|
|
20
|
+
"sandbox": {
|
|
21
|
+
"pages": [
|
|
22
|
+
"sandbox/index.html"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"author": "Your Name"
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "test-template-special-folders-pages",
|
|
4
|
+
"description": "An Extension.js example.",
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Your Name",
|
|
8
|
+
"email": "your@email.com",
|
|
9
|
+
"url": "https://yourwebsite.com"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "extension dev",
|
|
14
|
+
"start": "extension start",
|
|
15
|
+
"build": "extension build"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"extension": "latest"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Sandboxed Content</title>
|
|
6
|
+
<link rel="stylesheet" href="./main.css" />
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<h1>Main Window</h1>
|
|
10
|
+
<p>I am the main window. I am not sandboxed.</p>
|
|
11
|
+
<img src="../images/notpublic-file.png" alt="Not Public File" />
|
|
12
|
+
<iframe src="../sandbox/index.html" width="380" height="140"></iframe>
|
|
13
|
+
<iframe src="/public/html/file.html" width="380" height="140"></iframe>
|
|
14
|
+
<script src="./main.js"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('Hello from main.js!')
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Sandboxed Content</title>
|
|
6
|
+
<link rel="stylesheet" href="../public/css/file.css" />
|
|
7
|
+
<link rel="stylesheet" href="./styles.css" />
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<h1>Sandboxed Content</h1>
|
|
11
|
+
<p>I am the sandboxed iframe.</p>
|
|
12
|
+
<div id="message"></div>
|
|
13
|
+
<img src="../images/extension_128.png">
|
|
14
|
+
<script>
|
|
15
|
+
eval(
|
|
16
|
+
"document.getElementById('message').innerHTML = '<p>I am the " +
|
|
17
|
+
"output of an eval-ed inline script.</p>'"
|
|
18
|
+
);
|
|
19
|
+
</script>
|
|
20
|
+
<iframe src="../pages/custom.html"></iframe>
|
|
21
|
+
<script src="./scripts.js"></script>
|
|
22
|
+
<script src="../public/js/file.js"></script>
|
|
23
|
+
</body>
|
|
24
|
+
</html>
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
body {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# test-template-special-folders-scripts
|
|
2
|
+
|
|
3
|
+
> An Extension.js example.
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run the following scripts:
|
|
8
|
+
|
|
9
|
+
### pnpm dev
|
|
10
|
+
|
|
11
|
+
**Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### pnpm start
|
|
18
|
+
|
|
19
|
+
**Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm start
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### pnpm build
|
|
26
|
+
|
|
27
|
+
**Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm build
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Learn More
|
|
34
|
+
|
|
35
|
+
To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
chrome.action.onClicked.addListener(openDemoTab)
|
|
2
|
+
|
|
3
|
+
function openDemoTab() {
|
|
4
|
+
chrome.tabs.create({url: './pages/index.html'})
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
chrome.webNavigation.onDOMContentLoaded.addListener(async ({tabId, url}) => {
|
|
8
|
+
if (url !== 'https://extension.js.org/#inject-programmatic') return
|
|
9
|
+
const {options} = await chrome.storage.local.get('options')
|
|
10
|
+
chrome.scripting.executeScript({
|
|
11
|
+
target: {tabId},
|
|
12
|
+
files: ['./scripts/content-script.js'],
|
|
13
|
+
...options
|
|
14
|
+
})
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
chrome.runtime.onMessage.addListener(async ({name, options}) => {
|
|
18
|
+
if (name === 'inject-programmatic') {
|
|
19
|
+
await chrome.storage.local.set({options})
|
|
20
|
+
await chrome.tabs.create({
|
|
21
|
+
url: 'https://extension.js.org/#inject-programmatic'
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "test-template-special-folders-scripts",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"manifest_version": 3,
|
|
5
|
+
"description": "An Extension.js example.",
|
|
6
|
+
"icons": {
|
|
7
|
+
"16": "images/extension_16.png",
|
|
8
|
+
"48": "images/extension_48.png",
|
|
9
|
+
"128": "images/extension_128.png"
|
|
10
|
+
},
|
|
11
|
+
"background": {
|
|
12
|
+
"chromium:service_worker": "background.js",
|
|
13
|
+
"firefox:scripts": [
|
|
14
|
+
"background.js"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"permissions": [
|
|
18
|
+
"scripting",
|
|
19
|
+
"webNavigation",
|
|
20
|
+
"storage"
|
|
21
|
+
],
|
|
22
|
+
"host_permissions": [
|
|
23
|
+
"https://extension.js.org/*"
|
|
24
|
+
],
|
|
25
|
+
"action": {},
|
|
26
|
+
"author": "Your Name"
|
|
27
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "test-template-special-folders-scripts",
|
|
4
|
+
"description": "An Extension.js example.",
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Your Name",
|
|
8
|
+
"email": "your@email.com",
|
|
9
|
+
"url": "https://yourwebsite.com"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "extension dev",
|
|
14
|
+
"start": "extension start",
|
|
15
|
+
"build": "extension build"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"extension": "latest"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
console.log('ok')
|
|
Binary file
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# test-template-storage
|
|
2
|
+
|
|
3
|
+
> An Extension.js example.
|
|
4
|
+
|
|
5
|
+
## Available Scripts
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run the following scripts:
|
|
8
|
+
|
|
9
|
+
### pnpm dev
|
|
10
|
+
|
|
11
|
+
**Development Mode**: This command runs your extension in development mode. It will launch a new browser instance with your extension loaded. The page will automatically reload whenever you make changes to your code, allowing for a smooth development experience.
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### pnpm start
|
|
18
|
+
|
|
19
|
+
**Production Preview**: This command runs your extension in production mode. It will launch a new browser instance with your extension loaded, simulating the environment and behavior of your extension as it will appear once published.
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
pnpm start
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### pnpm build
|
|
26
|
+
|
|
27
|
+
**Build for Production**: This command builds your extension for production. It optimizes and bundles your extension, preparing it for deployment to the target browser's store.
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm build
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Learn More
|
|
34
|
+
|
|
35
|
+
To learn more about creating cross-browser extensions with Extension.js, visit the [official documentation](https://extension.js.org).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "test-template-storage",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"manifest_version": 3,
|
|
5
|
+
"description": "An Extension.js example.",
|
|
6
|
+
"icons": {
|
|
7
|
+
"16": "images/extension_16.png",
|
|
8
|
+
"48": "images/extension_48.png",
|
|
9
|
+
"128": "images/extension_128.png"
|
|
10
|
+
},
|
|
11
|
+
"storage": {
|
|
12
|
+
"managed_schema": "schema.json"
|
|
13
|
+
},
|
|
14
|
+
"author": "Your Name"
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "test-template-storage",
|
|
4
|
+
"description": "An Extension.js example.",
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Your Name",
|
|
8
|
+
"email": "your@email.com",
|
|
9
|
+
"url": "https://yourwebsite.com"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "extension dev",
|
|
14
|
+
"start": "extension start",
|
|
15
|
+
"build": "extension build"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"extension": "latest"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"properties": {
|
|
4
|
+
"AutoSave": {
|
|
5
|
+
"title": "Automatically save changes.",
|
|
6
|
+
"description": "If set to true then changes will be automatically saved.",
|
|
7
|
+
"type": "boolean"
|
|
8
|
+
},
|
|
9
|
+
"PollRefreshRate": {
|
|
10
|
+
"type": "integer"
|
|
11
|
+
},
|
|
12
|
+
"DefaultServiceUrl": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"ServiceUrls": {
|
|
16
|
+
"type": "array",
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "string"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"Bookmarks": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"id": "ListOfBookmarks",
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "object",
|
|
26
|
+
"properties": {
|
|
27
|
+
"title": {"type": "string"},
|
|
28
|
+
"url": {"type": "string"},
|
|
29
|
+
"children": {"$ref": "ListOfBookmarks"}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"SettingsForUrls": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"blocklisted": {"type": "boolean"},
|
|
39
|
+
"bypass_proxy": {"type": "boolean"}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"node": ">=18"
|
|
10
10
|
},
|
|
11
11
|
"name": "extension-create",
|
|
12
|
-
"version": "2.0.0-alpha.
|
|
12
|
+
"version": "2.0.0-alpha.24",
|
|
13
13
|
"description": "The Extension.js create step",
|
|
14
14
|
"main": "./dist/module.js",
|
|
15
15
|
"types": "./dist/module.d.ts",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@colors/colors": "^1.6.0",
|
|
26
26
|
"@types/firefox-webext-browser": "^120.0.4",
|
|
27
27
|
"cross-spawn": "^7.0.3",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"go-git-it": "2.0.4",
|
|
29
|
+
"package-manager-detector": "^0.2.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/cross-spawn": "^6.0.6",
|