ui: scratchpad reinit

This commit is contained in:
undefined committed 2022-08-27 20:23:35 +08:00
1 parent 2f2b1ca711
commit 6e4e2d5ecf
2 files changed
+3 -6

No files matched your search

+1 -4
View File
@@ -1,14 +1,11 @@
{
"name": "@hydrooj/ui-default",
"version": "4.39.14",
"version": "4.39.15",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",
"repository": "https://github.com/hydro-dev/Hydro.git",
"preferUnplugged": true,
"scripts": {
"lint": "eslint"
},
"devDependencies": {
"@blueprintjs/core": "^4.9.3",
"@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 = () => {
const root = createRoot($('#scratchpad').get(0));
root.render(
<Provider store={store}>
<ScratchpadApp />
</Provider>,
);
unmountReact = () => root.unmount();
};
unmountReact = () => root.unmount();
reactLoaded = true;
$('.loader-container').hide();
}