CI / changes (push) Successful in 10s
CI / commitlint (push) Has been skipped
CI / openapi (push) Successful in 25s
CI / web (push) Successful in 36s
CI / go (push) Successful in 49s
CI / bird2 (push) Successful in 17s
CI / release (push) Successful in 3m59s
- Merged birdSettingsSchema and revisionSettingsSchema into settingsKnownSchema, marking the previous schema as deprecated. - Updated emptySettingsKnownForm to utilize emptyBirdSettingsForm and emptyRevisionSettingsForm. - Refactored layout and page components to streamline theme management and improve tab synchronization in network and operations pages. - Introduced new system settings tab in operations and updated settings page to manage theme preferences.
22 lines
670 B
TypeScript
22 lines
670 B
TypeScript
export const BIRD_SETTING_KEYS = [
|
|
'bird_router_id',
|
|
'bird_local_ipv4',
|
|
'bird_local_ipv6',
|
|
'bird_local_asn',
|
|
'bird_bgp_source_ipv4',
|
|
'bird_bgp_source_ipv6'
|
|
] as const;
|
|
|
|
export const REVISION_SETTING_KEYS = ['revision_retention_minutes'] as const;
|
|
|
|
export const KNOWN_SETTING_KEYS = [...BIRD_SETTING_KEYS, ...REVISION_SETTING_KEYS] as const;
|
|
|
|
export type BirdSettingKey = (typeof BIRD_SETTING_KEYS)[number];
|
|
export type RevisionSettingKey = (typeof REVISION_SETTING_KEYS)[number];
|
|
export type KnownSettingKey = (typeof KNOWN_SETTING_KEYS)[number];
|
|
|
|
export const NUMERIC_SETTING_KEYS = new Set<KnownSettingKey>([
|
|
'bird_local_asn',
|
|
'revision_retention_minutes'
|
|
]);
|