ui: fix editor

This commit is contained in:
undefined committed 2021-12-16 12:51:06 +08:00
1 parent 0824487342
commit 234f977e08
3 files changed
+2 -3

No files matched your search

@@ -28,4 +28,3 @@ for (const key of types.keys()) {
monaco.languages.typescript.javascriptDefaults.addExtraLib(val, uri);
monaco.editor.createModel(val, 'typescript', monaco.Uri.parse(uri));
}
console.log(types);
+1 -1
View File
@@ -22,7 +22,7 @@ let CURRENT_LOCALE_DATA = {};
function find(path, message) {
for (const key of Object.keys(CURRENT_LOCALE_DATA)) {
if (!CURRENT_LOCALE_DATA[key]) continue;
if (!CURRENT_LOCALE_DATA[key] || !en_GB[key]) continue;
if (CURRENT_LOCALE_DATA[key][path] && en_GB[key][path] === message) {
return CURRENT_LOCALE_DATA[key][path];
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@hydrooj/ui-default",
"version": "4.27.8",
"version": "4.27.9",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0",
"main": "hydro.js",