falak-app-duo 1.3.1 → 1.3.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "falak-app-duo",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Vue 3 boilerplate scaffolder — Ably (realtime), Brevo, AES-256, Arabic/RTL, and a Laravel API client (API key + user token auth). No Firebase, no Groq/Paymob on the frontend (Groq is backend-only; Paymob dropped).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -19,10 +19,10 @@ const form = ref({
|
|
|
19
19
|
country_code: "",
|
|
20
20
|
city: "",
|
|
21
21
|
channel: "none", // none | telegram | whatsapp
|
|
22
|
-
channel_handle: "",
|
|
23
22
|
photo: null, // dataURL from the file picker
|
|
24
23
|
});
|
|
25
24
|
|
|
25
|
+
const loading = ref(true);
|
|
26
26
|
const saved = ref(false);
|
|
27
27
|
const saving = ref(false);
|
|
28
28
|
const error = ref("");
|
|
@@ -85,7 +85,6 @@ async function save() {
|
|
|
85
85
|
country_code: form.value.country_code,
|
|
86
86
|
city: form.value.city,
|
|
87
87
|
channel: form.value.channel,
|
|
88
|
-
channel_handle: form.value.channel_handle,
|
|
89
88
|
photo: form.value.photo,
|
|
90
89
|
});
|
|
91
90
|
saved.value = true;
|
|
@@ -97,6 +96,7 @@ async function save() {
|
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
onMounted(async () => {
|
|
99
|
+
loading.value = true;
|
|
100
100
|
try {
|
|
101
101
|
await auth.fetchProfile();
|
|
102
102
|
} catch {
|
|
@@ -111,8 +111,8 @@ onMounted(async () => {
|
|
|
111
111
|
form.value.country_code = user.country_code || "";
|
|
112
112
|
form.value.city = user.city || "";
|
|
113
113
|
form.value.channel = user.channel || "none";
|
|
114
|
-
form.value.channel_handle = user.channel_handle || "";
|
|
115
114
|
form.value.photo = user.photo || null;
|
|
115
|
+
loading.value = false;
|
|
116
116
|
});
|
|
117
117
|
</script>
|
|
118
118
|
|
|
@@ -136,7 +136,21 @@ onMounted(async () => {
|
|
|
136
136
|
</div>
|
|
137
137
|
|
|
138
138
|
<GlassCard spotlight class="p-6 sm:p-8 animate-fade-in-up motion-reduce:animate-none" style="animation-delay: 80ms">
|
|
139
|
-
|
|
139
|
+
<!-- Preloader: shown while the profile request is in flight -->
|
|
140
|
+
<div
|
|
141
|
+
v-if="loading"
|
|
142
|
+
class="flex flex-col items-center justify-center gap-4 py-24"
|
|
143
|
+
role="status"
|
|
144
|
+
aria-live="polite"
|
|
145
|
+
>
|
|
146
|
+
<span
|
|
147
|
+
class="h-10 w-10 animate-spin rounded-full border-2 border-edge2 border-t-emerald-400 motion-reduce:animate-none"
|
|
148
|
+
aria-hidden="true"
|
|
149
|
+
></span>
|
|
150
|
+
<p class="text-sm text-mute">{{ t("common.loading") }}</p>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
<div v-else class="flex flex-col gap-8">
|
|
140
154
|
<!-- Photo -->
|
|
141
155
|
<div class="flex flex-col items-start gap-5 sm:flex-row sm:items-center">
|
|
142
156
|
<div class="relative">
|
|
@@ -352,16 +366,6 @@ onMounted(async () => {
|
|
|
352
366
|
</span>
|
|
353
367
|
</button>
|
|
354
368
|
</div>
|
|
355
|
-
|
|
356
|
-
<label v-if="form.channel === 'whatsapp'" class="mt-4 block animate-fade-in-up motion-reduce:animate-none">
|
|
357
|
-
<span class="field-label">{{ t("profile.channel.whatsappHandle") }}</span>
|
|
358
|
-
<input
|
|
359
|
-
v-model="form.channel_handle"
|
|
360
|
-
type="tel"
|
|
361
|
-
class="glass-input"
|
|
362
|
-
:placeholder="'+201234567890'"
|
|
363
|
-
/>
|
|
364
|
-
</label>
|
|
365
369
|
</div>
|
|
366
370
|
|
|
367
371
|
<div>
|