2025-05-22 06:56:37 +00:00
|
|
|
// router/index.js
|
2025-05-23 01:04:20 +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 07:23:56 +00:00
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
redirect: '/myhome'
|
|
|
|
},
|
2025-05-23 00:50:08 +00:00
|
|
|
{
|
2025-05-23 01:04:20 +00:00
|
|
|
path: "/",
|
2025-05-23 01:09:53 +00:00
|
|
|
name: "index",
|
|
|
|
component: () => import("@/views/index/index.vue"),
|
2025-05-23 00:50:08 +00:00
|
|
|
// beforeEnter: (to, from, next) => {
|
|
|
|
|
|
|
|
// localStorage.clear()
|
|
|
|
// next()
|
|
|
|
// }
|
|
|
|
children: [
|
2025-05-23 03:30:17 +00:00
|
|
|
{
|
2025-05-23 04:10:37 +00:00
|
|
|
path: "/contacts",
|
|
|
|
name: "contacts",
|
|
|
|
component: () => import("@/views/contacts/index.vue"),
|
2025-05-23 03:30:17 +00:00
|
|
|
},
|
2025-05-23 03:52:03 +00:00
|
|
|
{
|
2025-05-23 04:10:37 +00:00
|
|
|
path: "/calculator",
|
|
|
|
name: "calculator",
|
|
|
|
component: () => import("@/views/calculator/index.vue"),
|
2025-05-23 03:52:03 +00:00
|
|
|
},
|
2025-05-23 04:10:37 +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"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/contacts",
|
|
|
|
name: "contacts",
|
|
|
|
component: () => import("@/views/contacts/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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
|
|
|
{
|
2025-05-23 01:09:53 +00:00
|
|
|
path: "/quarterlyresults",
|
|
|
|
name: "QuarterlyResults",
|
2025-05-23 00:55:16 +00:00
|
|
|
component: () =>
|
2025-05-23 01:09:53 +00:00
|
|
|
import("@/views/financialinformation/quarterlyresults/index.vue"),
|
2025-05-23 00:55:16 +00:00
|
|
|
},
|
|
|
|
{
|
2025-05-23 01:09:53 +00:00
|
|
|
path: "/secfilings",
|
|
|
|
name: "SecFilings",
|
2025-05-23 00:55:16 +00:00
|
|
|
component: () =>
|
2025-05-23 01:09:53 +00:00
|
|
|
import("@/views/financialinformation/secfilings/index.vue"),
|
2025-05-23 00:55:16 +00:00
|
|
|
},
|
2025-05-30 07:33:35 +00:00
|
|
|
{
|
|
|
|
path: "/secfilingsDefail",
|
|
|
|
name: "SecFilingsDetail",
|
|
|
|
component: () =>
|
|
|
|
import("@/views/financialinformation/secfilingsdetail/index.vue"),
|
|
|
|
},
|
2025-05-30 05:53:22 +00:00
|
|
|
{
|
|
|
|
path: "/annualreports",
|
|
|
|
name: "AnnualReports",
|
|
|
|
component: () =>
|
|
|
|
import("@/views/financialinformation/annualreports/index.vue"),
|
|
|
|
},
|
2025-05-23 02:45:41 +00:00
|
|
|
{
|
2025-05-23 04:10:37 +00:00
|
|
|
path: "/press-releases",
|
|
|
|
name: "press-releases",
|
|
|
|
component: () => import("@/views/press-releases/index.vue"),
|
2025-05-23 02:45:41 +00:00
|
|
|
},
|
|
|
|
{
|
2025-05-23 04:10:37 +00:00
|
|
|
path: "/events-calendar",
|
|
|
|
name: "events-calendar",
|
|
|
|
component: () => import("@/views/events-calendar/index.vue"),
|
|
|
|
},
|
2025-05-23 04:03:48 +00:00
|
|
|
{
|
|
|
|
path: "/companyoverview",
|
|
|
|
name: "companyoverview",
|
|
|
|
component: () => import("@/views/companyoverview/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "myhome",
|
|
|
|
name: "myHome",
|
|
|
|
component: () => import("@/views/myHome/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/businessservices",
|
|
|
|
name: "BusinessServices",
|
|
|
|
component: () => import("@/views/BusinessServices/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/manage",
|
|
|
|
name: "manage",
|
|
|
|
component: () => import("@/views/manage/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/boarddirectors",
|
|
|
|
name: "boarddirectors",
|
|
|
|
component: () => import("@/views/boarddirectors/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/committeeappointment",
|
|
|
|
name: "CommitteeAppointment",
|
|
|
|
component: () => import("@/views/CommitteeAppointment/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/govern",
|
|
|
|
name: "govern",
|
|
|
|
component: () => import("@/views/govern/index.vue"),
|
2025-05-23 02:45:41 +00:00
|
|
|
},
|
2025-05-30 06:07:52 +00:00
|
|
|
{
|
|
|
|
path: "/privacyPolicy",
|
|
|
|
name: "privacyPolicy",
|
|
|
|
component: () => import("@/views/footerLinks/privacyPolicy/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/termsOfUse",
|
|
|
|
name: "termsOfUse",
|
|
|
|
component: () => import("@/views/footerLinks/termsOfUse/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/cookiesSettings",
|
|
|
|
name: "cookiesSettings",
|
|
|
|
component: () => import("@/views/footerLinks/cookiesSettings/index.vue"),
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: "/siteMap",
|
|
|
|
name: "siteMap",
|
|
|
|
component: () => import("@/views/footerLinks/siteMap/index.vue"),
|
|
|
|
},
|
2025-05-23 00:50:08 +00:00
|
|
|
],
|
|
|
|
},
|
2025-05-23 07:23:56 +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-23 07:23:56 +00:00
|
|
|
{
|
|
|
|
path: '/:pathMatch(.*)*',
|
|
|
|
redirect: '/myhome'
|
|
|
|
}
|
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) {
|
2025-05-23 01:04:20 +00:00
|
|
|
document.title = to.meta.title;
|
2025-05-23 00:50:08 +00:00
|
|
|
}
|
2025-05-23 01:04:20 +00:00
|
|
|
next();
|
2025-05-22 06:56:37 +00:00
|
|
|
});
|
|
|
|
setupRouterGuards(router);
|
|
|
|
export default router;
|