feat(core): adjust admin panel style (#7116)

This commit is contained in:
forehalo
2024-05-31 10:43:29 +00:00
parent 002b9e80f8
commit c96fb46751
6 changed files with 59 additions and 29 deletions

View File

@@ -18,7 +18,13 @@ function validateConfigType<K extends keyof FlattenedAppRuntimeConfig>(
key: K,
value: any
) {
const want = defaultRuntimeConfig[key].type;
const config = defaultRuntimeConfig[key];
if (!config) {
throw new BadRequestException(`Unknown runtime config key '${key}'`);
}
const want = config.type;
const get = runtimeConfigType(value);
if (get !== want) {
throw new BadRequestException(