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

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    name: 'Datasets',
    path: '/datasets',
    component: () => import('#/views/datasets/index.vue'),
    meta: {
      icon: 'carbon:workspace',
      title: $t('page.datasets.title'),
    },
  },
  {
    name: 'Documents',
    path: '/datasets/:id/documents',
    component: () => import('#/views/datasets/documents/index.vue'),
    meta: {
      hideInMenu: true,
      hideInTab: false,
      title: '文档',
    },
  },
  {
    name: 'DocumentsCreate',
    path: '/datasets/:id/documents/create',
    component: () => import('#/views/datasets/documents/create.vue'),
    meta: {
      hideInMenu: true,
      hideInTab: false,
      title: '添加文件',
    },
  },
];

export default routes;
