From 7121b46bf9dbe2b7e39e97996edd26d9efbcc40e Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Fri, 14 Aug 2026 16:08:23 +0200 Subject: [PATCH] menu app -> menu component; host menu component in cis app and teleport it to back to #cis-header in DOM; avoids rollup bundle seeing 2 imports and bundling it into 2 instances, this way rollup only ever creates the instance for Cis App and teleports it away; actually improves Menu component, since it is now a logical child of Cis app and retrieve provide/inject and possibly other reactives; keep Menu app as a menu component wrapper in case a legacy/content page is loaded -> switch inside Menu app not mounting if it detects a fhccontent element indicating cis4 native page; in CISVUE-Header.php duplicate props/data-attributes for either case; Link.js now checks for router availability since legacy pages dont have this.$router anymore and does not need to use CompatLinkHelpers, since the singleton router instance should be able to resolve all valid ones itself; Entry.js now always passes the URL to CisMenuLink so the first click on an expandable still toggles AND navigates; --- application/views/templates/CISVUE-Header.php | 18 +- public/js/apps/Cis/Cis.js | 18 +- public/js/apps/Cis/Menu.js | 189 ++---------------- public/js/components/Cis/Menu.js | 155 +++++++++++++- public/js/components/Cis/Menu/Entry.js | 4 +- public/js/components/Cis/Menu/Link.js | 54 +++-- 6 files changed, 224 insertions(+), 214 deletions(-) diff --git a/application/views/templates/CISVUE-Header.php b/application/views/templates/CISVUE-Header.php index 43716b3b5..ca62402f2 100644 --- a/application/views/templates/CISVUE-Header.php +++ b/application/views/templates/CISVUE-Header.php @@ -29,14 +29,18 @@ $this->load->view('templates/FHC-Header', $includesArray); document.body.classList.add("in-frame"); -