@yyp92-cli/template-vue-mobile 1.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.
- package/CHANGELOG.md +7 -0
- package/package.json +15 -0
- package/template/.env.development +5 -0
- package/template/.env.production +5 -0
- package/template/.env.test +5 -0
- package/template/README.md +5 -0
- package/template/auto-imports.d.ts +10 -0
- package/template/components.d.ts +28 -0
- package/template/index.html +16 -0
- package/template/package.json +35 -0
- package/template/pnpm-lock.yaml +2007 -0
- package/template/public/vite.svg +1 -0
- package/template/src/App.vue +24 -0
- package/template/src/assets/vue.svg +1 -0
- package/template/src/components/layout/index.vue +68 -0
- package/template/src/components/layout/navBar/index.vue +35 -0
- package/template/src/components/layout/tabBar/index.vue +47 -0
- package/template/src/global/constants.ts +4 -0
- package/template/src/main.ts +12 -0
- package/template/src/router/index.ts +38 -0
- package/template/src/router/routes.tsx +83 -0
- package/template/src/service/api.ts +7 -0
- package/template/src/service/config.ts +9 -0
- package/template/src/service/index.ts +1 -0
- package/template/src/service/request/index.ts +270 -0
- package/template/src/service/request/type.ts +5 -0
- package/template/src/service/service.ts +27 -0
- package/template/src/store/index.ts +14 -0
- package/template/src/store/login/index.ts +67 -0
- package/template/src/styles/global.scss +32 -0
- package/template/src/styles/index.scss +4 -0
- package/template/src/styles/reset.scss +17 -0
- package/template/src/theme/darkTheme.scss +51 -0
- package/template/src/theme/lightTheme.scss +53 -0
- package/template/src/utils/cache.ts +44 -0
- package/template/src/utils/download.ts +27 -0
- package/template/src/utils/format.ts +10 -0
- package/template/src/utils/index.ts +22 -0
- package/template/src/views/403/index.vue +23 -0
- package/template/src/views/404/index.vue +34 -0
- package/template/src/views/detail/index.vue +19 -0
- package/template/src/views/home/index.vue +19 -0
- package/template/src/views/login/index.vue +81 -0
- package/template/src/views/message/index.vue +19 -0
- package/template/src/views/mine/index.vue +19 -0
- package/template/src/views/todo/index.vue +19 -0
- package/template/src/vite-env.d.ts +4 -0
- package/template/tsconfig.app.json +24 -0
- package/template/tsconfig.json +7 -0
- package/template/tsconfig.node.json +25 -0
- package/template/vite.config.ts +59 -0
package/CHANGELOG.md
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yyp92-cli/template-vue-mobile",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"main": "index.js",
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"description": "",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Vue 3 + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
|
|
4
|
+
|
|
5
|
+
Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
// Generated by unplugin-vue-components
|
|
4
|
+
// Read more: https://github.com/vuejs/core/pull/3399
|
|
5
|
+
// biome-ignore lint: disable
|
|
6
|
+
export {}
|
|
7
|
+
|
|
8
|
+
/* prettier-ignore */
|
|
9
|
+
declare module 'vue' {
|
|
10
|
+
export interface GlobalComponents {
|
|
11
|
+
403: typeof import('./src/components/403/index.vue')['default']
|
|
12
|
+
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
|
|
13
|
+
Layout: typeof import('./src/components/layout/index.vue')['default']
|
|
14
|
+
NavBar: typeof import('./src/components/layout/navBar/index.vue')['default']
|
|
15
|
+
RouterLink: typeof import('vue-router')['RouterLink']
|
|
16
|
+
RouterView: typeof import('vue-router')['RouterView']
|
|
17
|
+
TabBar: typeof import('./src/components/layout/tabBar/index.vue')['default']
|
|
18
|
+
VanButton: typeof import('vant/es')['Button']
|
|
19
|
+
VanCellGroup: typeof import('vant/es')['CellGroup']
|
|
20
|
+
VanEmpty: typeof import('vant/es')['Empty']
|
|
21
|
+
VanField: typeof import('vant/es')['Field']
|
|
22
|
+
VanForm: typeof import('vant/es')['Form']
|
|
23
|
+
VanHighlight: typeof import('vant/es')['Highlight']
|
|
24
|
+
VanNavBar: typeof import('vant/es')['NavBar']
|
|
25
|
+
VanTabbar: typeof import('vant/es')['Tabbar']
|
|
26
|
+
VanTabbarItem: typeof import('vant/es')['TabbarItem']
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta
|
|
7
|
+
name="viewport"
|
|
8
|
+
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
|
|
9
|
+
/>
|
|
10
|
+
<title>vite-vue3-mobile-template</title>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="app"></div>
|
|
14
|
+
<script type="module" src="/src/main.ts"></script>
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vite-vue3-mobile-template",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vue-tsc -b && vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"axios": "^1.11.0",
|
|
13
|
+
"dayjs": "^1.11.18",
|
|
14
|
+
"lodash-es": "^4.17.21",
|
|
15
|
+
"pinia": "^3.0.3",
|
|
16
|
+
"vant": "^4.9.21",
|
|
17
|
+
"vue": "^3.5.18",
|
|
18
|
+
"vue-hooks-plus": "^2.4.1",
|
|
19
|
+
"vue-router": "^4.5.1"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/node": "^24.3.1",
|
|
23
|
+
"@vant/auto-import-resolver": "^1.3.0",
|
|
24
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
25
|
+
"@vue/tsconfig": "^0.7.0",
|
|
26
|
+
"autoprefixer": "^10.4.21",
|
|
27
|
+
"postcss-px-to-viewport": "^1.1.1",
|
|
28
|
+
"sass": "^1.92.1",
|
|
29
|
+
"typescript": "~5.8.3",
|
|
30
|
+
"unplugin-auto-import": "^20.1.0",
|
|
31
|
+
"unplugin-vue-components": "^29.0.0",
|
|
32
|
+
"vite": "^7.1.2",
|
|
33
|
+
"vue-tsc": "^3.0.5"
|
|
34
|
+
}
|
|
35
|
+
}
|