ui: add stats

This commit is contained in:
undefined committed 2021-06-28 17:06:56 +08:00
1 parent 0e48370692
commit 13cb86e1f8
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -6,6 +6,7 @@ import PageLoader from 'vj/misc/PageLoader';
import delay from 'vj/utils/delay';
import base64 from 'vj/utils/base64';
const start = new Date();
window.UiContext = JSON.parse(base64.decode(window.UiContext));
window.UserContext = JSON.parse(base64.decode(window.UserContext));
@@ -72,6 +73,7 @@ async function load() {
shouldDelay: idx < 5, // only animate first 5 sections
$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');
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.11.43",
"version": "4.11.44",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",