eruda
This commit is contained in:
31
package.json
31
package.json
@ -19,14 +19,14 @@
|
|||||||
"@unhead/vue": "^1.10.0",
|
"@unhead/vue": "^1.10.0",
|
||||||
"@vant/use": "^1.6.0",
|
"@vant/use": "^1.6.0",
|
||||||
"@yanhao98/vue-router-helper": "^0.0.4",
|
"@yanhao98/vue-router-helper": "^0.0.4",
|
||||||
"alova": "^3.0.6",
|
"alova": "^3.0.10",
|
||||||
"axios": "^1.7.3",
|
"axios": "^1.7.4",
|
||||||
"dayjs": "^1.11.12",
|
"dayjs": "^1.11.13",
|
||||||
"jsencrypt": "^3.3.2",
|
"jsencrypt": "^3.3.2",
|
||||||
"mitt": "^3.0.1",
|
"mitt": "^3.0.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"page-stack-vue3": "^2.5.6",
|
"page-stack-vue3": "^2.5.6",
|
||||||
"pinia": "^2.2.1",
|
"pinia": "^2.2.2",
|
||||||
"pinia-plugin-persistedstate": "^3.2.1",
|
"pinia-plugin-persistedstate": "^3.2.1",
|
||||||
"radash": "^12.1.0",
|
"radash": "^12.1.0",
|
||||||
"tdesign-icons-vue-next": "^0.2.4",
|
"tdesign-icons-vue-next": "^0.2.4",
|
||||||
@ -34,26 +34,27 @@
|
|||||||
"ts-enum-util": "^4.1.0",
|
"ts-enum-util": "^4.1.0",
|
||||||
"utils4u": "^1.0.24",
|
"utils4u": "^1.0.24",
|
||||||
"vant": "^4.9.4",
|
"vant": "^4.9.4",
|
||||||
"vue": "^3.4.37",
|
"vue": "^3.4.38",
|
||||||
"vue-page-stack": "^3.2.0",
|
"vue-page-stack": "^3.2.0",
|
||||||
"vue-router": "^4.4.3"
|
"vue-router": "^4.4.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify/utils": "^2.1.30",
|
"@iconify/utils": "^2.1.31",
|
||||||
"@rushstack/eslint-patch": "^1.10.4",
|
"@rushstack/eslint-patch": "^1.10.4",
|
||||||
"@tsconfig/node20": "^20.1.4",
|
"@tsconfig/node20": "^20.1.4",
|
||||||
"@types/jsdom": "^21.1.7",
|
"@types/jsdom": "^21.1.7",
|
||||||
"@types/node": "^22.2.0",
|
"@types/node": "^22.5.0",
|
||||||
"@types/nprogress": "^0.2.3",
|
"@types/nprogress": "^0.2.3",
|
||||||
"@unocss/preset-rem-to-px": "^0.62.0",
|
"@unocss/preset-rem-to-px": "^0.62.2",
|
||||||
"@unocss/reset": "^0.62.0",
|
"@unocss/reset": "^0.62.2",
|
||||||
"@vant/auto-import-resolver": "^1.2.1",
|
"@vant/auto-import-resolver": "^1.2.1",
|
||||||
"@vitejs/plugin-vue": "^5.1.2",
|
"@vitejs/plugin-vue": "^5.1.2",
|
||||||
"@vitejs/plugin-vue-jsx": "^4.0.0",
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
||||||
"@vue/eslint-config-prettier": "^9.0.0",
|
"@vue/eslint-config-prettier": "^9.0.0",
|
||||||
"@vue/eslint-config-typescript": "^13.0.0",
|
"@vue/eslint-config-typescript": "^13.0.0",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
"@vue/tsconfig": "^0.5.1",
|
"@vue/tsconfig": "^0.5.1",
|
||||||
|
"eruda": "^3.2.3",
|
||||||
"eslint": "^8.57.0",
|
"eslint": "^8.57.0",
|
||||||
"eslint-plugin-vue": "^9.27.0",
|
"eslint-plugin-vue": "^9.27.0",
|
||||||
"husky": "^9.1.5",
|
"husky": "^9.1.5",
|
||||||
@ -65,14 +66,14 @@
|
|||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"rollup": "^4.21.0",
|
"rollup": "^4.21.0",
|
||||||
"typescript": "~5.5.4",
|
"typescript": "~5.5.4",
|
||||||
"unocss": "^0.62.0",
|
"unocss": "^0.62.2",
|
||||||
"unplugin-auto-import": "^0.18.2",
|
"unplugin-auto-import": "^0.18.2",
|
||||||
"unplugin-vue-components": "^0.27.3",
|
"unplugin-vue-components": "^0.27.4",
|
||||||
"unplugin-vue-markdown": "^0.26.2",
|
"unplugin-vue-markdown": "^0.26.2",
|
||||||
"unplugin-vue-router": "^0.10.2",
|
"unplugin-vue-router": "^0.10.7",
|
||||||
"vite": "^5.4.0",
|
"vite": "^5.4.2",
|
||||||
"vite-plugin-cdn-import": "^1.0.1",
|
"vite-plugin-cdn-import": "^1.0.1",
|
||||||
"vite-plugin-vue-devtools": "^7.3.7",
|
"vite-plugin-vue-devtools": "^7.3.8",
|
||||||
"vitest": "^2.0.5",
|
"vitest": "^2.0.5",
|
||||||
"vue-tsc": "^2.0.29"
|
"vue-tsc": "^2.0.29"
|
||||||
},
|
},
|
||||||
|
2122
pnpm-lock.yaml
generated
2122
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
18
src/main.ts
18
src/main.ts
@ -9,7 +9,20 @@ import App from './App.vue';
|
|||||||
import { router } from './router';
|
import { router } from './router';
|
||||||
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders';
|
import { DataLoaderPlugin } from 'unplugin-vue-router/data-loaders';
|
||||||
|
|
||||||
createApp(App)
|
async function init() {
|
||||||
|
if (import.meta.env.MODE === 'development' || 1 === 1) {
|
||||||
|
// https://eruda.liriliri.io/zh/docs/#快速上手
|
||||||
|
await import('eruda').then(({ default: eruda }) => {
|
||||||
|
eruda.init({
|
||||||
|
defaults: {
|
||||||
|
transparency: 0.9,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
eruda.show();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
createApp(App)
|
||||||
.use(createHead())
|
.use(createHead())
|
||||||
.use(createPinia())
|
.use(createPinia())
|
||||||
// Register the plugin before the router
|
// Register the plugin before the router
|
||||||
@ -17,3 +30,6 @@ createApp(App)
|
|||||||
// adding the router will trigger the initial navigation
|
// adding the router will trigger the initial navigation
|
||||||
.use(router)
|
.use(router)
|
||||||
.mount('#app');
|
.mount('#app');
|
||||||
|
}
|
||||||
|
|
||||||
|
init();
|
||||||
|
Reference in New Issue
Block a user