core: add querystring and originalPath property on request

This commit is contained in:
undefined committed 2022-11-08 17:21:36 +08:00
1 parent 512a912080
commit 9576d35e21
6 files changed
+23 -18

No files matched your search

+4
View File
@@ -135,7 +135,11 @@ class ImportQduojHandler extends Handler {
}
}
export const name = 'import-qduoj';
export async function apply(ctx: Context) {
ctx.Route('problem_import_qduoj', '/problem/import/qduoj', ImportQduojHandler, PERM.PERM_CREATE_PROBLEM);
ctx.inject('ProblemAdd', 'problem_import_qduoj', { icon: 'copy', text: 'From QDUOJ Export' });
ctx.i18n.load('zh', {
'From QDUOJ Export': '从 QDUOJ 导入',
});
}
-1
View File
@@ -1 +0,0 @@
From QDUOJ Export: 从 QDUOJ 导入
+1 -4
View File
@@ -6,8 +6,5 @@
"repository": "https://github.com/hydro-dev/Hydro.git",
"author": "undefined <i@undefined.moe>",
"license": "AGPL-3.0-or-later",
"preferUnplugged": true,
"dependencies": {
"decode-html": "^2.0.0"
}
"preferUnplugged": true
}