chore(deps): upgrade Vue I18n 9.10.2 → 11.2.8, fix related compat issues
- Upgrade vue-i18n to 11.2.8, @intlify/unplugin-vue-i18n to 11.0.7 - Remove vue-i18n CJS alias from vite.config.ts (no longer needed) - Remove vue-i18n from optimizeDeps include list - Upgrade bpmn-js-token-simulation 0.36.2 → 0.39.2 (ids@3 compat) - Fix duplicate route name 'Redirect' (Vue Router 5 enforces uniqueness) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>pull/878/head
parent
7991028e0a
commit
643eb92aff
|
|
@ -11,7 +11,6 @@ const include = [
|
||||||
'unocss',
|
'unocss',
|
||||||
'vue-router',
|
'vue-router',
|
||||||
'vue-types',
|
'vue-types',
|
||||||
'vue-i18n',
|
|
||||||
'crypto-js',
|
'crypto-js',
|
||||||
'cropperjs',
|
'cropperjs',
|
||||||
'lodash-es',
|
'lodash-es',
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
"animate.css": "^4.1.1",
|
"animate.css": "^4.1.1",
|
||||||
"axios": "1.13.6",
|
"axios": "1.13.6",
|
||||||
"benz-amr-recorder": "^1.1.5",
|
"benz-amr-recorder": "^1.1.5",
|
||||||
"bpmn-js-token-simulation": "^0.36.0",
|
"bpmn-js-token-simulation": "^0.39.2",
|
||||||
"camunda-bpmn-moddle": "^7.0.1",
|
"camunda-bpmn-moddle": "^7.0.1",
|
||||||
"cropperjs": "^1.6.1",
|
"cropperjs": "^1.6.1",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
"video.js": "^7.21.5",
|
"video.js": "^7.21.5",
|
||||||
"vue": "3.5.26",
|
"vue": "3.5.26",
|
||||||
"vue-dompurify-html": "^4.1.4",
|
"vue-dompurify-html": "^4.1.4",
|
||||||
"vue-i18n": "9.10.2",
|
"vue-i18n": "11.2.8",
|
||||||
"vue-router": "5.0.3",
|
"vue-router": "5.0.3",
|
||||||
"vue-types": "^5.1.1",
|
"vue-types": "^5.1.1",
|
||||||
"vue3-print-nb": "^0.1.4",
|
"vue3-print-nb": "^0.1.4",
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
"@commitlint/cli": "^19.0.1",
|
"@commitlint/cli": "^19.0.1",
|
||||||
"@commitlint/config-conventional": "^19.0.0",
|
"@commitlint/config-conventional": "^19.0.0",
|
||||||
"@iconify/json": "^2.2.187",
|
"@iconify/json": "^2.2.187",
|
||||||
"@intlify/unplugin-vue-i18n": "^2.0.0",
|
"@intlify/unplugin-vue-i18n": "^11.0.7",
|
||||||
"@playwright/test": "^1.58.2",
|
"@playwright/test": "^1.58.2",
|
||||||
"@purge-icons/generated": "^0.9.0",
|
"@purge-icons/generated": "^0.9.0",
|
||||||
"@types/jsoneditor": "^9.9.5",
|
"@types/jsoneditor": "^9.9.5",
|
||||||
|
|
|
||||||
675
pnpm-lock.yaml
675
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -20,7 +20,7 @@ const router = createRouter({
|
||||||
})
|
})
|
||||||
|
|
||||||
export const resetRouter = (): void => {
|
export const resetRouter = (): void => {
|
||||||
const resetWhiteNameList = ['Redirect', 'Login', 'NoFound', 'Home']
|
const resetWhiteNameList = ['Redirect', 'RedirectRoot', 'Login', 'NoFound', 'Home']
|
||||||
router.getRoutes().forEach((route) => {
|
router.getRoutes().forEach((route) => {
|
||||||
const { name } = route
|
const { name } = route
|
||||||
if (name && !resetWhiteNameList.includes(name as string)) {
|
if (name && !resetWhiteNameList.includes(name as string)) {
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
|
||||||
{
|
{
|
||||||
path: '/redirect',
|
path: '/redirect',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
name: 'Redirect',
|
name: 'RedirectRoot',
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '/redirect/:path(.*)',
|
path: '/redirect/:path(.*)',
|
||||||
|
|
|
||||||
|
|
@ -52,10 +52,6 @@ export default ({command, mode}: ConfigEnv): UserConfig => {
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.scss', '.css'],
|
||||||
alias: [
|
alias: [
|
||||||
{
|
|
||||||
find: 'vue-i18n',
|
|
||||||
replacement: 'vue-i18n/dist/vue-i18n.cjs.js'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
find: /\@\//,
|
find: /\@\//,
|
||||||
replacement: `${pathResolve('src')}/`
|
replacement: `${pathResolve('src')}/`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue