mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
add manage_rejudge
This commit is contained in:
2 files changed
+111
-23
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { STATUS_TEXTS } from '@hydrooj/common';
|
||||
import $ from 'jquery';
|
||||
import CustomSelectAutoComplete from 'vj/components/autocomplete/CustomSelectAutoComplete';
|
||||
import ProblemSelectAutoComplete from 'vj/components/autocomplete/ProblemSelectAutoComplete';
|
||||
@@ -15,7 +16,9 @@ const page = new NamedPage('manage_rejudge', async () => {
|
||||
const langs = Object.keys(window.LANGS).filter((i) => !prefixes.has(i)).map((i) => (
|
||||
{ name: `${i.includes('.') ? `${window.LANGS[i.split('.')[0]].display}/` : ''}${window.LANGS[i].display}`, _id: i }
|
||||
));
|
||||
CustomSelectAutoComplete.getOrConstruct($('[name=lang]'), { multi: false, data: langs });
|
||||
CustomSelectAutoComplete.getOrConstruct($('[name=lang]'), { multi: true, data: langs });
|
||||
const statuses = Object.values(STATUS_TEXTS).map((i) => ({ name: i, _id: i }));
|
||||
CustomSelectAutoComplete.getOrConstruct($('[name=status]'), { multi: true, data: statuses });
|
||||
});
|
||||
|
||||
export default page;
|
||||
Reference in new issue
Block a user