import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DetailComponent } from './detail.component';
import { ListComponent } from './list.component';

const routes: Routes = [
  { path: 'my', component: ListComponent, data: { title: $localize`我的作品`, remoteUrl: '/napi/web/art/pager/my', hideAuthor: true } },
  { path: 'all', component: ListComponent, data: { title: $localize`所有作品`, remoteUrl: '/napi/web/art/pager/all' } },
  { path: 'dropped', component: ListComponent, data: { title: $localize`回收站`, remoteUrl: '/napi/web/art/pager/removed', hideUpload: true } },
  { path: 'my-color-task', component: ListComponent, data: { title: $localize`我的填色任务`, remoteUrl: '/napi/web/art/pager/my-color-task' } },
  { path: 'detail/:id', component: DetailComponent },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class PageRoutingModule { }
