clean code

This commit is contained in:
daria 2025-07-09 12:08:19 +03:00
parent ad8695f650
commit 45ea215003
No known key found for this signature in database
GPG Key ID: 3B75240E6B2F2701
5 changed files with 4 additions and 6 deletions

View File

@ -15,7 +15,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<script src="/customize/pre-loading.js?ver=1.1"></script>
<link href="/customize/src/pre-loading.css?ver=1.0" rel="stylesheet" type="text/css">
<script async data-bootload="/customize/template.js" data-main="/common/boot.js?ver=1.0" src="/components/requirejs/require.js?ver=2.3.7"></script>
<script src="/customize/fonts/lucide.js"></script>
</head>
<body class="html">
<noscript></noscript>

View File

@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
<script src="/customize/pre-loading.js?ver=1.1"></script>
<link href="/customize/src/pre-loading.css?ver=1.0" rel="stylesheet" type="text/css">
<script async data-bootload="/customize/template.js" data-main="/common/boot.js?ver=1.0" src="/components/requirejs/require.js?ver=2.3.7"></script>
<script src="/customize/fonts/lucide.js"></script>
<!-- <script src="/customize/fonts/lucide.js"></script>-->
</head>
<body class="html">
<noscript></noscript>

View File

@ -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' : '';

View File

@ -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' : '';

View File

@ -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);