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

import { SvgAntdvLogoIcon } from '@vben/icons';

import { BasicLayout, IFrameView } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      badgeType: 'dot',
      icon: 'ph:file-doc-light',
      order: 9999,
      title: $t('demos.vben.title'),
    },
    name: 'VbenProject',
    path: '/vben-admin',
    children: [
      // {
      //   name: 'VbenAbout',
      //   path: '/vben-admin/about',
      //   component: () => import('#/views/_core/about/index.vue'),
      //   meta: {
      //     icon: 'lucide:copyright',
      //     title: $t('demos.vben.about'),
      //   },
      // },
      {
        name: 'VbenDocument',
        path: '/vben-admin/document',
        component: IFrameView,
        meta: {
          icon: 'lucide:book-open-text',
          link: 'https://doc.cncore.club/',
          title: 'ABPPro文档',
        },
      },
      {
        name: 'VbenDocument',
        path: '/vben-admin/document',
        component: IFrameView,
        meta: {
          icon: 'lucide:book-open-text',
          link: 'http://doc.china.cncore.club:81/',
          title: 'ABPPro国内文档',
        },
      },
      {
        name: 'VbenDocument',
        path: '/vben-admin/document',
        component: IFrameView,
        meta: {
          icon: 'lucide:book-open-text',
          link: 'https://abp.io/docs/latest/',
          title: 'ABP官方文档',
        },
      },
      {
        name: 'VbenGithub',
        path: '/vben-admin/github',
        component: IFrameView,
        meta: {
          icon: 'mdi:github',
          link: 'https://github.com/WangJunZzz/abp-vnext-pro',
          title: 'Github',
        },
      },
      {
        name: 'VbenGithub',
        path: '/vben-admin/github',
        component: IFrameView,
        meta: {
          icon: 'ant-design:google-circle-filled',
          link: 'https://gitee.com/WangJunZzz/abp-vnext-pro',
          title: 'Gitee',
        },
      },
      {
        name: 'VbenGithub',
        path: '/vben-admin/github',
        component: IFrameView,
        meta: {
          icon: SvgAntdvLogoIcon,
          // link: 'https://www.antdv.com/components/overview-cn/',
          iframeSrc: 'https://doc.cncore.club/',
          title: 'Ant Design Vue',
        },
      },
    ],
  },
];

export default routes;
