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.
Files changed (334) hide show
  1. package/dist/module.js +26 -14
  2. package/dist/template/README.md +1 -1
  3. package/dist/test-template-action/README.md +35 -0
  4. package/dist/test-template-action/action/index.html +40 -0
  5. package/dist/test-template-action/action/scripts.js +11 -0
  6. package/dist/test-template-action/action/styles.css +23 -0
  7. package/dist/test-template-action/images/extension_128.png +0 -0
  8. package/dist/test-template-action/images/extension_16.png +0 -0
  9. package/dist/test-template-action/images/extension_48.png +0 -0
  10. package/dist/test-template-action/manifest.json +21 -0
  11. package/dist/test-template-action/package.json +21 -0
  12. package/dist/test-template-action-chatgpt/.env.example +1 -0
  13. package/dist/test-template-action-chatgpt/README.md +35 -0
  14. package/dist/test-template-action-chatgpt/action/ActionApp.tsx +118 -0
  15. package/dist/test-template-action-chatgpt/action/index.html +13 -0
  16. package/dist/test-template-action-chatgpt/action/scripts.tsx +12 -0
  17. package/dist/test-template-action-chatgpt/action/styles.css +8 -0
  18. package/dist/test-template-action-chatgpt/images/chatgpt.png +0 -0
  19. package/dist/test-template-action-chatgpt/images/extension.png +0 -0
  20. package/dist/test-template-action-chatgpt/images/extension_128.png +0 -0
  21. package/dist/test-template-action-chatgpt/images/extension_16.png +0 -0
  22. package/dist/test-template-action-chatgpt/images/extension_48.png +0 -0
  23. package/dist/test-template-action-chatgpt/manifest.json +21 -0
  24. package/dist/test-template-action-chatgpt/package.json +30 -0
  25. package/dist/test-template-action-chatgpt/postcss.config.js +6 -0
  26. package/dist/test-template-action-chatgpt/tailwind.config.js +8 -0
  27. package/dist/test-template-action-chatgpt/tsconfig.json +22 -0
  28. package/dist/test-template-config-stylelint/README.md +35 -0
  29. package/dist/test-template-config-stylelint/images/extension_128.png +0 -0
  30. package/dist/test-template-config-stylelint/images/extension_16.png +0 -0
  31. package/dist/test-template-config-stylelint/images/extension_48.png +0 -0
  32. package/dist/test-template-config-stylelint/images/stylelint.svg +1 -0
  33. package/dist/test-template-config-stylelint/manifest.json +15 -0
  34. package/dist/test-template-config-stylelint/newtab/index.html +40 -0
  35. package/dist/test-template-config-stylelint/newtab/scripts.js +11 -0
  36. package/dist/test-template-config-stylelint/newtab/styles.css +20 -0
  37. package/dist/test-template-config-stylelint/package.json +23 -0
  38. package/dist/test-template-config-stylelint/stylelint.config.json +1 -0
  39. package/dist/test-template-content/README.md +35 -0
  40. package/dist/test-template-content/background.js +21 -0
  41. package/dist/test-template-content/content/scripts.js +32 -0
  42. package/dist/test-template-content/content/styles.css +54 -0
  43. package/dist/test-template-content/images/extension_128.png +0 -0
  44. package/dist/test-template-content/images/extension_16.png +0 -0
  45. package/dist/test-template-content/images/extension_48.png +0 -0
  46. package/dist/test-template-content/manifest.json +35 -0
  47. package/dist/test-template-content/package.json +20 -0
  48. package/dist/test-template-content-css-module/README.md +35 -0
  49. package/dist/test-template-content-css-module/background.js +21 -0
  50. package/dist/test-template-content-css-module/content/Logo.module.css +11 -0
  51. package/dist/test-template-content-css-module/content/scripts.js +33 -0
  52. package/dist/test-template-content-css-module/content/styles.css +40 -0
  53. package/dist/test-template-content-css-module/images/extension_128.png +0 -0
  54. package/dist/test-template-content-css-module/images/extension_16.png +0 -0
  55. package/dist/test-template-content-css-module/images/extension_48.png +0 -0
  56. package/dist/test-template-content-css-module/manifest.json +35 -0
  57. package/dist/test-template-content-css-module/package.json +20 -0
  58. package/dist/test-template-content-less/README.md +35 -0
  59. package/dist/test-template-content-less/background.js +21 -0
  60. package/dist/test-template-content-less/content/scripts.js +32 -0
  61. package/dist/test-template-content-less/content/styles.less +51 -0
  62. package/dist/test-template-content-less/images/extension_128.png +0 -0
  63. package/dist/test-template-content-less/images/extension_16.png +0 -0
  64. package/dist/test-template-content-less/images/extension_48.png +0 -0
  65. package/dist/test-template-content-less/manifest.json +35 -0
  66. package/dist/test-template-content-less/package.json +21 -0
  67. package/dist/test-template-content-main-world/README.md +35 -0
  68. package/dist/test-template-content-main-world/background.js +1 -0
  69. package/dist/test-template-content-main-world/content/scripts.js +20 -0
  70. package/dist/test-template-content-main-world/content/styles.css +46 -0
  71. package/dist/test-template-content-main-world/extension.config.js +8 -0
  72. package/dist/test-template-content-main-world/images/extension_128.png +0 -0
  73. package/dist/test-template-content-main-world/images/extension_16.png +0 -0
  74. package/dist/test-template-content-main-world/images/extension_48.png +0 -0
  75. package/dist/test-template-content-main-world/manifest.json +37 -0
  76. package/dist/test-template-content-main-world/package.json +20 -0
  77. package/dist/test-template-content-preact/README.md +35 -0
  78. package/dist/test-template-content-preact/background.ts +1 -0
  79. package/dist/test-template-content-preact/content/ContentApp.tsx +92 -0
  80. package/dist/test-template-content-preact/content/scripts.tsx +14 -0
  81. package/dist/test-template-content-preact/content/styles.css +10 -0
  82. package/dist/test-template-content-preact/images/chromeWindow.png +0 -0
  83. package/dist/test-template-content-preact/images/extension_128.png +0 -0
  84. package/dist/test-template-content-preact/images/extension_16.png +0 -0
  85. package/dist/test-template-content-preact/images/extension_48.png +0 -0
  86. package/dist/test-template-content-preact/images/preact.png +0 -0
  87. package/dist/test-template-content-preact/images/tailwind.png +0 -0
  88. package/dist/test-template-content-preact/images/tailwind_bg.png +0 -0
  89. package/dist/test-template-content-preact/images/typescript.png +0 -0
  90. package/dist/test-template-content-preact/manifest.json +31 -0
  91. package/dist/test-template-content-preact/package.json +29 -0
  92. package/dist/test-template-content-preact/postcss.config.js +6 -0
  93. package/dist/test-template-content-preact/tailwind.config.js +8 -0
  94. package/dist/test-template-content-preact/tsconfig.json +27 -0
  95. package/dist/test-template-content-react/README.md +35 -0
  96. package/dist/test-template-content-react/background.ts +1 -0
  97. package/dist/test-template-content-react/content/ContentApp.tsx +86 -0
  98. package/dist/test-template-content-react/content/scripts.tsx +17 -0
  99. package/dist/test-template-content-react/content/styles.css +10 -0
  100. package/dist/test-template-content-react/images/chromeWindow.png +0 -0
  101. package/dist/test-template-content-react/images/extension_128.png +0 -0
  102. package/dist/test-template-content-react/images/extension_16.png +0 -0
  103. package/dist/test-template-content-react/images/extension_48.png +0 -0
  104. package/dist/test-template-content-react/images/react.png +0 -0
  105. package/dist/test-template-content-react/images/tailwind.png +0 -0
  106. package/dist/test-template-content-react/images/tailwind_bg.png +0 -0
  107. package/dist/test-template-content-react/images/typescript.png +0 -0
  108. package/dist/test-template-content-react/manifest.json +28 -0
  109. package/dist/test-template-content-react/package.json +28 -0
  110. package/dist/test-template-content-react/postcss.config.js +6 -0
  111. package/dist/test-template-content-react/tailwind.config.js +8 -0
  112. package/dist/test-template-content-react/tsconfig.json +22 -0
  113. package/dist/test-template-content-sass/README.md +35 -0
  114. package/dist/test-template-content-sass/background.js +21 -0
  115. package/dist/test-template-content-sass/content/scripts.js +32 -0
  116. package/dist/test-template-content-sass/content/styles.scss +51 -0
  117. package/dist/test-template-content-sass/images/extension_128.png +0 -0
  118. package/dist/test-template-content-sass/images/extension_16.png +0 -0
  119. package/dist/test-template-content-sass/images/extension_48.png +0 -0
  120. package/dist/test-template-content-sass/manifest.json +35 -0
  121. package/dist/test-template-content-sass/package.json +21 -0
  122. package/dist/test-template-content-sass-module/README.md +35 -0
  123. package/dist/test-template-content-sass-module/background.js +21 -0
  124. package/dist/test-template-content-sass-module/content/Logo.module.scss +18 -0
  125. package/dist/test-template-content-sass-module/content/scripts.js +33 -0
  126. package/dist/test-template-content-sass-module/content/styles.scss +40 -0
  127. package/dist/test-template-content-sass-module/images/extension_128.png +0 -0
  128. package/dist/test-template-content-sass-module/images/extension_16.png +0 -0
  129. package/dist/test-template-content-sass-module/images/extension_48.png +0 -0
  130. package/dist/test-template-content-sass-module/manifest.json +35 -0
  131. package/dist/test-template-content-sass-module/package.json +21 -0
  132. package/dist/test-template-content-tailwind/README.md +35 -0
  133. package/dist/test-template-content-tailwind/background.js +21 -0
  134. package/dist/test-template-content-tailwind/content/content.js +45 -0
  135. package/dist/test-template-content-tailwind/content/scripts.js +6 -0
  136. package/dist/test-template-content-tailwind/content/styles.css +10 -0
  137. package/dist/test-template-content-tailwind/images/chromeWindow.png +0 -0
  138. package/dist/test-template-content-tailwind/images/extension_128.png +0 -0
  139. package/dist/test-template-content-tailwind/images/extension_16.png +0 -0
  140. package/dist/test-template-content-tailwind/images/extension_48.png +0 -0
  141. package/dist/test-template-content-tailwind/images/react.png +0 -0
  142. package/dist/test-template-content-tailwind/images/tailwind.png +0 -0
  143. package/dist/test-template-content-tailwind/images/tailwind_bg.png +0 -0
  144. package/dist/test-template-content-tailwind/manifest.json +35 -0
  145. package/dist/test-template-content-tailwind/package.json +23 -0
  146. package/dist/test-template-content-tailwind/postcss.config.js +6 -0
  147. package/dist/test-template-content-tailwind/tailwind.config.js +8 -0
  148. package/dist/test-template-content-typescript/README.md +35 -0
  149. package/dist/test-template-content-typescript/background.ts +26 -0
  150. package/dist/test-template-content-typescript/content/scripts.ts +33 -0
  151. package/dist/test-template-content-typescript/content/styles.css +51 -0
  152. package/dist/test-template-content-typescript/images/extension_128.png +0 -0
  153. package/dist/test-template-content-typescript/images/extension_16.png +0 -0
  154. package/dist/test-template-content-typescript/images/extension_48.png +0 -0
  155. package/dist/test-template-content-typescript/images/typescript.png +0 -0
  156. package/dist/test-template-content-typescript/manifest.json +35 -0
  157. package/dist/test-template-content-typescript/package.json +21 -0
  158. package/dist/test-template-content-typescript/tsconfig.json +22 -0
  159. package/dist/test-template-content-vue/README.md +35 -0
  160. package/dist/test-template-content-vue/background.ts +1 -0
  161. package/dist/test-template-content-vue/content/ContentApp.vue +90 -0
  162. package/dist/test-template-content-vue/content/scripts.ts +13 -0
  163. package/dist/test-template-content-vue/content/shims-vue.d.ts +6 -0
  164. package/dist/test-template-content-vue/content/styles.css +10 -0
  165. package/dist/test-template-content-vue/images/chromeWindow.png +0 -0
  166. package/dist/test-template-content-vue/images/extension_128.png +0 -0
  167. package/dist/test-template-content-vue/images/extension_16.png +0 -0
  168. package/dist/test-template-content-vue/images/extension_48.png +0 -0
  169. package/dist/test-template-content-vue/images/tailwind.png +0 -0
  170. package/dist/test-template-content-vue/images/tailwind_bg.png +0 -0
  171. package/dist/test-template-content-vue/images/typescript.png +0 -0
  172. package/dist/test-template-content-vue/images/vue.svg +8 -0
  173. package/dist/test-template-content-vue/manifest.json +31 -0
  174. package/dist/test-template-content-vue/package.json +25 -0
  175. package/dist/test-template-content-vue/postcss.config.js +6 -0
  176. package/dist/test-template-content-vue/tailwind.config.js +8 -0
  177. package/dist/test-template-content-vue/tsconfig.json +22 -0
  178. package/dist/test-template-declarative_net_request/README.md +35 -0
  179. package/dist/test-template-declarative_net_request/images/extension_128.png +0 -0
  180. package/dist/test-template-declarative_net_request/images/extension_16.png +0 -0
  181. package/dist/test-template-declarative_net_request/images/extension_48.png +0 -0
  182. package/dist/test-template-declarative_net_request/manifest.json +34 -0
  183. package/dist/test-template-declarative_net_request/package.json +21 -0
  184. package/dist/test-template-declarative_net_request/public/public_ruleset.json +72 -0
  185. package/dist/test-template-declarative_net_request/rules_1.json +72 -0
  186. package/dist/test-template-init/README.md +35 -0
  187. package/dist/test-template-init/manifest.json +7 -0
  188. package/dist/test-template-init/package.json +32 -0
  189. package/dist/test-template-locales/README.md +35 -0
  190. package/dist/test-template-locales/_locales/en/messages.json +10 -0
  191. package/dist/test-template-locales/_locales/pt_BR/messages.json +10 -0
  192. package/dist/test-template-locales/action/index.html +40 -0
  193. package/dist/test-template-locales/action/scripts.js +3 -0
  194. package/dist/test-template-locales/action/styles.css +23 -0
  195. package/dist/test-template-locales/images/extension_128.png +0 -0
  196. package/dist/test-template-locales/images/extension_16.png +0 -0
  197. package/dist/test-template-locales/images/extension_48.png +0 -0
  198. package/dist/test-template-locales/manifest.json +19 -0
  199. package/dist/test-template-locales/package.json +21 -0
  200. package/dist/test-template-new-less/README.md +35 -0
  201. package/dist/test-template-new-less/images/extension_128.png +0 -0
  202. package/dist/test-template-new-less/images/extension_16.png +0 -0
  203. package/dist/test-template-new-less/images/extension_48.png +0 -0
  204. package/dist/test-template-new-less/manifest.json +15 -0
  205. package/dist/test-template-new-less/newtab/index.html +40 -0
  206. package/dist/test-template-new-less/newtab/scripts.js +11 -0
  207. package/dist/test-template-new-less/newtab/styles.less +19 -0
  208. package/dist/test-template-new-less/package.json +21 -0
  209. package/dist/test-template-new-preact/README.md +35 -0
  210. package/dist/test-template-new-preact/images/extension_128.png +0 -0
  211. package/dist/test-template-new-preact/images/extension_16.png +0 -0
  212. package/dist/test-template-new-preact/images/extension_48.png +0 -0
  213. package/dist/test-template-new-preact/images/preact.png +0 -0
  214. package/dist/test-template-new-preact/manifest.json +15 -0
  215. package/dist/test-template-new-preact/newtab/NewTabApp.tsx +27 -0
  216. package/dist/test-template-new-preact/newtab/index.html +13 -0
  217. package/dist/test-template-new-preact/newtab/scripts.tsx +5 -0
  218. package/dist/test-template-new-preact/newtab/styles.css +32 -0
  219. package/dist/test-template-new-preact/package.json +29 -0
  220. package/dist/test-template-new-preact/tsconfig.json +22 -0
  221. package/dist/test-template-new-react/README.md +35 -0
  222. package/dist/test-template-new-react/images/extension_128.png +0 -0
  223. package/dist/test-template-new-react/images/extension_16.png +0 -0
  224. package/dist/test-template-new-react/images/extension_48.png +0 -0
  225. package/dist/test-template-new-react/images/react.png +0 -0
  226. package/dist/test-template-new-react/manifest.json +15 -0
  227. package/dist/test-template-new-react/newtab/NewTabApp.tsx +27 -0
  228. package/dist/test-template-new-react/newtab/index.html +13 -0
  229. package/dist/test-template-new-react/newtab/scripts.tsx +12 -0
  230. package/dist/test-template-new-react/newtab/styles.css +23 -0
  231. package/dist/test-template-new-react/package.json +28 -0
  232. package/dist/test-template-new-react/tsconfig.json +22 -0
  233. package/dist/test-template-new-sass/README.md +35 -0
  234. package/dist/test-template-new-sass/images/extension_128.png +0 -0
  235. package/dist/test-template-new-sass/images/extension_16.png +0 -0
  236. package/dist/test-template-new-sass/images/extension_48.png +0 -0
  237. package/dist/test-template-new-sass/manifest.json +15 -0
  238. package/dist/test-template-new-sass/newtab/index.html +40 -0
  239. package/dist/test-template-new-sass/newtab/scripts.js +11 -0
  240. package/dist/test-template-new-sass/newtab/styles.scss +19 -0
  241. package/dist/test-template-new-sass/package.json +22 -0
  242. package/dist/test-template-new-tailwind/README.md +35 -0
  243. package/dist/test-template-new-tailwind/images/chromeWindow.png +0 -0
  244. package/dist/test-template-new-tailwind/images/extension_128.png +0 -0
  245. package/dist/test-template-new-tailwind/images/extension_16.png +0 -0
  246. package/dist/test-template-new-tailwind/images/extension_48.png +0 -0
  247. package/dist/test-template-new-tailwind/images/react.png +0 -0
  248. package/dist/test-template-new-tailwind/images/tailwind.png +0 -0
  249. package/dist/test-template-new-tailwind/images/tailwind_bg.png +0 -0
  250. package/dist/test-template-new-tailwind/manifest.json +15 -0
  251. package/dist/test-template-new-tailwind/newtab/NewTabApp.tsx +67 -0
  252. package/dist/test-template-new-tailwind/newtab/index.html +13 -0
  253. package/dist/test-template-new-tailwind/newtab/scripts.tsx +12 -0
  254. package/dist/test-template-new-tailwind/newtab/styles.css +3 -0
  255. package/dist/test-template-new-tailwind/package.json +28 -0
  256. package/dist/test-template-new-tailwind/postcss.config.js +6 -0
  257. package/dist/test-template-new-tailwind/tailwind.config.js +8 -0
  258. package/dist/test-template-new-tailwind/tsconfig.json +22 -0
  259. package/dist/test-template-new-typescript/README.md +35 -0
  260. package/dist/test-template-new-typescript/images/extension_128.png +0 -0
  261. package/dist/test-template-new-typescript/images/extension_16.png +0 -0
  262. package/dist/test-template-new-typescript/images/extension_48.png +0 -0
  263. package/dist/test-template-new-typescript/images/typescript.png +0 -0
  264. package/dist/test-template-new-typescript/manifest.json +15 -0
  265. package/dist/test-template-new-typescript/newtab/index.html +25 -0
  266. package/dist/test-template-new-typescript/newtab/scripts.ts +10 -0
  267. package/dist/test-template-new-typescript/newtab/styles.css +18 -0
  268. package/dist/test-template-new-typescript/package.json +22 -0
  269. package/dist/test-template-new-typescript/tsconfig.json +22 -0
  270. package/dist/test-template-new-vue/README.md +35 -0
  271. package/dist/test-template-new-vue/images/extension_128.png +0 -0
  272. package/dist/test-template-new-vue/images/extension_16.png +0 -0
  273. package/dist/test-template-new-vue/images/extension_48.png +0 -0
  274. package/dist/test-template-new-vue/images/vue.svg +8 -0
  275. package/dist/test-template-new-vue/manifest.json +15 -0
  276. package/dist/test-template-new-vue/newtab/NewTabApp.vue +30 -0
  277. package/dist/test-template-new-vue/newtab/index.html +13 -0
  278. package/dist/test-template-new-vue/newtab/scripts.ts +7 -0
  279. package/dist/test-template-new-vue/newtab/styles.css +36 -0
  280. package/dist/test-template-new-vue/package.json +25 -0
  281. package/dist/test-template-new-vue/tsconfig.json +22 -0
  282. package/dist/test-template-sidebar/README.md +35 -0
  283. package/dist/test-template-sidebar/images/extension_128.png +0 -0
  284. package/dist/test-template-sidebar/images/extension_16.png +0 -0
  285. package/dist/test-template-sidebar/images/extension_48.png +0 -0
  286. package/dist/test-template-sidebar/manifest.json +37 -0
  287. package/dist/test-template-sidebar/package.json +21 -0
  288. package/dist/test-template-sidebar/puzzle.png +0 -0
  289. package/dist/test-template-sidebar/sidebar/index.html +39 -0
  290. package/dist/test-template-sidebar/sidebar/scripts.js +11 -0
  291. package/dist/test-template-sidebar/sidebar/styles.css +27 -0
  292. package/dist/test-template-sidebar/test_16.png +0 -0
  293. package/dist/test-template-sidebar/test_32.png +0 -0
  294. package/dist/test-template-sidebar/test_48.png +0 -0
  295. package/dist/test-template-sidebar/test_64.png +0 -0
  296. package/dist/test-template-special-folders-pages/README.md +35 -0
  297. package/dist/test-template-special-folders-pages/background.js +5 -0
  298. package/dist/test-template-special-folders-pages/images/extension_128.png +0 -0
  299. package/dist/test-template-special-folders-pages/images/extension_16.png +0 -0
  300. package/dist/test-template-special-folders-pages/images/extension_48.png +0 -0
  301. package/dist/test-template-special-folders-pages/images/notpublic-file.png +0 -0
  302. package/dist/test-template-special-folders-pages/manifest.json +26 -0
  303. package/dist/test-template-special-folders-pages/package.json +21 -0
  304. package/dist/test-template-special-folders-pages/pages/custom.html +8 -0
  305. package/dist/test-template-special-folders-pages/pages/main.css +18 -0
  306. package/dist/test-template-special-folders-pages/pages/main.html +16 -0
  307. package/dist/test-template-special-folders-pages/pages/main.js +1 -0
  308. package/dist/test-template-special-folders-pages/public/css/file.css +3 -0
  309. package/dist/test-template-special-folders-pages/public/html/file.html +8 -0
  310. package/dist/test-template-special-folders-pages/public/img/icon.png +0 -0
  311. package/dist/test-template-special-folders-pages/public/js/file.js +0 -0
  312. package/dist/test-template-special-folders-pages/sandbox/index.html +24 -0
  313. package/dist/test-template-special-folders-pages/sandbox/scripts.js +0 -0
  314. package/dist/test-template-special-folders-pages/sandbox/styles.css +1 -0
  315. package/dist/test-template-special-folders-scripts/README.md +35 -0
  316. package/dist/test-template-special-folders-scripts/background.js +24 -0
  317. package/dist/test-template-special-folders-scripts/images/extension_128.png +0 -0
  318. package/dist/test-template-special-folders-scripts/images/extension_16.png +0 -0
  319. package/dist/test-template-special-folders-scripts/images/extension_48.png +0 -0
  320. package/dist/test-template-special-folders-scripts/manifest.json +27 -0
  321. package/dist/test-template-special-folders-scripts/package.json +21 -0
  322. package/dist/test-template-special-folders-scripts/pages/index.css +5 -0
  323. package/dist/test-template-special-folders-scripts/pages/index.html +3 -0
  324. package/dist/test-template-special-folders-scripts/pages/index.js +1 -0
  325. package/dist/test-template-special-folders-scripts/public/extension.png +0 -0
  326. package/dist/test-template-special-folders-scripts/scripts/content-script.js +3 -0
  327. package/dist/test-template-storage/README.md +35 -0
  328. package/dist/test-template-storage/images/extension_128.png +0 -0
  329. package/dist/test-template-storage/images/extension_16.png +0 -0
  330. package/dist/test-template-storage/images/extension_48.png +0 -0
  331. package/dist/test-template-storage/manifest.json +15 -0
  332. package/dist/test-template-storage/package.json +21 -0
  333. package/dist/test-template-storage/schema.json +44 -0
  334. 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,11 @@
1
+ function getManifest() {
2
+ return chrome.runtime.getManifest()
3
+ }
4
+
5
+ const manifest = getManifest()
6
+
7
+ console.table({
8
+ name: manifest.name,
9
+ version: manifest.version,
10
+ description: manifest.description
11
+ })
@@ -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
+ }
@@ -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).
@@ -0,0 +1,5 @@
1
+ chrome.runtime.onInstalled.addListener(() => {
2
+ chrome.tabs.create({
3
+ url: './pages/main.html'
4
+ })
5
+ })
@@ -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,8 @@
1
+ <html>
2
+ <head>
3
+ <title>Custom page</title>
4
+ </head>
5
+ <body>
6
+ I am a custom page
7
+ </body>
8
+ </html>
@@ -0,0 +1,18 @@
1
+ html, body {
2
+ font-family: Helvetica, Arial;
3
+ color: #444;
4
+ }
5
+
6
+ h1 {
7
+ margin: 0 0 0.3em 0;
8
+ }
9
+
10
+ p {
11
+ color: #888;
12
+ margin: 0 0 1em 0;
13
+ }
14
+
15
+ iframe {
16
+ border: 1px solid #CCC;
17
+ margin-top: 20px;
18
+ }
@@ -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!')
@@ -0,0 +1,3 @@
1
+ body {
2
+ background: yellow;
3
+ }
@@ -0,0 +1,8 @@
1
+ <html>
2
+ <head>
3
+ <title>HTML file</title>
4
+ </head>
5
+ <body>
6
+ Hello, Extension.js
7
+ </body>
8
+ </html>
@@ -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>
@@ -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,5 @@
1
+ form {
2
+ display: inline-block;
3
+ border: 1px solid #dadce0;
4
+ min-width: 500px;
5
+ }
@@ -0,0 +1,3 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ </html>
@@ -0,0 +1 @@
1
+ console.log('ok')
@@ -0,0 +1,3 @@
1
+ const extensionInfo = chrome.runtime.getManifest()
2
+ const text = `${extensionInfo.name} v${extensionInfo.version} injected this script`
3
+ alert(text)
@@ -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).
@@ -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.22",
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
- "detect-package-manager": "^3.0.2",
29
- "go-git-it": "2.0.4"
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",