mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
fix(selfhost): branding image origins and theme colour (#3389)
This commit is contained in:
1 parent
cca8227ca6
commit
edc913096a
27 files changed
+724
-49
No files matched your search
@@ -565,6 +565,8 @@ function isAbsoluteHttpUrl(value: string): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
const HEX_THEME_COLOR_PATTERN = /^(?:#?(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}))?$/;
|
||||
|
||||
const AppPublicConfigUpdateRequest = z.object({
|
||||
branding: z
|
||||
.object({
|
||||
@@ -574,7 +576,7 @@ const AppPublicConfigUpdateRequest = z.object({
|
||||
logo_url: z.string().trim().max(2048).nullish(),
|
||||
wordmark_url: z.string().trim().max(2048).nullish(),
|
||||
favicon_url: z.string().trim().max(2048).nullish(),
|
||||
theme_color: z.string().trim().max(64).nullish(),
|
||||
theme_color: z.string().trim().regex(HEX_THEME_COLOR_PATTERN).nullish(),
|
||||
status_page_url: z.string().trim().max(2048).nullish(),
|
||||
status_page_incident_history_url: z.string().trim().max(2048).nullish(),
|
||||
premium_product_name: z.string().trim().min(1).max(40).nullable().optional(),
|
||||
|
||||
Reference in new issue
Block a user