2022-12-01 05:58:50 +00:00
|
|
|
import { createRouter, createWebHistory } from '@ionic/vue-router';
|
|
|
|
|
import { RouteRecordRaw } from 'vue-router';
|
|
|
|
|
import TabsPage from '../views/TabsPage.vue'
|
2022-12-01 12:17:04 +00:00
|
|
|
import Apps from '../views/Apps.vue'
|
|
|
|
|
import PufferIcons from '../views/PufferIcons.vue'
|
2022-12-02 16:27:20 +00:00
|
|
|
import Puffercat_Apps from '../views/Puffercat_Apps.vue'
|
2022-12-02 18:38:41 +00:00
|
|
|
import Shapes from '../views/Shapes.vue'
|
2022-12-01 05:58:50 +00:00
|
|
|
|
|
|
|
|
const routes: Array<RouteRecordRaw> = [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
2022-12-01 10:52:24 +00:00
|
|
|
redirect: '/tabs/apps'
|
2022-12-01 05:58:50 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/tabs/',
|
|
|
|
|
component: TabsPage,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
2022-12-01 10:52:24 +00:00
|
|
|
redirect: '/tabs/apps'
|
2022-12-01 05:58:50 +00:00
|
|
|
},
|
|
|
|
|
{
|
2022-12-01 10:52:24 +00:00
|
|
|
path: 'apps',
|
|
|
|
|
component: () => import('@/views/Apps.vue')
|
2022-12-01 05:58:50 +00:00
|
|
|
},
|
|
|
|
|
{
|
2022-12-01 10:52:24 +00:00
|
|
|
path: 'soon',
|
|
|
|
|
component: () => import('@/views/ComingSoon.vue')
|
2022-12-01 05:58:50 +00:00
|
|
|
}
|
|
|
|
|
]
|
2022-12-01 12:17:04 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/details/PufferIcons',
|
|
|
|
|
name: 'PufferIcons',
|
|
|
|
|
component: PufferIcons,
|
2022-12-02 16:27:20 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/details/Puffercat_Apps',
|
|
|
|
|
name: 'Puffercat Apps',
|
|
|
|
|
component: Puffercat_Apps,
|
|
|
|
|
},
|
2022-12-02 18:38:41 +00:00
|
|
|
{
|
|
|
|
|
path: '/details/Shapes',
|
|
|
|
|
name: 'Shapes',
|
|
|
|
|
component: Shapes,
|
|
|
|
|
},
|
2022-12-01 05:58:50 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
|
history: createWebHistory(process.env.BASE_URL),
|
|
|
|
|
routes
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default router
|