import type { RouteRecordRaw } from 'vue-router';
import moduleRoutes from './moduleRoutes';

export const routes: RouteRecordRaw[] = [
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/HomeView.vue'),
    meta: {
      title: '首页视图',
      description: '应用首页，展示主要内容和导航',
      category: 'Page',
      icon: 'home',
      tags: ['首页', '主页面'],
    },
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('../views/DashboardView.vue'),
        meta: {
          title: '仪表盘',
          description: '展示应用的主要数据和统计信息',
          category: 'Page',
          icon: 'dashboard',
          tags: ['仪表盘', '数据展示'],
        },
      },
      {
        name: '行政区划管理',
        path: 'sljd/adCodeManage',
        component: () => import('../views/adCodeManage/adCodeManage.vue'),
        meta: {
          title: '行政区划管理',
          description: '管理区域行政区划信息',
          category: 'Page',
          icon: 'dashboard',
          tags: ['行政区划', '数据展示'],
        },
      },
    ],
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/AboutView.vue'),
    meta: {
      title: '顶部导航栏',
      description: '全局头部导航组件，包含Logo和菜单',
      category: 'Layout',
      icon: 'header',
      tags: ['导航', '布局'],
    },
  },
  ...moduleRoutes,
];
