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

View File

@@ -24,7 +24,21 @@ class VoiceCallActiveController extends mfBaseController {
}
protected function indexAction(): void {
$this->layout()->setTemplate("VoiceCallActive/Index");
$JSGlobals = ["BASE_URL" => self::getUrl("VoiceCallActive"),
"DASHBOARD_URL" => self::getUrl("Dashboard"),
"MFAPPNAME" => MFAPPNAME_SLUG,
"PAGE_TITLE" => "Active Voice Calls",
"PATH" => [
["text" => MFAPPNAME_SLUG, "href" => self::getUrl("Dashboard")],
["text" => "Active Voice Calls", "href" => self::getUrl("VoiceCallActive")]
],
"VOICE_CALL_ACTIVE_API_URL" => self::getUrl("VoiceCallActive/api"),
];
$this->layout()->set("additionalCSS", ["css/views/VoiceCallActive.css"]);
$this->layout()->set("vueViewName", "VoiceCallActive");
$this->layout()->set("JSGlobals", $JSGlobals);
$this->layout()->setTemplate("VueViews/Vue");
}
protected function apiAction() {