feat(admin-web): add Vue 3 admin console and deployment configs
- Add admin-web/ with Vite + Vue 3 + Element Plus + Vue Router - Add 8 management pages: dashboard, channel subject/account, conversation, person, tag, send record (with test send), inbound flow - Add API client modules for account/channel/crm/send/flow - Add Dockerfile and nginx config for admin-web - Add Dockerfile for mci-server - Add docker-compose.app.yml for one-command app deployment - Add K8s deployment manifests for backend/admin-web/channel-service - Update scripts/local-up.sh with shared network and --with-apps option
This commit is contained in:
35
admin-web/src/router/index.ts
Normal file
35
admin-web/src/router/index.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Layout from '../components/Layout.vue'
|
||||
import Dashboard from '../views/Dashboard.vue'
|
||||
import ChannelSubject from '../views/ChannelSubject.vue'
|
||||
import ChannelAccount from '../views/ChannelAccount.vue'
|
||||
import Conversation from '../views/Conversation.vue'
|
||||
import Person from '../views/Person.vue'
|
||||
import Tag from '../views/Tag.vue'
|
||||
import SendRecord from '../views/SendRecord.vue'
|
||||
import InboundFlow from '../views/InboundFlow.vue'
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
component: Layout,
|
||||
redirect: '/dashboard',
|
||||
children: [
|
||||
{ path: 'dashboard', component: Dashboard, meta: { title: '概览' } },
|
||||
{ path: 'channel-subject', component: ChannelSubject, meta: { title: '渠道主体' } },
|
||||
{ path: 'channel-account', component: ChannelAccount, meta: { title: '渠道账号' } },
|
||||
{ path: 'conversation', component: Conversation, meta: { title: '会话/群聊' } },
|
||||
{ path: 'person', component: Person, meta: { title: '联系人' } },
|
||||
{ path: 'tag', component: Tag, meta: { title: '标签' } },
|
||||
{ path: 'send-record', component: SendRecord, meta: { title: '发送记录' } },
|
||||
{ path: 'inbound-flow', component: InboundFlow, meta: { title: '入站流程' } },
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user