create-vuetify 1.0.0 → 1.0.2
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/output.cjs +1 -1
- package/package.json +3 -3
- package/template/javascript/base/README.md +57 -0
- package/template/javascript/base/_browserslistrc +4 -0
- package/template/javascript/base/_editorconfig +5 -0
- package/template/javascript/base/_eslintrc.js +10 -0
- package/template/javascript/base/_gitignore +22 -0
- package/template/javascript/base/index.html +16 -0
- package/template/javascript/base/jsconfig.json +19 -0
- package/template/javascript/base/package.json +27 -0
- package/template/javascript/base/public/favicon.ico +0 -0
- package/template/javascript/base/src/App.vue +7 -0
- package/template/javascript/base/src/assets/logo.png +0 -0
- package/template/javascript/base/src/assets/logo.svg +6 -0
- package/template/javascript/base/src/components/HelloWorld.vue +79 -0
- package/template/javascript/base/src/layouts/default/AppBar.vue +13 -0
- package/template/javascript/base/src/layouts/default/Default.vue +12 -0
- package/template/javascript/base/src/layouts/default/View.vue +9 -0
- package/template/javascript/base/src/main.js +25 -0
- package/template/javascript/base/src/plugins/index.js +11 -0
- package/template/javascript/base/src/plugins/vuetify.js +26 -0
- package/template/javascript/base/src/plugins/webfontloader.js +15 -0
- package/template/javascript/base/src/router/index.js +26 -0
- package/template/javascript/base/src/styles/settings.scss +10 -0
- package/template/javascript/base/src/views/Home.vue +7 -0
- package/template/javascript/base/vite.config.js +39 -0
- package/template/javascript/default/README.md +44 -0
- package/template/javascript/default/_browserslistrc +4 -0
- package/template/javascript/default/_editorconfig +5 -0
- package/template/javascript/default/_gitignore +23 -0
- package/template/javascript/default/index.html +16 -0
- package/template/javascript/default/jsconfig.json +19 -0
- package/template/javascript/default/package.json +20 -0
- package/template/javascript/default/public/favicon.ico +0 -0
- package/template/javascript/default/src/App.vue +11 -0
- package/template/javascript/default/src/assets/logo.png +0 -0
- package/template/javascript/default/src/assets/logo.svg +6 -0
- package/template/javascript/default/src/components/HelloWorld.vue +79 -0
- package/template/javascript/default/src/main.js +23 -0
- package/template/javascript/default/src/plugins/index.js +12 -0
- package/template/javascript/default/src/plugins/vuetify.js +26 -0
- package/template/javascript/default/src/plugins/webfontloader.js +15 -0
- package/template/javascript/default/vite.config.js +36 -0
- package/template/javascript/essentials/README.md +57 -0
- package/template/javascript/essentials/_browserslistrc +4 -0
- package/template/javascript/essentials/_editorconfig +5 -0
- package/template/javascript/essentials/_eslintrc.js +10 -0
- package/template/javascript/essentials/_gitignore +22 -0
- package/template/javascript/essentials/index.html +16 -0
- package/template/javascript/essentials/jsconfig.json +19 -0
- package/template/javascript/essentials/package.json +28 -0
- package/template/javascript/essentials/public/favicon.ico +0 -0
- package/template/javascript/essentials/src/App.vue +7 -0
- package/template/javascript/essentials/src/assets/logo.png +0 -0
- package/template/javascript/essentials/src/assets/logo.svg +6 -0
- package/template/javascript/essentials/src/components/HelloWorld.vue +79 -0
- package/template/javascript/essentials/src/layouts/default/AppBar.vue +13 -0
- package/template/javascript/essentials/src/layouts/default/Default.vue +12 -0
- package/template/javascript/essentials/src/layouts/default/View.vue +9 -0
- package/template/javascript/essentials/src/main.js +27 -0
- package/template/javascript/essentials/src/plugins/index.js +11 -0
- package/template/javascript/essentials/src/plugins/vuetify.js +26 -0
- package/template/javascript/essentials/src/plugins/webfontloader.js +15 -0
- package/template/javascript/essentials/src/router/index.js +26 -0
- package/template/javascript/essentials/src/store/app.js +8 -0
- package/template/javascript/essentials/src/store/index.js +4 -0
- package/template/javascript/essentials/src/styles/settings.scss +10 -0
- package/template/javascript/essentials/src/views/Home.vue +7 -0
- package/template/javascript/essentials/vite.config.js +39 -0
- package/template/typescript/base/README.md +57 -0
- package/template/typescript/base/_browserslistrc +4 -0
- package/template/typescript/base/_editorconfig +5 -0
- package/template/typescript/base/_eslintrc.js +14 -0
- package/template/typescript/base/_gitignore +22 -0
- package/template/typescript/base/env.d.ts +1 -0
- package/template/typescript/base/index.html +16 -0
- package/template/typescript/base/package.json +29 -0
- package/template/typescript/base/public/favicon.ico +0 -0
- package/template/typescript/base/src/App.vue +7 -0
- package/template/typescript/base/src/assets/logo.png +0 -0
- package/template/typescript/base/src/assets/logo.svg +6 -0
- package/template/typescript/base/src/components/HelloWorld.vue +79 -0
- package/template/typescript/base/src/layouts/default/AppBar.vue +13 -0
- package/template/typescript/base/src/layouts/default/Default.vue +12 -0
- package/template/typescript/base/src/layouts/default/View.vue +9 -0
- package/template/typescript/base/src/main.ts +25 -0
- package/template/typescript/base/src/plugins/index.ts +11 -0
- package/template/typescript/base/src/plugins/vuetify.ts +26 -0
- package/template/typescript/base/src/plugins/webfontloader.ts +15 -0
- package/template/typescript/base/src/router/index.ts +26 -0
- package/template/typescript/base/src/styles/settings.scss +10 -0
- package/template/typescript/base/src/views/Home.vue +7 -0
- package/template/typescript/base/tsconfig.json +28 -0
- package/template/typescript/base/vite.config.ts +39 -0
- package/template/typescript/default/README.md +44 -0
- package/template/typescript/default/_browserslistrc +4 -0
- package/template/typescript/default/_editorconfig +5 -0
- package/template/typescript/default/_gitignore +23 -0
- package/template/typescript/default/env.d.ts +1 -0
- package/template/typescript/default/index.html +16 -0
- package/template/typescript/default/package.json +22 -0
- package/template/typescript/default/public/favicon.ico +0 -0
- package/template/typescript/default/src/App.vue +11 -0
- package/template/typescript/default/src/assets/logo.png +0 -0
- package/template/typescript/default/src/assets/logo.svg +6 -0
- package/template/typescript/default/src/components/HelloWorld.vue +79 -0
- package/template/typescript/default/src/main.ts +23 -0
- package/template/typescript/default/src/plugins/index.ts +12 -0
- package/template/typescript/default/src/plugins/vuetify.ts +26 -0
- package/template/typescript/default/src/plugins/webfontloader.ts +15 -0
- package/template/typescript/default/tsconfig.json +28 -0
- package/template/typescript/default/vite.config.ts +36 -0
- package/template/typescript/essentials/README.md +57 -0
- package/template/typescript/essentials/_browserslistrc +4 -0
- package/template/typescript/essentials/_editorconfig +5 -0
- package/template/typescript/essentials/_eslintrc.js +14 -0
- package/template/typescript/essentials/_gitignore +22 -0
- package/template/typescript/essentials/env.d.ts +1 -0
- package/template/typescript/essentials/index.html +16 -0
- package/template/typescript/essentials/package.json +31 -0
- package/template/typescript/essentials/public/favicon.ico +0 -0
- package/template/typescript/essentials/src/App.vue +7 -0
- package/template/typescript/essentials/src/assets/logo.png +0 -0
- package/template/typescript/essentials/src/assets/logo.svg +6 -0
- package/template/typescript/essentials/src/components/HelloWorld.vue +79 -0
- package/template/typescript/essentials/src/layouts/default/AppBar.vue +13 -0
- package/template/typescript/essentials/src/layouts/default/Default.vue +12 -0
- package/template/typescript/essentials/src/layouts/default/View.vue +9 -0
- package/template/typescript/essentials/src/main.ts +27 -0
- package/template/typescript/essentials/src/plugins/index.ts +11 -0
- package/template/typescript/essentials/src/plugins/vuetify.ts +26 -0
- package/template/typescript/essentials/src/plugins/webfontloader.ts +15 -0
- package/template/typescript/essentials/src/router/index.ts +26 -0
- package/template/typescript/essentials/src/store/app.ts +8 -0
- package/template/typescript/essentials/src/store/index.ts +4 -0
- package/template/typescript/essentials/src/styles/settings.scss +10 -0
- package/template/typescript/essentials/src/views/Home.vue +7 -0
- package/template/typescript/essentials/tsconfig.json +28 -0
- package/template/typescript/essentials/vite.config.ts +39 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Plugins
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import vuetify from 'vite-plugin-vuetify'
|
|
4
|
+
|
|
5
|
+
// Utilities
|
|
6
|
+
import { defineConfig } from 'vite'
|
|
7
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
8
|
+
|
|
9
|
+
// https://vitejs.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [
|
|
12
|
+
vue(),
|
|
13
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
|
14
|
+
vuetify({
|
|
15
|
+
autoImport: true,
|
|
16
|
+
styles: {
|
|
17
|
+
configFile: 'src/styles/settings.scss',
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
20
|
+
],
|
|
21
|
+
define: { 'process.env': {} },
|
|
22
|
+
resolve: {
|
|
23
|
+
alias: {
|
|
24
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
25
|
+
},
|
|
26
|
+
extensions: [
|
|
27
|
+
'.js',
|
|
28
|
+
'.json',
|
|
29
|
+
'.jsx',
|
|
30
|
+
'.mjs',
|
|
31
|
+
'.ts',
|
|
32
|
+
'.tsx',
|
|
33
|
+
'.vue',
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
server: {
|
|
37
|
+
port: 3000,
|
|
38
|
+
},
|
|
39
|
+
})
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
|
|
16
|
+
### Compiles and hot-reloads for development
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
# yarn
|
|
20
|
+
yarn dev
|
|
21
|
+
|
|
22
|
+
# npm
|
|
23
|
+
npm run dev
|
|
24
|
+
|
|
25
|
+
# pnpm
|
|
26
|
+
pnpm dev
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Compiles and minifies for production
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
# yarn
|
|
33
|
+
yarn build
|
|
34
|
+
|
|
35
|
+
# npm
|
|
36
|
+
npm run build
|
|
37
|
+
|
|
38
|
+
# pnpm
|
|
39
|
+
pnpm build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Lints and fixes files
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
# yarn
|
|
46
|
+
yarn lint
|
|
47
|
+
|
|
48
|
+
# npm
|
|
49
|
+
npm run lint
|
|
50
|
+
|
|
51
|
+
# pnpm
|
|
52
|
+
pnpm lint
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Customize configuration
|
|
56
|
+
|
|
57
|
+
See [Configuration Reference](https://vitejs.dev/config/).
|
|
@@ -0,0 +1,22 @@
|
|
|
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?
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,16 @@
|
|
|
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.ts"></script>
|
|
14
|
+
</body>
|
|
15
|
+
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,29 @@
|
|
|
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": "5.9.55",
|
|
12
|
+
"core-js": "^3.8.3",
|
|
13
|
+
"roboto-fontface": "*",
|
|
14
|
+
"vue": "^3.2.13",
|
|
15
|
+
"vue-router": "^4.0.0-0",
|
|
16
|
+
"vuetify": "^3.0.0-beta.0",
|
|
17
|
+
"webfontloader": "^1.0.0"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"@vitejs/plugin-vue": "^3.0.3",
|
|
21
|
+
"@vue/eslint-config-typescript": "^11.0.0",
|
|
22
|
+
"eslint": "^8.22.0",
|
|
23
|
+
"eslint-plugin-vue": "^9.3.0",
|
|
24
|
+
"sass": "^1.55.0",
|
|
25
|
+
"typescript": "^4.0.0",
|
|
26
|
+
"vite-plugin-vuetify": "^1.0.0-alpha.12",
|
|
27
|
+
"vue-tsc": "^1.0.9"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
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>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-container class="fill-height">
|
|
3
|
+
<v-responsive class="d-flex align-center text-center fill-height">
|
|
4
|
+
<v-img
|
|
5
|
+
contain
|
|
6
|
+
height="300"
|
|
7
|
+
src="src/assets/logo.svg"
|
|
8
|
+
/>
|
|
9
|
+
|
|
10
|
+
<div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
|
|
11
|
+
|
|
12
|
+
<h1 class="text-h2 font-weight-bold">Vuetify</h1>
|
|
13
|
+
|
|
14
|
+
<div class="py-14" />
|
|
15
|
+
|
|
16
|
+
<v-row class="d-flex align-center justify-center">
|
|
17
|
+
<v-col cols="auto">
|
|
18
|
+
<v-btn
|
|
19
|
+
href="https://next.vuetifyjs.com/components/all/"
|
|
20
|
+
min-width="164"
|
|
21
|
+
rel="noopener noreferrer"
|
|
22
|
+
target="_blank"
|
|
23
|
+
variant="text"
|
|
24
|
+
>
|
|
25
|
+
<v-icon
|
|
26
|
+
icon="mdi-view-dashboard"
|
|
27
|
+
size="large"
|
|
28
|
+
start
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
Components
|
|
32
|
+
</v-btn>
|
|
33
|
+
</v-col>
|
|
34
|
+
|
|
35
|
+
<v-col cols="auto">
|
|
36
|
+
<v-btn
|
|
37
|
+
color="primary"
|
|
38
|
+
href="https://next.vuetifyjs.com/introduction/why-vuetify/#feature-guides"
|
|
39
|
+
min-width="228"
|
|
40
|
+
rel="noopener noreferrer"
|
|
41
|
+
size="x-large"
|
|
42
|
+
target="_blank"
|
|
43
|
+
variant="flat"
|
|
44
|
+
>
|
|
45
|
+
<v-icon
|
|
46
|
+
icon="mdi-speedometer"
|
|
47
|
+
size="large"
|
|
48
|
+
start
|
|
49
|
+
/>
|
|
50
|
+
|
|
51
|
+
Get Started
|
|
52
|
+
</v-btn>
|
|
53
|
+
</v-col>
|
|
54
|
+
|
|
55
|
+
<v-col cols="auto">
|
|
56
|
+
<v-btn
|
|
57
|
+
href="https://community.vuetifyjs.com/"
|
|
58
|
+
min-width="164"
|
|
59
|
+
rel="noopener noreferrer"
|
|
60
|
+
target="_blank"
|
|
61
|
+
variant="text"
|
|
62
|
+
>
|
|
63
|
+
<v-icon
|
|
64
|
+
icon="mdi-account-group"
|
|
65
|
+
size="large"
|
|
66
|
+
start
|
|
67
|
+
/>
|
|
68
|
+
|
|
69
|
+
Community
|
|
70
|
+
</v-btn>
|
|
71
|
+
</v-col>
|
|
72
|
+
</v-row>
|
|
73
|
+
</v-responsive>
|
|
74
|
+
</v-container>
|
|
75
|
+
</template>
|
|
76
|
+
|
|
77
|
+
<script lang="ts" setup>
|
|
78
|
+
//
|
|
79
|
+
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* main.ts
|
|
3
|
+
*
|
|
4
|
+
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Components
|
|
8
|
+
import App from './App.vue'
|
|
9
|
+
|
|
10
|
+
// Composables
|
|
11
|
+
import { createApp } from 'vue'
|
|
12
|
+
|
|
13
|
+
// Plugins
|
|
14
|
+
import { registerPlugins } from '@/plugins'
|
|
15
|
+
import vuetify from './plugins/vuetify'
|
|
16
|
+
import router from './router'
|
|
17
|
+
|
|
18
|
+
const app = createApp(App)
|
|
19
|
+
|
|
20
|
+
registerPlugins(app)
|
|
21
|
+
|
|
22
|
+
app
|
|
23
|
+
.use(vuetify)
|
|
24
|
+
.use(router)
|
|
25
|
+
.mount('#app')
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plugins/vuetify.ts
|
|
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
|
+
})
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plugins/webfontloader.ts
|
|
3
|
+
*
|
|
4
|
+
* webfontloader documentation: https://github.com/typekit/webfontloader
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export async function loadFonts () {
|
|
8
|
+
const webFontLoader = await import(/* webpackChunkName: "webfontloader" */'webfontloader')
|
|
9
|
+
|
|
10
|
+
webFontLoader.load({
|
|
11
|
+
google: {
|
|
12
|
+
families: ['Roboto:100,300,400,500,700,900&display=swap'],
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 (about.[hash].js) for this route
|
|
14
|
+
// which is lazy-loaded when the route is visited.
|
|
15
|
+
component: () => import(/* webpackChunkName: "home" */ '@/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
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"allowSyntheticDefaultImports": true,
|
|
7
|
+
"composite": true,
|
|
8
|
+
"module": "esnext",
|
|
9
|
+
"moduleResolution": "node",
|
|
10
|
+
"strict": true,
|
|
11
|
+
"jsx": "preserve",
|
|
12
|
+
"sourceMap": false,
|
|
13
|
+
"resolveJsonModule": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"lib": ["esnext", "dom"],
|
|
16
|
+
"types": ["vuetify"],
|
|
17
|
+
"paths": {
|
|
18
|
+
"@/*": ["src/*"]
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
"include": [
|
|
22
|
+
"src/**/*.ts",
|
|
23
|
+
"src/**/*.d.ts",
|
|
24
|
+
"src/**/*.tsx",
|
|
25
|
+
"src/**/*.vue",
|
|
26
|
+
"vite.config.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Plugins
|
|
2
|
+
import vue from '@vitejs/plugin-vue'
|
|
3
|
+
import vuetify from 'vite-plugin-vuetify'
|
|
4
|
+
|
|
5
|
+
// Utilities
|
|
6
|
+
import { defineConfig } from 'vite'
|
|
7
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
8
|
+
|
|
9
|
+
// https://vitejs.dev/config/
|
|
10
|
+
export default defineConfig({
|
|
11
|
+
plugins: [
|
|
12
|
+
vue(),
|
|
13
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
|
14
|
+
vuetify({
|
|
15
|
+
autoImport: true,
|
|
16
|
+
styles: {
|
|
17
|
+
configFile: 'src/styles/settings.scss',
|
|
18
|
+
},
|
|
19
|
+
}),
|
|
20
|
+
],
|
|
21
|
+
define: { 'process.env': {} },
|
|
22
|
+
resolve: {
|
|
23
|
+
alias: {
|
|
24
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
25
|
+
},
|
|
26
|
+
extensions: [
|
|
27
|
+
'.js',
|
|
28
|
+
'.json',
|
|
29
|
+
'.jsx',
|
|
30
|
+
'.mjs',
|
|
31
|
+
'.ts',
|
|
32
|
+
'.tsx',
|
|
33
|
+
'.vue',
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
server: {
|
|
37
|
+
port: 3000,
|
|
38
|
+
},
|
|
39
|
+
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# default
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
# yarn
|
|
7
|
+
yarn
|
|
8
|
+
|
|
9
|
+
# npm
|
|
10
|
+
npm install
|
|
11
|
+
|
|
12
|
+
# pnpm
|
|
13
|
+
pnpm install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Compiles and hot-reloads for development
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
# yarn
|
|
20
|
+
yarn dev
|
|
21
|
+
|
|
22
|
+
# npm
|
|
23
|
+
npm run dev
|
|
24
|
+
|
|
25
|
+
# pnpm
|
|
26
|
+
pnpm dev
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Compiles and minifies for production
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
# yarn
|
|
33
|
+
yarn build
|
|
34
|
+
|
|
35
|
+
# npm
|
|
36
|
+
npm run build
|
|
37
|
+
|
|
38
|
+
# pnpm
|
|
39
|
+
pnpm build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Customize configuration
|
|
43
|
+
|
|
44
|
+
See [Configuration Reference](https://vitejs.dev/config/).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.DS_Store
|
|
2
|
+
node_modules
|
|
3
|
+
/dist
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
# local env files
|
|
7
|
+
.env.local
|
|
8
|
+
.env.*.local
|
|
9
|
+
|
|
10
|
+
# Log files
|
|
11
|
+
npm-debug.log*
|
|
12
|
+
yarn-debug.log*
|
|
13
|
+
yarn-error.log*
|
|
14
|
+
pnpm-debug.log*
|
|
15
|
+
|
|
16
|
+
# Editor directories and files
|
|
17
|
+
.idea
|
|
18
|
+
.vscode
|
|
19
|
+
*.suo
|
|
20
|
+
*.ntvs*
|
|
21
|
+
*.njsproj
|
|
22
|
+
*.sln
|
|
23
|
+
*.sw?
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,16 @@
|
|
|
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>Vuetify 3</title>
|
|
9
|
+
</head>
|
|
10
|
+
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
<script type="module" src="/src/main.ts"></script>
|
|
14
|
+
</body>
|
|
15
|
+
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.0.0",
|
|
3
|
+
"scripts": {
|
|
4
|
+
"dev": "vite",
|
|
5
|
+
"build": "vue-tsc --noEmit && vite build",
|
|
6
|
+
"preview": "vite preview"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@mdi/font": "5.9.55",
|
|
10
|
+
"roboto-fontface": "*",
|
|
11
|
+
"vue": "^3.2.38",
|
|
12
|
+
"vuetify": "^3.0.0-beta.0",
|
|
13
|
+
"webfontloader": "^1.0.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@vitejs/plugin-vue": "^3.0.3",
|
|
17
|
+
"typescript": "^4.0.0",
|
|
18
|
+
"vite": "^3.0.9",
|
|
19
|
+
"vite-plugin-vuetify": "^1.0.0-alpha.12",
|
|
20
|
+
"vue-tsc": "^1.0.9"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
Binary file
|