create-vuetify 2.2.4 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/template/javascript/base/package.json +5 -5
- package/template/javascript/base/src/router/index.js +21 -0
- package/template/javascript/default/package.json +7 -7
- package/template/javascript/default/src/components/AppFooter.vue +2 -2
- package/template/javascript/essentials/_eslintrc-auto-import.json +72 -0
- package/template/javascript/essentials/_eslintrc.js +19 -0
- package/template/javascript/essentials/package.json +2 -1
- package/template/javascript/essentials/src/router/index.js +21 -1
- package/template/typescript/base/package.json +5 -5
- package/template/typescript/base/src/router/index.ts +21 -0
- package/template/typescript/base/tsconfig.json +32 -0
- package/template/typescript/default/package.json +10 -10
- package/template/typescript/default/tsconfig.json +1 -3
- package/template/typescript/essentials/_eslintrc-auto-import.json +69 -0
- package/template/typescript/essentials/_eslintrc.js +20 -0
- package/template/typescript/essentials/package.json +2 -1
- package/template/typescript/essentials/src/components/AppFooter.vue +2 -2
- package/template/typescript/essentials/src/router/index.ts +21 -1
- package/template/typescript/essentials/tsconfig.json +33 -0
package/dist/index.mjs
CHANGED
|
@@ -58,11 +58,11 @@ var promptQuestions = (context) => [
|
|
|
58
58
|
name: "usePreset",
|
|
59
59
|
type: context.usePreset ? null : "select",
|
|
60
60
|
message: "Which preset would you like to install?",
|
|
61
|
-
initial:
|
|
61
|
+
initial: 1,
|
|
62
62
|
choices: [
|
|
63
|
-
{ title: "
|
|
64
|
-
{ title: "
|
|
65
|
-
{ title: "
|
|
63
|
+
{ title: "Barebones (Only Vue & Vuetify)", value: "default" },
|
|
64
|
+
{ title: "Default (Adds routing, ESLint & SASS variables)", value: "base" },
|
|
65
|
+
{ title: "Recommended (Everything from Default. Adds auto importing, layouts & pinia)", value: "essentials" }
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
{
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"lint": "eslint . --fix --ignore-path .gitignore"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"core-js": "^3.
|
|
6
|
+
"core-js": "^3.37.1"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"eslint": "^8.57.0",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"eslint-plugin-import": "^2.29.1",
|
|
12
12
|
"eslint-plugin-n": "^16.6.2",
|
|
13
13
|
"eslint-plugin-node": "^11.1.0",
|
|
14
|
-
"eslint-plugin-promise": "^6.
|
|
15
|
-
"eslint-plugin-vue": "^9.
|
|
16
|
-
"vue-router": "^4.
|
|
17
|
-
"unplugin-vue-router": "^0.
|
|
14
|
+
"eslint-plugin-promise": "^6.4.0",
|
|
15
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
16
|
+
"vue-router": "^4.4.0",
|
|
17
|
+
"unplugin-vue-router": "^0.10.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -7,9 +7,30 @@
|
|
|
7
7
|
|
|
8
8
|
// Composables
|
|
9
9
|
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
10
|
+
import { routes } from 'vue-router/auto-routes'
|
|
10
11
|
|
|
11
12
|
const router = createRouter({
|
|
12
13
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
14
|
+
routes,
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Workaround for https://github.com/vitejs/vite/issues/11804
|
|
18
|
+
router.onError((err, to) => {
|
|
19
|
+
if (err?.message?.includes?.('Failed to fetch dynamically imported module')) {
|
|
20
|
+
if (!localStorage.getItem('vuetify:dynamic-reload')) {
|
|
21
|
+
console.log('Reloading page to fix dynamic import error')
|
|
22
|
+
localStorage.setItem('vuetify:dynamic-reload', 'true')
|
|
23
|
+
location.assign(to.fullPath)
|
|
24
|
+
} else {
|
|
25
|
+
console.error('Dynamic import error, reloading page did not fix it', err)
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
console.error(err)
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
router.isReady().then(() => {
|
|
33
|
+
localStorage.removeItem('vuetify:dynamic-reload')
|
|
13
34
|
})
|
|
14
35
|
|
|
15
36
|
export default router
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
"preview": "vite preview"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@mdi/font": "7.
|
|
9
|
+
"@mdi/font": "7.4.47",
|
|
10
10
|
"roboto-fontface": "*",
|
|
11
|
-
"vue": "^3.4.
|
|
12
|
-
"vuetify": "^3.
|
|
11
|
+
"vue": "^3.4.31",
|
|
12
|
+
"vuetify": "^3.6.11"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
16
|
-
"sass": "
|
|
15
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
16
|
+
"sass": "1.77.6",
|
|
17
17
|
"unplugin-fonts": "^1.1.1",
|
|
18
|
-
"unplugin-vue-components": "^0.
|
|
18
|
+
"unplugin-vue-components": "^0.27.2",
|
|
19
19
|
"vite-plugin-vuetify": "^2.0.3",
|
|
20
|
-
"vite": "^5.
|
|
20
|
+
"vite": "^5.3.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
title: 'Vuetify X',
|
|
50
|
-
icon:
|
|
50
|
+
icon: ['M2.04875 3.00002L9.77052 13.3248L1.99998 21.7192H3.74882L10.5519 14.3697L16.0486 21.7192H22L13.8437 10.8137L21.0765 3.00002H19.3277L13.0624 9.76874L8.0001 3.00002H2.04875ZM4.62054 4.28821H7.35461L19.4278 20.4308H16.6937L4.62054 4.28821Z'],
|
|
51
51
|
href: 'https://x.com/vuetifyjs',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
title: 'Vuetify Discord',
|
|
60
|
-
icon:
|
|
60
|
+
icon: ['M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z'],
|
|
61
61
|
href: 'https://community.vuetifyjs.com/',
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"globals": {
|
|
3
|
+
"Component": true,
|
|
4
|
+
"ComponentPublicInstance": true,
|
|
5
|
+
"ComputedRef": true,
|
|
6
|
+
"EffectScope": true,
|
|
7
|
+
"ExtractDefaultPropTypes": true,
|
|
8
|
+
"ExtractPropTypes": true,
|
|
9
|
+
"ExtractPublicPropTypes": true,
|
|
10
|
+
"InjectionKey": true,
|
|
11
|
+
"PropType": true,
|
|
12
|
+
"Ref": true,
|
|
13
|
+
"VNode": true,
|
|
14
|
+
"WritableComputedRef": true,
|
|
15
|
+
"computed": true,
|
|
16
|
+
"createApp": true,
|
|
17
|
+
"customRef": true,
|
|
18
|
+
"defineAsyncComponent": true,
|
|
19
|
+
"defineComponent": true,
|
|
20
|
+
"effectScope": true,
|
|
21
|
+
"getCurrentInstance": true,
|
|
22
|
+
"getCurrentScope": true,
|
|
23
|
+
"h": true,
|
|
24
|
+
"inject": true,
|
|
25
|
+
"isProxy": true,
|
|
26
|
+
"isReactive": true,
|
|
27
|
+
"isReadonly": true,
|
|
28
|
+
"isRef": true,
|
|
29
|
+
"markRaw": true,
|
|
30
|
+
"nextTick": true,
|
|
31
|
+
"onActivated": true,
|
|
32
|
+
"onBeforeMount": true,
|
|
33
|
+
"onBeforeRouteLeave": true,
|
|
34
|
+
"onBeforeRouteUpdate": true,
|
|
35
|
+
"onBeforeUnmount": true,
|
|
36
|
+
"onBeforeUpdate": true,
|
|
37
|
+
"onDeactivated": true,
|
|
38
|
+
"onErrorCaptured": true,
|
|
39
|
+
"onMounted": true,
|
|
40
|
+
"onRenderTracked": true,
|
|
41
|
+
"onRenderTriggered": true,
|
|
42
|
+
"onScopeDispose": true,
|
|
43
|
+
"onServerPrefetch": true,
|
|
44
|
+
"onUnmounted": true,
|
|
45
|
+
"onUpdated": true,
|
|
46
|
+
"provide": true,
|
|
47
|
+
"reactive": true,
|
|
48
|
+
"readonly": true,
|
|
49
|
+
"ref": true,
|
|
50
|
+
"resolveComponent": true,
|
|
51
|
+
"shallowReactive": true,
|
|
52
|
+
"shallowReadonly": true,
|
|
53
|
+
"shallowRef": true,
|
|
54
|
+
"toRaw": true,
|
|
55
|
+
"toRef": true,
|
|
56
|
+
"toRefs": true,
|
|
57
|
+
"toValue": true,
|
|
58
|
+
"triggerRef": true,
|
|
59
|
+
"unref": true,
|
|
60
|
+
"useAttrs": true,
|
|
61
|
+
"useCssModule": true,
|
|
62
|
+
"useCssVars": true,
|
|
63
|
+
"useLink": true,
|
|
64
|
+
"useRoute": true,
|
|
65
|
+
"useRouter": true,
|
|
66
|
+
"useSlots": true,
|
|
67
|
+
"watch": true,
|
|
68
|
+
"watchEffect": true,
|
|
69
|
+
"watchPostEffect": true,
|
|
70
|
+
"watchSyncEffect": true
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* .eslint.js
|
|
3
|
+
*
|
|
4
|
+
* ESLint configuration file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
root: true,
|
|
9
|
+
env: {
|
|
10
|
+
node: true,
|
|
11
|
+
},
|
|
12
|
+
extends: [
|
|
13
|
+
'vuetify',
|
|
14
|
+
'./.eslintrc-auto-import.json',
|
|
15
|
+
],
|
|
16
|
+
rules: {
|
|
17
|
+
'vue/multi-word-component-names': 'off',
|
|
18
|
+
},
|
|
19
|
+
}
|
|
@@ -7,10 +7,30 @@
|
|
|
7
7
|
// Composables
|
|
8
8
|
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
9
9
|
import { setupLayouts } from 'virtual:generated-layouts'
|
|
10
|
+
import { routes } from 'vue-router/auto-routes'
|
|
10
11
|
|
|
11
12
|
const router = createRouter({
|
|
12
13
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
13
|
-
|
|
14
|
+
routes: setupLayouts(routes),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Workaround for https://github.com/vitejs/vite/issues/11804
|
|
18
|
+
router.onError((err, to) => {
|
|
19
|
+
if (err?.message?.includes?.('Failed to fetch dynamically imported module')) {
|
|
20
|
+
if (!localStorage.getItem('vuetify:dynamic-reload')) {
|
|
21
|
+
console.log('Reloading page to fix dynamic import error')
|
|
22
|
+
localStorage.setItem('vuetify:dynamic-reload', 'true')
|
|
23
|
+
location.assign(to.fullPath)
|
|
24
|
+
} else {
|
|
25
|
+
console.error('Dynamic import error, reloading page did not fix it', err)
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
console.error(err)
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
router.isReady().then(() => {
|
|
33
|
+
localStorage.removeItem('vuetify:dynamic-reload')
|
|
14
34
|
})
|
|
15
35
|
|
|
16
36
|
export default router
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"lint": "eslint . --fix --ignore-path .gitignore"
|
|
4
4
|
},
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"core-js": "^3.
|
|
6
|
+
"core-js": "^3.37.1"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@vue/eslint-config-typescript": "^13.0.0",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"eslint-plugin-import": "^2.29.1",
|
|
13
13
|
"eslint-plugin-n": "^16.6.2",
|
|
14
14
|
"eslint-plugin-node": "^11.1.0",
|
|
15
|
-
"eslint-plugin-promise": "^6.
|
|
16
|
-
"eslint-plugin-vue": "^9.
|
|
17
|
-
"vue-router": "^4.
|
|
18
|
-
"unplugin-vue-router": "^0.
|
|
15
|
+
"eslint-plugin-promise": "^6.4.0",
|
|
16
|
+
"eslint-plugin-vue": "^9.27.0",
|
|
17
|
+
"vue-router": "^4.4.0",
|
|
18
|
+
"unplugin-vue-router": "^0.10.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -6,9 +6,30 @@
|
|
|
6
6
|
|
|
7
7
|
// Composables
|
|
8
8
|
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
9
|
+
import { routes } from 'vue-router/auto-routes'
|
|
9
10
|
|
|
10
11
|
const router = createRouter({
|
|
11
12
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
13
|
+
routes,
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
// Workaround for https://github.com/vitejs/vite/issues/11804
|
|
17
|
+
router.onError((err, to) => {
|
|
18
|
+
if (err?.message?.includes?.('Failed to fetch dynamically imported module')) {
|
|
19
|
+
if (!localStorage.getItem('vuetify:dynamic-reload')) {
|
|
20
|
+
console.log('Reloading page to fix dynamic import error')
|
|
21
|
+
localStorage.setItem('vuetify:dynamic-reload', 'true')
|
|
22
|
+
location.assign(to.fullPath)
|
|
23
|
+
} else {
|
|
24
|
+
console.error('Dynamic import error, reloading page did not fix it', err)
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
console.error(err)
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
router.isReady().then(() => {
|
|
32
|
+
localStorage.removeItem('vuetify:dynamic-reload')
|
|
12
33
|
})
|
|
13
34
|
|
|
14
35
|
export default router
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"lib": ["DOM", "ESNext"],
|
|
6
|
+
"baseUrl": ".",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"paths": {
|
|
10
|
+
"@/*": ["src/*"]
|
|
11
|
+
},
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"types": [
|
|
14
|
+
"vite/client",
|
|
15
|
+
"unplugin-vue-router/client"
|
|
16
|
+
],
|
|
17
|
+
"allowJs": true,
|
|
18
|
+
"strict": true,
|
|
19
|
+
"strictNullChecks": true,
|
|
20
|
+
"noUnusedLocals": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"isolatedModules": true,
|
|
24
|
+
"skipLibCheck": true
|
|
25
|
+
},
|
|
26
|
+
"include": [
|
|
27
|
+
"src/**/*",
|
|
28
|
+
"src/**/*.vue"
|
|
29
|
+
],
|
|
30
|
+
"exclude": ["dist", "node_modules", "cypress"],
|
|
31
|
+
"references": [{ "path": "./tsconfig.node.json" }],
|
|
32
|
+
}
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
"preview": "vite preview"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@mdi/font": "
|
|
9
|
+
"@mdi/font": "7.4.47",
|
|
10
10
|
"roboto-fontface": "*",
|
|
11
|
-
"vue": "^3.4.
|
|
12
|
-
"vuetify": "^3.
|
|
11
|
+
"vue": "^3.4.31",
|
|
12
|
+
"vuetify": "^3.6.11"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@babel/types": "^7.24.
|
|
16
|
-
"@types/node": "^20.
|
|
17
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
18
|
-
"sass": "
|
|
15
|
+
"@babel/types": "^7.24.7",
|
|
16
|
+
"@types/node": "^20.14.10",
|
|
17
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
18
|
+
"sass": "1.77.6",
|
|
19
19
|
"typescript": "^5.4.2",
|
|
20
20
|
"unplugin-fonts": "^1.1.1",
|
|
21
|
-
"unplugin-vue-components": "^0.
|
|
21
|
+
"unplugin-vue-components": "^0.27.2",
|
|
22
22
|
"vite-plugin-vuetify": "^2.0.3",
|
|
23
|
-
"vite": "^5.
|
|
24
|
-
"vue-tsc": "^2.0.
|
|
23
|
+
"vite": "^5.3.3",
|
|
24
|
+
"vue-tsc": "^2.0.26"
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"globals": {
|
|
3
|
+
"Component": true,
|
|
4
|
+
"ComponentPublicInstance": true,
|
|
5
|
+
"ComputedRef": true,
|
|
6
|
+
"EffectScope": true,
|
|
7
|
+
"ExtractDefaultPropTypes": true,
|
|
8
|
+
"ExtractPropTypes": true,
|
|
9
|
+
"ExtractPublicPropTypes": true,
|
|
10
|
+
"InjectionKey": true,
|
|
11
|
+
"PropType": true,
|
|
12
|
+
"Ref": true,
|
|
13
|
+
"VNode": true,
|
|
14
|
+
"WritableComputedRef": true,
|
|
15
|
+
"computed": true,
|
|
16
|
+
"createApp": true,
|
|
17
|
+
"customRef": true,
|
|
18
|
+
"defineAsyncComponent": true,
|
|
19
|
+
"defineComponent": true,
|
|
20
|
+
"effectScope": true,
|
|
21
|
+
"getCurrentInstance": true,
|
|
22
|
+
"getCurrentScope": true,
|
|
23
|
+
"h": true,
|
|
24
|
+
"inject": true,
|
|
25
|
+
"isProxy": true,
|
|
26
|
+
"isReactive": true,
|
|
27
|
+
"isReadonly": true,
|
|
28
|
+
"isRef": true,
|
|
29
|
+
"markRaw": true,
|
|
30
|
+
"nextTick": true,
|
|
31
|
+
"onActivated": true,
|
|
32
|
+
"onBeforeMount": true,
|
|
33
|
+
"onBeforeUnmount": true,
|
|
34
|
+
"onBeforeUpdate": true,
|
|
35
|
+
"onDeactivated": true,
|
|
36
|
+
"onErrorCaptured": true,
|
|
37
|
+
"onMounted": true,
|
|
38
|
+
"onRenderTracked": true,
|
|
39
|
+
"onRenderTriggered": true,
|
|
40
|
+
"onScopeDispose": true,
|
|
41
|
+
"onServerPrefetch": true,
|
|
42
|
+
"onUnmounted": true,
|
|
43
|
+
"onUpdated": true,
|
|
44
|
+
"provide": true,
|
|
45
|
+
"reactive": true,
|
|
46
|
+
"readonly": true,
|
|
47
|
+
"ref": true,
|
|
48
|
+
"resolveComponent": true,
|
|
49
|
+
"shallowReactive": true,
|
|
50
|
+
"shallowReadonly": true,
|
|
51
|
+
"shallowRef": true,
|
|
52
|
+
"toRaw": true,
|
|
53
|
+
"toRef": true,
|
|
54
|
+
"toRefs": true,
|
|
55
|
+
"toValue": true,
|
|
56
|
+
"triggerRef": true,
|
|
57
|
+
"unref": true,
|
|
58
|
+
"useAttrs": true,
|
|
59
|
+
"useCssModule": true,
|
|
60
|
+
"useCssVars": true,
|
|
61
|
+
"useRoute": true,
|
|
62
|
+
"useRouter": true,
|
|
63
|
+
"useSlots": true,
|
|
64
|
+
"watch": true,
|
|
65
|
+
"watchEffect": true,
|
|
66
|
+
"watchPostEffect": true,
|
|
67
|
+
"watchSyncEffect": true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* .eslint.js
|
|
3
|
+
*
|
|
4
|
+
* ESLint configuration file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
root: true,
|
|
9
|
+
env: {
|
|
10
|
+
node: true,
|
|
11
|
+
},
|
|
12
|
+
extends: [
|
|
13
|
+
'vuetify',
|
|
14
|
+
'@vue/eslint-config-typescript',
|
|
15
|
+
'./.eslintrc-auto-import.json',
|
|
16
|
+
],
|
|
17
|
+
rules: {
|
|
18
|
+
'vue/multi-word-component-names': 'off',
|
|
19
|
+
},
|
|
20
|
+
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
title: 'Vuetify X',
|
|
50
|
-
icon:
|
|
50
|
+
icon: ['M2.04875 3.00002L9.77052 13.3248L1.99998 21.7192H3.74882L10.5519 14.3697L16.0486 21.7192H22L13.8437 10.8137L21.0765 3.00002H19.3277L13.0624 9.76874L8.0001 3.00002H2.04875ZM4.62054 4.28821H7.35461L19.4278 20.4308H16.6937L4.62054 4.28821Z'],
|
|
51
51
|
href: 'https://x.com/vuetifyjs',
|
|
52
52
|
},
|
|
53
53
|
{
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
title: 'Vuetify Discord',
|
|
60
|
-
icon:
|
|
60
|
+
icon: ['M22,24L16.75,19L17.38,21H4.5A2.5,2.5 0 0,1 2,18.5V3.5A2.5,2.5 0 0,1 4.5,1H19.5A2.5,2.5 0 0,1 22,3.5V24M12,6.8C9.32,6.8 7.44,7.95 7.44,7.95C8.47,7.03 10.27,6.5 10.27,6.5L10.1,6.33C8.41,6.36 6.88,7.53 6.88,7.53C5.16,11.12 5.27,14.22 5.27,14.22C6.67,16.03 8.75,15.9 8.75,15.9L9.46,15C8.21,14.73 7.42,13.62 7.42,13.62C7.42,13.62 9.3,14.9 12,14.9C14.7,14.9 16.58,13.62 16.58,13.62C16.58,13.62 15.79,14.73 14.54,15L15.25,15.9C15.25,15.9 17.33,16.03 18.73,14.22C18.73,14.22 18.84,11.12 17.12,7.53C17.12,7.53 15.59,6.36 13.9,6.33L13.73,6.5C13.73,6.5 15.53,7.03 16.56,7.95C16.56,7.95 14.68,6.8 12,6.8M9.93,10.59C10.58,10.59 11.11,11.16 11.1,11.86C11.1,12.55 10.58,13.13 9.93,13.13C9.29,13.13 8.77,12.55 8.77,11.86C8.77,11.16 9.28,10.59 9.93,10.59M14.1,10.59C14.75,10.59 15.27,11.16 15.27,11.86C15.27,12.55 14.75,13.13 14.1,13.13C13.46,13.13 12.94,12.55 12.94,11.86C12.94,11.16 13.45,10.59 14.1,10.59Z'],
|
|
61
61
|
href: 'https://community.vuetifyjs.com/',
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -7,10 +7,30 @@
|
|
|
7
7
|
// Composables
|
|
8
8
|
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
9
9
|
import { setupLayouts } from 'virtual:generated-layouts'
|
|
10
|
+
import { routes } from 'vue-router/auto-routes'
|
|
10
11
|
|
|
11
12
|
const router = createRouter({
|
|
12
13
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
13
|
-
|
|
14
|
+
routes: setupLayouts(routes),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
// Workaround for https://github.com/vitejs/vite/issues/11804
|
|
18
|
+
router.onError((err, to) => {
|
|
19
|
+
if (err?.message?.includes?.('Failed to fetch dynamically imported module')) {
|
|
20
|
+
if (!localStorage.getItem('vuetify:dynamic-reload')) {
|
|
21
|
+
console.log('Reloading page to fix dynamic import error')
|
|
22
|
+
localStorage.setItem('vuetify:dynamic-reload', 'true')
|
|
23
|
+
location.assign(to.fullPath)
|
|
24
|
+
} else {
|
|
25
|
+
console.error('Dynamic import error, reloading page did not fix it', err)
|
|
26
|
+
}
|
|
27
|
+
} else {
|
|
28
|
+
console.error(err)
|
|
29
|
+
}
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
router.isReady().then(() => {
|
|
33
|
+
localStorage.removeItem('vuetify:dynamic-reload')
|
|
14
34
|
})
|
|
15
35
|
|
|
16
36
|
export default router
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"lib": ["DOM", "ESNext"],
|
|
6
|
+
"baseUrl": ".",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"paths": {
|
|
10
|
+
"@/*": ["src/*"]
|
|
11
|
+
},
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"types": [
|
|
14
|
+
"vite/client",
|
|
15
|
+
"vite-plugin-vue-layouts/client",
|
|
16
|
+
"unplugin-vue-router/client"
|
|
17
|
+
],
|
|
18
|
+
"allowJs": true,
|
|
19
|
+
"strict": true,
|
|
20
|
+
"strictNullChecks": true,
|
|
21
|
+
"noUnusedLocals": true,
|
|
22
|
+
"esModuleInterop": true,
|
|
23
|
+
"forceConsistentCasingInFileNames": true,
|
|
24
|
+
"isolatedModules": true,
|
|
25
|
+
"skipLibCheck": true
|
|
26
|
+
},
|
|
27
|
+
"include": [
|
|
28
|
+
"src/**/*",
|
|
29
|
+
"src/**/*.vue"
|
|
30
|
+
],
|
|
31
|
+
"exclude": ["dist", "node_modules", "cypress"],
|
|
32
|
+
"references": [{ "path": "./tsconfig.node.json" }],
|
|
33
|
+
}
|