feat(web): custom stylesheets (#4602)

* add initial ui and api definitions for stylesheets

* proper saving

* make custom css work

* add textarea

* rebuild api

* run prettier

* add typecast

* update typings

* move css accordion to be sorted alphabetically

* set content-type properly

* rename stylesheets to theme

* fix server test
This commit is contained in:
Wingy 2023-10-23 11:38:41 -07:00 committed by GitHub
parent 28d35bf04e
commit 62a11283af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 405 additions and 2 deletions

View file

@ -90,6 +90,8 @@ export enum SystemConfigKey {
TRASH_ENABLED = 'trash.enabled',
TRASH_DAYS = 'trash.days',
THEME_CUSTOM_CSS = 'theme.customCss',
}
export enum TranscodePolicy {
@ -221,4 +223,7 @@ export interface SystemConfig {
enabled: boolean;
days: number;
};
theme: {
customCss: string;
};
}