fix local build
Deploy app frontend / app frontend (push) Successful in 1m42s
Deploy service couchdb / service couchdb (push) Successful in 31s
Deploy db-migrations / db-migrations (push) Successful in 1m6s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Successful in 1m4s

This commit is contained in:
2024-12-06 11:15:32 +02:00
parent 2146cd8300
commit 7931274680
20 changed files with 96 additions and 25 deletions
@@ -2,7 +2,7 @@
<RouterLink :to="`/manage/qr/${qrCode.uri}/ready`" class="p-4 rounded-lg bg-white shadow-md">
<div class="flex items-center justify-between mb-2">
<div class="flex items-center">
<i :class="['pi', iconClass, 'text-gray-500', 'mr-2']" />
<QRCodePlacementIcon :placement="qrCode.placement" />
<h2 class="text-lg font-semibold">{{ qrCode.name }}</h2>
</div>
<!-- <Button-->
@@ -24,18 +24,6 @@ const props = defineProps<{
qrCode: QRCodeDocument
}>()
const iconClass = computed(() => {
const icons: Record<string, string> = {
car: 'pi-car',
pet: 'pi-paw',
door: 'pi-door-closed',
store: 'pi-shop',
restaurant_table: 'pi-utensils',
other: 'pi-question-circle',
}
return icons[props.qrCode.placement] || 'pi-question-circle'
})
const formatDate = (date: string) => {
// Форматирование даты
const options: Intl.DateTimeFormatOptions = { year: 'numeric', month: 'long', day: 'numeric' }
@@ -0,0 +1,22 @@
<template>
<i :class="['pi', iconClass, 'text-gray-500', 'mr-2']" />
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import type { QrCodePlacement } from '@/constants/qrCodePlacements'
const props = defineProps<{ placement: QrCodePlacement }>()
const iconClass = computed(() => {
const icons: Record<string, string> = {
car: 'pi-car',
pet: 'pi-paw',
door: 'pi-door-closed',
store: 'pi-shop',
restaurant_table: 'pi-utensils',
other: 'pi-question-circle',
}
return icons[props.placement] || 'pi-question-circle'
})
</script>