From f9ffcd3327008bb32448a668360d5eeda007d249 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Fri, 7 Mar 2025 15:26:38 +0900 Subject: [PATCH] Move login nav menu functions into class Because we need translations, so we use a class where we require the translation class to be in the constructor Code fix for i18n variable not set check and default fill for the translation class --- build/test.html | 16 ++--- package-lock.json | 18 ++++++ package.json | 9 +-- src/{utilsAll.mjs => utils.mjs} | 93 ++------------------------ src/utils/LoginLogout.mjs | 25 +++++++ src/utils/LoginMenu.mjs | 111 -------------------------------- src/utils/LoginNavMenu.mjs | 109 +++++++++++++++++++++++++++++++ 7 files changed, 172 insertions(+), 209 deletions(-) rename src/{utilsAll.mjs => utils.mjs} (96%) create mode 100644 src/utils/LoginLogout.mjs delete mode 100644 src/utils/LoginMenu.mjs create mode 100644 src/utils/LoginNavMenu.mjs diff --git a/build/test.html b/build/test.html index cc7c383..5059541 100644 --- a/build/test.html +++ b/build/test.html @@ -3,29 +3,29 @@ JavaScript Test - +
-

JavaScript tests

+

JavaScript Utils Test