mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
port 040 config (#2657)
* port 040 config, WIP * update fixtures * use taiga modal for backups too * fix: update Taiga UI and refactor everything to work * chore: package-lock * fix interfaces and mocks for interfaces * better mocks * function to transform old spec to new * delete unused fns * delete unused FE config utils * fix exports from sdk * reorganize exports * functions to translate config * rename unionSelectKey and unionValueKey * Adding in the transformation of the getConfig to the new types. * chore: add Taiga UI to preloader --------- Co-authored-by: waterplea <alexander@inkin.ru> Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: J H <dragondef@gmail.com>
This commit is contained in:
@@ -285,26 +285,26 @@ const {Config, List, Value, Variants} = sdk
|
||||
maxLength: null,
|
||||
})})`
|
||||
}
|
||||
case "number": {
|
||||
return `${rangeToTodoComment(value?.range)}List.number(${JSON.stringify(
|
||||
{
|
||||
name: value.name || null,
|
||||
minLength: null,
|
||||
maxLength: null,
|
||||
default: value.default || null,
|
||||
description: value.description || null,
|
||||
warning: value.warning || null,
|
||||
},
|
||||
null,
|
||||
2,
|
||||
)}, ${JSON.stringify({
|
||||
integer: value?.spec?.integral || false,
|
||||
min: null,
|
||||
max: null,
|
||||
units: value?.spec?.units || null,
|
||||
placeholder: value?.spec?.placeholder || null,
|
||||
})})`
|
||||
}
|
||||
// case "number": {
|
||||
// return `${rangeToTodoComment(value?.range)}List.number(${JSON.stringify(
|
||||
// {
|
||||
// name: value.name || null,
|
||||
// minLength: null,
|
||||
// maxLength: null,
|
||||
// default: value.default || null,
|
||||
// description: value.description || null,
|
||||
// warning: value.warning || null,
|
||||
// },
|
||||
// null,
|
||||
// 2,
|
||||
// )}, ${JSON.stringify({
|
||||
// integer: value?.spec?.integral || false,
|
||||
// min: null,
|
||||
// max: null,
|
||||
// units: value?.spec?.units || null,
|
||||
// placeholder: value?.spec?.placeholder || null,
|
||||
// })})`
|
||||
// }
|
||||
case "enum": {
|
||||
return "/* error!! list.enum */"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user