mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix login by email
This commit is contained in:
1 parent
78be1d6fc5
commit
4b74ebbeba
3 files changed
+12
-8
No files matched your search
@@ -4,7 +4,7 @@ import crypto from 'crypto';
|
||||
import esbuild from 'esbuild';
|
||||
import {
|
||||
ContestModel, Context, fs, Handler, Logger, ObjectID, param, PERM, PRIV, ProblemModel, Schema,
|
||||
SettingModel, SystemModel, SystemSettings, Types, UiContextBase, UserModel,
|
||||
SettingModel, size, SystemModel, SystemSettings, Types, UiContextBase, UserModel,
|
||||
} from 'hydrooj';
|
||||
import { debounce } from 'lodash';
|
||||
import { tmpdir } from 'os';
|
||||
@@ -79,7 +79,7 @@ export async function buildUI() {
|
||||
const version = c.digest('hex');
|
||||
constant = JSON.stringify(payload);
|
||||
UiContextBase.constantVersion = hash = version;
|
||||
logger.success('UI addons built in %d ms', Date.now() - start);
|
||||
logger.success('UI addons built in %d ms (%s)', Date.now() - start, size(constant.length));
|
||||
}
|
||||
function updateLogo() {
|
||||
UiContextBase.nav_logo_dark = SystemModel.get('ui-default.nav_logo_dark');
|
||||
|
||||
Reference in new issue
Block a user