core: langs: drop lang.domain option

This commit is contained in:
undefined committed 2023-05-25 13:26:42 +08:00
1 parent fa75a0ddda
commit 6150be8723
2 files changed
+1 -3

No files matched your search

+1 -2
View File
@@ -9,11 +9,10 @@ import markdown from './backendlib/markdown';
class WikiHelpHandler extends Handler {
noCheckPermView = true;
async get({ domainId }) {
async get() {
const LANGS = SettingModel.langs;
const languages = {};
for (const key in LANGS) {
if (LANGS[key].domain && !LANGS[key].domain.includes(domainId)) continue;
if (LANGS[key].hidden) continue;
languages[`${LANGS[key].display}(${key})`] = LANGS[key].compile || LANGS[key].execute;
}
-1
View File
@@ -9,7 +9,6 @@ export interface LangConfig {
monaco: string;
time_limit_rate: number;
memory_limit_rate: number;
domain: string[];
display: string;
target?: string;
key: string;