2025-05-22 06:56:37 +00:00
|
|
|
// router/index.js
|
2025-05-23 00:50:08 +00:00
|
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
import { setupRouterGuards } from './router-guards'
|
2025-05-22 06:56:37 +00:00
|
|
|
|
|
|
|
const routes = [
|
2025-05-23 00:50:08 +00:00
|
|
|
{
|
|
|
|
path: '/',
|
|
|
|
name: 'index',
|
|
|
|
component: () => import('@/views/index/index.vue'),
|
|
|
|
// beforeEnter: (to, from, next) => {
|
|
|
|
|
|
|
|
// localStorage.clear()
|
|
|
|
// next()
|
|
|
|
// }
|
|
|
|
children: [
|
2025-05-23 03:30:17 +00:00
|
|
|
{
|
|
|
|
path: '/contacts',
|
|
|
|
name: 'contacts',
|
|
|
|
component: () => import('@/views/contacts/index.vue'),
|
|
|
|
},
|
2025-05-23 00:50:08 +00:00
|
|
|
{
|
2025-05-23 02:45:41 +00:00
|
|
|
path: '/home',
|
2025-05-22 06:56:37 +00:00
|
|
|
name: 'home',
|
|
|
|
component: () => import('@/views/home/index.vue'),
|
|
|
|
// beforeEnter: (to, from, next) => {
|
|
|
|
|
|
|
|
// localStorage.clear()
|
|
|
|
// next()
|
|
|
|
// }
|
|
|
|
},
|
2025-05-23 01:37:30 +00:00
|
|
|
{
|
|
|
|
path: '/stock-quote',
|
|
|
|
name: 'stock-quote',
|
|
|
|
component: () => import('@/views/stock-quote/index.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/historic-stock',
|
|
|
|
name: 'historic-stock',
|
|
|
|
component: () => import('@/views/historic-stock/index.vue'),
|
|
|
|
},
|
2025-05-22 06:56:37 +00:00
|
|
|
{
|
2025-05-22 11:02:50 +00:00
|
|
|
path: '/contacts',
|
|
|
|
name: 'contacts',
|
|
|
|
component: () => import('@/views/contacts/index.vue'),
|
2025-05-22 06:56:37 +00:00
|
|
|
},
|
2025-05-22 11:42:33 +00:00
|
|
|
{
|
|
|
|
path: '/email-alerts',
|
|
|
|
name: 'email-alerts',
|
|
|
|
component: () => import('@/views/email-alerts/index.vue'),
|
2025-05-23 00:50:08 +00:00
|
|
|
},
|
2025-05-23 00:55:16 +00:00
|
|
|
{
|
|
|
|
path: '/quarterlyresults',
|
|
|
|
name: 'QuarterlyResults',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/financialinformation/quarterlyresults/index.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/secfilings',
|
|
|
|
name: 'SecFilings',
|
|
|
|
component: () =>
|
|
|
|
import('@/views/financialinformation/secfilings/index.vue'),
|
|
|
|
},
|
2025-05-23 02:45:41 +00:00
|
|
|
{
|
|
|
|
path: '/press-releases',
|
|
|
|
name: 'press-releases',
|
|
|
|
component: () => import('@/views/press-releases/index.vue'),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/events-calendar',
|
|
|
|
name: 'events-calendar',
|
|
|
|
component: () => import('@/views/events-calendar/index.vue'),
|
|
|
|
},
|
2025-05-23 00:50:08 +00:00
|
|
|
],
|
|
|
|
},
|
2025-05-23 03:30:17 +00:00
|
|
|
|
2025-05-23 00:50:08 +00:00
|
|
|
// {
|
|
|
|
// path: '/companyprofil',
|
|
|
|
// name: 'Companyprofil',
|
|
|
|
// component: () => import('@/views/companyprofil/index.vue'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/companyprofildetail',
|
|
|
|
// name: 'Companyprofildetail',
|
|
|
|
// component: () => import('@/views/companyprofildetail/index.vue'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/businessintroduction',
|
|
|
|
// name: 'Businessintroduction',
|
|
|
|
// component: () => import('@/views/businessintroduction/index.vue'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/investor',
|
|
|
|
// name: 'Investor',
|
|
|
|
// component: () => import('@/views/investor/index.vue'),
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// path: '/investorhandbook',
|
|
|
|
// name: 'Investorhandbook',
|
|
|
|
// component: () => import('@/views/investorhandbook/index.vue'),
|
|
|
|
// },
|
|
|
|
]
|
2025-05-22 06:56:37 +00:00
|
|
|
|
|
|
|
const router = createRouter({
|
2025-05-23 00:50:08 +00:00
|
|
|
history: createWebHistory(),
|
|
|
|
routes,
|
|
|
|
})
|
2025-05-22 06:56:37 +00:00
|
|
|
router.beforeEach((to, from, next) => {
|
2025-05-23 00:50:08 +00:00
|
|
|
if (to.meta?.title) {
|
|
|
|
document.title = to.meta.title
|
|
|
|
}
|
|
|
|
next()
|
|
|
|
})
|
|
|
|
setupRouterGuards(router)
|
|
|
|
export default router
|