mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: langs: drop lang.domain option
This commit is contained in:
2 files changed
+1
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user