Improved Performance and Layout of Vue Applications, enhanced caching aswell as using less code

This commit is contained in:
Luca Haid
2024-05-10 23:01:19 +02:00
parent 18ee289509
commit c2e5796661
34 changed files with 2281 additions and 1139 deletions
@@ -15,7 +15,21 @@ class HistoricTicketController extends mfBaseController {
if (!$this->me->is("employee")) {
$this->redirect("dashboard");
}
$this->layout()->setTemplate("HistoricTicket/Index");
$JSGlobals = ["BASE_URL" => self::getUrl("Domain"),
"DASHBOARD_URL" => self::getUrl("Dashboard"),
"MFAPPNAME" => MFAPPNAME_SLUG,
"PAGE_TITLE" => "Historische Tickets",
"PATH" => [
["text" => MFAPPNAME_SLUG, "href" => self::getUrl("Dashboard")],
["text" => "Historische Tickets", "href" => self::getUrl("HistoricTicket")]
],
"HISTORIC_TICKET_API_URL" => self::getUrl("HistoricTicket/api"),
];
$this->layout()->set("vueViewName", "HistoricTicket");
$this->layout()->set("JSGlobals", $JSGlobals);
$this->layout()->setTemplate("VueViews/Vue");
}
protected function apiAction() {