mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 16:05:12 +08:00
feat: 初始化项目结构与核心功能
引入项目基础目录结构,包含多语言支持、主要页面与组件、核心游戏逻辑、UI 组件库、加密与本地持久化、自动化 Docker 构建流程、GitHub issue 模板(中英文)、README(中英文)、LICENSE 及开发配置文件。实现 OGame 单机版主要功能模块,为后续开发和扩展奠定基础。
This commit is contained in:
20
src/router/index.ts
Normal file
20
src/router/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{ path: '/', name: 'overview', component: () => import('@/views/OverviewView.vue') },
|
||||
{ path: '/buildings', name: 'buildings', component: () => import('@/views/BuildingsView.vue') },
|
||||
{ path: '/research', name: 'research', component: () => import('@/views/ResearchView.vue') },
|
||||
{ path: '/shipyard', name: 'shipyard', component: () => import('@/views/ShipyardView.vue') },
|
||||
{ path: '/defense', name: 'defense', component: () => import('@/views/DefenseView.vue') },
|
||||
{ path: '/fleet', name: 'fleet', component: () => import('@/views/FleetView.vue') },
|
||||
{ path: '/officers', name: 'officers', component: () => import('@/views/OfficersView.vue') },
|
||||
{ path: '/battle-simulator', name: 'battle-simulator', component: () => import('@/views/BattleSimulatorView.vue') },
|
||||
{ path: '/messages', name: 'messages', component: () => import('@/views/MessagesView.vue') },
|
||||
{ path: '/galaxy', name: 'galaxy', component: () => import('@/views/GalaxyView.vue') },
|
||||
{ path: '/settings', name: 'settings', component: () => import('@/views/SettingsView.vue') }
|
||||
]
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user