create-vuetify 2.8.0 → 3.0.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.
- package/LICENSE +9 -0
- package/README.md +30 -59
- package/dist/index.mjs +31156 -2465
- package/dist/nypm-D0-jh4wA.mjs +4 -0
- package/dist/nypm-DFp9HL5N.mjs +681 -0
- package/dist/rolldown-runtime-DA-mFLXi.mjs +15 -0
- package/dist/tar-CuErG4Sg.mjs +2941 -0
- package/package.json +39 -54
- package/bin/index.js +0 -3
- package/template/javascript/base/eslint.config.js +0 -3
- package/template/javascript/base/package.json +0 -13
- package/template/javascript/base/src/App.vue +0 -11
- package/template/javascript/base/src/components/HelloWorld.vue +0 -90
- package/template/javascript/base/src/pages/README.md +0 -5
- package/template/javascript/base/src/pages/index.vue +0 -7
- package/template/javascript/base/src/plugins/index.js +0 -15
- package/template/javascript/base/src/router/index.js +0 -35
- package/template/javascript/base/src/styles/README.md +0 -3
- package/template/javascript/base/src/styles/settings.scss +0 -10
- package/template/javascript/base/vite.config.mjs +0 -66
- package/template/javascript/default/.vscode/extensions.json +0 -3
- package/template/javascript/default/.vscode/settings.json +0 -3
- package/template/javascript/default/README.md +0 -79
- package/template/javascript/default/_browserslistrc +0 -4
- package/template/javascript/default/_editorconfig +0 -5
- package/template/javascript/default/_gitignore +0 -22
- package/template/javascript/default/index.html +0 -13
- package/template/javascript/default/jsconfig.json +0 -20
- package/template/javascript/default/package.json +0 -24
- package/template/javascript/default/public/favicon.ico +0 -0
- package/template/javascript/default/src/App.vue +0 -13
- package/template/javascript/default/src/assets/logo.png +0 -0
- package/template/javascript/default/src/assets/logo.svg +0 -6
- package/template/javascript/default/src/components/AppFooter.vue +0 -82
- package/template/javascript/default/src/components/HelloWorld.vue +0 -90
- package/template/javascript/default/src/components/README.md +0 -35
- package/template/javascript/default/src/main.js +0 -23
- package/template/javascript/default/src/plugins/README.md +0 -3
- package/template/javascript/default/src/plugins/index.js +0 -12
- package/template/javascript/default/src/plugins/vuetify.js +0 -19
- package/template/javascript/default/vite.config.mjs +0 -53
- package/template/javascript/essentials/_eslintrc-auto-import.json +0 -82
- package/template/javascript/essentials/package.json +0 -9
- package/template/javascript/essentials/src/App.vue +0 -9
- package/template/javascript/essentials/src/layouts/README.md +0 -5
- package/template/javascript/essentials/src/layouts/default.vue +0 -11
- package/template/javascript/essentials/src/plugins/index.js +0 -17
- package/template/javascript/essentials/src/router/index.js +0 -36
- package/template/javascript/essentials/src/stores/README.md +0 -5
- package/template/javascript/essentials/src/stores/app.js +0 -8
- package/template/javascript/essentials/src/stores/index.js +0 -4
- package/template/javascript/essentials/vite.config.mjs +0 -80
- package/template/typescript/base/env.d.ts +0 -2
- package/template/typescript/base/eslint.config.js +0 -3
- package/template/typescript/base/package.json +0 -13
- package/template/typescript/base/src/App.vue +0 -11
- package/template/typescript/base/src/components/HelloWorld.vue +0 -90
- package/template/typescript/base/src/pages/README.md +0 -5
- package/template/typescript/base/src/pages/index.vue +0 -7
- package/template/typescript/base/src/plugins/index.ts +0 -18
- package/template/typescript/base/src/router/index.ts +0 -35
- package/template/typescript/base/src/styles/README.md +0 -3
- package/template/typescript/base/src/styles/settings.scss +0 -10
- package/template/typescript/base/vite.config.mts +0 -70
- package/template/typescript/default/.vscode/extensions.json +0 -3
- package/template/typescript/default/.vscode/settings.json +0 -3
- package/template/typescript/default/README.md +0 -81
- package/template/typescript/default/_browserslistrc +0 -4
- package/template/typescript/default/_editorconfig +0 -6
- package/template/typescript/default/_gitignore +0 -22
- package/template/typescript/default/env.d.ts +0 -1
- package/template/typescript/default/index.html +0 -13
- package/template/typescript/default/package.json +0 -32
- package/template/typescript/default/public/favicon.ico +0 -0
- package/template/typescript/default/src/App.vue +0 -11
- package/template/typescript/default/src/assets/logo.png +0 -0
- package/template/typescript/default/src/assets/logo.svg +0 -6
- package/template/typescript/default/src/components/HelloWorld.vue +0 -90
- package/template/typescript/default/src/components/README.md +0 -35
- package/template/typescript/default/src/main.ts +0 -23
- package/template/typescript/default/src/plugins/README.md +0 -3
- package/template/typescript/default/src/plugins/index.ts +0 -15
- package/template/typescript/default/src/plugins/vuetify.ts +0 -19
- package/template/typescript/default/tsconfig.app.json +0 -14
- package/template/typescript/default/tsconfig.json +0 -11
- package/template/typescript/default/tsconfig.node.json +0 -19
- package/template/typescript/default/vite.config.mts +0 -53
- package/template/typescript/essentials/_eslintrc-auto-import.json +0 -82
- package/template/typescript/essentials/env.d.ts +0 -3
- package/template/typescript/essentials/package.json +0 -9
- package/template/typescript/essentials/src/App.vue +0 -9
- package/template/typescript/essentials/src/auto-imports.d.ts +0 -147
- package/template/typescript/essentials/src/components/AppFooter.vue +0 -82
- package/template/typescript/essentials/src/components.d.ts +0 -14
- package/template/typescript/essentials/src/layouts/README.md +0 -5
- package/template/typescript/essentials/src/layouts/default.vue +0 -11
- package/template/typescript/essentials/src/plugins/index.ts +0 -20
- package/template/typescript/essentials/src/router/index.ts +0 -36
- package/template/typescript/essentials/src/stores/README.md +0 -5
- package/template/typescript/essentials/src/stores/app.ts +0 -8
- package/template/typescript/essentials/src/stores/index.ts +0 -4
- package/template/typescript/essentials/src/typed-router.d.ts +0 -23
- package/template/typescript/essentials/vite.config.mts +0 -88
- package/template/typescript/nuxt/app-layout.vue +0 -5
- package/template/typescript/nuxt/app.vue +0 -9
- package/template/typescript/nuxt/assets/logo.png +0 -0
- package/template/typescript/nuxt/assets/logo.svg +0 -6
- package/template/typescript/nuxt/components/AppFooter.vue +0 -82
- package/template/typescript/nuxt/components/HelloWorld.vue +0 -90
- package/template/typescript/nuxt/layouts/default.vue +0 -9
- package/template/typescript/nuxt/modules/vuetify.ts +0 -137
- package/template/typescript/nuxt/pages/index.vue +0 -7
- package/template/typescript/nuxt/plugins/vuetify-nuxt.ts +0 -8
- package/template/typescript/nuxt/plugins/vuetify.ts +0 -14
- package/template/typescript/nuxt/vuetify.config.ts +0 -8
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-footer
|
|
3
|
-
app
|
|
4
|
-
height="40"
|
|
5
|
-
>
|
|
6
|
-
<a
|
|
7
|
-
v-for="item in items"
|
|
8
|
-
:key="item.title"
|
|
9
|
-
class="d-inline-block mx-2 social-link"
|
|
10
|
-
:href="item.href"
|
|
11
|
-
rel="noopener noreferrer"
|
|
12
|
-
target="_blank"
|
|
13
|
-
:title="item.title"
|
|
14
|
-
>
|
|
15
|
-
<v-icon
|
|
16
|
-
:icon="item.icon"
|
|
17
|
-
:size="item.icon === '$vuetify' ? 24 : 16"
|
|
18
|
-
/>
|
|
19
|
-
</a>
|
|
20
|
-
|
|
21
|
-
<div
|
|
22
|
-
class="text-caption text-disabled"
|
|
23
|
-
style="position: absolute; right: 16px;"
|
|
24
|
-
>
|
|
25
|
-
© 2016-{{ (new Date()).getFullYear() }} <span class="d-none d-sm-inline-block">Vuetify, LLC</span>
|
|
26
|
-
—
|
|
27
|
-
<a
|
|
28
|
-
class="text-decoration-none on-surface"
|
|
29
|
-
href="https://vuetifyjs.com/about/licensing/"
|
|
30
|
-
rel="noopener noreferrer"
|
|
31
|
-
target="_blank"
|
|
32
|
-
>
|
|
33
|
-
MIT License
|
|
34
|
-
</a>
|
|
35
|
-
</div>
|
|
36
|
-
</v-footer>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script setup>
|
|
40
|
-
const items = [
|
|
41
|
-
{
|
|
42
|
-
title: 'Vuetify Documentation',
|
|
43
|
-
icon: `$vuetify`,
|
|
44
|
-
href: 'https://vuetifyjs.com/',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
title: 'Vuetify Support',
|
|
48
|
-
icon: 'mdi-shield-star-outline',
|
|
49
|
-
href: 'https://support.vuetifyjs.com/',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
title: 'Vuetify X',
|
|
53
|
-
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'],
|
|
54
|
-
href: 'https://x.com/vuetifyjs',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
title: 'Vuetify GitHub',
|
|
58
|
-
icon: `mdi-github`,
|
|
59
|
-
href: 'https://github.com/vuetifyjs/vuetify',
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
title: 'Vuetify Discord',
|
|
63
|
-
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'],
|
|
64
|
-
href: 'https://community.vuetifyjs.com/',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
title: 'Vuetify Reddit',
|
|
68
|
-
icon: `mdi-reddit`,
|
|
69
|
-
href: 'https://reddit.com/r/vuetifyjs',
|
|
70
|
-
},
|
|
71
|
-
]
|
|
72
|
-
</script>
|
|
73
|
-
|
|
74
|
-
<style scoped lang="sass">
|
|
75
|
-
.social-link :deep(.v-icon)
|
|
76
|
-
color: rgba(var(--v-theme-on-background), var(--v-disabled-opacity))
|
|
77
|
-
text-decoration: none
|
|
78
|
-
transition: .2s ease-in-out
|
|
79
|
-
|
|
80
|
-
&:hover
|
|
81
|
-
color: rgba(25, 118, 210, 1)
|
|
82
|
-
</style>
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-container class="fill-height d-flex align-center" max-width="900">
|
|
3
|
-
<div>
|
|
4
|
-
<v-img
|
|
5
|
-
class="mb-4"
|
|
6
|
-
height="150"
|
|
7
|
-
src="@/assets/logo.png"
|
|
8
|
-
/>
|
|
9
|
-
|
|
10
|
-
<div class="mb-8 text-center">
|
|
11
|
-
<div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
|
|
12
|
-
<h1 class="text-h2 my-0 font-weight-bold">Vuetify</h1>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<v-row>
|
|
16
|
-
<v-col cols="12">
|
|
17
|
-
<v-card
|
|
18
|
-
class="py-4"
|
|
19
|
-
color="surface-variant"
|
|
20
|
-
image="https://cdn.vuetifyjs.com/docs/images/one/create/feature.png"
|
|
21
|
-
prepend-icon="mdi-rocket-launch-outline"
|
|
22
|
-
rounded="lg"
|
|
23
|
-
variant="tonal"
|
|
24
|
-
>
|
|
25
|
-
<template #image>
|
|
26
|
-
<v-img position="top right" />
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<template #title>
|
|
30
|
-
<h2 class="text-h5 font-weight-bold">
|
|
31
|
-
Get started
|
|
32
|
-
</h2>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<template #subtitle>
|
|
36
|
-
<div class="text-subtitle-1">
|
|
37
|
-
Change this page by updating <v-kbd>{{ `<HelloWorld />` }}</v-kbd> in <v-kbd>components/HelloWorld.vue</v-kbd>.
|
|
38
|
-
</div>
|
|
39
|
-
</template>
|
|
40
|
-
</v-card>
|
|
41
|
-
</v-col>
|
|
42
|
-
|
|
43
|
-
<v-col v-for="link in links" :key="link.href" cols="6">
|
|
44
|
-
<v-card
|
|
45
|
-
append-icon="mdi-open-in-new"
|
|
46
|
-
class="py-4"
|
|
47
|
-
color="surface-variant"
|
|
48
|
-
:href="link.href"
|
|
49
|
-
:prepend-icon="link.icon"
|
|
50
|
-
rel="noopener noreferrer"
|
|
51
|
-
rounded="lg"
|
|
52
|
-
:subtitle="link.subtitle"
|
|
53
|
-
target="_blank"
|
|
54
|
-
:title="link.title"
|
|
55
|
-
variant="tonal"
|
|
56
|
-
/>
|
|
57
|
-
</v-col>
|
|
58
|
-
</v-row>
|
|
59
|
-
</div>
|
|
60
|
-
</v-container>
|
|
61
|
-
</template>
|
|
62
|
-
|
|
63
|
-
<script setup>
|
|
64
|
-
const links = [
|
|
65
|
-
{
|
|
66
|
-
href: 'https://vuetifyjs.com/',
|
|
67
|
-
icon: 'mdi-text-box-outline',
|
|
68
|
-
subtitle: 'Learn about all things Vuetify in our documentation.',
|
|
69
|
-
title: 'Documentation',
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
href: 'https://vuetifyjs.com/introduction/why-vuetify/#feature-guides',
|
|
73
|
-
icon: 'mdi-star-circle-outline',
|
|
74
|
-
subtitle: 'Explore available framework Features.',
|
|
75
|
-
title: 'Features',
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
href: 'https://vuetifyjs.com/components/all',
|
|
79
|
-
icon: 'mdi-widgets-outline',
|
|
80
|
-
subtitle: 'Discover components in the API Explorer.',
|
|
81
|
-
title: 'Components',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
href: 'https://discord.vuetifyjs.com',
|
|
85
|
-
icon: 'mdi-account-group-outline',
|
|
86
|
-
subtitle: 'Connect with Vuetify developers.',
|
|
87
|
-
title: 'Community',
|
|
88
|
-
},
|
|
89
|
-
]
|
|
90
|
-
</script>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Components
|
|
2
|
-
|
|
3
|
-
Vue template files in this folder are automatically imported.
|
|
4
|
-
|
|
5
|
-
## 🚀 Usage
|
|
6
|
-
|
|
7
|
-
Importing is handled by [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components). This plugin automatically imports `.vue` files created in the `src/components` directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.
|
|
8
|
-
|
|
9
|
-
The following example assumes a component located at `src/components/MyComponent.vue`:
|
|
10
|
-
|
|
11
|
-
```vue
|
|
12
|
-
<template>
|
|
13
|
-
<div>
|
|
14
|
-
<MyComponent />
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
|
|
18
|
-
<script lang="ts" setup>
|
|
19
|
-
//
|
|
20
|
-
</script>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
When your template is rendered, the component's import will automatically be inlined, which renders to this:
|
|
24
|
-
|
|
25
|
-
```vue
|
|
26
|
-
<template>
|
|
27
|
-
<div>
|
|
28
|
-
<MyComponent />
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<script lang="ts" setup>
|
|
33
|
-
import MyComponent from '@/components/MyComponent.vue'
|
|
34
|
-
</script>
|
|
35
|
-
```
|
|
@@ -1,23 +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
|
-
// Styles
|
|
17
|
-
import 'unfonts.css'
|
|
18
|
-
|
|
19
|
-
const app = createApp(App)
|
|
20
|
-
|
|
21
|
-
registerPlugins(app)
|
|
22
|
-
|
|
23
|
-
app.mount('#app')
|
|
@@ -1,19 +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
|
-
defaultTheme: 'system',
|
|
18
|
-
},
|
|
19
|
-
})
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// Plugins
|
|
2
|
-
import Components from 'unplugin-vue-components/vite'
|
|
3
|
-
import Vue from '@vitejs/plugin-vue'
|
|
4
|
-
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
5
|
-
import Fonts from 'unplugin-fonts/vite'
|
|
6
|
-
|
|
7
|
-
// Utilities
|
|
8
|
-
import { defineConfig } from 'vite'
|
|
9
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
10
|
-
|
|
11
|
-
// https://vitejs.dev/config/
|
|
12
|
-
export default defineConfig({
|
|
13
|
-
plugins: [
|
|
14
|
-
Vue({
|
|
15
|
-
template: { transformAssetUrls },
|
|
16
|
-
}),
|
|
17
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
18
|
-
Vuetify(),
|
|
19
|
-
Components(),
|
|
20
|
-
Fonts({
|
|
21
|
-
fontsource: {
|
|
22
|
-
families: [
|
|
23
|
-
{
|
|
24
|
-
name: 'Roboto',
|
|
25
|
-
weights: [100, 300, 400, 500, 700, 900],
|
|
26
|
-
styles: ['normal', 'italic'],
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
}),
|
|
31
|
-
],
|
|
32
|
-
optimizeDeps: {
|
|
33
|
-
exclude: ['vuetify'],
|
|
34
|
-
},
|
|
35
|
-
define: { 'process.env': {} },
|
|
36
|
-
resolve: {
|
|
37
|
-
alias: {
|
|
38
|
-
'@': fileURLToPath(new URL('src', import.meta.url)),
|
|
39
|
-
},
|
|
40
|
-
extensions: [
|
|
41
|
-
'.js',
|
|
42
|
-
'.json',
|
|
43
|
-
'.jsx',
|
|
44
|
-
'.mjs',
|
|
45
|
-
'.ts',
|
|
46
|
-
'.tsx',
|
|
47
|
-
'.vue',
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
server: {
|
|
51
|
-
port: 3000,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"globals": {
|
|
3
|
-
"Component": true,
|
|
4
|
-
"ComponentPublicInstance": true,
|
|
5
|
-
"ComputedRef": true,
|
|
6
|
-
"DirectiveBinding": true,
|
|
7
|
-
"EffectScope": true,
|
|
8
|
-
"ExtractDefaultPropTypes": true,
|
|
9
|
-
"ExtractPropTypes": true,
|
|
10
|
-
"ExtractPublicPropTypes": true,
|
|
11
|
-
"InjectionKey": true,
|
|
12
|
-
"MaybeRef": true,
|
|
13
|
-
"MaybeRefOrGetter": true,
|
|
14
|
-
"PropType": true,
|
|
15
|
-
"Ref": true,
|
|
16
|
-
"Slot": true,
|
|
17
|
-
"Slots": true,
|
|
18
|
-
"VNode": true,
|
|
19
|
-
"WritableComputedRef": true,
|
|
20
|
-
"computed": true,
|
|
21
|
-
"createApp": true,
|
|
22
|
-
"customRef": true,
|
|
23
|
-
"defineAsyncComponent": true,
|
|
24
|
-
"defineComponent": true,
|
|
25
|
-
"defineStore": true,
|
|
26
|
-
"effectScope": true,
|
|
27
|
-
"getCurrentInstance": true,
|
|
28
|
-
"getCurrentScope": true,
|
|
29
|
-
"h": true,
|
|
30
|
-
"inject": true,
|
|
31
|
-
"isProxy": true,
|
|
32
|
-
"isReactive": true,
|
|
33
|
-
"isReadonly": true,
|
|
34
|
-
"isRef": true,
|
|
35
|
-
"markRaw": true,
|
|
36
|
-
"nextTick": true,
|
|
37
|
-
"onActivated": true,
|
|
38
|
-
"onBeforeMount": true,
|
|
39
|
-
"onBeforeRouteLeave": true,
|
|
40
|
-
"onBeforeRouteUpdate": true,
|
|
41
|
-
"onBeforeUnmount": true,
|
|
42
|
-
"onBeforeUpdate": true,
|
|
43
|
-
"onDeactivated": true,
|
|
44
|
-
"onErrorCaptured": true,
|
|
45
|
-
"onMounted": true,
|
|
46
|
-
"onRenderTracked": true,
|
|
47
|
-
"onRenderTriggered": true,
|
|
48
|
-
"onScopeDispose": true,
|
|
49
|
-
"onServerPrefetch": true,
|
|
50
|
-
"onUnmounted": true,
|
|
51
|
-
"onUpdated": true,
|
|
52
|
-
"onWatcherCleanup": true,
|
|
53
|
-
"provide": true,
|
|
54
|
-
"reactive": true,
|
|
55
|
-
"readonly": true,
|
|
56
|
-
"ref": true,
|
|
57
|
-
"resolveComponent": true,
|
|
58
|
-
"shallowReactive": true,
|
|
59
|
-
"shallowReadonly": true,
|
|
60
|
-
"shallowRef": true,
|
|
61
|
-
"storeToRefs": true,
|
|
62
|
-
"toRaw": true,
|
|
63
|
-
"toRef": true,
|
|
64
|
-
"toRefs": true,
|
|
65
|
-
"toValue": true,
|
|
66
|
-
"triggerRef": true,
|
|
67
|
-
"unref": true,
|
|
68
|
-
"useAttrs": true,
|
|
69
|
-
"useCssModule": true,
|
|
70
|
-
"useCssVars": true,
|
|
71
|
-
"useId": true,
|
|
72
|
-
"useModel": true,
|
|
73
|
-
"useRoute": true,
|
|
74
|
-
"useRouter": true,
|
|
75
|
-
"useSlots": true,
|
|
76
|
-
"useTemplateRef": true,
|
|
77
|
-
"watch": true,
|
|
78
|
-
"watchEffect": true,
|
|
79
|
-
"watchPostEffect": true,
|
|
80
|
-
"watchSyncEffect": true
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
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-next](https://github.com/loicduong/vite-plugin-vue-layouts-next) repository.
|
|
@@ -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 '@/stores'
|
|
10
|
-
import router from '@/router'
|
|
11
|
-
|
|
12
|
-
export function registerPlugins (app) {
|
|
13
|
-
app
|
|
14
|
-
.use(vuetify)
|
|
15
|
-
.use(router)
|
|
16
|
-
.use(pinia)
|
|
17
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* router/index.ts
|
|
3
|
-
*
|
|
4
|
-
* Automatic routes for `./src/pages/*.vue`
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Composables
|
|
8
|
-
import { createRouter, createWebHistory } from 'vue-router'
|
|
9
|
-
import { setupLayouts } from 'virtual:generated-layouts'
|
|
10
|
-
import { routes } from 'vue-router/auto-routes'
|
|
11
|
-
|
|
12
|
-
const router = createRouter({
|
|
13
|
-
history: createWebHistory(import.meta.env.BASE_URL),
|
|
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.error('Dynamic import error, reloading page did not fix it', err)
|
|
22
|
-
} else {
|
|
23
|
-
console.log('Reloading page to fix dynamic import error')
|
|
24
|
-
localStorage.setItem('vuetify:dynamic-reload', 'true')
|
|
25
|
-
location.assign(to.fullPath)
|
|
26
|
-
}
|
|
27
|
-
} else {
|
|
28
|
-
console.error(err)
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
router.isReady().then(() => {
|
|
33
|
-
localStorage.removeItem('vuetify:dynamic-reload')
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
export default router
|
|
@@ -1,80 +0,0 @@
|
|
|
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-next'
|
|
6
|
-
import Vue from '@vitejs/plugin-vue'
|
|
7
|
-
import VueRouter from 'unplugin-vue-router/vite'
|
|
8
|
-
import { VueRouterAutoImports } from 'unplugin-vue-router'
|
|
9
|
-
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
10
|
-
|
|
11
|
-
// Utilities
|
|
12
|
-
import { defineConfig } from 'vite'
|
|
13
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
14
|
-
|
|
15
|
-
// https://vitejs.dev/config/
|
|
16
|
-
export default defineConfig({
|
|
17
|
-
plugins: [
|
|
18
|
-
VueRouter(),
|
|
19
|
-
Layouts(),
|
|
20
|
-
Vue({
|
|
21
|
-
template: { transformAssetUrls },
|
|
22
|
-
}),
|
|
23
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
24
|
-
Vuetify({
|
|
25
|
-
autoImport: true,
|
|
26
|
-
styles: {
|
|
27
|
-
configFile: 'src/styles/settings.scss',
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
Components(),
|
|
31
|
-
Fonts({
|
|
32
|
-
google: {
|
|
33
|
-
families: [{
|
|
34
|
-
name: 'Roboto',
|
|
35
|
-
styles: 'wght@100;300;400;500;700;900',
|
|
36
|
-
}],
|
|
37
|
-
},
|
|
38
|
-
}),
|
|
39
|
-
AutoImport({
|
|
40
|
-
imports: [
|
|
41
|
-
'vue',
|
|
42
|
-
VueRouterAutoImports,
|
|
43
|
-
{
|
|
44
|
-
pinia: ['defineStore', 'storeToRefs'],
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
eslintrc: {
|
|
48
|
-
enabled: true,
|
|
49
|
-
},
|
|
50
|
-
vueTemplate: true,
|
|
51
|
-
}),
|
|
52
|
-
],
|
|
53
|
-
optimizeDeps: {
|
|
54
|
-
exclude: [
|
|
55
|
-
'vuetify',
|
|
56
|
-
'vue-router',
|
|
57
|
-
'unplugin-vue-router/runtime',
|
|
58
|
-
'unplugin-vue-router/data-loaders',
|
|
59
|
-
'unplugin-vue-router/data-loaders/basic',
|
|
60
|
-
],
|
|
61
|
-
},
|
|
62
|
-
define: { 'process.env': {} },
|
|
63
|
-
resolve: {
|
|
64
|
-
alias: {
|
|
65
|
-
'@': fileURLToPath(new URL('src', import.meta.url)),
|
|
66
|
-
},
|
|
67
|
-
extensions: [
|
|
68
|
-
'.js',
|
|
69
|
-
'.json',
|
|
70
|
-
'.jsx',
|
|
71
|
-
'.mjs',
|
|
72
|
-
'.ts',
|
|
73
|
-
'.tsx',
|
|
74
|
-
'.vue',
|
|
75
|
-
],
|
|
76
|
-
},
|
|
77
|
-
server: {
|
|
78
|
-
port: 3000,
|
|
79
|
-
},
|
|
80
|
-
})
|