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

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:party-popper',
      order: 51,
      title: '常驻活动',
    },
    name: 'ResidentActivityManager',
    path: '/resident-activity/manager',
    redirect: '/resident-activity/manager/sign-in-reward/config',
    children: [
      {
        name: 'ResidentSignInRewardConfig',
        path: 'sign-in-reward/config',
        component: () => import('#/views/resident-activity/sign-in-reward-config.vue'),
        meta: { title: '签到奖励配置' },
      },
      {
        name: 'ResidentRegisterRewardConfig',
        path: 'register-reward/config',
        component: () => import('#/views/resident-activity/register-reward-config.vue'),
        meta: { title: '注册奖励配置' },
      },
      {
        name: 'ResidentInviteConfig',
        path: 'invite/config',
        component: () => import('#/views/resident-activity/invite-config.vue'),
        meta: { title: '邀请活动配置' },
      },
      {
        name: 'ResidentInviteList',
        path: 'invite/list',
        component: () => import('#/views/resident-activity/invite-list.vue'),
        meta: { title: '邀请活动列表' },
      },
      {
        name: 'ResidentSpecifiedGiftWeeklyRank',
        path: 'specified-gift-weekly-rank',
        alias: 'week-star',
        component: () => import('#/views/resident-activity/week-star.vue'),
        meta: { title: '指定礼物周榜' },
      },
    ],
  },
];

export default routes;
