mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
clean code
This commit is contained in:
parent
ad8695f650
commit
45ea215003
@ -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>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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' : '';
|
||||
|
||||
@ -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' : '';
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user