7446b7dca9
Tranche 4 of LST-65. Companion to the backend module migration.
- Move pages (my-tasks, projects, projects/[id]/{index,groups,archives}),
18 components (project + task), 10 services and 10 DTOs into
frontend/modules/project-management/ (auto-detected layer).
- Rewrite explicit ~/services/* and ~/services/dto/* imports across 38
consumers (admin tabs, mail modals, dashboard, mail page, layout) including
the time-tracking module whose DTOs referenced project/task/task-tag.
- clients.ts and shared DTOs (client, user-data) stay at the root.
- Routes /my-tasks, /projects, /projects/:id(/groups|/archives) preserved;
i18n stays global.
nuxt build passes; routes confirmed.
29 lines
788 B
TypeScript
29 lines
788 B
TypeScript
import type { UserData } from '~/services/dto/user-data'
|
|
import type { Project } from '~/modules/project-management/services/dto/project'
|
|
import type { Task } from '~/modules/project-management/services/dto/task'
|
|
import type { TaskTag } from '~/modules/project-management/services/dto/task-tag'
|
|
|
|
export type TimeEntry = {
|
|
id: number
|
|
'@id'?: string
|
|
title: string | null
|
|
description: string | null
|
|
startedAt: string
|
|
stoppedAt: string | null
|
|
user: UserData
|
|
project: Project | null
|
|
task: Task | null
|
|
tags: TaskTag[]
|
|
}
|
|
|
|
export type TimeEntryWrite = {
|
|
title?: string | null
|
|
description?: string | null
|
|
startedAt: string
|
|
stoppedAt?: string | null
|
|
user: string
|
|
project?: string | null
|
|
task?: string | null
|
|
tags?: string[]
|
|
}
|