Remove colors

This commit is contained in:
2025-02-08 02:38:41 -05:00
parent f4794fb817
commit 7f4e7ead40
36 changed files with 855 additions and 1138 deletions

View File

@@ -16,19 +16,6 @@ export const useBrandingStore = defineStore(
{},
{writeDefaults: false})
const defaultColors = {
"background": "#f4f4f4",
"error": "#f4f4f4",
"primary": "#f4f4f4",
"secondary": "#f4f4f4",
"surface": "#f4f4f4",
"onBackground": "#000",
"onError": "#000",
"onPrimary": "#000",
"onSecondary": "#000",
"onSurface": "#000",
}
const colors = ref(defaultColors)
const presentationInfos = ref([])
const route = useRoute()
@@ -41,12 +28,10 @@ export const useBrandingStore = defineStore(
if (newCreator !== undefined) {
value.value = await fetchCreatorData(newCreator)
currentBrand.value = newCreator
colors.value = value.value?.colors
presentationInfos.value = value.value?.presentationInfos
} else {
value.value = {}
currentBrand.value = undefined
colors.value = defaultColors
presentationInfos.value = []
}
}
@@ -68,7 +53,6 @@ export const useBrandingStore = defineStore(
return {
currentBrand,
value,
colors,
loading,
presentationInfos
}