mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: add querystring and originalPath property on request
This commit is contained in:
1 parent
512a912080
commit
9576d35e21
6 files changed
+23
-18
No files matched your search
@@ -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 +0,0 @@
|
||||
From QDUOJ Export: 从 QDUOJ 导入
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user