From 45ea2150031d3450215561f785a3863ea0b34bb9 Mon Sep 17 00:00:00 2001 From: daria <95225431+dariiing@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:08:19 +0300 Subject: [PATCH] clean code --- customize.dist/contact.html | 1 - customize.dist/features.html | 2 +- customize.dist/pages/login.js | 1 - customize.dist/pages/register.js | 1 - customize.dist/template.js | 5 +++-- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/customize.dist/contact.html b/customize.dist/contact.html index e2fde5025..ac533a682 100644 --- a/customize.dist/contact.html +++ b/customize.dist/contact.html @@ -15,7 +15,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later -
diff --git a/customize.dist/features.html b/customize.dist/features.html index ccd2823fe..bf5103832 100644 --- a/customize.dist/features.html +++ b/customize.dist/features.html @@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later - + diff --git a/customize.dist/pages/login.js b/customize.dist/pages/login.js index b4be7b8ec..b45c4c5b2 100644 --- a/customize.dist/pages/login.js +++ b/customize.dist/pages/login.js @@ -11,7 +11,6 @@ define([ ], function (h, UI, Msg, Pages, Config) { return function () { document.title = Msg.login_login; - setTimeout(() => lucide.createIcons(), 0); var ssoEnabled = (Config.sso && Config.sso.list && Config.sso.list.length) ?'': '.cp-hidden'; var ssoEnforced = (Config.sso && Config.sso.force) ? '.cp-hidden' : ''; diff --git a/customize.dist/pages/register.js b/customize.dist/pages/register.js index 220cbaf2a..fde495c49 100644 --- a/customize.dist/pages/register.js +++ b/customize.dist/pages/register.js @@ -13,7 +13,6 @@ define([ return function () { document.title = Msg.register_header; var tos = $(UI.createCheckbox('accept-terms')).find('.cp-checkmark-label').append(Msg.register_acceptTerms).parent()[0]; - setTimeout(() => lucide.createIcons(), 0); var ssoEnabled = (Config.sso && Config.sso.list && Config.sso.list.length) ?'': '.cp-hidden'; var ssoEnforced = (Config.sso && Config.sso.force) ? '.cp-hidden' : ''; diff --git a/customize.dist/template.js b/customize.dist/template.js index 78fc88c5b..f9d375412 100644 --- a/customize.dist/template.js +++ b/customize.dist/template.js @@ -7,9 +7,10 @@ define([ '/common/hyperscript.js', '/customize/pages.js', '/components/nthen/index.js', + '/customize/fonts/lucide.js', 'css!/components/components-font-awesome/css/font-awesome.min.css', -], function ($, h, Pages, nThen) { +], function ($, h, Pages, nThen, Lucide) { // we consider that there is no valid reason to load any of the info pages // in an iframe. abort everything if you detect that you are embedded. if (window.top !== window) { return; } @@ -57,7 +58,7 @@ $(function () { titleSuffix = window.location.hostname; } document.title = document.title + ' - ' + titleSuffix; - setTimeout(() => lucide.createIcons(), 0); + setTimeout(() => Lucide.createIcons(), 0); $('#placeholder').remove(); $body.append($main);