mobile fixes

This commit is contained in:
tim
2025-04-26 14:56:55 -04:00
parent 441a514acc
commit 2c5116c5de
49 changed files with 1109 additions and 322 deletions

View File

@@ -1,55 +0,0 @@
// Composables
import { createRouter, createWebHistory } from 'vue-router'
const routes = [
{
path: '/',
component: () => import('@/layouts/chart/ChartLayout.vue'),
children: [
{
name: 'App',
path: '/',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartPlaceOrder.vue'),
},
{
name: 'Shared',
path: '/shared/:code',
component: ()=> import('@/components/chart/Shared.vue')
},
{
name: 'Order',
path: '/order',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartPlaceOrder.vue'),
},
{
name: 'Assets',
path: '/assets',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartVault.vue'),
},
{
name: 'Status',
path: '/status',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartStatus.vue'),
},
],
},
]
const router = createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
})
export default router

10
src/router/newRouter.js Normal file
View File

@@ -0,0 +1,10 @@
// Composables
import {createRouter, createWebHistory} from 'vue-router'
import {routes} from "@/router/routes.js";
export function newRouter() {
return createRouter({
history: createWebHistory(process.env.BASE_URL),
routes,
})
}

3
src/router/router.js Normal file
View File

@@ -0,0 +1,3 @@
export let router = null
export function setRouter (r) { router = r }

45
src/router/routes.js Normal file
View File

@@ -0,0 +1,45 @@
export const routes = [
{
path: '/',
component: () => import('@/layouts/chart/ChartLayout.vue'),
children: [
{
name: 'App',
path: '/',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartPlaceOrder.vue'),
},
{
name: 'Shared',
path: '/shared/:code',
component: () => import('@/components/chart/Shared.vue')
},
{
name: 'Order',
path: '/order',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartPlaceOrder.vue'),
},
{
name: 'Assets',
path: '/assets',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartVault.vue'),
},
{
name: 'Status',
path: '/status',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import('@/components/chart/ChartStatus.vue'),
},
],
},
]