mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: scratchpad reinit
This commit is contained in:
1 parent
2f2b1ca711
commit
6e4e2d5ecf
2 files changed
+3
-6
No files matched your search
@@ -1,14 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/ui-default",
|
"name": "@hydrooj/ui-default",
|
||||||
"version": "4.39.14",
|
"version": "4.39.15",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"main": "hydro.js",
|
"main": "hydro.js",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
"preferUnplugged": true,
|
"preferUnplugged": true,
|
||||||
"scripts": {
|
|
||||||
"lint": "eslint"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@blueprintjs/core": "^4.9.3",
|
"@blueprintjs/core": "^4.9.3",
|
||||||
"@fontsource/dm-mono": "^4.5.9",
|
"@fontsource/dm-mono": "^4.5.9",
|
||||||
|
|||||||
@@ -149,15 +149,15 @@ const page = new NamedPage(['problem_detail', 'contest_detail_problem', 'homewor
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const root = createRoot($('#scratchpad').get(0));
|
|
||||||
renderReact = () => {
|
renderReact = () => {
|
||||||
|
const root = createRoot($('#scratchpad').get(0));
|
||||||
root.render(
|
root.render(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<ScratchpadApp />
|
<ScratchpadApp />
|
||||||
</Provider>,
|
</Provider>,
|
||||||
);
|
);
|
||||||
|
unmountReact = () => root.unmount();
|
||||||
};
|
};
|
||||||
unmountReact = () => root.unmount();
|
|
||||||
reactLoaded = true;
|
reactLoaded = true;
|
||||||
$('.loader-container').hide();
|
$('.loader-container').hide();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user