Skip to content

Commit 170af51

Browse files
committed
Merge commit '259063b2721d3cc1e820fa1f01864f49539d04a0' into main
* commit '259063b2721d3cc1e820fa1f01864f49539d04a0': (30 commits) feat: Add documentation cell feat: remove screen adaptation prompt feat: Improve the prompt for screen adaptation in night mode feat: add screen adaptation prompt chore: release v3.4.0 feat: Support JSON5 (easy-temps#136) chore: Update all deps chore: release v3.3.1 chore: Apply lint chore: Update vite deps optimization config chore: Update to vite 6 chore: pin typescript - vuejs/language-tools#5018 chore: Update all deps perf: control the nested display of related files for vscode (easy-temps#135) chore: release v3.3.0 refactor: combine vant i18n setup (easy-temps#133) feat: Lazy loading the localization files chore: release v3.2.1 chore: Update editorconfig fix: Add `route.name` null check (easy-temps#132) ...
2 parents 85246b2 + 259063b commit 170af51

File tree

34 files changed

+3320
-3276
lines changed

34 files changed

+3320
-3276
lines changed

.editorconfig

Lines changed: 5 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,9 @@
1+
root=true
2+
13
[*]
24
charset=utf-8
3-
end_of_line=lf
4-
insert_final_newline=false
5-
indent_style=space
6-
indent_size=2
7-
8-
[{*.ng,*.sht,*.html,*.shtm,*.shtml,*.htm}]
9-
indent_style=space
10-
indent_size=2
11-
12-
[{*.jhm,*.xslt,*.xul,*.rng,*.xsl,*.xsd,*.ant,*.tld,*.fxml,*.jrxml,*.xml,*.jnlp,*.wsdl}]
13-
indent_style=space
14-
indent_size=2
15-
16-
[{.babelrc,.stylelintrc,jest.config,.eslintrc,.prettierrc,*.json,*.jsb3,*.jsb2,*.bowerrc}]
17-
indent_style=space
18-
indent_size=2
19-
20-
[*.svg]
21-
indent_style=space
22-
indent_size=2
23-
24-
[*.js.map]
25-
indent_style=space
26-
indent_size=2
27-
28-
[*.less]
29-
indent_style=space
30-
indent_size=2
31-
32-
[{*.vue,*.ts,*.tsx}]
33-
indent_style=space
34-
indent_size=2
35-
36-
[{.analysis_options,*.yml,*.yaml}]
375
indent_style=space
386
indent_size=2
7+
end_of_line=lf
8+
insert_final_newline=true
9+
trim_trailing_whitespace=true

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
VITE_APP_PUBLIC_PATH=/
22
VITE_APP_PREVIEW=true
3-
VITE_APP_API_BASE_URL=/api
3+
VITE_APP_API_BASE_URL=/api
4+
VITE_APP_OUT_DIR=dist

.vscode/extensions.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"Vue.volar",
44
"antfu.unocss",
55
"antfu.goto-alias",
6+
"antfu.iconify",
7+
"antfu.file-nesting",
68
"lokalise.i18n-ally",
7-
"antfu.iconify"
9+
"blueglassblock.better-json5",
10+
"dbaeumer.vscode-eslint"
811
]
912
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"html",
3434
"markdown",
3535
"json",
36+
"json5",
3637
"jsonc",
3738
"yaml",
3839
"toml",

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ An mobile web apps template based on the Vue 3 ecosystem.
2020

2121
[文档](https://easy-temps.github.io/easy-docs/vue3-vant-mobile/) / [交流](https://github.com/easy-temps/vue3-vant-mobile/issues/56) / [反馈](https://github.com/easy-temps/vue3-vant-mobile/issues)
2222

23-
<a href="https://vue3-vant-mobile.netlify.app">Live Demo</a>
23+
<a href="https://vue3-vant-mobile.netlify.app">🖥 Live Demo</a>
2424

2525
[![Netlify Status](https://api.netlify.com/api/v1/badges/e6828bd2-2904-4c3e-a67c-b97d32aa1275/deploy-status)](https://app.netlify.com/sites/vue3-vant-mobile/deploys)
2626

@@ -114,11 +114,14 @@ An mobile web apps template based on the Vue 3 ecosystem.
114114
- [pnpm](https://pnpm.js.org/) - fast, disk space efficient package manager
115115
- [Netlify](https://www.netlify.com/) - zero-config deployment
116116
- [VS Code Extensions](./.vscode/extensions.json)
117-
- [Vite](https://marketplace.visualstudio.com/items?itemName=antfu.vite) - Fire up Vite server automatically
118117
- [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - Vue 3 `<script setup>` IDE support
118+
- [Unocss](https://marketplace.visualstudio.com/items?itemName=antfu.unocss) - UnoCSS for VS Code
119+
- [Goto Alias](https://marketplace.visualstudio.com/items?itemName=antfu.goto-alias) - Go to Definition following alias redirections
119120
- [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify) - Icon inline display and autocomplete
121+
- [File Nesting](https://marketplace.visualstudio.com/items?itemName=antfu.file-nesting) - Config of File Nesting for VS Code
120122
- [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally) - All in one i18n support
121-
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
123+
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - Eslint support
124+
- [Better JSON5](https://marketplace.visualstudio.com/items?itemName=blueglassblock.better-json5) - JSON5 support
122125

123126
## Try it now
124127

README.zh-CN.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ An mobile web apps template based on the Vue 3 ecosystem.
2020

2121
[文档](https://easy-temps.github.io/easy-docs/vue3-vant-mobile/) / [交流](https://github.com/easy-temps/vue3-vant-mobile/issues/56) / [反馈](https://github.com/easy-temps/vue3-vant-mobile/issues)
2222

23-
<a href="https://vue3-vant-mobile.netlify.app">在线 Demo</a>
23+
<a href="https://vue3-vant-mobile.netlify.app">🖥 在线 Demo</a>
2424

2525
[![Netlify Status](https://api.netlify.com/api/v1/badges/e6828bd2-2904-4c3e-a67c-b97d32aa1275/deploy-status)](https://app.netlify.com/sites/vue3-vant-mobile/deploys)
2626

@@ -114,11 +114,14 @@ An mobile web apps template based on the Vue 3 ecosystem.
114114
- [pnpm](https://pnpm.js.org/) - 快, 节省磁盘空间的包管理器
115115
- [Netlify](https://www.netlify.com/) - 零配置的部署
116116
- [VS Code Extensions](./.vscode/extensions.json)
117-
- [Vite](https://marketplace.visualstudio.com/items?itemName=antfu.vite) - 自动启动 Vite 服务器
118117
- [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) - Vue 3 `<script setup>` IDE 支持
118+
- [Unocss](https://marketplace.visualstudio.com/items?itemName=antfu.unocss) - Unocss 智能提示
119+
- [Goto Alias](https://marketplace.visualstudio.com/items?itemName=antfu.goto-alias) - 跳转到定义
119120
- [Iconify IntelliSense](https://marketplace.visualstudio.com/items?itemName=antfu.iconify) - 图标内联显示和自动补全
121+
- [File Nesting](https://marketplace.visualstudio.com/items?itemName=antfu.file-nesting) - 文件嵌套
120122
- [i18n Ally](https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally) - 多合一的 I18n 支持
121-
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)
123+
- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) - ESLint 支持
124+
- [Better JSON5](https://marketplace.visualstudio.com/items?itemName=blueglassblock.better-json5) - JSON5 支持
122125

123126
## 现在可以试试
124127

build/vite/index.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { dirname, resolve } from 'node:path'
22
import { fileURLToPath } from 'node:url'
3+
import process from 'node:process'
34
import { unheadVueComposablesImports } from '@unhead/vue'
45
import legacy from '@vitejs/plugin-legacy'
56
import vue from '@vitejs/plugin-vue'
@@ -15,8 +16,11 @@ import Sitemap from 'vite-plugin-sitemap'
1516
import VueDevTools from 'vite-plugin-vue-devtools'
1617
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
1718
import { createViteVConsole } from './vconsole'
19+
import { loadEnv } from 'vite'
20+
21+
export function createVitePlugins(mode: string) {
22+
const env = loadEnv(mode, process.cwd())
1823

19-
export function createVitePlugins() {
2024
return [
2125
// https://github.com/posva/unplugin-vue-router
2226
VueRouter({
@@ -28,7 +32,9 @@ export function createVitePlugins() {
2832
vue(),
2933

3034
// https://github.com/jbaubree/vite-plugin-sitemap
31-
Sitemap(),
35+
Sitemap({
36+
outDir: env.VITE_APP_OUT_DIR || 'dist',
37+
}),
3238

3339
// https://github.com/pengzhanbo/vite-plugin-mock-dev-server
3440
mockDevServerPlugin(),

build/vite/optimize.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const include = [
33
'echarts',
44
'lodash-es',
55
'resize-detector',
6+
'vant/es',
67
'vant/es/cell-group/style/index',
78
'vant/es/popup/style/index',
89
'vant/es/picker/style/index',
@@ -17,6 +18,13 @@ const include = [
1718
'vant/es/form/style/index',
1819
'vant/es/field/style/index',
1920
'vant/es/notify/style/index',
21+
'vant/es/config-provider/style/index',
22+
'vant/es/nav-bar/style/index',
23+
'vant/es/tabbar/style/index',
24+
'vant/es/tabbar-item/style/index',
25+
'unplugin-vue-router/runtime',
26+
'unplugin-vue-router/data-loaders',
27+
'unplugin-vue-router/data-loaders/basic',
2028
]
2129

2230
const exclude = [

package.json

Lines changed: 44 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "vue3-vant-mobile",
33
"type": "module",
4-
"version": "3.0.0",
5-
"packageManager": "pnpm@9.10.0",
6-
"description": "Vue + Vite H5 Starter Template",
4+
"version": "3.4.0",
5+
"packageManager": "pnpm@9.15.0",
6+
"description": "An mobile web apps template based on the Vue 3 ecosystem",
77
"license": "MIT",
88
"scripts": {
99
"dev": "cross-env MOCK_SERVER_PORT=8086 vite",
@@ -14,81 +14,73 @@
1414
"lint:fix": "eslint . --fix",
1515
"test": "vitest",
1616
"release": "bumpp --commit --push --tag",
17-
"prepare": "husky"
17+
"prepare": "husky",
18+
"typecheck": "vue-tsc --noEmit"
1819
},
1920
"dependencies": {
20-
"@unhead/vue": "^1.11.6",
21+
"@unhead/vue": "^1.11.13",
2122
"@vant/touch-emulator": "^1.4.0",
2223
"@vant/use": "^1.6.0",
23-
"@vueuse/core": "^11.1.0",
24-
"axios": "^1.7.7",
24+
"@vueuse/core": "^12.0.0",
25+
"axios": "^1.7.9",
2526
"echarts": "^5.5.1",
2627
"lodash-es": "^4.17.21",
2728
"nprogress": "^0.2.0",
28-
"pinia": "^2.2.2",
29-
"pinia-plugin-persistedstate": "^4.0.2",
29+
"pinia": "^2.3.0",
30+
"pinia-plugin-persistedstate": "^4.1.3",
3031
"resize-detector": "^0.3.0",
31-
"vant": "^4.9.6",
32+
"vant": "^4.9.10",
3233
"vconsole": "^3.15.1",
33-
"vue": "^3.5.6",
34-
"vue-i18n": "^10.0.1",
35-
"vue-router": "^4.4.5"
34+
"vue": "^3.5.13",
35+
"vue-i18n": "^10.0.5",
36+
"vue-router": "^4.5.0"
3637
},
3738
"devDependencies": {
38-
"@antfu/eslint-config": "3.6.2",
39-
"@iconify-json/carbon": "^1.2.1",
40-
"@intlify/unplugin-vue-i18n": "^5.0.0",
39+
"@antfu/eslint-config": "3.11.2",
40+
"@iconify-json/carbon": "^1.2.4",
41+
"@intlify/unplugin-vue-i18n": "^6.0.1",
4142
"@types/lodash-es": "^4.17.12",
42-
"@types/node": "^22.5.5",
43+
"@types/node": "^22.10.1",
4344
"@types/nprogress": "^0.2.3",
44-
"@unocss/eslint-plugin": "0.62.4",
45-
"@unocss/preset-rem-to-px": "0.62.4",
45+
"@unocss/eslint-plugin": "0.65.1",
46+
"@unocss/preset-rem-to-px": "0.65.1",
4647
"@vant/auto-import-resolver": "^1.2.1",
47-
"@vitejs/plugin-legacy": "^5.4.2",
48-
"@vitejs/plugin-vue": "^5.1.4",
48+
"@vitejs/plugin-legacy": "^6.0.0",
49+
"@vitejs/plugin-vue": "^5.2.1",
4950
"autoprefixer": "^10.4.20",
50-
"bumpp": "^9.5.2",
51+
"bumpp": "^9.9.0",
5152
"consola": "^3.2.3",
5253
"cross-env": "^7.0.3",
53-
"eslint": "^9.10.0",
54-
"eslint-plugin-format": "^0.1.2",
55-
"husky": "^9.1.6",
56-
"less": "^4.2.0",
54+
"eslint": "^9.16.0",
55+
"eslint-plugin-format": "^0.1.3",
56+
"husky": "^9.1.7",
57+
"less": "^4.2.1",
5758
"mockjs": "^1.1.0",
58-
"postcss-mobile-forever": "^4.1.6",
59-
"rollup": "^4.22.0",
60-
"terser": "^5.33.0",
61-
"typescript": "^5.6.2",
62-
"unocss": "0.62.4",
63-
"unplugin-auto-import": "^0.18.3",
64-
"unplugin-vue-components": "^0.27.4",
65-
"unplugin-vue-router": "^0.10.8",
66-
"vite": "^5.4.6",
67-
"vite-plugin-mock-dev-server": "^1.7.2",
68-
"vite-plugin-pwa": "^0.20.5",
59+
"postcss-mobile-forever": "^4.3.1",
60+
"rollup": "^4.28.1",
61+
"terser": "^5.37.0",
62+
"typescript": "~5.6.3",
63+
"unocss": "0.65.1",
64+
"unplugin-auto-import": "^0.18.6",
65+
"unplugin-vue-components": "^0.27.5",
66+
"unplugin-vue-router": "^0.10.9",
67+
"vite": "^6.0.3",
68+
"vite-plugin-mock-dev-server": "^1.8.2",
69+
"vite-plugin-pwa": "^0.21.1",
6970
"vite-plugin-sitemap": "^0.7.1",
7071
"vite-plugin-vconsole": "^2.1.1",
71-
"vite-plugin-vue-devtools": "^7.4.5",
72-
"vitest": "^2.1.1",
73-
"vue-tsc": "^2.1.6"
72+
"vite-plugin-vue-devtools": "^7.6.7",
73+
"vitest": "^2.1.8",
74+
"vue-tsc": "^2.1.10"
7475
},
7576
"pnpm": {
76-
"peerDependencyRules": {
77-
"ignoreMissing": [
78-
"postcss",
79-
"esbuild"
80-
],
81-
"allowedVersions": {
82-
"rollup": "^4.x"
83-
},
84-
"allowAny": [
85-
"eslint"
86-
]
87-
},
8877
"allowedDeprecatedVersions": {
8978
"glob": "7.2.3",
9079
"inflight": "1.0.6",
9180
"sourcemap-codec": "1.4.8"
9281
}
82+
},
83+
"resolutions": {
84+
"vite": "^6.0.3"
9385
}
9486
}

0 commit comments

Comments
 (0)