Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
feat(map): integrate setup notice component and update modal UI
Ahmet Ömer56864502b467
diff --git a/app/components/map/Provider.vue b/app/components/map/Provider.vueindex 692a3756..0efb9701 100644--- a/app/components/map/Provider.vue+++ b/app/components/map/Provider.vue@@ -2,6 +2,7 @@import type { AttributionControlOptions, StyleSpecification } from 'maplibre-gl'import { twMerge } from 'tailwind-merge'import type { MapboxMap, MapInstance, MaplibreMap } from '~~/shared/types/map'+import { useMapSetupNotice } from '~/composables/useMapSetupNotice'import { isMapServiceConfigured } from '~~/shared/utils/map-service'import ChronoFrameLightStyle from '~/assets/mapStyles/chronoframe_light.json'diff --git a/app/components/map/SetupNotice.vue b/app/components/map/SetupNotice.vueindex e459251f..2bc46e7d 100644--- a/app/components/map/SetupNotice.vue+++ b/app/components/map/SetupNotice.vue@@ -1,4 +1,6 @@<script setup lang="ts">+import { useMapSetupNotice } from '~/composables/useMapSetupNotice'+const { isOpen, isAdmin, dismiss } = useMapSetupNotice()async function openSettings() {@@ -11,13 +13,25 @@ async function openSettings() {<UModalv-model:open="isOpen":title="$t('map.setupNotice.title')"- :description="$t('map.setupNotice.description')":ui="{overlay: 'z-[80]',content: 'z-[80]',+ title: 'flex items-center gap-2',footer: 'justify-end',}">+ <template #title>+ <Icon+ name="tabler:map-off"+ class="size-5 shrink-0 text-warning"+ />+ <span>{{ $t('map.setupNotice.title') }}</span>+ </template>+ <template #body>+ <p class="text-sm leading-relaxed text-neutral-500 dark:text-neutral-400">+ {{ $t('map.setupNotice.description') }}+ </p>+ </template><template #footer><UButtoncolor="neutral"