core: fix lang preferences when changed lang list

This commit is contained in:
undefined committed 2021-03-10 22:02:44 +08:00
1 parent 391eb96b22
commit e7780c56bb
7 files changed
+29 -40

No files matched your search

-18
View File
@@ -42,9 +42,6 @@ export namespace Pdoc {
config: {},
acMsg: '',
difficulty: 0,
difficultyAlgo: 0,
difficultyAdmin: 0,
difficultySetting: null,
}));
export function create(docId?: number, pid?: string) {
@@ -56,16 +53,6 @@ export namespace Pdoc {
}
}
export const SETTING_DIFFICULTY_ALGORITHM = 0;
export const SETTING_DIFFICULTY_ADMIN = 1;
export const SETTING_DIFFICULTY_AVERAGE = 2;
export const SETTING_DIFFICULTY_RANGE = [
[SETTING_DIFFICULTY_ALGORITHM, 'Use algorithm calculated'],
[SETTING_DIFFICULTY_ADMIN, 'Use admin specificed'],
[SETTING_DIFFICULTY_AVERAGE, 'Use average of above'],
];
export const PROJECTION_LIST: Pdoc.Field[] = [
'_id', 'domainId', 'docType', 'docId', 'pid',
'owner', 'title', 'nSubmit', 'nAccept', 'difficulty',
@@ -246,11 +233,6 @@ global.Hydro.model.problem = {
PROJECTION_LIST,
PROJECTION_PUBLIC,
SETTING_DIFFICULTY_ADMIN,
SETTING_DIFFICULTY_ALGORITHM,
SETTING_DIFFICULTY_AVERAGE,
SETTING_DIFFICULTY_RANGE,
add,
inc,
get,