mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix edit::title
This commit is contained in:
1 parent
7f53b985cc
commit
7aa96e361c
6 files changed
+6
-6
No files matched your search
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "hydrooj",
|
"name": "hydrooj",
|
||||||
"version": "2.22.2",
|
"version": "2.22.3",
|
||||||
"bin": "bin/hydrooj.js",
|
"bin": "bin/hydrooj.js",
|
||||||
"main": "dist/loader.js",
|
"main": "dist/loader.js",
|
||||||
"typings": "dist/loader.d.ts",
|
"typings": "dist/loader.d.ts",
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ class ContestEditHandler extends ContestHandler {
|
|||||||
@param('beginAtDate', Types.Date)
|
@param('beginAtDate', Types.Date)
|
||||||
@param('beginAtTime', Types.Time)
|
@param('beginAtTime', Types.Time)
|
||||||
@param('duration', Types.Float)
|
@param('duration', Types.Float)
|
||||||
@param('content', Types.Title)
|
@param('title', Types.Title)
|
||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
@param('rule', Types.Range(contest.RULES))
|
@param('rule', Types.Range(contest.RULES))
|
||||||
@param('pids', Types.Content)
|
@param('pids', Types.Content)
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ class DiscussionCreateHandler extends DiscussionHandler {
|
|||||||
|
|
||||||
@param('type', Types.Name)
|
@param('type', Types.Name)
|
||||||
@param('name', Types.Name)
|
@param('name', Types.Name)
|
||||||
@param('content', Types.Title)
|
@param('title', Types.Title)
|
||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
@param('highlight', Types.Boolean)
|
@param('highlight', Types.Boolean)
|
||||||
@param('pin', Types.Boolean)
|
@param('pin', Types.Boolean)
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ class HomeworkCreateHandler extends HomeworkHandler {
|
|||||||
@param('penaltySinceTime', Types.Time)
|
@param('penaltySinceTime', Types.Time)
|
||||||
@param('extensionDays', Types.Float)
|
@param('extensionDays', Types.Float)
|
||||||
@param('penaltyRules', Types.Content, validatePenaltyRules, convertPenaltyRules)
|
@param('penaltyRules', Types.Content, validatePenaltyRules, convertPenaltyRules)
|
||||||
@param('content', Types.Title)
|
@param('title', Types.Title)
|
||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
@param('pids', Types.Content)
|
@param('pids', Types.Content)
|
||||||
@param('rated', Types.Boolean)
|
@param('rated', Types.Boolean)
|
||||||
|
|||||||
@@ -342,7 +342,7 @@ export class ProblemEditHandler extends ProblemManageHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@route('pid', Types.Name, null, parsePid)
|
@route('pid', Types.Name, null, parsePid)
|
||||||
@post('content', Types.Title)
|
@post('title', Types.Title)
|
||||||
@post('content', Types.Content)
|
@post('content', Types.Content)
|
||||||
@post('pid', Types.Name, isPid, true)
|
@post('pid', Types.Name, isPid, true)
|
||||||
@post('hidden', Types.Boolean)
|
@post('hidden', Types.Boolean)
|
||||||
|
|||||||
@@ -178,7 +178,7 @@ class TrainingCreateHandler extends Handler {
|
|||||||
this.response.body = { page_name: 'training_create', path };
|
this.response.body = { page_name: 'training_create', path };
|
||||||
}
|
}
|
||||||
|
|
||||||
@param('content', Types.Title)
|
@param('title', Types.Title)
|
||||||
@param('content', Types.Content)
|
@param('content', Types.Content)
|
||||||
@param('dag', Types.String, isContent)
|
@param('dag', Types.String, isContent)
|
||||||
@param('description', Types.String, isDescription)
|
@param('description', Types.String, isDescription)
|
||||||
|
|||||||
Reference in new issue
Block a user