add theme saving (This took hours)

This commit is contained in:
SethBurkart123
2024-04-01 20:24:51 +11:00
parent c9431de33f
commit 6c799ba346
8 changed files with 427 additions and 407 deletions
+17 -2
View File
@@ -1,4 +1,4 @@
type CustomTheme = {
export type CustomTheme = {
id: string;
name: string;
description: string;
@@ -8,8 +8,23 @@ type CustomTheme = {
CustomImages: CustomImage[];
}
type CustomImage = {
export type CustomImage = {
id: string;
blob: Blob;
variableName: string;
}
export type CustomImageBase64 = {
id: string;
url: string;
variableName: string;
}
export type CustomThemeBase64 = Omit<CustomTheme, 'CustomImages'> & {
CustomImages: CustomImageBase64[];
}
export type ThemeList = {
themes: Omit<CustomTheme, 'CustomImages'>[];
selectedTheme: string;
}