@fy-/fws-vue 2.3.4 → 2.3.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/components/ui/DefaultNotif.vue +12 -12
- package/composables/seo.ts +1 -3
- package/package.json +1 -1
|
@@ -238,7 +238,7 @@ onUnmounted(() => {
|
|
|
238
238
|
<div
|
|
239
239
|
v-if="currentNotif !== null"
|
|
240
240
|
id="base-notif"
|
|
241
|
-
class="fixed !text-xs md:!text-sm bottom-
|
|
241
|
+
class="fixed !text-xs md:!text-sm bottom-3 right-3 sm:right-8 z-[2000] max-w-xs w-[calc(100%-1.5rem)] sm:w-72 rounded-lg border shadow-lg overflow-hidden backdrop-blur-sm transition-all duration-300 transform"
|
|
242
242
|
role="alert"
|
|
243
243
|
:aria-describedby="ariaDescribedBy"
|
|
244
244
|
:class="[bgColor, borderColor, textColor]"
|
|
@@ -254,27 +254,27 @@ onUnmounted(() => {
|
|
|
254
254
|
/>
|
|
255
255
|
</div>
|
|
256
256
|
|
|
257
|
-
<div class="
|
|
257
|
+
<div class="p-2 sm:p-3">
|
|
258
258
|
<!-- Header with icon and title -->
|
|
259
259
|
<div class="flex items-center justify-between">
|
|
260
|
-
<div class="flex items-center gap-3">
|
|
260
|
+
<div class="flex items-center gap-2 sm:gap-3">
|
|
261
261
|
<div class="flex-shrink-0" :class="[iconColor]">
|
|
262
262
|
<img
|
|
263
263
|
v-if="currentNotif.imgSrc"
|
|
264
|
-
class="w-6 h-6 rounded-full"
|
|
264
|
+
class="w-5 h-5 sm:w-6 sm:h-6 rounded-full"
|
|
265
265
|
:src="currentNotif.imgSrc"
|
|
266
266
|
:alt="currentNotif.title"
|
|
267
267
|
>
|
|
268
268
|
<component
|
|
269
269
|
:is="currentNotif.imgIcon"
|
|
270
270
|
v-else
|
|
271
|
-
class="w-6 h-6"
|
|
271
|
+
class="w-5 h-5 sm:w-6 sm:h-6"
|
|
272
272
|
aria-hidden="true"
|
|
273
273
|
/>
|
|
274
274
|
</div>
|
|
275
275
|
<h3
|
|
276
276
|
:id="ariaDescribedBy"
|
|
277
|
-
class="text-base font-semibold truncate"
|
|
277
|
+
class="text-sm sm:text-base font-semibold truncate"
|
|
278
278
|
v-text="currentNotif.title"
|
|
279
279
|
/>
|
|
280
280
|
</div>
|
|
@@ -282,19 +282,19 @@ onUnmounted(() => {
|
|
|
282
282
|
<!-- Close button -->
|
|
283
283
|
<button
|
|
284
284
|
type="button"
|
|
285
|
-
class="inline-flex rounded-md p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 dark:focus:ring-offset-gray-900"
|
|
285
|
+
class="inline-flex rounded-md p-1 sm:p-1.5 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 dark:focus:ring-offset-gray-900"
|
|
286
286
|
:class="iconColor"
|
|
287
287
|
aria-label="Close notification"
|
|
288
288
|
@click="hideNotif"
|
|
289
289
|
>
|
|
290
|
-
<XMarkIcon class="h-5 w-5" aria-hidden="true" />
|
|
290
|
+
<XMarkIcon class="h-4 w-4 sm:h-5 sm:w-5" aria-hidden="true" />
|
|
291
291
|
</button>
|
|
292
292
|
</div>
|
|
293
293
|
|
|
294
294
|
<!-- Notification content -->
|
|
295
295
|
<div
|
|
296
296
|
v-if="currentNotif.content"
|
|
297
|
-
class="mt-2 text-xs
|
|
297
|
+
class="mt-1.5 sm:mt-2 text-xs sm:text-sm"
|
|
298
298
|
:class="textColor"
|
|
299
299
|
v-html="currentNotif.content"
|
|
300
300
|
/>
|
|
@@ -302,12 +302,12 @@ onUnmounted(() => {
|
|
|
302
302
|
<!-- CTA buttons -->
|
|
303
303
|
<div
|
|
304
304
|
v-if="currentNotif.ctaText || currentNotif.ctaLink || currentNotif.ctaAction"
|
|
305
|
-
class="mt-3 flex justify-end gap-2"
|
|
305
|
+
class="mt-2 sm:mt-3 flex justify-end gap-2"
|
|
306
306
|
>
|
|
307
307
|
<a
|
|
308
308
|
v-if="currentNotif.ctaLink"
|
|
309
309
|
:href="currentNotif.ctaLink"
|
|
310
|
-
class="inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
310
|
+
class="inline-flex items-center px-2 py-1 sm:px-3 sm:py-1.5 text-xs sm:text-sm font-medium rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
311
311
|
:class="{
|
|
312
312
|
'bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500': currentNotif.type === 'info' || !currentNotif.type,
|
|
313
313
|
'bg-amber-600 hover:bg-amber-700 text-white focus:ring-amber-500': currentNotif.type === 'warning',
|
|
@@ -320,7 +320,7 @@ onUnmounted(() => {
|
|
|
320
320
|
<button
|
|
321
321
|
v-else-if="currentNotif.ctaAction"
|
|
322
322
|
type="button"
|
|
323
|
-
class="inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
323
|
+
class="inline-flex items-center px-2 py-1 sm:px-3 sm:py-1.5 text-xs sm:text-sm font-medium rounded-md shadow-sm focus:outline-none focus:ring-2 focus:ring-offset-2"
|
|
324
324
|
:class="{
|
|
325
325
|
'bg-blue-600 hover:bg-blue-700 text-white focus:ring-blue-500': currentNotif.type === 'info' || !currentNotif.type,
|
|
326
326
|
'bg-amber-600 hover:bg-amber-700 text-white focus:ring-amber-500': currentNotif.type === 'warning',
|
package/composables/seo.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Ref } from 'vue'
|
|
2
2
|
import { getLocale, getPrefix, getURL } from '@fy-/fws-js'
|
|
3
3
|
import { useHead, useSeoMeta } from '@unhead/vue'
|
|
4
|
-
import { useRoute } from 'vue-router'
|
|
5
4
|
|
|
6
5
|
export interface LazyHead {
|
|
7
6
|
name?: string
|
|
@@ -29,7 +28,6 @@ export interface LazyHead {
|
|
|
29
28
|
|
|
30
29
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
31
30
|
export function useSeo(seoData: Ref<LazyHead>, initial: boolean = false) {
|
|
32
|
-
const route = useRoute()
|
|
33
31
|
const currentLocale = getLocale()
|
|
34
32
|
// const url = getURL()
|
|
35
33
|
|
|
@@ -90,7 +88,7 @@ export function useSeo(seoData: Ref<LazyHead>, initial: boolean = false) {
|
|
|
90
88
|
})
|
|
91
89
|
|
|
92
90
|
useSeoMeta({
|
|
93
|
-
ogUrl: () => `${getURL().
|
|
91
|
+
ogUrl: () => `${getURL().Canonical}`,
|
|
94
92
|
ogLocale: () => {
|
|
95
93
|
if (currentLocale) {
|
|
96
94
|
return currentLocale.replace('-', '_')
|