mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
refactor: remove vue-router
This commit is contained in:
@@ -149,7 +149,6 @@
|
||||
"viewerjs": "^1.11.6",
|
||||
"vite": "^5.3.5",
|
||||
"vue": "^3.4.35",
|
||||
"vue-router": "^4.0.0-0",
|
||||
"vue-tsc": "^2.0.29",
|
||||
"xterm": "^4.18.0",
|
||||
"xterm-addon-fit": "^0.5.0",
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
@@ -1,8 +1,7 @@
|
||||
import '@fe/others/demo'
|
||||
|
||||
import { createApp } from 'vue'
|
||||
import App from '@fe/App.vue'
|
||||
import router from '@fe/router'
|
||||
import Main from '@fe/Main.vue'
|
||||
|
||||
import directives from '@fe/directives'
|
||||
import toast from '@fe/support/ui/toast'
|
||||
@@ -10,10 +9,9 @@ import modal from '@fe/support/ui/modal'
|
||||
import contextmenu from '@fe/support/ui/context-menu'
|
||||
import quickFilter from '@fe/support/ui/quick-filter'
|
||||
|
||||
const app = createApp(App)
|
||||
const app = createApp(Main)
|
||||
|
||||
app.use(directives)
|
||||
app.use(router)
|
||||
app.use(toast)
|
||||
app.use(modal)
|
||||
app.use(contextmenu)
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
||||
import Main from '@fe/views/Main.vue'
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
path: '/',
|
||||
name: 'Main',
|
||||
component: Main
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHashHistory(),
|
||||
routes
|
||||
})
|
||||
|
||||
export default router
|
||||
@@ -2475,11 +2475,6 @@
|
||||
de-indent "^1.0.2"
|
||||
he "^1.2.0"
|
||||
|
||||
"@vue/devtools-api@^6.0.0-beta.14":
|
||||
version "6.0.0-beta.14"
|
||||
resolved "https://registry.yarnpkg.com/@vue/devtools-api/-/devtools-api-6.0.0-beta.14.tgz#6ed2d6f8d66a9256c9ad04bfff08309ba87b9723"
|
||||
integrity sha512-44fPrrN1cqcs6bFkT0C+yxTM6PZXLbR+ESh1U1j8UD22yO04gXvxH62HApMjLbS3WqJO/iCNC+CYT+evPQh2EQ==
|
||||
|
||||
"@vue/eslint-config-standard@^8.0.1":
|
||||
version "8.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@vue/eslint-config-standard/-/eslint-config-standard-8.0.1.tgz#d6e5f87bf99d142fc7adaaa5c32bc8d6af626ae3"
|
||||
@@ -9498,13 +9493,6 @@ vue-eslint-parser@^9.4.3:
|
||||
lodash "^4.17.21"
|
||||
semver "^7.3.6"
|
||||
|
||||
vue-router@^4.0.0-0:
|
||||
version "4.0.9"
|
||||
resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.0.9.tgz#248496941b79c4c1010f6ebfcf235cd4267d85da"
|
||||
integrity sha512-i3IaZJ57YeMbRHQlqKyXdUMr5NzTCcJkn3f8u38TsZjYWtGcd3IX2zRd3389SCOwuRf11mgfHAyngR6FVDE9og==
|
||||
dependencies:
|
||||
"@vue/devtools-api" "^6.0.0-beta.14"
|
||||
|
||||
vue-tsc@^2.0.29:
|
||||
version "2.0.29"
|
||||
resolved "https://registry.yarnpkg.com/vue-tsc/-/vue-tsc-2.0.29.tgz#bf7e9605af9fadec7fd6037d242217f5c6ad2c3b"
|
||||
|
||||
Reference in New Issue
Block a user