From 47f4febd191a12c6525c8b8bab76db3c5aec918c Mon Sep 17 00:00:00 2001 From: "Maurice L." Date: Sun, 2 Feb 2025 00:33:31 +0100 Subject: [PATCH] added some extra handled routes?? --- src/components/app/AppSidebar.vue | 30 +++++++++-- src/router.ts | 10 +++- src/views/Home.vue | 4 -- src/views/NotFound.vue | 2 +- src/views/app/App.vue | 34 ++++++++++--- src/views/app/Documentation.vue | 62 +++++++++++++++++++++++ src/views/app/Help.vue | 83 +++++++++++++++++++++++++++++++ 7 files changed, 210 insertions(+), 15 deletions(-) create mode 100644 src/views/app/Documentation.vue create mode 100644 src/views/app/Help.vue diff --git a/src/components/app/AppSidebar.vue b/src/components/app/AppSidebar.vue index f268f54..2fd7ea8 100644 --- a/src/components/app/AppSidebar.vue +++ b/src/components/app/AppSidebar.vue @@ -7,6 +7,18 @@ export default { }, mounted() { + function processAjaxData(urlPath:string) { + window.history.pushState({"html":null,"pageTitle":document.title},"", urlPath); + } + + document.getElementById("help")?.addEventListener("click", () => { + processAjaxData("/app/help") + }); + + document.getElementById("docs")?.addEventListener("click", () => { + processAjaxData("/app/docs") + }); + //Cats document.getElementById('dropdown-pages-button')?.addEventListener('click', () => { const button = document.getElementById('dropdown-pages-button'); @@ -19,6 +31,12 @@ export default { button?.setAttribute('aria-expanded', 'false'); } }); + document.getElementById("parks-side")?.addEventListener("click", () => { + processAjaxData("/app/parks") + }); + document.getElementById("attractions-side")?.addEventListener("click", () => { + processAjaxData("/app/attractions") + }); //database document.getElementById('dropdown-sales-button')?.addEventListener('click', () => { @@ -32,6 +50,12 @@ export default { button?.setAttribute('aria-expanded', 'false'); } }); + document.getElementById("stats-page")?.addEventListener("click", () => { + processAjaxData("/database/statistics") + }); + document.getElementById("techstats-page")?.addEventListener("click", () => { + processAjaxData("/database/technical-information") + }); //last thing (outcommented) document.getElementById('dropdown-authentication-button')?.addEventListener('click', () => { @@ -216,7 +240,7 @@ export default {
  • Admin-Panel @@ -291,7 +315,7 @@ export default { >
  • = [ path: '/', component: () => import('./views/Home.vue') }, + { + path: '/docs', + component: () => import('./views/app/Documentation.vue') + }, + { + path: '/help', + component: () => import('./views/app/Help.vue') + }, //App { @@ -16,7 +24,7 @@ const routes: Array = [ //Redirects - //Congifuration + //Configuration { path: '/:pathMatch(.*)*', component: () => import("./views/NotFound.vue") diff --git a/src/views/Home.vue b/src/views/Home.vue index ce85a3b..a78ac66 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -9,10 +9,6 @@ export default { Footer } } - -console.log('%c ACHTUNG! STOP!', ['color: red','display: block','font-size: 50px'].join(';')) -console.log('%c Wenn dir jemand gesagt hat, dass du etwas heraus kopieren sollst/hier einfügen sollst, hast du eine 11/10 Chance, dass du gescammt wirst!', ['font-size: 15px'].join(';')) -console.log('%c Wenn du nicht 100% weißt, was du tust, schließe dieses Fenster!', ['font-size: 15px'].join(';'))
    +
    +

    Designed for business teams like yours

    +

    Here at Flowbite we focus on markets where technology, innovation, and capital can unlock long-term value and drive economic growth.

    +
    +
    +
    +
    + +
    +

    Marketing

    +

    Plan it, create it, launch it. Collaborate seamlessly with all the organization and hit your marketing goals every month with our marketing plan.

    +
    +
    +
    + +
    +

    Legal

    +

    Protect your organization, devices and stay compliant with our structured workflows and custom permissions made for you.

    +
    +
    +
    + +
    +

    Business Automation

    +

    Auto-assign tasks, send Slack messages, and much more. Now power up with hundreds of new templates to help you get started.

    +
    +
    +
    + +
    +

    Finance

    +

    Audit-proof software built for critical financial operations like month-end close and quarterly budgeting.

    +
    +
    +
    + +
    +

    Enterprise Design

    +

    Craft beautiful, delightful experiences for both marketing and product with real cross-company collaboration.

    +
    +
    +
    + +
    +

    Operations

    +

    Keep your company’s lights on with customizable, iterative, and structured workflows built for all efficient teams and individual.

    +
    +
    +
    + + \ No newline at end of file diff --git a/src/views/app/Help.vue b/src/views/app/Help.vue new file mode 100644 index 0000000..2788fe3 --- /dev/null +++ b/src/views/app/Help.vue @@ -0,0 +1,83 @@ + + + \ No newline at end of file