create-quasar 1.2.1 → 1.3.0

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 (231) hide show
  1. package/package.json +1 -1
  2. package/templates/app/quasar-v1/js/BASE/_package.json +1 -1
  3. package/templates/app/quasar-v1/ts/BASE/_package.json +1 -1
  4. package/templates/app/quasar-v2/index.js +4 -2
  5. package/templates/app/quasar-v2/js-vite/BASE/_.gitignore +4 -0
  6. package/templates/app/quasar-v2/js-vite/BASE/_package.json +2 -2
  7. package/templates/app/quasar-v2/js-vite/BASE/quasar.config.js +1 -0
  8. package/templates/app/quasar-v2/js-vite/lint/_.eslintignore +1 -0
  9. package/templates/app/quasar-v2/js-vite/lint/_.eslintrc.cjs +1 -1
  10. package/templates/app/quasar-v2/js-vite-beta/.eslintrc.js +20 -0
  11. package/templates/app/quasar-v2/js-vite-beta/BASE/README.md +41 -0
  12. package/templates/app/quasar-v2/js-vite-beta/BASE/_.editorconfig +9 -0
  13. package/templates/app/quasar-v2/js-vite-beta/BASE/_.gitignore +33 -0
  14. package/templates/app/quasar-v2/js-vite-beta/BASE/_.npmrc +3 -0
  15. package/templates/app/quasar-v2/js-vite-beta/BASE/_.vscode/extensions.json +15 -0
  16. package/templates/app/quasar-v2/js-vite-beta/BASE/_.vscode/settings.json +10 -0
  17. package/templates/app/quasar-v2/js-vite-beta/BASE/_jsconfig.json +39 -0
  18. package/templates/app/quasar-v2/js-vite-beta/BASE/_package.json +52 -0
  19. package/templates/app/quasar-v2/js-vite-beta/BASE/index.html +21 -0
  20. package/templates/app/quasar-v2/js-vite-beta/BASE/postcss.config.cjs +27 -0
  21. package/templates/app/quasar-v2/js-vite-beta/BASE/public/favicon.ico +0 -0
  22. package/templates/app/quasar-v2/js-vite-beta/BASE/public/icons/favicon-128x128.png +0 -0
  23. package/templates/app/quasar-v2/js-vite-beta/BASE/public/icons/favicon-16x16.png +0 -0
  24. package/templates/app/quasar-v2/js-vite-beta/BASE/public/icons/favicon-32x32.png +0 -0
  25. package/templates/app/quasar-v2/js-vite-beta/BASE/public/icons/favicon-96x96.png +0 -0
  26. package/templates/app/quasar-v2/js-vite-beta/BASE/quasar.config.js +221 -0
  27. package/templates/app/quasar-v2/js-vite-beta/BASE/src/App.vue +11 -0
  28. package/templates/app/quasar-v2/js-vite-beta/BASE/src/assets/quasar-logo-vertical.svg +15 -0
  29. package/templates/app/quasar-v2/js-vite-beta/BASE/src/boot/_.gitkeep +0 -0
  30. package/templates/app/quasar-v2/js-vite-beta/BASE/src/components/EssentialLink.vue +49 -0
  31. package/templates/app/quasar-v2/js-vite-beta/BASE/src/layouts/MainLayout.vue +116 -0
  32. package/templates/app/quasar-v2/js-vite-beta/BASE/src/pages/ErrorNotFound.vue +31 -0
  33. package/templates/app/quasar-v2/js-vite-beta/BASE/src/pages/IndexPage.vue +17 -0
  34. package/templates/app/quasar-v2/js-vite-beta/BASE/src/router/index.js +30 -0
  35. package/templates/app/quasar-v2/js-vite-beta/BASE/src/router/routes.js +19 -0
  36. package/templates/app/quasar-v2/js-vite-beta/axios/src/boot/axios.js +24 -0
  37. package/templates/app/quasar-v2/js-vite-beta/css/src/css/app.css +1 -0
  38. package/templates/app/quasar-v2/js-vite-beta/i18n/src/boot/i18n.js +14 -0
  39. package/templates/app/quasar-v2/js-vite-beta/i18n/src/i18n/en-US/index.js +7 -0
  40. package/templates/app/quasar-v2/js-vite-beta/i18n/src/i18n/index.js +5 -0
  41. package/templates/app/quasar-v2/js-vite-beta/index.js +62 -0
  42. package/templates/app/quasar-v2/js-vite-beta/lint/_.eslintignore +7 -0
  43. package/templates/app/quasar-v2/js-vite-beta/lint/_.eslintrc.cjs +100 -0
  44. package/templates/app/quasar-v2/js-vite-beta/pinia/src/stores/example-store.js +15 -0
  45. package/templates/app/quasar-v2/js-vite-beta/pinia/src/stores/index.js +20 -0
  46. package/templates/app/quasar-v2/js-vite-beta/pinia/src/stores/store-flag.d.ts +10 -0
  47. package/templates/app/quasar-v2/js-vite-beta/sass/src/css/app.sass +1 -0
  48. package/templates/app/quasar-v2/js-vite-beta/sass/src/css/quasar.variables.sass +25 -0
  49. package/templates/app/quasar-v2/js-vite-beta/scss/src/css/app.scss +1 -0
  50. package/templates/app/quasar-v2/js-vite-beta/scss/src/css/quasar.variables.scss +25 -0
  51. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/index.js +27 -0
  52. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/module-example/actions.js +2 -0
  53. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/module-example/getters.js +2 -0
  54. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/module-example/index.js +12 -0
  55. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/module-example/mutations.js +2 -0
  56. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/module-example/state.js +5 -0
  57. package/templates/app/quasar-v2/js-vite-beta/vuex/src/store/store-flag.d.ts +10 -0
  58. package/templates/app/quasar-v2/js-webpack/BASE/_.gitignore +4 -0
  59. package/templates/app/quasar-v2/js-webpack/BASE/_package.json +1 -1
  60. package/templates/app/quasar-v2/js-webpack/lint/_.eslintignore +1 -0
  61. package/templates/app/quasar-v2/js-webpack/lint/_.eslintrc.cjs +1 -1
  62. package/templates/app/quasar-v2/js-webpack-beta/.eslintrc.js +20 -0
  63. package/templates/app/quasar-v2/js-webpack-beta/BASE/README.md +41 -0
  64. package/templates/app/quasar-v2/js-webpack-beta/BASE/_.editorconfig +9 -0
  65. package/templates/app/quasar-v2/js-webpack-beta/BASE/_.gitignore +37 -0
  66. package/templates/app/quasar-v2/js-webpack-beta/BASE/_.npmrc +3 -0
  67. package/templates/app/quasar-v2/js-webpack-beta/BASE/_.vscode/extensions.json +15 -0
  68. package/templates/app/quasar-v2/js-webpack-beta/BASE/_.vscode/settings.json +10 -0
  69. package/templates/app/quasar-v2/js-webpack-beta/BASE/_jsconfig.json +39 -0
  70. package/templates/app/quasar-v2/js-webpack-beta/BASE/_package.json +63 -0
  71. package/templates/app/quasar-v2/js-webpack-beta/BASE/babel.config.cjs +14 -0
  72. package/templates/app/quasar-v2/js-webpack-beta/BASE/postcss.config.cjs +9 -0
  73. package/templates/app/quasar-v2/js-webpack-beta/BASE/public/favicon.ico +0 -0
  74. package/templates/app/quasar-v2/js-webpack-beta/BASE/public/icons/favicon-128x128.png +0 -0
  75. package/templates/app/quasar-v2/js-webpack-beta/BASE/public/icons/favicon-16x16.png +0 -0
  76. package/templates/app/quasar-v2/js-webpack-beta/BASE/public/icons/favicon-32x32.png +0 -0
  77. package/templates/app/quasar-v2/js-webpack-beta/BASE/public/icons/favicon-96x96.png +0 -0
  78. package/templates/app/quasar-v2/js-webpack-beta/BASE/quasar.config.js +252 -0
  79. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/App.vue +11 -0
  80. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/assets/quasar-logo-vertical.svg +15 -0
  81. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/boot/_.gitkeep +0 -0
  82. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/components/EssentialLink.vue +49 -0
  83. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/index.template.html +22 -0
  84. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/layouts/MainLayout.vue +116 -0
  85. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/pages/ErrorNotFound.vue +31 -0
  86. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/pages/IndexPage.vue +17 -0
  87. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/router/index.js +30 -0
  88. package/templates/app/quasar-v2/js-webpack-beta/BASE/src/router/routes.js +19 -0
  89. package/templates/app/quasar-v2/js-webpack-beta/axios/src/boot/axios.js +24 -0
  90. package/templates/app/quasar-v2/js-webpack-beta/css/src/css/app.css +1 -0
  91. package/templates/app/quasar-v2/js-webpack-beta/i18n/src/boot/i18n.js +14 -0
  92. package/templates/app/quasar-v2/js-webpack-beta/i18n/src/i18n/en-US/index.js +7 -0
  93. package/templates/app/quasar-v2/js-webpack-beta/i18n/src/i18n/index.js +5 -0
  94. package/templates/app/quasar-v2/js-webpack-beta/index.js +62 -0
  95. package/templates/app/quasar-v2/js-webpack-beta/lint/_.eslintignore +9 -0
  96. package/templates/app/quasar-v2/js-webpack-beta/lint/_.eslintrc.cjs +101 -0
  97. package/templates/app/quasar-v2/js-webpack-beta/pinia/src/stores/example-store.js +15 -0
  98. package/templates/app/quasar-v2/js-webpack-beta/pinia/src/stores/index.js +20 -0
  99. package/templates/app/quasar-v2/js-webpack-beta/pinia/src/stores/store-flag.d.ts +10 -0
  100. package/templates/app/quasar-v2/js-webpack-beta/sass/src/css/app.sass +1 -0
  101. package/templates/app/quasar-v2/js-webpack-beta/sass/src/css/quasar.variables.sass +25 -0
  102. package/templates/app/quasar-v2/js-webpack-beta/scss/src/css/app.scss +1 -0
  103. package/templates/app/quasar-v2/js-webpack-beta/scss/src/css/quasar.variables.scss +25 -0
  104. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/index.js +27 -0
  105. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/module-example/actions.js +2 -0
  106. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/module-example/getters.js +2 -0
  107. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/module-example/index.js +12 -0
  108. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/module-example/mutations.js +2 -0
  109. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/module-example/state.js +5 -0
  110. package/templates/app/quasar-v2/js-webpack-beta/vuex/src/store/store-flag.d.ts +10 -0
  111. package/templates/app/quasar-v2/ts-vite/BASE/_.gitignore +4 -0
  112. package/templates/app/quasar-v2/ts-vite/BASE/_package.json +2 -2
  113. package/templates/app/quasar-v2/ts-vite/axios/src/boot/axios.ts +1 -0
  114. package/templates/app/quasar-v2/ts-vite/lint/_.eslintignore +1 -0
  115. package/templates/app/quasar-v2/ts-vite-beta/.eslintrc.js +21 -0
  116. package/templates/app/quasar-v2/ts-vite-beta/BASE/README.md +41 -0
  117. package/templates/app/quasar-v2/ts-vite-beta/BASE/_.editorconfig +9 -0
  118. package/templates/app/quasar-v2/ts-vite-beta/BASE/_.gitignore +37 -0
  119. package/templates/app/quasar-v2/ts-vite-beta/BASE/_.npmrc +3 -0
  120. package/templates/app/quasar-v2/ts-vite-beta/BASE/_.vscode/extensions.json +15 -0
  121. package/templates/app/quasar-v2/ts-vite-beta/BASE/_.vscode/settings.json +11 -0
  122. package/templates/app/quasar-v2/ts-vite-beta/BASE/_package.json +56 -0
  123. package/templates/app/quasar-v2/ts-vite-beta/BASE/_tsconfig.json +8 -0
  124. package/templates/app/quasar-v2/ts-vite-beta/BASE/index.html +21 -0
  125. package/templates/app/quasar-v2/ts-vite-beta/BASE/postcss.config.cjs +27 -0
  126. package/templates/app/quasar-v2/ts-vite-beta/BASE/public/favicon.ico +0 -0
  127. package/templates/app/quasar-v2/ts-vite-beta/BASE/public/icons/favicon-128x128.png +0 -0
  128. package/templates/app/quasar-v2/ts-vite-beta/BASE/public/icons/favicon-16x16.png +0 -0
  129. package/templates/app/quasar-v2/ts-vite-beta/BASE/public/icons/favicon-32x32.png +0 -0
  130. package/templates/app/quasar-v2/ts-vite-beta/BASE/public/icons/favicon-96x96.png +0 -0
  131. package/templates/app/quasar-v2/ts-vite-beta/BASE/quasar.config.ts +222 -0
  132. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/App.vue +20 -0
  133. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/assets/quasar-logo-vertical.svg +15 -0
  134. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/boot/_.gitkeep +0 -0
  135. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/components/EssentialLink.vue +97 -0
  136. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/components/ExampleComponent.vue +144 -0
  137. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/components/models.ts +8 -0
  138. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/env.d.ts +9 -0
  139. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/layouts/MainLayout.vue +295 -0
  140. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/pages/ErrorNotFound.vue +40 -0
  141. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/pages/IndexPage.vue +148 -0
  142. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/quasar.d.ts +9 -0
  143. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/router/index.ts +37 -0
  144. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/router/routes.ts +18 -0
  145. package/templates/app/quasar-v2/ts-vite-beta/BASE/src/shims-vue.d.ts +10 -0
  146. package/templates/app/quasar-v2/ts-vite-beta/axios/src/boot/axios.ts +31 -0
  147. package/templates/app/quasar-v2/ts-vite-beta/css/src/css/app.css +1 -0
  148. package/templates/app/quasar-v2/ts-vite-beta/i18n/src/boot/i18n.ts +33 -0
  149. package/templates/app/quasar-v2/ts-vite-beta/i18n/src/i18n/en-US/index.ts +7 -0
  150. package/templates/app/quasar-v2/ts-vite-beta/i18n/src/i18n/index.ts +5 -0
  151. package/templates/app/quasar-v2/ts-vite-beta/index.js +79 -0
  152. package/templates/app/quasar-v2/ts-vite-beta/lint/_.eslintignore +8 -0
  153. package/templates/app/quasar-v2/ts-vite-beta/lint/_.eslintrc.cjs +130 -0
  154. package/templates/app/quasar-v2/ts-vite-beta/pinia/src/stores/example-store.ts +15 -0
  155. package/templates/app/quasar-v2/ts-vite-beta/pinia/src/stores/index.ts +32 -0
  156. package/templates/app/quasar-v2/ts-vite-beta/pinia/src/stores/store-flag.d.ts +10 -0
  157. package/templates/app/quasar-v2/ts-vite-beta/prettier/_.prettierrc +4 -0
  158. package/templates/app/quasar-v2/ts-vite-beta/sass/src/css/app.sass +1 -0
  159. package/templates/app/quasar-v2/ts-vite-beta/sass/src/css/quasar.variables.sass +25 -0
  160. package/templates/app/quasar-v2/ts-vite-beta/scss/src/css/app.scss +1 -0
  161. package/templates/app/quasar-v2/ts-vite-beta/scss/src/css/quasar.variables.scss +25 -0
  162. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/index.ts +62 -0
  163. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/module-example/actions.ts +11 -0
  164. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/module-example/getters.ts +11 -0
  165. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/module-example/index.ts +16 -0
  166. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/module-example/mutations.ts +10 -0
  167. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/module-example/state.ts +11 -0
  168. package/templates/app/quasar-v2/ts-vite-beta/vuex/src/store/store-flag.d.ts +10 -0
  169. package/templates/app/quasar-v2/ts-webpack/BASE/_.gitignore +4 -0
  170. package/templates/app/quasar-v2/ts-webpack/BASE/_package.json +1 -1
  171. package/templates/app/quasar-v2/ts-webpack/axios/src/boot/axios.ts +1 -0
  172. package/templates/app/quasar-v2/ts-webpack/lint/_.eslintignore +1 -0
  173. package/templates/app/quasar-v2/ts-webpack-beta/.eslintrc.js +21 -0
  174. package/templates/app/quasar-v2/ts-webpack-beta/BASE/README.md +41 -0
  175. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_.editorconfig +9 -0
  176. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_.gitignore +37 -0
  177. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_.npmrc +3 -0
  178. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_.vscode/extensions.json +15 -0
  179. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_.vscode/settings.json +11 -0
  180. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_package.json +65 -0
  181. package/templates/app/quasar-v2/ts-webpack-beta/BASE/_tsconfig.json +8 -0
  182. package/templates/app/quasar-v2/ts-webpack-beta/BASE/babel.config.cjs +14 -0
  183. package/templates/app/quasar-v2/ts-webpack-beta/BASE/postcss.config.cjs +9 -0
  184. package/templates/app/quasar-v2/ts-webpack-beta/BASE/public/favicon.ico +0 -0
  185. package/templates/app/quasar-v2/ts-webpack-beta/BASE/public/icons/favicon-128x128.png +0 -0
  186. package/templates/app/quasar-v2/ts-webpack-beta/BASE/public/icons/favicon-16x16.png +0 -0
  187. package/templates/app/quasar-v2/ts-webpack-beta/BASE/public/icons/favicon-32x32.png +0 -0
  188. package/templates/app/quasar-v2/ts-webpack-beta/BASE/public/icons/favicon-96x96.png +0 -0
  189. package/templates/app/quasar-v2/ts-webpack-beta/BASE/quasar.config.ts +230 -0
  190. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/App.vue +20 -0
  191. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/assets/quasar-logo-vertical.svg +15 -0
  192. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/boot/_.gitkeep +0 -0
  193. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/components/EssentialLink.vue +97 -0
  194. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/components/ExampleComponent.vue +144 -0
  195. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/components/models.ts +8 -0
  196. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/env.d.ts +9 -0
  197. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/index.template.html +22 -0
  198. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/layouts/MainLayout.vue +295 -0
  199. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/pages/ErrorNotFound.vue +40 -0
  200. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/pages/IndexPage.vue +148 -0
  201. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/quasar.d.ts +9 -0
  202. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/router/index.ts +38 -0
  203. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/router/routes.ts +18 -0
  204. package/templates/app/quasar-v2/ts-webpack-beta/BASE/src/shims-vue.d.ts +8 -0
  205. package/templates/app/quasar-v2/ts-webpack-beta/axios/src/boot/axios.ts +31 -0
  206. package/templates/app/quasar-v2/ts-webpack-beta/css/src/css/app.css +1 -0
  207. package/templates/app/quasar-v2/ts-webpack-beta/i18n/src/boot/i18n.ts +33 -0
  208. package/templates/app/quasar-v2/ts-webpack-beta/i18n/src/i18n/en-US/index.ts +7 -0
  209. package/templates/app/quasar-v2/ts-webpack-beta/i18n/src/i18n/index.ts +5 -0
  210. package/templates/app/quasar-v2/ts-webpack-beta/index.js +79 -0
  211. package/templates/app/quasar-v2/ts-webpack-beta/lint/_.eslintignore +10 -0
  212. package/templates/app/quasar-v2/ts-webpack-beta/lint/_.eslintrc.cjs +134 -0
  213. package/templates/app/quasar-v2/ts-webpack-beta/pinia/src/stores/example-store.ts +15 -0
  214. package/templates/app/quasar-v2/ts-webpack-beta/pinia/src/stores/index.ts +32 -0
  215. package/templates/app/quasar-v2/ts-webpack-beta/pinia/src/stores/store-flag.d.ts +10 -0
  216. package/templates/app/quasar-v2/ts-webpack-beta/prettier/_.prettierrc +4 -0
  217. package/templates/app/quasar-v2/ts-webpack-beta/sass/src/css/app.sass +1 -0
  218. package/templates/app/quasar-v2/ts-webpack-beta/sass/src/css/quasar.variables.sass +25 -0
  219. package/templates/app/quasar-v2/ts-webpack-beta/scss/src/css/app.scss +1 -0
  220. package/templates/app/quasar-v2/ts-webpack-beta/scss/src/css/quasar.variables.scss +25 -0
  221. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/index.ts +62 -0
  222. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/module-example/actions.ts +11 -0
  223. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/module-example/getters.ts +11 -0
  224. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/module-example/index.ts +16 -0
  225. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/module-example/mutations.ts +10 -0
  226. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/module-example/state.ts +11 -0
  227. package/templates/app/quasar-v2/ts-webpack-beta/vuex/src/store/store-flag.d.ts +10 -0
  228. package/templates/ui-kit/quasar-v1/BASE/ui/dev/_package.json +1 -1
  229. package/templates/ui-kit/quasar-v2/BASE/ui/_package.json +1 -1
  230. package/utils/index.js +13 -5
  231. /package/{.eslintrc.js → .eslintrc.cjs} +0 -0
@@ -0,0 +1,49 @@
1
+ <template>
2
+ <q-item
3
+ clickable
4
+ tag="a"
5
+ target="_blank"
6
+ :href="link"
7
+ >
8
+ <q-item-section
9
+ v-if="icon"
10
+ avatar
11
+ >
12
+ <q-icon :name="icon" />
13
+ </q-item-section>
14
+
15
+ <q-item-section>
16
+ <q-item-label>{{ title }}</q-item-label>
17
+ <q-item-label caption>{{ caption }}</q-item-label>
18
+ </q-item-section>
19
+ </q-item>
20
+ </template>
21
+
22
+ <script>
23
+ import { defineComponent } from 'vue'
24
+
25
+ export default defineComponent({
26
+ name: 'EssentialLink',
27
+ props: {
28
+ title: {
29
+ type: String,
30
+ required: true
31
+ },
32
+
33
+ caption: {
34
+ type: String,
35
+ default: ''
36
+ },
37
+
38
+ link: {
39
+ type: String,
40
+ default: '#'
41
+ },
42
+
43
+ icon: {
44
+ type: String,
45
+ default: ''
46
+ }
47
+ }
48
+ })
49
+ </script>
@@ -0,0 +1,116 @@
1
+ <template>
2
+ <q-layout view="lHh Lpr lFf">
3
+ <q-header elevated>
4
+ <q-toolbar>
5
+ <q-btn
6
+ flat
7
+ dense
8
+ round
9
+ icon="menu"
10
+ aria-label="Menu"
11
+ @click="toggleLeftDrawer"
12
+ />
13
+
14
+ <q-toolbar-title>
15
+ Quasar App
16
+ </q-toolbar-title>
17
+
18
+ <div>Quasar v{{ $q.version }}</div>
19
+ </q-toolbar>
20
+ </q-header>
21
+
22
+ <q-drawer
23
+ v-model="leftDrawerOpen"
24
+ show-if-above
25
+ bordered
26
+ >
27
+ <q-list>
28
+ <q-item-label
29
+ header
30
+ >
31
+ Essential Links
32
+ </q-item-label>
33
+
34
+ <EssentialLink
35
+ v-for="link in essentialLinks"
36
+ :key="link.title"
37
+ v-bind="link"
38
+ />
39
+ </q-list>
40
+ </q-drawer>
41
+
42
+ <q-page-container>
43
+ <router-view />
44
+ </q-page-container>
45
+ </q-layout>
46
+ </template>
47
+
48
+ <script>
49
+ import { defineComponent, ref } from 'vue'
50
+ import EssentialLink from 'components/EssentialLink.vue'
51
+
52
+ const linksList = [
53
+ {
54
+ title: 'Docs',
55
+ caption: 'quasar.dev',
56
+ icon: 'school',
57
+ link: 'https://quasar.dev'
58
+ },
59
+ {
60
+ title: 'Github',
61
+ caption: 'github.com/quasarframework',
62
+ icon: 'code',
63
+ link: 'https://github.com/quasarframework'
64
+ },
65
+ {
66
+ title: 'Discord Chat Channel',
67
+ caption: 'chat.quasar.dev',
68
+ icon: 'chat',
69
+ link: 'https://chat.quasar.dev'
70
+ },
71
+ {
72
+ title: 'Forum',
73
+ caption: 'forum.quasar.dev',
74
+ icon: 'record_voice_over',
75
+ link: 'https://forum.quasar.dev'
76
+ },
77
+ {
78
+ title: 'Twitter',
79
+ caption: '@quasarframework',
80
+ icon: 'rss_feed',
81
+ link: 'https://twitter.quasar.dev'
82
+ },
83
+ {
84
+ title: 'Facebook',
85
+ caption: '@QuasarFramework',
86
+ icon: 'public',
87
+ link: 'https://facebook.quasar.dev'
88
+ },
89
+ {
90
+ title: 'Quasar Awesome',
91
+ caption: 'Community Quasar projects',
92
+ icon: 'favorite',
93
+ link: 'https://awesome.quasar.dev'
94
+ }
95
+ ]
96
+
97
+ export default defineComponent({
98
+ name: 'MainLayout',
99
+
100
+ components: {
101
+ EssentialLink
102
+ },
103
+
104
+ setup () {
105
+ const leftDrawerOpen = ref(false)
106
+
107
+ return {
108
+ essentialLinks: linksList,
109
+ leftDrawerOpen,
110
+ toggleLeftDrawer () {
111
+ leftDrawerOpen.value = !leftDrawerOpen.value
112
+ }
113
+ }
114
+ }
115
+ })
116
+ </script>
@@ -0,0 +1,31 @@
1
+ <template>
2
+ <div class="fullscreen bg-blue text-white text-center q-pa-md flex flex-center">
3
+ <div>
4
+ <div style="font-size: 30vh">
5
+ 404
6
+ </div>
7
+
8
+ <div class="text-h2" style="opacity:.4">
9
+ Oops. Nothing here...
10
+ </div>
11
+
12
+ <q-btn
13
+ class="q-mt-xl"
14
+ color="white"
15
+ text-color="blue"
16
+ unelevated
17
+ to="/"
18
+ label="Go Home"
19
+ no-caps
20
+ />
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script>
26
+ import { defineComponent } from 'vue'
27
+
28
+ export default defineComponent({
29
+ name: 'ErrorNotFound'
30
+ })
31
+ </script>
@@ -0,0 +1,17 @@
1
+ <template>
2
+ <q-page class="flex flex-center">
3
+ <img
4
+ alt="Quasar logo"
5
+ src="~assets/quasar-logo-vertical.svg"
6
+ style="width: 200px; height: 200px"
7
+ >
8
+ </q-page>
9
+ </template>
10
+
11
+ <script>
12
+ import { defineComponent } from 'vue'
13
+
14
+ export default defineComponent({
15
+ name: 'IndexPage'
16
+ })
17
+ </script>
@@ -0,0 +1,30 @@
1
+ import { route } from 'quasar/wrappers'
2
+ import { createRouter, createMemoryHistory, createWebHistory, createWebHashHistory } from 'vue-router'
3
+ import routes from './routes'
4
+
5
+ /*
6
+ * If not building with SSR mode, you can
7
+ * directly export the Router instantiation;
8
+ *
9
+ * The function below can be async too; either use
10
+ * async/await or return a Promise which resolves
11
+ * with the Router instance.
12
+ */
13
+
14
+ export default route(function (/* { store, ssrContext } */) {
15
+ const createHistory = process.env.SERVER
16
+ ? createMemoryHistory
17
+ : (process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory)
18
+
19
+ const Router = createRouter({
20
+ scrollBehavior: () => ({ left: 0, top: 0 }),
21
+ routes,
22
+
23
+ // Leave this as is and make changes in quasar.conf.js instead!
24
+ // quasar.conf.js -> build -> vueRouterMode
25
+ // quasar.conf.js -> build -> publicPath
26
+ history: createHistory(process.env.VUE_ROUTER_BASE)
27
+ })
28
+
29
+ return Router
30
+ })
@@ -0,0 +1,19 @@
1
+
2
+ const routes = [
3
+ {
4
+ path: '/',
5
+ component: () => import('layouts/MainLayout.vue'),
6
+ children: [
7
+ { path: '', component: () => import('pages/IndexPage.vue') }
8
+ ]
9
+ },
10
+
11
+ // Always leave this as last one,
12
+ // but you can also remove it
13
+ {
14
+ path: '/:catchAll(.*)*',
15
+ component: () => import('pages/ErrorNotFound.vue')
16
+ }
17
+ ]
18
+
19
+ export default routes
@@ -0,0 +1,24 @@
1
+ import { boot } from 'quasar/wrappers'
2
+ import axios from 'axios'
3
+
4
+ // Be careful when using SSR for cross-request state pollution
5
+ // due to creating a Singleton instance here;
6
+ // If any client changes this (global) instance, it might be a
7
+ // good idea to move this instance creation inside of the
8
+ // "export default () => {}" function below (which runs individually
9
+ // for each client)
10
+ const api = axios.create({ baseURL: 'https://api.example.com' })
11
+
12
+ export default boot(({ app }) => {
13
+ // for use inside Vue files (Options API) through this.$axios and this.$api
14
+
15
+ app.config.globalProperties.$axios = axios
16
+ // ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form)
17
+ // so you won't necessarily have to import axios in each vue file
18
+
19
+ app.config.globalProperties.$api = api
20
+ // ^ ^ ^ this will allow you to use this.$api (for Vue Options API form)
21
+ // so you can easily perform requests against your app's API
22
+ })
23
+
24
+ export { api }
@@ -0,0 +1 @@
1
+ /* app global css */
@@ -0,0 +1,14 @@
1
+ import { boot } from 'quasar/wrappers'
2
+ import { createI18n } from 'vue-i18n'
3
+ import messages from 'src/i18n'
4
+
5
+ export default boot(({ app }) => {
6
+ const i18n = createI18n({
7
+ locale: 'en-US',
8
+ globalInjection: true,
9
+ messages
10
+ })
11
+
12
+ // Set i18n instance on app
13
+ app.use(i18n)
14
+ })
@@ -0,0 +1,7 @@
1
+ // This is just an example,
2
+ // so you can safely delete all default props below
3
+
4
+ export default {
5
+ failed: 'Action failed',
6
+ success: 'Action was successful'
7
+ }
@@ -0,0 +1,5 @@
1
+ import enUS from './en-US'
2
+
3
+ export default {
4
+ 'en-US': enUS
5
+ }
@@ -0,0 +1,62 @@
1
+
2
+ module.exports = async function ({ scope, utils }) {
3
+ await utils.prompts(scope, [
4
+ {
5
+ type: 'select',
6
+ name: 'css',
7
+ message: 'Pick your CSS preprocessor:',
8
+ initial: 0,
9
+ choices: [
10
+ { title: 'Sass with SCSS syntax', value: 'scss' },
11
+ { title: 'Sass with indented syntax', value: 'sass' },
12
+ { title: 'None (the others will still be available)', value: 'css' }
13
+ ]
14
+ },
15
+ {
16
+ type: 'multiselect',
17
+ name: 'preset',
18
+ message: 'Check the features needed for your project:',
19
+ choices: [
20
+ { title: 'ESLint', value: 'lint', description: 'recommended', selected: true },
21
+ { title: 'State Management (Pinia)', value: 'pinia', description: 'https://pinia.vuejs.org' },
22
+ { title: 'State Management (Vuex) [DEPRECATED by Vue Team]', value: 'vuex', description: 'See https://vuejs.org/guide/scaling-up/state-management.html#pinia' },
23
+ { title: 'Axios', value: 'axios' },
24
+ { title: 'Vue-i18n', value: 'i18n' }
25
+ ],
26
+ format: values => {
27
+ let result = values
28
+
29
+ if (values.includes('vuex') && values.includes('pinia')) {
30
+ console.log()
31
+ utils.logger.warn('Only one state management package can be used. Picking the recommended Pinia and dropping Vuex.')
32
+ console.log()
33
+
34
+ result = values.filter(entry => entry !== 'vuex')
35
+ }
36
+
37
+ return utils.convertArrayToObject(result)
38
+ }
39
+ },
40
+ {
41
+ type: (_, { preset }) => preset.lint ? 'select' : null,
42
+ name: 'lintConfig',
43
+ message: 'Pick an ESLint preset:',
44
+ choices: [
45
+ { title: 'Prettier', value: 'prettier', description: 'https://github.com/prettier/prettier' },
46
+ { title: 'Standard', value: 'standard', description: 'https://github.com/standard/standard' },
47
+ { title: 'Airbnb', value: 'airbnb', description: 'https://github.com/airbnb/javascript' }
48
+ ]
49
+ }
50
+ ])
51
+
52
+ utils.createTargetDir(scope)
53
+ utils.renderTemplate(utils.join(__dirname, 'BASE'), scope)
54
+ utils.renderTemplate(utils.join(__dirname, scope.css), scope)
55
+
56
+ if (scope.preset.axios) utils.renderTemplate(utils.join(__dirname, 'axios'), scope)
57
+ if (scope.preset.i18n) utils.renderTemplate(utils.join(__dirname, 'i18n'), scope)
58
+ if (scope.preset.lint) utils.renderTemplate(utils.join(__dirname, 'lint'), scope)
59
+
60
+ if (scope.preset.pinia) utils.renderTemplate(utils.join(__dirname, 'pinia'), scope)
61
+ else if (scope.preset.vuex) utils.renderTemplate(utils.join(__dirname, 'vuex'), scope)
62
+ }
@@ -0,0 +1,7 @@
1
+ /dist
2
+ /src-capacitor
3
+ /src-cordova
4
+ /.quasar
5
+ /node_modules
6
+ .eslintrc.js
7
+ /quasar.config.*.temporary.compiled*
@@ -0,0 +1,100 @@
1
+ module.exports = {
2
+ // https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
3
+ // This option interrupts the configuration hierarchy at this file
4
+ // Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
5
+ root: true,
6
+
7
+ parserOptions: {
8
+ ecmaVersion: 2021, // Allows for the parsing of modern ECMAScript features
9
+ },
10
+
11
+ env: {
12
+ node: true,
13
+ browser: true,
14
+ 'vue/setup-compiler-macros': true
15
+ },
16
+
17
+ // Rules order is important, please avoid shuffling them
18
+ extends: [
19
+ // Base ESLint recommended rules
20
+ // 'eslint:recommended',
21
+
22
+ // Uncomment any of the lines below to choose desired strictness,
23
+ // but leave only one uncommented!
24
+ // See https://eslint.vuejs.org/rules/#available-rules
25
+ 'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
26
+ // 'plugin:vue/vue3-strongly-recommended', // Priority B: Strongly Recommended (Improving Readability)
27
+ // 'plugin:vue/vue3-recommended', // Priority C: Recommended (Minimizing Arbitrary Choices and Cognitive Overhead)
28
+
29
+ <% if (lintConfig === 'standard') { %>'standard'
30
+ <% } else if (lintConfig === 'airbnb') { %>'airbnb-base'
31
+ <% } else if (lintConfig === 'prettier') { %>// https://github.com/prettier/eslint-config-prettier#installation
32
+ // usage with Prettier, provided by 'eslint-config-prettier'.
33
+ 'prettier'<% } %>
34
+ ],
35
+
36
+ plugins: [
37
+ // https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
38
+ // required to lint *.vue files
39
+ 'vue',
40
+ <% if (lintConfig === 'prettier') { %>
41
+ // https://github.com/typescript-eslint/typescript-eslint/issues/389#issuecomment-509292674
42
+ // Prettier has not been included as plugin to avoid performance impact
43
+ // add it as an extension for your IDE
44
+ <% } %>
45
+ ],
46
+
47
+ globals: {
48
+ ga: 'readonly', // Google Analytics
49
+ cordova: 'readonly',
50
+ __statics: 'readonly',
51
+ __QUASAR_SSR__: 'readonly',
52
+ __QUASAR_SSR_SERVER__: 'readonly',
53
+ __QUASAR_SSR_CLIENT__: 'readonly',
54
+ __QUASAR_SSR_PWA__: 'readonly',
55
+ process: 'readonly',
56
+ Capacitor: 'readonly',
57
+ chrome: 'readonly'
58
+ },
59
+
60
+ // add your custom rules here
61
+ rules: {
62
+ <% if (lintConfig === 'standard') { %>
63
+ // allow async-await
64
+ 'generator-star-spacing': 'off',
65
+ // allow paren-less arrow functions
66
+ 'arrow-parens': 'off',
67
+ 'one-var': 'off',
68
+ 'no-void': 'off',
69
+ 'multiline-ternary': 'off',
70
+
71
+ 'import/first': 'off',
72
+ 'import/named': 'error',
73
+ 'import/namespace': 'error',
74
+ 'import/default': 'error',
75
+ 'import/export': 'error',
76
+ 'import/extensions': 'off',
77
+ 'import/no-unresolved': 'off',
78
+ 'import/no-extraneous-dependencies': 'off',
79
+ <% } else if (lintConfig === 'airbnb') { %>
80
+ 'no-param-reassign': 'off',
81
+ 'no-void': 'off',
82
+ 'no-nested-ternary': 'off',
83
+ 'max-classes-per-file': 'off',
84
+
85
+ 'import/first': 'off',
86
+ 'import/named': 'error',
87
+ 'import/namespace': 'error',
88
+ 'import/default': 'error',
89
+ 'import/export': 'error',
90
+ 'import/extensions': 'off',
91
+ 'import/no-unresolved': 'off',
92
+ 'import/no-extraneous-dependencies': 'off',
93
+ 'import/prefer-default-export': 'off',
94
+ <% } %>
95
+ 'prefer-promise-reject-errors': 'off',
96
+
97
+ // allow debugger during development only
98
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
99
+ }
100
+ }
@@ -0,0 +1,15 @@
1
+ import { defineStore } from 'pinia';
2
+
3
+ export const useCounterStore = defineStore('counter', {
4
+ state: () => ({
5
+ counter: 0,
6
+ }),
7
+ getters: {
8
+ doubleCount: (state) => state.counter * 2,
9
+ },
10
+ actions: {
11
+ increment() {
12
+ this.counter++;
13
+ },
14
+ },
15
+ });
@@ -0,0 +1,20 @@
1
+ import { store } from 'quasar/wrappers'
2
+ import { createPinia } from 'pinia'
3
+
4
+ /*
5
+ * If not building with SSR mode, you can
6
+ * directly export the Store instantiation;
7
+ *
8
+ * The function below can be async too; either use
9
+ * async/await or return a Promise which resolves
10
+ * with the Store instance.
11
+ */
12
+
13
+ export default store((/* { ssrContext } */) => {
14
+ const pinia = createPinia()
15
+
16
+ // You can add Pinia plugins here
17
+ // pinia.use(SomePiniaPlugin)
18
+
19
+ return pinia
20
+ })
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ // THIS FEATURE-FLAG FILE IS AUTOGENERATED,
3
+ // REMOVAL OR CHANGES WILL CAUSE RELATED TYPES TO STOP WORKING
4
+ import "quasar/dist/types/feature-flag";
5
+
6
+ declare module "quasar/dist/types/feature-flag" {
7
+ interface QuasarFeatureFlags {
8
+ store: true;
9
+ }
10
+ }
@@ -0,0 +1 @@
1
+ // app global css in Sass form
@@ -0,0 +1,25 @@
1
+ // Quasar Sass (& SCSS) Variables
2
+ // --------------------------------------------------
3
+ // To customize the look and feel of this app, you can override
4
+ // the Sass/SCSS variables found in Quasar's source Sass/SCSS files.
5
+
6
+ // Check documentation for full list of Quasar variables
7
+
8
+ // Your own variables (that are declared here) and Quasar's own
9
+ // ones will be available out of the box in your .vue/.scss/.sass files
10
+
11
+ // It's highly recommended to change the default colors
12
+ // to match your app's branding.
13
+ // Tip: Use the "Theme Builder" on Quasar's documentation website.
14
+
15
+ $primary : #1976D2
16
+ $secondary : #26A69A
17
+ $accent : #9C27B0
18
+
19
+ $dark : #1D1D1D
20
+ $dark-page : #121212
21
+
22
+ $positive : #21BA45
23
+ $negative : #C10015
24
+ $info : #31CCEC
25
+ $warning : #F2C037
@@ -0,0 +1 @@
1
+ // app global css in SCSS form
@@ -0,0 +1,25 @@
1
+ // Quasar SCSS (& Sass) Variables
2
+ // --------------------------------------------------
3
+ // To customize the look and feel of this app, you can override
4
+ // the Sass/SCSS variables found in Quasar's source Sass/SCSS files.
5
+
6
+ // Check documentation for full list of Quasar variables
7
+
8
+ // Your own variables (that are declared here) and Quasar's own
9
+ // ones will be available out of the box in your .vue/.scss/.sass files
10
+
11
+ // It's highly recommended to change the default colors
12
+ // to match your app's branding.
13
+ // Tip: Use the "Theme Builder" on Quasar's documentation website.
14
+
15
+ $primary : #1976D2;
16
+ $secondary : #26A69A;
17
+ $accent : #9C27B0;
18
+
19
+ $dark : #1D1D1D;
20
+ $dark-page : #121212;
21
+
22
+ $positive : #21BA45;
23
+ $negative : #C10015;
24
+ $info : #31CCEC;
25
+ $warning : #F2C037;
@@ -0,0 +1,27 @@
1
+ import { store } from 'quasar/wrappers'
2
+ import { createStore } from 'vuex'
3
+
4
+ // import example from './module-example'
5
+
6
+ /*
7
+ * If not building with SSR mode, you can
8
+ * directly export the Store instantiation;
9
+ *
10
+ * The function below can be async too; either use
11
+ * async/await or return a Promise which resolves
12
+ * with the Store instance.
13
+ */
14
+
15
+ export default store(function (/* { ssrContext } */) {
16
+ const Store = createStore({
17
+ modules: {
18
+ // example
19
+ },
20
+
21
+ // enable strict mode (adds overhead!)
22
+ // for dev mode and --debug builds only
23
+ strict: process.env.DEBUGGING
24
+ })
25
+
26
+ return Store
27
+ })
@@ -0,0 +1,2 @@
1
+ export function someAction (/* context */) {
2
+ }
@@ -0,0 +1,2 @@
1
+ export function someGetter (/* state */) {
2
+ }
@@ -0,0 +1,12 @@
1
+ import state from './state'
2
+ import * as getters from './getters'
3
+ import * as mutations from './mutations'
4
+ import * as actions from './actions'
5
+
6
+ export default {
7
+ namespaced: true,
8
+ getters,
9
+ mutations,
10
+ actions,
11
+ state
12
+ }
@@ -0,0 +1,2 @@
1
+ export function someMutation (/* state */) {
2
+ }
@@ -0,0 +1,5 @@
1
+ export default function () {
2
+ return {
3
+ //
4
+ }
5
+ }