fix: Bug fixed für alle Seiten und das Profil und label
This commit is contained in:
1 parent
133edcd5ba
commit
0a52b29c57
52 files changed
+1290
-129
No files matched your search
@@ -0,0 +1,53 @@
|
||||
const AUDIT_ACTION_LABELS: Record<string, string> = {
|
||||
CREATE: "Erstellt",
|
||||
UPDATE: "Aktualisiert",
|
||||
DEACTIVATE: "Deaktiviert",
|
||||
DELETE: "Gelöscht",
|
||||
LOGIN: "Angemeldet",
|
||||
LOGIN_FAILED: "Anmeldung fehlgeschlagen",
|
||||
LOGOUT: "Abgemeldet",
|
||||
TOKEN_REFRESHED: "Token erneuert",
|
||||
MFA_ENABLED: "MFA aktiviert",
|
||||
MFA_DISABLED: "MFA deaktiviert",
|
||||
};
|
||||
|
||||
export function auditActionLabel(action: string): string {
|
||||
return AUDIT_ACTION_LABELS[action] ?? action;
|
||||
}
|
||||
|
||||
const AUDIT_ENTITY_TYPE_LABELS: Record<string, string> = {
|
||||
Apiary: "Bienenstand",
|
||||
AuthSession: "Sitzung",
|
||||
AutomationRule: "Automatisierungsregel",
|
||||
BottlingBatch: "Abfüllung",
|
||||
Colony: "Volk",
|
||||
COLONY: "Volk",
|
||||
Document: "Dokument",
|
||||
Equipment: "Ausrüstung",
|
||||
Extraction: "Schleuderung",
|
||||
Feeding: "Fütterung",
|
||||
Harvest: "Ernte",
|
||||
HoneyBatch: "Honigcharge",
|
||||
HoneyBatchRelocation: "Honigcharge-Umlagerung",
|
||||
HoneyMeasurement: "Honigmessung",
|
||||
Import: "Import",
|
||||
Inspection: "Durchsicht",
|
||||
Product: "Produkt",
|
||||
Queen: "Königin",
|
||||
QueenEvaluation: "Königinnenbewertung",
|
||||
Role: "Rolle",
|
||||
StockItem: "Lagerartikel",
|
||||
StockMovement: "Bestandsbewegung",
|
||||
StorageContainer: "Lagerbehälter",
|
||||
SwarmControlCheck: "Schwarmkontrolle",
|
||||
Task: "Aufgabe",
|
||||
TaskTemplate: "Aufgabenvorlage",
|
||||
Treatment: "Behandlung",
|
||||
User: "Benutzer",
|
||||
VarroaMeasurement: "Varroamessung",
|
||||
WebhookSubscription: "Webhook",
|
||||
};
|
||||
|
||||
export function auditEntityTypeLabel(entityType: string): string {
|
||||
return AUDIT_ENTITY_TYPE_LABELS[entityType] ?? entityType;
|
||||
}
|
||||
Reference in new issue
Block a user