@xenterprises/nuxt-x-auth-better 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/app.config.ts +3 -2
- package/app/layouts/auth.vue +10 -4
- package/package.json +1 -1
package/app/app.config.ts
CHANGED
|
@@ -37,9 +37,10 @@ export default defineAppConfig({
|
|
|
37
37
|
tagline: "",
|
|
38
38
|
layout: "centered" as "centered" | "split",
|
|
39
39
|
background: {
|
|
40
|
-
|
|
40
|
+
enabled: true,
|
|
41
41
|
imageUrl: "",
|
|
42
|
-
overlayOpacity:
|
|
42
|
+
overlayOpacity: 55,
|
|
43
|
+
blur: true,
|
|
43
44
|
},
|
|
44
45
|
card: {
|
|
45
46
|
glass: false,
|
package/app/layouts/auth.vue
CHANGED
|
@@ -139,10 +139,16 @@ const logoUrl = computed(() => config.xAuth?.ui?.logoUrl || '')
|
|
|
139
139
|
const brandName = computed(() => config.xAuth?.ui?.brandName || '')
|
|
140
140
|
const loading = computed(() => isLoading.value)
|
|
141
141
|
|
|
142
|
-
// Background Config
|
|
143
|
-
const bgConfig = computed(() =>
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
// Background Config - with robust defaults that survive config overrides
|
|
143
|
+
const bgConfig = computed(() => ({
|
|
144
|
+
enabled: config.xAuth?.ui?.background?.enabled ?? true,
|
|
145
|
+
imageUrl: config.xAuth?.ui?.background?.imageUrl ?? '',
|
|
146
|
+
overlayOpacity: config.xAuth?.ui?.background?.overlayOpacity ?? 55,
|
|
147
|
+
blur: config.xAuth?.ui?.background?.blur ?? true,
|
|
148
|
+
}))
|
|
149
|
+
|
|
150
|
+
const isBgEnabled = computed(() => bgConfig.value.enabled)
|
|
151
|
+
const overlayBlur = computed(() => bgConfig.value.blur)
|
|
146
152
|
|
|
147
153
|
const footerTextColorClass = computed(() => {
|
|
148
154
|
if (backgroundImageUrl.value && isImageLoaded.value) {
|