mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui: prism: 支持显示空白符
This commit is contained in:
1 parent
8fede5fc9d
commit
b62b4e58a0
5 files changed
+81
-3
No files matched your search
@@ -11,7 +11,7 @@
|
||||
"node": ">=14"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hydrooj/utils": "^1.0.1",
|
||||
"@hydrooj/utils": "^1.0.3",
|
||||
"adm-zip": "^0.5.5",
|
||||
"ansi_up": "^5.0.1",
|
||||
"cookies": "^0.8.0",
|
||||
|
||||
@@ -89,6 +89,7 @@ export async function setting(pending: string[], fail: string[], modelSetting: t
|
||||
system: modelSetting.SystemSetting,
|
||||
account: modelSetting.AccountSetting,
|
||||
preference: modelSetting.PreferenceSetting,
|
||||
domain: modelSetting.DomainSetting,
|
||||
};
|
||||
for (const i of pending) {
|
||||
let p = path.resolve(i, 'setting.yaml');
|
||||
@@ -105,9 +106,10 @@ export async function setting(pending: string[], fail: string[], modelSetting: t
|
||||
.replace(/\$TEMP/g, os.tmpdir())
|
||||
.replace(/\$HOME/g, os.homedir());
|
||||
}
|
||||
map[cfg[key].category || 'system'](
|
||||
const category = cfg[key].category || 'system';
|
||||
map[category](
|
||||
modelSetting.Setting(
|
||||
name, `${name}.${key}`, val, cfg[key].type || 'text',
|
||||
name, category === 'system' ? `${name}.${key}` : key, val, cfg[key].type || 'text',
|
||||
cfg[key].name || key, cfg[key].desc || '',
|
||||
),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user