ui: fix load

This commit is contained in:
undefined committed 2021-04-18 20:08:41 +08:00
1 parent cea0307a16
commit f4c3ca20a2
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "@hydrooj/hydrojudge", "name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js", "bin": "bin/hydrojudge.js",
"version": "2.5.2", "version": "2.5.3",
"main": "package.json", "main": "package.json",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git", "repository": "https://github.com/hydro-dev/Hydro.git",
+1 -1
View File
@@ -78,7 +78,7 @@ const xss = new Xss.FilterXSS({
}); });
if (argv.template && argv.template !== 'string') argv.template = findFileSync('@hydrooj/ui-default/templates'); if (argv.template && argv.template !== 'string') argv.template = findFileSync('@hydrooj/ui-default/templates');
else argv.template = findFileSync(argv.template); else if (argv.template) argv.template = findFileSync(argv.template);
class Loader extends nunjucks.Loader { class Loader extends nunjucks.Loader {
// eslint-disable-next-line class-methods-use-this // eslint-disable-next-line class-methods-use-this
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@hydrooj/ui-default", "name": "@hydrooj/ui-default",
"version": "4.6.1", "version": "4.6.2",
"author": "undefined <i@undefined.moe>", "author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "hydro.js", "main": "hydro.js",