import { createRouter, createWebHistory } from 'vue-router'
import CategoryTreeView from './views/CategoryTreeView.vue'
import DemandProcessView from './views/DemandProcessView.vue'
import GlobalDemandMapView from './views/GlobalDemandMapView.vue'
import OverviewView from './views/OverviewView.vue'
import PipelineRunsView from './views/PipelineRunsView.vue'
import VideoDiscoveryView from './views/VideoDiscoveryView.vue'

export const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'overview',
      component: OverviewView,
      meta: { title: '供给智能总览' },
    },
    {
      path: '/demand-map',
      name: 'demand-map',
      component: GlobalDemandMapView,
      meta: { title: '平台全局需求地图' },
    },
    {
      path: '/demand-tree',
      name: 'category-tree',
      component: CategoryTreeView,
      meta: { title: '全局分类树' },
    },
    {
      path: '/demand-process',
      name: 'demand-process',
      component: DemandProcessView,
      meta: { title: '需求归类过程' },
    },
    {
      path: '/video-discovery',
      name: 'video-discovery',
      component: VideoDiscoveryView,
      meta: { title: '需求汇总' },
    },
    {
      path: '/pipeline-runs',
      name: 'pipeline-runs',
      component: PipelineRunsView,
      meta: { title: '定时任务运行中心' },
    },
  ],
})
