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
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:
Vendored
+1
@@ -29,6 +29,7 @@ declare module 'vue' {
|
||||
ManagePlacementInstructions: typeof import('./src/components/manage/ManagePlacementInstructions.vue')['default']
|
||||
ProgressSpinner: typeof import('primevue/progressspinner')['default']
|
||||
QRCodeCard: typeof import('./src/components/manage/QRCodeCard.vue')['default']
|
||||
QRCodePlacementIcon: typeof import('./src/components/manage/QRCodePlacementIcon.vue')['default']
|
||||
QueryRender: typeof import('./src/components/QueryRender.vue')['default']
|
||||
RadioButton: typeof import('primevue/radiobutton')['default']
|
||||
ReadContactInfo: typeof import('./src/components/read/ReadContactInfo.vue')['default']
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
const VER = 14
|
||||
// const VER = 14
|
||||
|
||||
self.addEventListener('message', async (event) => {
|
||||
event.waitUntil(debug(Object.assign({ answer: true }, event.data)))
|
||||
|
||||
@@ -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>
|
||||
@@ -1,3 +1,7 @@
|
||||
import { type QRCodeDocument } from '@hereconnect/types'
|
||||
|
||||
export type QrCodePlacement = QRCodeDocument['placement']
|
||||
|
||||
export const qrCodePlacements = [
|
||||
{ type: 'car', label: 'Автомобиль' },
|
||||
{ type: 'pet', label: 'Питомец' },
|
||||
@@ -5,4 +9,4 @@ export const qrCodePlacements = [
|
||||
{ type: 'store', label: 'Магазин' },
|
||||
{ type: 'restaurant_table', label: 'Стол в кафе или ресторане' },
|
||||
{ type: 'other', label: 'Другое' },
|
||||
] as const
|
||||
] as const satisfies { type: QrCodePlacement; label: string }[]
|
||||
|
||||
@@ -20,7 +20,7 @@ const routes = [
|
||||
component: () => import('@/views/CreateView.vue'),
|
||||
},
|
||||
{
|
||||
path: '/manage/dashboard',
|
||||
path: '/manage',
|
||||
name: ROUTE_NAMES.MANAGE_DASHBOARD,
|
||||
component: () => import('@/views/ManageDashboardView.vue'),
|
||||
props: true,
|
||||
|
||||
@@ -4,14 +4,16 @@
|
||||
"exclude": ["src/**/__tests__/*"],
|
||||
"files": [
|
||||
"./components.d.ts",
|
||||
"./auto-imports.d.ts",
|
||||
"unplugin-info/client"
|
||||
"./auto-imports.d.ts"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
||||
|
||||
"baseUrl": ".",
|
||||
"types": [
|
||||
"unplugin-info/client"
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user