chore: build
Frontend Web - Build & Lint / build (push) Failing after 14m59s

This commit is contained in:
2026-06-18 22:45:05 +02:00
parent 450f930603
commit f576db7cdd
2 changed files with 55 additions and 0 deletions
+15
View File
@@ -1863,6 +1863,11 @@ export interface PublicSettings {
shop_name: string;
two_fa_enabled: boolean;
contact_telegram: string;
client_color_primary: string;
client_color_secondary: string;
client_color_success: string;
client_color_danger: string;
client_color_warning: string;
}
export const getPublicSettings = async (): Promise<PublicSettings> => {
@@ -1880,6 +1885,11 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
shop_name: "Milieu-Nantais",
two_fa_enabled: false,
contact_telegram: "",
client_color_primary: "#8b5cf6",
client_color_secondary: "#22d3ee",
client_color_success: "#22c55e",
client_color_danger: "#ef4444",
client_color_warning: "#f59e0b",
};
try {
const response = await fetch(`${API_URL}/app-settings`);
@@ -1904,6 +1914,11 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
shop_name: data.shop_name || "Milieu-Nantais",
two_fa_enabled: data.two_fa_enabled ?? false,
contact_telegram: data.contact_telegram || "",
client_color_primary: data.client_color_primary || "#8b5cf6",
client_color_secondary: data.client_color_secondary || "#22d3ee",
client_color_success: data.client_color_success || "#22c55e",
client_color_danger: data.client_color_danger || "#ef4444",
client_color_warning: data.client_color_warning || "#f59e0b",
};
} catch {
return defaults;