mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: contest: detail fix
This commit is contained in:
1 parent
7e8a90a6b2
commit
a988445597
10 files changed
+10
-31
No files matched your search
@@ -1,4 +1,3 @@
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -91,7 +91,6 @@ class WikiHelpHandler extends Handler {
|
||||
async get({ domainId }) {
|
||||
const LANGS = setting.langs;
|
||||
const languages = {};
|
||||
// eslint-disable-next-line guard-for-in
|
||||
for (const key in LANGS) {
|
||||
if (LANGS[key].domain && !LANGS[key].domain.includes(domainId)) continue;
|
||||
languages[`${LANGS[key].display}(${key})`] = LANGS[key].compile || LANGS[key].execute;
|
||||
|
||||
@@ -47,7 +47,6 @@ async function load() {
|
||||
...buildSequence(includedPages, 'after'),
|
||||
...buildSequence(currentPage, 'after'),
|
||||
];
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const { page, func, type } of loadSequence) {
|
||||
const ts = new Date().getTime();
|
||||
try {
|
||||
@@ -69,13 +68,11 @@ async function load() {
|
||||
$element: $(section),
|
||||
}));
|
||||
console.log('done! %d ms', new Date().getTime() - start.getTime());
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const { $element, shouldDelay } of sections) {
|
||||
$element.addClass('visible');
|
||||
if (shouldDelay) await delay(50);
|
||||
}
|
||||
await delay(500);
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
for (const { $element } of sections) $element.trigger('vjLayout');
|
||||
$(document).trigger('vjPageFullyInitialized');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user