chore: build
This commit is contained in:
@@ -1865,6 +1865,8 @@ export interface PublicSettings {
|
||||
client_color_success: string;
|
||||
client_color_danger: string;
|
||||
client_color_warning: string;
|
||||
client_title_gradient_from: string;
|
||||
client_title_gradient_to: string;
|
||||
}
|
||||
|
||||
export const getPublicSettings = async (): Promise<PublicSettings> => {
|
||||
@@ -1887,6 +1889,8 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
|
||||
client_color_success: "#22c55e",
|
||||
client_color_danger: "#ef4444",
|
||||
client_color_warning: "#f59e0b",
|
||||
client_title_gradient_from: "#a78bfa",
|
||||
client_title_gradient_to: "#22d3ee",
|
||||
};
|
||||
try {
|
||||
const response = await fetch(`${API_URL}/app-settings`);
|
||||
@@ -1916,6 +1920,8 @@ export const getPublicSettings = async (): Promise<PublicSettings> => {
|
||||
client_color_success: data.client_color_success || "#22c55e",
|
||||
client_color_danger: data.client_color_danger || "#ef4444",
|
||||
client_color_warning: data.client_color_warning || "#f59e0b",
|
||||
client_title_gradient_from: data.client_title_gradient_from || "#a78bfa",
|
||||
client_title_gradient_to: data.client_title_gradient_to || "#22d3ee",
|
||||
};
|
||||
} catch {
|
||||
return defaults;
|
||||
|
||||
Reference in New Issue
Block a user