ui: add monaco loader to modules list

pull/347/head
undefined 3 years ago
parent 639f89a558
commit fc95226ce4

@ -56,4 +56,6 @@ export async function load(features = ['markdown']) {
await res.loadThemePromise; await res.loadThemePromise;
return { monaco: res.default, registerAction: res.registerAction }; return { monaco: res.default, registerAction: res.registerAction };
} }
export default load; export default load;
window.Hydro.components.loadMonaco = load;

@ -21,6 +21,7 @@ import './components/autocomplete';
import './components/dialog'; import './components/dialog';
import './components/notification'; import './components/notification';
import './components/nprogress'; import './components/nprogress';
import './components/monaco/loader';
window.node_modules = { _, $ }; window.node_modules = { _, $ };
window.$ = $; window.$ = $;

@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.34.39", "version": "4.34.40",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",

Loading…
Cancel
Save