Store ArtFuehrung as abbreviations in DB (RF, SF, BEOS, SonF, TD, Beob, ToT, Sonst)
Dropdown shows 'RF — Reguläre Führung' etc., list displays abbreviation only. Includes migrate_art.sql for existing data and updated create_table.sql. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,25 +1,20 @@
|
||||
export type Kuppel = 'West' | 'Ost' | 'Süd' | 'Pluto';
|
||||
export type ArtFuehrung =
|
||||
| 'Reguläre Führung'
|
||||
| 'Sonderführung'
|
||||
| 'BEO-Sitzung'
|
||||
| 'Sonnenführung'
|
||||
| 'Technischer Dienst'
|
||||
| 'Beobachtung'
|
||||
| 'Tag der offenen Tür'
|
||||
| 'Sonstiges';
|
||||
export type ArtFuehrung = 'RF' | 'SF' | 'BEOS' | 'SonF' | 'TD' | 'Beob' | 'ToT' | 'Sonst';
|
||||
|
||||
export const KUPPELN: Kuppel[] = ['West', 'Ost', 'Süd', 'Pluto'];
|
||||
export const ARTEN: ArtFuehrung[] = [
|
||||
'Reguläre Führung',
|
||||
'Sonderführung',
|
||||
'BEO-Sitzung',
|
||||
'Sonnenführung',
|
||||
'Technischer Dienst',
|
||||
'Beobachtung',
|
||||
'Tag der offenen Tür',
|
||||
'Sonstiges',
|
||||
];
|
||||
|
||||
export const ARTEN_MAP: Record<ArtFuehrung, string> = {
|
||||
RF: 'Reguläre Führung',
|
||||
SF: 'Sonderführung',
|
||||
BEOS: 'BEO-Sitzung',
|
||||
SonF: 'Sonnenführung',
|
||||
TD: 'Technischer Dienst',
|
||||
Beob: 'Beobachtung',
|
||||
ToT: 'Tag der offenen Tür',
|
||||
Sonst:'Sonstiges',
|
||||
};
|
||||
|
||||
export const ARTEN = Object.keys(ARTEN_MAP) as ArtFuehrung[];
|
||||
|
||||
export interface BeoOption {
|
||||
ID: number;
|
||||
|
||||
Reference in New Issue
Block a user