fixes
Deploy service tg-bot / service tg-bot (push) Waiting to run
Deploy app frontend / app frontend (push) Successful in 2m49s
Deploy db-migrations / db-migrations (push) Successful in 1m23s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Successful in 1m38s
Deploy service tg-bot / service tg-bot (push) Waiting to run
Deploy app frontend / app frontend (push) Successful in 2m49s
Deploy db-migrations / db-migrations (push) Successful in 1m23s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Successful in 1m38s
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
||||
VITE_API_URL=/api
|
||||
VITE_READ_BASE_URL=https://r.condev.ru
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ export const createQrCodeDocument = async (
|
||||
) => {
|
||||
const uri = Math.abs(Date.now() - EPOCH).toString(36)
|
||||
const url = new URL(
|
||||
`${import.meta.env.VITE_READ_BASE_URL || '/read'}/${uri}`,
|
||||
`${import.meta.env.VITE_READ_BASE_URL || '/read/qr'}/${uri}`,
|
||||
location.origin,
|
||||
).toString()
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="sm:max-w-prose mx-auto flex gap-3 px-4 pt-0 flex-col-reverse w-full">
|
||||
<div class="sm:max-w-prose mx-auto flex gap-3 px-4 pb-3 flex-col-reverse w-full">
|
||||
<!-- Форма отправки сообщений -->
|
||||
<form @submit.prevent="sendMessage" class="flex gap-2 items-center" ref="form">
|
||||
<InputText
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
<template>
|
||||
<CreateMessageDeliveryOption :label :method v-model="model" />
|
||||
<div>
|
||||
<CreateMessageDeliveryOption :label :method v-model="model" />
|
||||
|
||||
<!-- Сообщение о недоступности -->
|
||||
<p v-if="telegramNotice" class="text-red-500 dark:text-red-400 my-2 outline outline-1 py-2 px-4">
|
||||
Отправка в Telegram пока в разработке.<br />
|
||||
Этот способ отправки сообщений можно будет выбрать позже.
|
||||
</p>
|
||||
<!-- Сообщение о недоступности -->
|
||||
<p
|
||||
v-if="telegramNotice"
|
||||
class="text-red-500 dark:text-red-400 my-2 outline outline-1 py-2 px-4"
|
||||
>
|
||||
Отправка в Telegram пока в разработке.<br />
|
||||
Этот способ отправки сообщений можно будет выбрать позже.
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
@@ -1,48 +1,50 @@
|
||||
<template>
|
||||
<CreateMessageDeliveryOption :isLoading :label :method v-model="model" />
|
||||
<div>
|
||||
<CreateMessageDeliveryOption :isLoading :label :method v-model="model" />
|
||||
|
||||
<!-- Инструкции для iOS -->
|
||||
<div
|
||||
v-if="showRequireStandaloneInstructionsForIOS"
|
||||
class="bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-300 p-4 rounded my-4"
|
||||
>
|
||||
<p class="mb-2 dark:text-yellow-200">
|
||||
Чтобы включить уведомления, добавьте это приложение на главный экран:
|
||||
<!-- Инструкции для iOS -->
|
||||
<div
|
||||
v-if="showRequireStandaloneInstructionsForIOS"
|
||||
class="bg-yellow-100 dark:bg-yellow-900 text-yellow-800 dark:text-yellow-300 p-4 rounded my-4"
|
||||
>
|
||||
<p class="mb-2 dark:text-yellow-200">
|
||||
Чтобы включить уведомления, добавьте это приложение на главный экран:
|
||||
</p>
|
||||
<ul class="list-disc pl-5">
|
||||
<li class="mb-1 dark:text-yellow-200">
|
||||
Нажмите
|
||||
<strong class="font-semibold">
|
||||
"<img
|
||||
src="@/assets/icons/apple-share.svg?url"
|
||||
alt="Поделиться"
|
||||
class="h-7 -mt-2 inline-block"
|
||||
/>"
|
||||
</strong>
|
||||
внизу экрана
|
||||
</li>
|
||||
<li class="mb-1 dark:text-yellow-200">
|
||||
Выберите
|
||||
<strong class="inline-flex items-baseline font-semibold">
|
||||
<span class="me-1">"На экран «Домой»</span>
|
||||
<img
|
||||
src="@/assets/icons/apple-system-plus.svg?url"
|
||||
alt=""
|
||||
class="h-4 inline-block self-center"
|
||||
/>"
|
||||
</strong>
|
||||
</li>
|
||||
<li class="dark:text-yellow-200">
|
||||
Откройте приложение с главного экрана и повторите попытку.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Ошибка разрешений -->
|
||||
<p v-else-if="isError && model === method" class="text-red-500 dark:text-red-400 mb-2">
|
||||
{{ error }}.<br />
|
||||
<button @click="retry()" class="text-blue-500 dark:text-blue-400 underline">Повторить</button>
|
||||
</p>
|
||||
<ul class="list-disc pl-5">
|
||||
<li class="mb-1 dark:text-yellow-200">
|
||||
Нажмите
|
||||
<strong class="font-semibold">
|
||||
"<img
|
||||
src="@/assets/icons/apple-share.svg?url"
|
||||
alt="Поделиться"
|
||||
class="h-7 -mt-2 inline-block"
|
||||
/>"
|
||||
</strong>
|
||||
внизу экрана
|
||||
</li>
|
||||
<li class="mb-1 dark:text-yellow-200">
|
||||
Выберите
|
||||
<strong class="inline-flex items-baseline font-semibold">
|
||||
<span class="me-1">"На экран «Домой»</span>
|
||||
<img
|
||||
src="@/assets/icons/apple-system-plus.svg?url"
|
||||
alt=""
|
||||
class="h-4 inline-block self-center"
|
||||
/>"
|
||||
</strong>
|
||||
</li>
|
||||
<li class="dark:text-yellow-200">
|
||||
Откройте приложение с главного экрана и повторите попытку.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- Ошибка разрешений -->
|
||||
<p v-else-if="isError && model === method" class="text-red-500 dark:text-red-400 mb-2">
|
||||
{{ error }}.<br />
|
||||
<button @click="retry()" class="text-blue-500 dark:text-blue-400 underline">Повторить</button>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
Generated
+3
@@ -325,6 +325,9 @@ importers:
|
||||
'@types/web-push':
|
||||
specifier: ^3.6.4
|
||||
version: 3.6.4
|
||||
tsx:
|
||||
specifier: ^4.19.2
|
||||
version: 4.19.2
|
||||
typescript:
|
||||
specifier: ~5.6.3
|
||||
version: 5.6.3
|
||||
|
||||
@@ -27,6 +27,8 @@
|
||||
},
|
||||
"contributors": [],
|
||||
"scripts": {
|
||||
"dev": "tsx src/service.ts",
|
||||
"dev:watch": "tsx --watch src/service.ts",
|
||||
"start": "node dist/service.js",
|
||||
"build": "tsc",
|
||||
"lint": "tsc --noEmit",
|
||||
@@ -50,6 +52,7 @@
|
||||
"@types/pouchdb-core": "^7.0.15",
|
||||
"@types/pouchdb-find": "^7.3.3",
|
||||
"@types/web-push": "^3.6.4",
|
||||
"tsx": "^4.19.2",
|
||||
"typescript": "~5.6.3"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user