mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add stats
This commit is contained in:
1 parent
0e48370692
commit
13cb86e1f8
2 files changed
+3
-1
No files matched your search
@@ -6,6 +6,7 @@ import PageLoader from 'vj/misc/PageLoader';
|
|||||||
import delay from 'vj/utils/delay';
|
import delay from 'vj/utils/delay';
|
||||||
import base64 from 'vj/utils/base64';
|
import base64 from 'vj/utils/base64';
|
||||||
|
|
||||||
|
const start = new Date();
|
||||||
window.UiContext = JSON.parse(base64.decode(window.UiContext));
|
window.UiContext = JSON.parse(base64.decode(window.UiContext));
|
||||||
window.UserContext = JSON.parse(base64.decode(window.UserContext));
|
window.UserContext = JSON.parse(base64.decode(window.UserContext));
|
||||||
|
|
||||||
@@ -72,6 +73,7 @@ async function load() {
|
|||||||
shouldDelay: idx < 5, // only animate first 5 sections
|
shouldDelay: idx < 5, // only animate first 5 sections
|
||||||
$element: $(section),
|
$element: $(section),
|
||||||
}));
|
}));
|
||||||
|
console.log('done! %d ms', new Date().getTime() - start.getTime());
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
// eslint-disable-next-line no-restricted-syntax
|
||||||
for (const { $element, shouldDelay } of sections) {
|
for (const { $element, shouldDelay } of sections) {
|
||||||
$element.addClass('visible');
|
$element.addClass('visible');
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.11.43",
|
"version": "4.11.44",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
|
|||||||
Reference in new issue
Block a user