Skip to content

Commit 709b778

Browse files
committed
feat: update to vue3 - template
1 parent 87cd8b6 commit 709b778

20 files changed

+2001
-356
lines changed

.eslintrc-auto-import.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"globals": {
3+
"EffectScope": true,
4+
"computed": true,
5+
"createApp": true,
6+
"customRef": true,
7+
"defineAsyncComponent": true,
8+
"defineComponent": true,
9+
"effectScope": true,
10+
"getCurrentInstance": true,
11+
"getCurrentScope": true,
12+
"h": true,
13+
"inject": true,
14+
"isProxy": true,
15+
"isReactive": true,
16+
"isReadonly": true,
17+
"isRef": true,
18+
"markRaw": true,
19+
"nextTick": true,
20+
"onActivated": true,
21+
"onBeforeMount": true,
22+
"onBeforeUnmount": true,
23+
"onBeforeUpdate": true,
24+
"onDeactivated": true,
25+
"onErrorCaptured": true,
26+
"onMounted": true,
27+
"onRenderTracked": true,
28+
"onRenderTriggered": true,
29+
"onScopeDispose": true,
30+
"onServerPrefetch": true,
31+
"onUnmounted": true,
32+
"onUpdated": true,
33+
"provide": true,
34+
"reactive": true,
35+
"readonly": true,
36+
"ref": true,
37+
"resolveComponent": true,
38+
"resolveDirective": true,
39+
"shallowReactive": true,
40+
"shallowReadonly": true,
41+
"shallowRef": true,
42+
"toRaw": true,
43+
"toRef": true,
44+
"toRefs": true,
45+
"triggerRef": true,
46+
"unref": true,
47+
"useAttrs": true,
48+
"useCssModule": true,
49+
"useCssVars": true,
50+
"useSlots": true,
51+
"useTheme": true,
52+
"watch": true,
53+
"watchEffect": true,
54+
"watchPostEffect": true,
55+
"watchSyncEffect": true
56+
}
57+
}

auto-imports.d.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// Generated by 'unplugin-auto-import'
2+
export {}
3+
declare global {
4+
const EffectScope: typeof import('vue')['EffectScope']
5+
const computed: typeof import('vue')['computed']
6+
const createApp: typeof import('vue')['createApp']
7+
const customRef: typeof import('vue')['customRef']
8+
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
9+
const defineComponent: typeof import('vue')['defineComponent']
10+
const effectScope: typeof import('vue')['effectScope']
11+
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
12+
const getCurrentScope: typeof import('vue')['getCurrentScope']
13+
const h: typeof import('vue')['h']
14+
const inject: typeof import('vue')['inject']
15+
const isProxy: typeof import('vue')['isProxy']
16+
const isReactive: typeof import('vue')['isReactive']
17+
const isReadonly: typeof import('vue')['isReadonly']
18+
const isRef: typeof import('vue')['isRef']
19+
const markRaw: typeof import('vue')['markRaw']
20+
const nextTick: typeof import('vue')['nextTick']
21+
const onActivated: typeof import('vue')['onActivated']
22+
const onBeforeMount: typeof import('vue')['onBeforeMount']
23+
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
24+
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
25+
const onDeactivated: typeof import('vue')['onDeactivated']
26+
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
27+
const onMounted: typeof import('vue')['onMounted']
28+
const onRenderTracked: typeof import('vue')['onRenderTracked']
29+
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
30+
const onScopeDispose: typeof import('vue')['onScopeDispose']
31+
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
32+
const onUnmounted: typeof import('vue')['onUnmounted']
33+
const onUpdated: typeof import('vue')['onUpdated']
34+
const provide: typeof import('vue')['provide']
35+
const reactive: typeof import('vue')['reactive']
36+
const readonly: typeof import('vue')['readonly']
37+
const ref: typeof import('vue')['ref']
38+
const resolveComponent: typeof import('vue')['resolveComponent']
39+
const resolveDirective: typeof import('vue')['resolveDirective']
40+
const shallowReactive: typeof import('vue')['shallowReactive']
41+
const shallowReadonly: typeof import('vue')['shallowReadonly']
42+
const shallowRef: typeof import('vue')['shallowRef']
43+
const toRaw: typeof import('vue')['toRaw']
44+
const toRef: typeof import('vue')['toRef']
45+
const toRefs: typeof import('vue')['toRefs']
46+
const triggerRef: typeof import('vue')['triggerRef']
47+
const unref: typeof import('vue')['unref']
48+
const useAttrs: typeof import('vue')['useAttrs']
49+
const useCssModule: typeof import('vue')['useCssModule']
50+
const useCssVars: typeof import('vue')['useCssVars']
51+
const useSlots: typeof import('vue')['useSlots']
52+
const useTheme: typeof import('./src/composables/useTheme')['useTheme']
53+
const watch: typeof import('vue')['watch']
54+
const watchEffect: typeof import('vue')['watchEffect']
55+
const watchPostEffect: typeof import('vue')['watchPostEffect']
56+
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
57+
}

index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
4+
<meta charset="UTF-8">
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Vite + Vue + TS</title>
6+
<title>Vue.js starter template</title>
87
</head>
98
<body>
109
<div id="app"></div>
11-
<script type="module" src="/src/main.ts"></script>
10+
<script type="module" src="/src/main.js"></script>
1211
</body>
13-
</html>
12+
</html>

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414
"vue": "^3.5.17"
1515
},
1616
"devDependencies": {
17-
"@tailwindcss/postcss": "^4.1.11",
1817
"@vitejs/plugin-vue": "^6.0.0",
1918
"@vue/tsconfig": "^0.7.0",
2019
"autoprefixer": "^10.4.21",
2120
"postcss": "^8.5.6",
22-
"tailwindcss": "^4.1.11",
21+
"tailwindcss": "^3.4.1",
2322
"typescript": "~5.8.3",
23+
"unplugin-auto-import": "^0.13.0",
2424
"vite": "^7.0.0",
25+
"vite-svg-loader": "^5.1.0",
2526
"vue-tsc": "^2.2.10"
2627
},
2728
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac"

0 commit comments

Comments
 (0)