From 4486235358a57e4d5b52b85fe9deba7749445d2a Mon Sep 17 00:00:00 2001 From: xds Date: Wed, 4 Feb 2026 14:55:39 +0300 Subject: [PATCH] feat: Remove Dashboard and Workspace views, set CharactersView as the root route, and add a deploy script. --- deploy.sh | 7 ++ src/router/index.js | 14 +-- src/views/CharactersView.vue | 37 +++--- src/views/DashboardView.vue | 153 ------------------------- src/views/WorkspaceView.vue | 215 ----------------------------------- 5 files changed, 32 insertions(+), 394 deletions(-) create mode 100755 deploy.sh delete mode 100644 src/views/DashboardView.vue delete mode 100644 src/views/WorkspaceView.vue diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..b043f82 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,7 @@ + +ssh root@31.59.58.220 " + cd /root/ai/ai-service-front && + git pull && + npm run build && + cp -r dist/* /var/www/ai.luminic.space/ +" \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index f886987..85b3d37 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -12,28 +12,18 @@ const router = createRouter({ }, { path: '/', - name: 'dashboard', - component: DashboardView + name: 'characters', + component: () => import('../views/CharactersView.vue') }, { path: '/assets', name: 'assets', component: () => import('../views/AssetsView.vue') }, - { - path: '/characters', - name: 'characters', - component: () => import('../views/CharactersView.vue') - }, { path: '/characters/:id', name: 'character-detail', component: () => import('../views/CharacterDetailView.vue') - }, - { - path: '/workspace/:id', - name: 'workspace', - component: () => import('../views/WorkspaceView.vue') } ] }) diff --git a/src/views/CharactersView.vue b/src/views/CharactersView.vue index 3081daa..dcfe956 100644 --- a/src/views/CharactersView.vue +++ b/src/views/CharactersView.vue @@ -20,29 +20,26 @@ onMounted(async () => { } }) -const goBack = () => { - router.push('/') -} - -const goToDetail = (id) => { - router.push(`/characters/${id}`) +const handleLogout = () => { + localStorage.removeItem('auth_code') + router.push('/login') }