diff --git a/src/api/issue.api.ts b/src/api/issue.api.ts index f05617f..b18d895 100644 --- a/src/api/issue.api.ts +++ b/src/api/issue.api.ts @@ -12,6 +12,7 @@ export interface Issue { reporterId: string assignee?: User reporter?: User + dueDate: string | null createdAt: string updatedAt: string } diff --git a/src/components/DashboardCard.vue b/src/components/DashboardCard.vue new file mode 100644 index 0000000..6b40fb4 --- /dev/null +++ b/src/components/DashboardCard.vue @@ -0,0 +1,20 @@ + + + + + + {{ label }} + {{ value }} + + + + + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 10537fa..daeea75 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,7 +1,218 @@ - + - Home + + + + + + + + + + + Sign In + + + + + + + + + + + + + + + + Мои задачи + Все задачи + + + + + + + + + + + {{ issue.key }} + {{ issue.title }} + + + + + + + {{ new Date(issue.dueDate).toLocaleDateString('ru-RU') }} + + + {{ statusMeta(issue.status).label }} + + + + + + + {{ loadingMyIssues ? 'Загрузка…' : 'Нет активных задач' }} + + + + + + + + Проекты + Все проекты + + + + + + {{ project.key }} + + + {{ project.name }} + + + + Нет проектов + + + + + - +