This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import { createHead } from '@unhead/vue'
|
import { createHead } from '@unhead/vue'
|
||||||
|
import { Head } from '@unhead/vue/components'
|
||||||
import { VueQueryPlugin, type VueQueryPluginOptions } from '@tanstack/vue-query'
|
import { VueQueryPlugin, type VueQueryPluginOptions } from '@tanstack/vue-query'
|
||||||
// import { createPinia } from 'pinia'
|
// import { createPinia } from 'pinia'
|
||||||
import PouchDB from '@/api/PouchDB'
|
import PouchDB from '@/api/PouchDB'
|
||||||
@@ -47,8 +48,8 @@ const vueQueryPluginOptions: VueQueryPluginOptions = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const head = createHead()
|
app.use(createHead())
|
||||||
app.use(head)
|
app.component('MetaHead', Head)
|
||||||
app.use(VueQueryPlugin, vueQueryPluginOptions)
|
app.use(VueQueryPlugin, vueQueryPluginOptions)
|
||||||
// app.use(createPinia())
|
// app.use(createPinia())
|
||||||
app.use(router)
|
app.use(router)
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title>Создание QR-кода — НаСвязи</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Создайте свой QR-код для безопасного и конфиденциального взаимодействия"
|
||||||
|
/>
|
||||||
|
</MetaHead>
|
||||||
|
|
||||||
<div class="max-w-prose mx-auto py-6 px-4 md:px-6">
|
<div class="max-w-prose mx-auto py-6 px-4 md:px-6">
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div class="max-w-prose mx-auto py-8">
|
<div class="max-w-prose mx-auto py-8">
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title>Поддержите развитие НаСвязи</title>
|
||||||
|
<meta name="description" content="" />
|
||||||
|
</MetaHead>
|
||||||
|
|
||||||
<section class="max-w-2xl mx-auto py-8 px-4 text-center">
|
<section class="max-w-2xl mx-auto py-8 px-4 text-center">
|
||||||
<h1 class="text-2xl font-bold mb-4">Поддержите развитие НаСвязи</h1>
|
<h1 class="text-2xl font-bold mb-4">Поддержите развитие НаСвязи</h1>
|
||||||
<p class="text-gray-600 mb-6">
|
<p class="text-gray-600 mb-6">
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<script setup lang="ts"></script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title>НаСвязи — Быстрая и конфиденциальная связь через QR-код</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="НаСвязи позволяет быстро и конфиденциально связаться через QR-код. Создайте свой код и обеспечьте удобное взаимодействие без раскрытия личных данных"
|
||||||
|
/>
|
||||||
|
</MetaHead>
|
||||||
<main>
|
<main>
|
||||||
<TheWelcome />
|
<TheWelcome />
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title>Чат {{ chatDoc?.name ? `«${chatDoc.name}»` : '' }} — НаСвязи</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Ваш QR-код успешно создан! Узнайте, как его использовать и настройте все доступные функции для удобного взаимодействия с окружающими."
|
||||||
|
/>
|
||||||
|
</MetaHead>
|
||||||
|
|
||||||
<div class="flex flex-col min-h-full">
|
<div class="flex flex-col min-h-full">
|
||||||
<!-- Основной контент -->
|
<!-- Основной контент -->
|
||||||
<main class="flex-grow flex flex-col">
|
<main class="flex-grow flex flex-col">
|
||||||
@@ -47,5 +55,16 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import type { MessageDocument } from '@hereconnect/types'
|
import type { MessageDocument } from '@hereconnect/types'
|
||||||
import ChatComponent from '@/components/ChatComponent.vue'
|
import ChatComponent from '@/components/ChatComponent.vue'
|
||||||
defineProps<{ qr_code_uri: MessageDocument['qr_code_uri']; chat: MessageDocument['chat'] }>()
|
import { getQrCodeDocument } from '@/api/qrCode'
|
||||||
|
import { useQuery } from '@tanstack/vue-query'
|
||||||
|
|
||||||
|
const props = defineProps<{
|
||||||
|
qr_code_uri: MessageDocument['qr_code_uri']
|
||||||
|
chat: MessageDocument['chat']
|
||||||
|
}>()
|
||||||
|
|
||||||
|
const { data: chatDoc } = useQuery({
|
||||||
|
queryKey: ['qrCode', computed(() => props.qr_code_uri)],
|
||||||
|
queryFn: () => getQrCodeDocument(props.qr_code_uri),
|
||||||
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title>Ваш QR-код готов — НаСвязи</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Просматривайте и управляйте сообщениями, отправленными через ваш QR-код. Полная конфиденциальность и удобный интерфейс чата"
|
||||||
|
/>
|
||||||
|
</MetaHead>
|
||||||
|
|
||||||
<div class="flex flex-col min-h-full">
|
<div class="flex flex-col min-h-full">
|
||||||
<main
|
<main
|
||||||
class="flex-grow flex justify-center py-6 px-4 md:px-6"
|
class="flex-grow flex justify-center py-6 px-4 md:px-6"
|
||||||
|
|||||||
@@ -1,4 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title>Чат — НаСвязи</title>
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Чат QR-кода. Безопасная и конфиденциальная связь для решения всех вопросов"
|
||||||
|
/>
|
||||||
|
</MetaHead>
|
||||||
|
|
||||||
<div class="flex flex-col min-h-full">
|
<div class="flex flex-col min-h-full">
|
||||||
<!-- Основной контент -->
|
<!-- Основной контент -->
|
||||||
<main class="flex-grow flex flex-col">
|
<main class="flex-grow flex flex-col">
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<MetaHead>
|
||||||
|
<title></title>
|
||||||
|
<meta name="description" content="" />
|
||||||
|
</MetaHead>
|
||||||
|
|
||||||
<div class="flex flex-col min-h-full">
|
<div class="flex flex-col min-h-full">
|
||||||
<main class="flex-grow flex items-center justify-center py-6 px-4 md:px-6">
|
<main class="flex-grow flex items-center justify-center py-6 px-4 md:px-6">
|
||||||
<section class="max-w-prose w-full flex flex-col gap-10">
|
<section class="max-w-prose w-full flex flex-col gap-10">
|
||||||
|
|||||||
Reference in New Issue
Block a user