mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-07 19:22:14 +09:00
feat(instance): make the status page URL configurable (#1159)
This commit is contained in:
@@ -478,6 +478,8 @@ const AppPublicConfigResponse = z.object({
|
||||
wordmark_url: z.string().nullable(),
|
||||
favicon_url: z.string().nullable(),
|
||||
theme_color: z.string().nullable(),
|
||||
status_page_url: z.string().nullable(),
|
||||
status_page_incident_history_url: z.string().nullable(),
|
||||
}),
|
||||
setup: z.object({
|
||||
configured: z.boolean(),
|
||||
@@ -501,6 +503,8 @@ const AppPublicConfigUpdateRequest = z.object({
|
||||
wordmark_url: z.string().trim().max(2048).nullish(),
|
||||
favicon_url: z.string().trim().max(2048).nullish(),
|
||||
theme_color: z.string().trim().max(64).nullish(),
|
||||
status_page_url: z.string().trim().max(2048).nullish(),
|
||||
status_page_incident_history_url: z.string().trim().max(2048).nullish(),
|
||||
})
|
||||
.nullish(),
|
||||
setup: z
|
||||
|
||||
@@ -33,6 +33,11 @@ export const InstanceBrandingSchema = z
|
||||
wordmark_url: z.string().nullable().describe('Optional image URL for the application wordmark'),
|
||||
favicon_url: z.string().nullable().describe('Optional favicon URL for browser metadata'),
|
||||
theme_color: z.string().nullable().describe('Optional browser theme color'),
|
||||
status_page_url: z.string().nullable().describe('Optional public status page URL'),
|
||||
status_page_incident_history_url: z
|
||||
.string()
|
||||
.nullable()
|
||||
.describe('Optional public status page incident history URL'),
|
||||
})
|
||||
.describe('Branding values safe to expose to clients');
|
||||
export type InstanceBranding = z.infer<typeof InstanceBrandingSchema>;
|
||||
|
||||
Reference in New Issue
Block a user