import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    name: 'AdminRoot',
    path: '/admin',
    meta: { title: 'Admin' },
    component: () => import('#/layouts/app/admin.vue'),
    children: [
      {
        name: 'AdminIndex',
        path: '',
        component: () => import('#/views/app/admin/index.vue'),
        meta: { title: 'Admin 控制台' },
      },
    ],
  },
  {
    name: 'HomeRoot',
    path: '/home',
    meta: { title: 'Home' },
    component: () => import('#/layouts/app/home.vue'),
    children: [
      {
        name: 'HomeIndex',
        path: '',
        component: () => import('#/views/app/home/index.vue'),
        meta: { title: 'Home 门户' },
      },
    ],
  },
  {
    name: 'SiteRoot',
    path: '/site',
    meta: { title: 'Site' },
    component: () => import('#/layouts/app/site.vue'),
    children: [
      {
        name: 'SiteIndex',
        path: '',
        component: () => import('#/views/app/site/index.vue'),
        meta: { title: 'Site 应用' },
      },
    ],
  },
];

export default routes; 