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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:house',
      order: 50.2,
      title: '房间管理',
    },
    name: 'RoomManager',
    path: '/room/manager',
    redirect: '/room/manager/set-top-room',
    children: [
      {
        name: 'SetTop',
        path: 'set-top-room',
        alias: '/operate/manager/set-top-room',
        component: () => import('#/views/operate/set-top-room.vue'),
        meta: { title: '置顶房间' },
      },
      {
        name: 'SetHot',
        path: 'set-hot-room',
        alias: '/operate/manager/set-hot-room',
        component: () => import('#/views/operate/set-hot-room.vue'),
        meta: { title: '热门房间' },
      },
      {
        name: 'OperateContributionBalance',
        path: 'contribution/balance',
        alias: '/operate/manager/contribution/balance',
        component: () => import('#/views/operate/contribution-balance.vue'),
        meta: { title: '房间贡献余额' },
      },
      {
        name: 'OperateOnlineRoom',
        path: 'online/room',
        alias: '/operate/manager/online/room',
        component: () => import('#/views/operate/online-room.vue'),
        meta: { title: '在线房间' },
      },
      {
        name: 'OperateRoomProfile',
        path: 'profile/room',
        alias: '/operate/manager/profile/room',
        component: () => import('#/views/operate/room-profile.vue'),
        meta: { title: '房间资料信息' },
      },
      {
        name: 'ActivityRoomContribution',
        path: 'activity/room/contribution',
        alias: '/activity/room/contribution',
        component: () => import('#/views/operate/room-contribution.vue'),
        meta: { title: '房间支持活动' },
      },
    ],
  },
];

export default routes;
