create-vuetify 1.1.1 → 2.1.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 (148) hide show
  1. package/README.md +75 -38
  2. package/dist/output.cjs +10 -49
  3. package/package.json +4 -2
  4. package/template/javascript/base/package.json +10 -18
  5. package/template/javascript/base/src/App.vue +5 -1
  6. package/template/javascript/base/src/pages/README.md +5 -0
  7. package/template/javascript/{essentials/src/App.vue → base/src/pages/index.vue} +1 -1
  8. package/template/javascript/base/src/plugins/index.js +1 -1
  9. package/template/javascript/base/src/router/index.js +9 -19
  10. package/template/javascript/base/src/styles/README.md +3 -0
  11. package/template/javascript/{essentials/vite.config.js → base/vite.config.mjs} +8 -4
  12. package/template/javascript/default/README.md +60 -34
  13. package/template/javascript/default/_gitignore +0 -1
  14. package/template/javascript/default/jsconfig.json +1 -0
  15. package/template/javascript/default/package.json +9 -6
  16. package/template/javascript/default/src/App.vue +1 -1
  17. package/template/javascript/default/src/components/README.md +35 -0
  18. package/template/javascript/default/src/plugins/README.md +3 -0
  19. package/template/javascript/default/src/plugins/vuetify.js +1 -10
  20. package/template/javascript/default/{vite.config.js → vite.config.mjs} +6 -6
  21. package/template/javascript/essentials/package.json +3 -24
  22. package/template/javascript/essentials/src/layouts/README.md +5 -0
  23. package/template/javascript/essentials/src/layouts/default.vue +12 -0
  24. package/template/javascript/essentials/src/plugins/index.js +2 -2
  25. package/template/javascript/essentials/src/router/index.js +7 -19
  26. package/template/javascript/essentials/src/store/README.md +5 -0
  27. package/template/javascript/essentials/vite.config.mjs +67 -0
  28. package/template/typescript/base/_eslintrc.js +6 -0
  29. package/template/typescript/base/package.json +11 -23
  30. package/template/typescript/base/src/App.vue +5 -1
  31. package/template/typescript/base/src/pages/README.md +5 -0
  32. package/template/typescript/{essentials/src/App.vue → base/src/pages/index.vue} +1 -1
  33. package/template/typescript/base/src/router/index.ts +7 -19
  34. package/template/typescript/base/src/styles/README.md +3 -0
  35. package/template/typescript/base/{vite.config.ts → vite.config.mts} +21 -11
  36. package/template/typescript/default/README.md +62 -34
  37. package/template/typescript/default/_gitignore +0 -1
  38. package/template/typescript/default/index.html +1 -1
  39. package/template/typescript/default/package.json +13 -10
  40. package/template/typescript/default/src/App.vue +1 -1
  41. package/template/typescript/default/src/components/README.md +35 -0
  42. package/template/typescript/default/src/plugins/README.md +3 -0
  43. package/template/typescript/default/src/plugins/vuetify.ts +1 -10
  44. package/template/typescript/default/tsconfig.node.json +1 -1
  45. package/template/{javascript/base/vite.config.js → typescript/default/vite.config.mts} +8 -11
  46. package/template/typescript/essentials/package.json +3 -29
  47. package/template/typescript/essentials/src/layouts/README.md +5 -0
  48. package/template/typescript/essentials/src/layouts/default.vue +12 -0
  49. package/template/typescript/essentials/src/router/index.ts +9 -19
  50. package/template/typescript/essentials/src/store/README.md +5 -0
  51. package/template/typescript/essentials/vite.config.mts +68 -0
  52. package/template/javascript/base/README.md +0 -69
  53. package/template/javascript/base/_browserslistrc +0 -4
  54. package/template/javascript/base/_editorconfig +0 -5
  55. package/template/javascript/base/_gitignore +0 -22
  56. package/template/javascript/base/index.html +0 -16
  57. package/template/javascript/base/jsconfig.json +0 -19
  58. package/template/javascript/base/public/favicon.ico +0 -0
  59. package/template/javascript/base/src/assets/logo.png +0 -0
  60. package/template/javascript/base/src/assets/logo.svg +0 -6
  61. package/template/javascript/base/src/components/HelloWorld.vue +0 -75
  62. package/template/javascript/base/src/layouts/default/AppBar.vue +0 -13
  63. package/template/javascript/base/src/layouts/default/Default.vue +0 -12
  64. package/template/javascript/base/src/layouts/default/View.vue +0 -9
  65. package/template/javascript/base/src/main.js +0 -20
  66. package/template/javascript/base/src/plugins/vuetify.js +0 -26
  67. package/template/javascript/base/src/views/Home.vue +0 -7
  68. package/template/javascript/custom/eslint/_eslintrc.js +0 -10
  69. package/template/javascript/custom/eslint/package.json +0 -9
  70. package/template/javascript/custom/router/package.json +0 -5
  71. package/template/javascript/custom/router/src/App.vue +0 -7
  72. package/template/javascript/custom/router/src/layouts/default/Default.vue +0 -9
  73. package/template/javascript/custom/router/src/layouts/default/View.vue +0 -9
  74. package/template/javascript/custom/router/src/plugins/index.js +0 -15
  75. package/template/javascript/custom/router/src/router/index.js +0 -26
  76. package/template/javascript/custom/router/src/views/Home.vue +0 -7
  77. package/template/javascript/custom/router-pinia/src/plugins/index.js +0 -17
  78. package/template/javascript/custom/store/package.json +0 -5
  79. package/template/javascript/custom/store/src/plugins/index.js +0 -15
  80. package/template/javascript/custom/store/src/store/app.js +0 -8
  81. package/template/javascript/custom/store/src/store/index.js +0 -4
  82. package/template/javascript/essentials/README.md +0 -69
  83. package/template/javascript/essentials/_browserslistrc +0 -4
  84. package/template/javascript/essentials/_editorconfig +0 -5
  85. package/template/javascript/essentials/_eslintrc.js +0 -10
  86. package/template/javascript/essentials/_gitignore +0 -22
  87. package/template/javascript/essentials/index.html +0 -16
  88. package/template/javascript/essentials/jsconfig.json +0 -19
  89. package/template/javascript/essentials/public/favicon.ico +0 -0
  90. package/template/javascript/essentials/src/assets/logo.png +0 -0
  91. package/template/javascript/essentials/src/assets/logo.svg +0 -6
  92. package/template/javascript/essentials/src/components/HelloWorld.vue +0 -75
  93. package/template/javascript/essentials/src/layouts/default/Default.vue +0 -12
  94. package/template/javascript/essentials/src/main.js +0 -20
  95. package/template/javascript/essentials/src/plugins/vuetify.js +0 -26
  96. package/template/javascript/essentials/src/styles/settings.scss +0 -10
  97. package/template/javascript/essentials/src/views/Home.vue +0 -7
  98. package/template/typescript/base/README.md +0 -69
  99. package/template/typescript/base/_browserslistrc +0 -4
  100. package/template/typescript/base/_editorconfig +0 -5
  101. package/template/typescript/base/_gitignore +0 -22
  102. package/template/typescript/base/index.html +0 -16
  103. package/template/typescript/base/public/favicon.ico +0 -0
  104. package/template/typescript/base/src/assets/logo.png +0 -0
  105. package/template/typescript/base/src/assets/logo.svg +0 -6
  106. package/template/typescript/base/src/components/HelloWorld.vue +0 -75
  107. package/template/typescript/base/src/layouts/default/AppBar.vue +0 -13
  108. package/template/typescript/base/src/layouts/default/Default.vue +0 -12
  109. package/template/typescript/base/src/layouts/default/View.vue +0 -9
  110. package/template/typescript/base/src/main.ts +0 -20
  111. package/template/typescript/base/src/plugins/vuetify.ts +0 -26
  112. package/template/typescript/base/src/views/Home.vue +0 -7
  113. package/template/typescript/base/src/vite-env.d.ts +0 -7
  114. package/template/typescript/base/tsconfig.json +0 -25
  115. package/template/typescript/base/tsconfig.node.json +0 -9
  116. package/template/typescript/custom/eslint/_eslintrc.js +0 -14
  117. package/template/typescript/custom/eslint/package.json +0 -10
  118. package/template/typescript/custom/router/package.json +0 -5
  119. package/template/typescript/custom/router/src/layouts/default/Default.vue +0 -9
  120. package/template/typescript/custom/router/src/layouts/default/View.vue +0 -9
  121. package/template/typescript/custom/router/src/plugins/index.ts +0 -18
  122. package/template/typescript/custom/router/src/router/index.ts +0 -26
  123. package/template/typescript/custom/router/src/views/Home.vue +0 -7
  124. package/template/typescript/custom/router-pinia/src/plugins/index.ts +0 -20
  125. package/template/typescript/custom/store/package.json +0 -5
  126. package/template/typescript/custom/store/src/plugins/index.ts +0 -18
  127. package/template/typescript/custom/store/src/store/app.ts +0 -8
  128. package/template/typescript/custom/store/src/store/index.ts +0 -4
  129. package/template/typescript/default/vite.config.ts +0 -41
  130. package/template/typescript/essentials/README.md +0 -69
  131. package/template/typescript/essentials/_browserslistrc +0 -4
  132. package/template/typescript/essentials/_editorconfig +0 -5
  133. package/template/typescript/essentials/_eslintrc.js +0 -14
  134. package/template/typescript/essentials/_gitignore +0 -22
  135. package/template/typescript/essentials/index.html +0 -16
  136. package/template/typescript/essentials/public/favicon.ico +0 -0
  137. package/template/typescript/essentials/src/assets/logo.png +0 -0
  138. package/template/typescript/essentials/src/assets/logo.svg +0 -6
  139. package/template/typescript/essentials/src/components/HelloWorld.vue +0 -75
  140. package/template/typescript/essentials/src/layouts/default/Default.vue +0 -12
  141. package/template/typescript/essentials/src/main.ts +0 -20
  142. package/template/typescript/essentials/src/plugins/vuetify.ts +0 -26
  143. package/template/typescript/essentials/src/styles/settings.scss +0 -10
  144. package/template/typescript/essentials/src/views/Home.vue +0 -7
  145. package/template/typescript/essentials/src/vite-env.d.ts +0 -7
  146. package/template/typescript/essentials/tsconfig.json +0 -31
  147. package/template/typescript/essentials/tsconfig.node.json +0 -9
  148. package/template/typescript/essentials/vite.config.ts +0 -44
@@ -1,33 +1,7 @@
1
1
  {
2
- "version": "0.0.0",
3
- "private": true,
4
- "scripts": {
5
- "dev": "vite",
6
- "build": "vue-tsc --noEmit && vite build",
7
- "preview": "vite preview",
8
- "lint": "eslint . --fix --ignore-path .gitignore"
9
- },
10
- "dependencies": {
11
- "@mdi/font": "7.0.96",
12
- "core-js": "^3.29.0",
13
- "pinia": "^2.0.0",
14
- "roboto-fontface": "*",
15
- "vue": "^3.2.0",
16
- "vue-router": "^4.0.0",
17
- "vuetify": "^3.0.0"
18
- },
19
2
  "devDependencies": {
20
- "@babel/types": "^7.21.4",
21
- "@types/node": "^18.15.0",
22
- "@vitejs/plugin-vue": "^4.0.0",
23
- "@vue/eslint-config-typescript": "^11.0.0",
24
- "eslint": "^8.37.0",
25
- "eslint-plugin-vue": "^9.3.0",
26
- "sass": "^1.60.0",
27
- "typescript": "^5.0.0",
28
- "vite": "^4.2.0",
29
- "vite-plugin-vuetify": "^1.0.0",
30
- "vue-tsc": "^1.2.0",
31
- "unplugin-fonts": "^1.0.3"
3
+ "pinia" : "^2.1.0",
4
+ "unplugin-auto-import": "^0.17.3",
5
+ "vite-plugin-vue-layouts": "^0.10.0"
32
6
  }
33
7
  }
@@ -0,0 +1,5 @@
1
+ # Layouts
2
+
3
+ Layouts are reusable components that wrap around pages. They are used to provide a consistent look and feel across multiple pages.
4
+
5
+ Full documentation for this feature can be found in the Official [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) repository.
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <v-app>
3
+ <DefaultBar />
4
+
5
+ <DefaultView />
6
+ </v-app>
7
+ </template>
8
+
9
+ <script lang="ts" setup>
10
+ import DefaultBar from './default/AppBar.vue'
11
+ import DefaultView from './default/View.vue'
12
+ </script>
@@ -1,26 +1,16 @@
1
- // Composables
2
- import { createRouter, createWebHistory } from 'vue-router'
1
+ /**
2
+ * router/index.ts
3
+ *
4
+ * Automatic routes for `./src/pages/*.vue`
5
+ */
3
6
 
4
- const routes = [
5
- {
6
- path: '/',
7
- component: () => import('@/layouts/default/Default.vue'),
8
- children: [
9
- {
10
- path: '',
11
- name: 'Home',
12
- // route level code-splitting
13
- // this generates a separate chunk (Home-[hash].js) for this route
14
- // which is lazy-loaded when the route is visited.
15
- component: () => import('@/views/Home.vue'),
16
- },
17
- ],
18
- },
19
- ]
7
+ // Composables
8
+ import { createRouter, createWebHistory } from 'vue-router/auto'
9
+ import { setupLayouts } from 'virtual:generated-layouts'
20
10
 
21
11
  const router = createRouter({
22
12
  history: createWebHistory(process.env.BASE_URL),
23
- routes,
13
+ extendRoutes: setupLayouts,
24
14
  })
25
15
 
26
16
  export default router
@@ -0,0 +1,5 @@
1
+ # Store
2
+
3
+ Pinia stores are used to store reactive state and expose actions to mutate it.
4
+
5
+ Full documentation for this feature can be found in the Official [Pinia](https://pinia.esm.dev/) repository.
@@ -0,0 +1,68 @@
1
+ // Plugins
2
+ import AutoImport from 'unplugin-auto-import/vite'
3
+ import Components from 'unplugin-vue-components/vite'
4
+ import Fonts from 'unplugin-fonts/vite'
5
+ import Layouts from 'vite-plugin-vue-layouts'
6
+ import Vue from '@vitejs/plugin-vue'
7
+ import VueRouter from 'unplugin-vue-router/vite'
8
+ import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
9
+
10
+ // Utilities
11
+ import { defineConfig } from 'vite'
12
+ import { fileURLToPath, URL } from 'node:url'
13
+
14
+ // https://vitejs.dev/config/
15
+ export default defineConfig({
16
+ plugins: [
17
+ VueRouter(),
18
+ Layouts(),
19
+ Vue({
20
+ template: { transformAssetUrls },
21
+ }),
22
+ // https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
23
+ Vuetify({
24
+ autoImport: true,
25
+ styles: {
26
+ configFile: 'src/styles/settings.scss',
27
+ },
28
+ }),
29
+ Components(),
30
+ Fonts({
31
+ google: {
32
+ families: [ {
33
+ name: 'Roboto',
34
+ styles: 'wght@100;300;400;500;700;900',
35
+ }],
36
+ },
37
+ }),
38
+ AutoImport({
39
+ imports: [
40
+ 'vue',
41
+ 'vue-router',
42
+ ],
43
+ dts: true,
44
+ eslintrc: {
45
+ enabled: true,
46
+ },
47
+ vueTemplate: true,
48
+ }),
49
+ ],
50
+ define: { 'process.env': {} },
51
+ resolve: {
52
+ alias: {
53
+ '@': fileURLToPath(new URL('./src', import.meta.url)),
54
+ },
55
+ extensions: [
56
+ '.js',
57
+ '.json',
58
+ '.jsx',
59
+ '.mjs',
60
+ '.ts',
61
+ '.tsx',
62
+ '.vue',
63
+ ],
64
+ },
65
+ server: {
66
+ port: 3000,
67
+ },
68
+ })
@@ -1,69 +0,0 @@
1
- # base
2
-
3
- ## Project setup
4
-
5
- ```
6
- # yarn
7
- yarn
8
-
9
- # npm
10
- npm install
11
-
12
- # pnpm
13
- pnpm install
14
-
15
- # pnpm
16
- bun install
17
- ```
18
-
19
- ### Compiles and hot-reloads for development
20
-
21
- ```
22
- # yarn
23
- yarn dev
24
-
25
- # npm
26
- npm run dev
27
-
28
- # pnpm
29
- pnpm dev
30
-
31
- # bun
32
- bun run dev
33
- ```
34
-
35
- ### Compiles and minifies for production
36
-
37
- ```
38
- # yarn
39
- yarn build
40
-
41
- # npm
42
- npm run build
43
-
44
- # pnpm
45
- pnpm build
46
-
47
- # bun
48
- bun run build
49
- ```
50
-
51
- ### Lints and fixes files
52
-
53
- ```
54
- # yarn
55
- yarn lint
56
-
57
- # npm
58
- npm run lint
59
-
60
- # pnpm
61
- pnpm lint
62
-
63
- # bun
64
- bun run lint
65
- ```
66
-
67
- ### Customize configuration
68
-
69
- See [Configuration Reference](https://vitejs.dev/config/).
@@ -1,4 +0,0 @@
1
- > 1%
2
- last 2 versions
3
- not dead
4
- not ie 11
@@ -1,5 +0,0 @@
1
- [*.{js,jsx,ts,tsx,vue}]
2
- indent_style = space
3
- indent_size = 2
4
- trim_trailing_whitespace = true
5
- insert_final_newline = true
@@ -1,22 +0,0 @@
1
- .DS_Store
2
- node_modules
3
- /dist
4
-
5
- # local env files
6
- .env.local
7
- .env.*.local
8
-
9
- # Log files
10
- npm-debug.log*
11
- yarn-debug.log*
12
- yarn-error.log*
13
- pnpm-debug.log*
14
-
15
- # Editor directories and files
16
- .idea
17
- .vscode
18
- *.suo
19
- *.ntvs*
20
- *.njsproj
21
- *.sln
22
- *.sw?
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
- <meta charset="UTF-8" />
6
- <link rel="icon" href="/favicon.ico" />
7
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
- <title>Welcome to Vuetify 3</title>
9
- </head>
10
-
11
- <body>
12
- <div id="app"></div>
13
- <script type="module" src="/src/main.js"></script>
14
- </body>
15
-
16
- </html>
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "moduleResolution": "node",
7
- "paths": {
8
- "@/*": [
9
- "src/*"
10
- ]
11
- },
12
- "lib": [
13
- "esnext",
14
- "dom",
15
- "dom.iterable",
16
- "scripthost"
17
- ]
18
- }
19
- }
@@ -1,6 +0,0 @@
1
- <svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M261.126 140.65L164.624 307.732L256.001 466L377.028 256.5L498.001 47H315.192L261.126 140.65Z" fill="#1697F6"/>
3
- <path d="M135.027 256.5L141.365 267.518L231.64 111.178L268.731 47H256H14L135.027 256.5Z" fill="#AEDDFF"/>
4
- <path d="M315.191 47C360.935 197.446 256 466 256 466L164.624 307.732L315.191 47Z" fill="#1867C0"/>
5
- <path d="M268.731 47C76.0026 47 141.366 267.518 141.366 267.518L268.731 47Z" fill="#7BC6FF"/>
6
- </svg>
@@ -1,75 +0,0 @@
1
- <template>
2
- <v-container class="fill-height">
3
- <v-responsive class="align-center text-center fill-height">
4
- <v-img height="300" src="@/assets/logo.svg" />
5
-
6
- <div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
7
-
8
- <h1 class="text-h2 font-weight-bold">Vuetify</h1>
9
-
10
- <div class="py-14" />
11
-
12
- <v-row class="d-flex align-center justify-center">
13
- <v-col cols="auto">
14
- <v-btn
15
- href="https://vuetifyjs.com/components/all/"
16
- min-width="164"
17
- rel="noopener noreferrer"
18
- target="_blank"
19
- variant="text"
20
- >
21
- <v-icon
22
- icon="mdi-view-dashboard"
23
- size="large"
24
- start
25
- />
26
-
27
- Components
28
- </v-btn>
29
- </v-col>
30
-
31
- <v-col cols="auto">
32
- <v-btn
33
- color="primary"
34
- href="https://vuetifyjs.com/introduction/why-vuetify/#feature-guides"
35
- min-width="228"
36
- rel="noopener noreferrer"
37
- size="x-large"
38
- target="_blank"
39
- variant="flat"
40
- >
41
- <v-icon
42
- icon="mdi-speedometer"
43
- size="large"
44
- start
45
- />
46
-
47
- Get Started
48
- </v-btn>
49
- </v-col>
50
-
51
- <v-col cols="auto">
52
- <v-btn
53
- href="https://community.vuetifyjs.com/"
54
- min-width="164"
55
- rel="noopener noreferrer"
56
- target="_blank"
57
- variant="text"
58
- >
59
- <v-icon
60
- icon="mdi-account-group"
61
- size="large"
62
- start
63
- />
64
-
65
- Community
66
- </v-btn>
67
- </v-col>
68
- </v-row>
69
- </v-responsive>
70
- </v-container>
71
- </template>
72
-
73
- <script setup>
74
- //
75
- </script>
@@ -1,13 +0,0 @@
1
- <template>
2
- <v-app-bar flat>
3
- <v-app-bar-title>
4
- <v-icon icon="mdi-circle-slice-4" />
5
-
6
- Base Preset
7
- </v-app-bar-title>
8
- </v-app-bar>
9
- </template>
10
-
11
- <script setup>
12
- //
13
- </script>
@@ -1,12 +0,0 @@
1
- <template>
2
- <v-app>
3
- <default-bar />
4
-
5
- <default-view />
6
- </v-app>
7
- </template>
8
-
9
- <script setup>
10
- import DefaultBar from './AppBar.vue'
11
- import DefaultView from './View.vue'
12
- </script>
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-main>
3
- <router-view />
4
- </v-main>
5
- </template>
6
-
7
- <script setup>
8
- //
9
- </script>
@@ -1,20 +0,0 @@
1
- /**
2
- * main.js
3
- *
4
- * Bootstraps Vuetify and other plugins then mounts the App`
5
- */
6
-
7
- // Plugins
8
- import { registerPlugins } from '@/plugins'
9
-
10
- // Components
11
- import App from './App.vue'
12
-
13
- // Composables
14
- import { createApp } from 'vue'
15
-
16
- const app = createApp(App)
17
-
18
- registerPlugins(app)
19
-
20
- app.mount('#app')
@@ -1,26 +0,0 @@
1
- /**
2
- * plugins/vuetify.js
3
- *
4
- * Framework documentation: https://vuetifyjs.com`
5
- */
6
-
7
- // Styles
8
- import '@mdi/font/css/materialdesignicons.css'
9
- import 'vuetify/styles'
10
-
11
- // Composables
12
- import { createVuetify } from 'vuetify'
13
-
14
- // https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
15
- export default createVuetify({
16
- theme: {
17
- themes: {
18
- light: {
19
- colors: {
20
- primary: '#1867C0',
21
- secondary: '#5CBBF6',
22
- },
23
- },
24
- },
25
- },
26
- })
@@ -1,7 +0,0 @@
1
- <template>
2
- <HelloWorld />
3
- </template>
4
-
5
- <script setup>
6
- import HelloWorld from '@/components/HelloWorld.vue'
7
- </script>
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- extends: [
7
- 'plugin:vue/vue3-essential',
8
- 'eslint:recommended',
9
- ],
10
- }
@@ -1,9 +0,0 @@
1
- {
2
- "scripts": {
3
- "lint": "eslint . --fix --ignore-path .gitignore"
4
- },
5
- "devDependencies": {
6
- "eslint": "^8.22.0",
7
- "eslint-plugin-vue": "^9.3.0"
8
- }
9
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": {
3
- "vue-router": "^4.0.0"
4
- }
5
- }
@@ -1,7 +0,0 @@
1
- <template>
2
- <router-view />
3
- </template>
4
-
5
- <script setup>
6
- //
7
- </script>
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-app>
3
- <default-view />
4
- </v-app>
5
- </template>
6
-
7
- <script setup>
8
- import DefaultView from './View.vue'
9
- </script>
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-main>
3
- <router-view />
4
- </v-main>
5
- </template>
6
-
7
- <script setup>
8
- //
9
- </script>
@@ -1,15 +0,0 @@
1
- /**
2
- * plugins/index.js
3
- *
4
- * Automatically included in `./src/main.js`
5
- */
6
-
7
- // Plugins
8
- import vuetify from './vuetify'
9
- import router from '../router'
10
-
11
- export function registerPlugins (app) {
12
- app
13
- .use(vuetify)
14
- .use(router)
15
- }
@@ -1,26 +0,0 @@
1
- // Composables
2
- import { createRouter, createWebHistory } from 'vue-router'
3
-
4
- const routes = [
5
- {
6
- path: '/',
7
- component: () => import('@/layouts/default/Default.vue'),
8
- children: [
9
- {
10
- path: '',
11
- name: 'Home',
12
- // route level code-splitting
13
- // this generates a separate chunk (Home-[hash].js) for this route
14
- // which is lazy-loaded when the route is visited.
15
- component: () => import('@/views/Home.vue'),
16
- },
17
- ],
18
- },
19
- ]
20
-
21
- const router = createRouter({
22
- history: createWebHistory(process.env.BASE_URL),
23
- routes,
24
- })
25
-
26
- export default router
@@ -1,7 +0,0 @@
1
- <template>
2
- <HelloWorld />
3
- </template>
4
-
5
- <script setup>
6
- import HelloWorld from '@/components/HelloWorld.vue'
7
- </script>
@@ -1,17 +0,0 @@
1
- /**
2
- * plugins/index.js
3
- *
4
- * Automatically included in `./src/main.js`
5
- */
6
-
7
- // Plugins
8
- import vuetify from './vuetify'
9
- import pinia from '../store'
10
- import router from '../router'
11
-
12
- export function registerPlugins (app) {
13
- app
14
- .use(vuetify)
15
- .use(pinia)
16
- .use(router)
17
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": {
3
- "pinia": "^2.0.23"
4
- }
5
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * plugins/index.js
3
- *
4
- * Automatically included in `./src/main.js`
5
- */
6
-
7
- // Plugins
8
- import vuetify from './vuetify'
9
- import pinia from '../store'
10
-
11
- export function registerPlugins (app) {
12
- app
13
- .use(vuetify)
14
- .use(pinia)
15
- }
@@ -1,8 +0,0 @@
1
- // Utilities
2
- import { defineStore } from 'pinia'
3
-
4
- export const useAppStore = defineStore('app', {
5
- state: () => ({
6
- //
7
- }),
8
- })
@@ -1,4 +0,0 @@
1
- // Utilities
2
- import { createPinia } from 'pinia'
3
-
4
- export default createPinia()