diff --git a/client/src/router/index.ts b/client/src/router/index.ts index 81a13c5..fbce953 100644 --- a/client/src/router/index.ts +++ b/client/src/router/index.ts @@ -1,6 +1,7 @@ import { createRouter, createWebHistory } from '@ionic/vue-router'; import type { RouteRecordRaw } from 'vue-router'; import TimersList from '@/views/TimersList/TimersList.vue'; +import Timer from '@/views/Timer/Timer.vue'; const routes: RouteRecordRaw[] = [ { @@ -11,6 +12,11 @@ const routes: RouteRecordRaw[] = [ path: '/timers', name: 'Timers', component: TimersList + }, + { + path: '/timer/:id', + name: 'Timer', + component: Timer } ]; diff --git a/client/src/views/TimersList/TimersList.html b/client/src/views/TimersList/TimersList.html index 56281fd..c656447 100644 --- a/client/src/views/TimersList/TimersList.html +++ b/client/src/views/TimersList/TimersList.html @@ -1,81 +1,85 @@ -
Загрузка таймеров...
-Нет таймеров
-{{ timer.count_pomodoro }} помидоров по {{ timer.pomodoro_time }} минут
-Загрузка таймеров...
Нет таймеров
+{{ timer.count_pomodoro }} помидоров по {{ timer.pomodoro_time }} минут
+