
import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/charts',
  name: 'Charts',
  component: LAYOUT,
  redirect: '/charts/echarts/map',
  meta: {
    orderNo: 500,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.charts.charts'),
  },
  children: [
    {
      path: 'baiduMap',
      name: 'BaiduMap',
      meta: {
        title: t('routes.demo.charts.baiduMap'),
      },
      component: () => import('@/views/demo/charts/map/Baidu.vue'),
    },
    {
      path: 'mars3d',
      name: 'mars3d',
      meta: {
        title: t('routes.demo.charts.mars3d'),
        ignoreKeepAlive: true,
      },
      component: () => import('@/views/demo/charts/mars3d/index.vue'),
    },
    {
      path: 'marsgis',
      name: 'Marsgis',
      meta: {
        title: 'Mars3D地图',
      },
      component: () => import('@/mars/views/index.vue'),
    },
  ],
};

// export default charts;
