push notification works
Deploy app frontend / app frontend (push) Successful in 1m32s

This commit is contained in:
2024-12-05 21:06:57 +02:00
parent 23aced4071
commit d57e1569b3
8 changed files with 115 additions and 117 deletions
+8 -7
View File
@@ -1,23 +1,24 @@
import { createRouter, createWebHistory } from 'vue-router'
import { ROUTE_NAMES } from '@/constants/routes'
import HomeView from '@/views/HomeView.vue'
function isRunningStandalone() {
return window.matchMedia('(display-mode: standalone)').matches
}
const routes = [
{
path: '/',
name: ROUTE_NAMES.HOME,
component: HomeView,
component: () =>
isRunningStandalone()
? import('@/views/ManageDashboardView.vue')
: import('@/views/HomeView.vue'),
},
{
path: '/create',
name: ROUTE_NAMES.CREATE,
component: () => import('@/views/CreateView.vue'),
},
{
path: '/app/start',
name: ROUTE_NAMES.APP_START,
component: () => import('@/views/ManageDashboardView.vue'),
},
{
path: '/manage/dashboard',
name: ROUTE_NAMES.MANAGE_DASHBOARD,