From 47becfd59ebb144912a5cd7b98aa8331070f572f Mon Sep 17 00:00:00 2001 From: wenqing Date: Mon, 4 Sep 2023 16:54:48 +0800 Subject: [PATCH 1/6] feat: v1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aa69140..0da2207 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-admin-starter", - "version": "0.0.3", + "version": "1.0.0", "description": "A vue admin template powered by vite + typescript + vue3 + vue-router + pinia + element-plus + axios.", "author": { "name": "elenh", From 59aa41fd38def74733cb03ed4471db188b148e49 Mon Sep 17 00:00:00 2001 From: wenqing Date: Mon, 4 Sep 2023 16:54:58 +0800 Subject: [PATCH 2/6] chore(release): v1.1.0 --- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e557e54..32a7d00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,23 @@ # Changelog +## v1.1.0 + +[compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v0.0.3...v1.1.0) + +### ๐Ÿš€ Enhancements + +- Support hide language picker and others ([73b2994](https://github.com/yisibell/vue3-admin-starter/commit/73b2994)) +- V1 ([47becfd](https://github.com/yisibell/vue3-admin-starter/commit/47becfd)) + +### ๐Ÿก Chore + +- Code perf ([ba50c3f](https://github.com/yisibell/vue3-admin-starter/commit/ba50c3f)) + +### โค๏ธ Contributors + +- Wenqing + ## v0.0.3 [compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v0.0.2...v0.0.3) diff --git a/package.json b/package.json index 0da2207..0a534ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-admin-starter", - "version": "1.0.0", + "version": "1.1.0", "description": "A vue admin template powered by vite + typescript + vue3 + vue-router + pinia + element-plus + axios.", "author": { "name": "elenh", From fff3b814fac08fd0f15cb4c592d975b9a66bd783 Mon Sep 17 00:00:00 2001 From: wenqing Date: Tue, 5 Sep 2023 14:11:11 +0800 Subject: [PATCH 3/6] feat: upgrade 404 page match rule --- src/permission.ts | 5 ----- src/router/staticRoutes/hiddenRoutes.ts | 6 ++++++ src/router/staticRoutes/index.ts | 11 +---------- 3 files changed, 7 insertions(+), 15 deletions(-) diff --git a/src/permission.ts b/src/permission.ts index f3b6b39..d83c126 100644 --- a/src/permission.ts +++ b/src/permission.ts @@ -16,11 +16,6 @@ export const initPermissionGuard = (router: Router) => { // start progress bar tricklingProgress.start() - if (!inWhiteList(to.path) && !router.hasRoute(to.name || '')) { - next('/404') - return - } - const UserStore = useUserStore() const PermissionStore = usePermissionStore() diff --git a/src/router/staticRoutes/hiddenRoutes.ts b/src/router/staticRoutes/hiddenRoutes.ts index 3ae98ce..dba5122 100644 --- a/src/router/staticRoutes/hiddenRoutes.ts +++ b/src/router/staticRoutes/hiddenRoutes.ts @@ -31,5 +31,11 @@ export const hiddenRoutes: IRouteRecord[] = [ hidden: true }, component: () => import('@/views/app/404.vue') + }, + // ๆ•่Žท 404 ้กต้ข + { + path: '/:pathMatch(.*)*', + redirect: '/404', + meta: { hidden: true } } ] diff --git a/src/router/staticRoutes/index.ts b/src/router/staticRoutes/index.ts index 859cb61..0fba3d2 100644 --- a/src/router/staticRoutes/index.ts +++ b/src/router/staticRoutes/index.ts @@ -1,9 +1,7 @@ import type { IRouteRecord } from '@/router/interfaces/core' import LayoutDefault from '@/layouts/default/index.vue' - import { hiddenRoutes } from './hiddenRoutes' import { labRoutes } from './labRoutes' - import defaultSettings from '@/settings' export const constantRoutes: IRouteRecord[] = ( @@ -30,14 +28,7 @@ export const constantRoutes: IRouteRecord[] = ( ] as IRouteRecord[] ).concat(labRoutes, hiddenRoutes) -export const latestRoutes: IRouteRecord[] = [ - // ๆ•่Žท 404 ้กต้ข - // { - // path: '/:pathMatch(.*)*', - // redirect: '/404', - // meta: { hidden: true } - // } -] +export const latestRoutes: IRouteRecord[] = [] export const getFullRoutes = (routes: IRouteRecord[], concatDynamicRoutes: boolean = true) => { if (concatDynamicRoutes) { From 9f6970fde6aaf3e02a48b39ea44dc737fd4611d8 Mon Sep 17 00:00:00 2001 From: wenqing Date: Tue, 5 Sep 2023 14:12:48 +0800 Subject: [PATCH 4/6] chore(release): v1.2.0 --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32a7d00..bb240ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Changelog +## v1.2.0 + +[compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v1.1.0...v1.2.0) + +### ๐Ÿš€ Enhancements + +- Upgrade 404 page match rule ([fff3b81](https://github.com/yisibell/vue3-admin-starter/commit/fff3b81)) + +### โค๏ธ Contributors + +- Wenqing + ## v1.1.0 [compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v0.0.3...v1.1.0) diff --git a/package.json b/package.json index 0a534ce..39044ca 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-admin-starter", - "version": "1.1.0", + "version": "1.2.0", "description": "A vue admin template powered by vite + typescript + vue3 + vue-router + pinia + element-plus + axios.", "author": { "name": "elenh", From d9139c85bc214ee2407b1ca9cab329b0a6509b21 Mon Sep 17 00:00:00 2001 From: wenqing Date: Tue, 5 Sep 2023 14:25:11 +0800 Subject: [PATCH 5/6] feat: update env types --- src/env.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/env.d.ts b/src/env.d.ts index b8dc4b3..e980af5 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -1,7 +1,9 @@ /// +/// interface ImportMetaEnv { readonly VITE_APP_BASE_API: string + readonly VITE_APP_PROXY_TARGET: string // ๆ›ดๅคš็Žฏๅขƒๅ˜้‡... } From d29d030fdac897a7a2941453f437f8f2d3c3a425 Mon Sep 17 00:00:00 2001 From: wenqing Date: Tue, 5 Sep 2023 14:25:34 +0800 Subject: [PATCH 6/6] chore(release): v1.3.0 --- CHANGELOG.md | 12 ++++++++++++ package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb240ac..0bb3889 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ # Changelog +## v1.3.0 + +[compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v1.2.0...v1.3.0) + +### ๐Ÿš€ Enhancements + +- Update env types ([d9139c8](https://github.com/yisibell/vue3-admin-starter/commit/d9139c8)) + +### โค๏ธ Contributors + +- Wenqing + ## v1.2.0 [compare changes](https://github.com/yisibell/vue3-admin-starter/compare/v1.1.0...v1.2.0) diff --git a/package.json b/package.json index 39044ca..39272fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue3-admin-starter", - "version": "1.2.0", + "version": "1.3.0", "description": "A vue admin template powered by vite + typescript + vue3 + vue-router + pinia + element-plus + axios.", "author": { "name": "elenh",