generated from VLADIMIR/template_frontend
add prikol
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -5,8 +5,8 @@
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Вечерний детектив</title>
|
||||
<script type="module" crossorigin src="/assets/index-CGk6CiX8.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-Bl5HbzRP.css">
|
||||
<script type="module" crossorigin src="/assets/index-DdFR5E_u.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BFjIFT0o.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -11,7 +11,9 @@ import type { Place, Scenario } from '@/api/generated/crabs/evening_detective_se
|
||||
import HeaderMenu from '@/components/HeaderMenu.vue'
|
||||
import PlaceBlock from '@/components/PlaceBlock.vue'
|
||||
import router from '@/router'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
|
||||
const authStore = useAuthStore()
|
||||
const client = getAuthClient()
|
||||
const route = useRoute()
|
||||
const scenarioId = route.params.id
|
||||
@@ -269,6 +271,26 @@ async function deletePlace(place: Place) {
|
||||
}
|
||||
await getScenario(Number(scenarioId))
|
||||
}
|
||||
|
||||
function getRandomComplimentForNastya() {
|
||||
const compliments = [
|
||||
{ text: 'Настя, ты просто ослепительна сегодня!', nameForm: 'Настя' },
|
||||
{ text: 'У Насти невероятный вкус!', nameForm: 'Насти' },
|
||||
{ text: 'Настенька, твоя улыбка делает мир ярче.', nameForm: 'Настенька' },
|
||||
{ text: 'С Настей всегда интересно общаться.', nameForm: 'Настей' },
|
||||
{ text: 'Настя, ты — источник вдохновения для всех вокруг.', nameForm: 'Настя' },
|
||||
{ text: 'Мне нравится, как Настя смотрит на мир.', nameForm: 'Настя' },
|
||||
{ text: 'Настюха, ты супер!', nameForm: 'Настюха' },
|
||||
{ text: 'Талант Насти поражает!', nameForm: 'Насти' },
|
||||
{ text: 'Настя, твоя энергия заряжает батарейки!', nameForm: 'Настя' },
|
||||
{ text: 'С Настей хочется проводить каждую минуту.', nameForm: 'Настей' },
|
||||
{ text: 'Настенька, ты — самое красивое, что случилось в этом мире.', nameForm: 'Настенька' },
|
||||
{ text: 'У Насти золотое сердце.', nameForm: 'Насти' }
|
||||
];
|
||||
|
||||
const randomIndex = Math.floor(Math.random() * compliments.length);
|
||||
return compliments[randomIndex].text;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -280,6 +302,9 @@ async function deletePlace(place: Place) {
|
||||
Не рекомендуется редактировать сценарий когда он опубликован.
|
||||
</n-alert>
|
||||
|
||||
<n-alert v-if="authStore.user?.id == 2" :title="getRandomComplimentForNastya()" type="info"
|
||||
style="margin-bottom: 20px;"></n-alert>
|
||||
|
||||
<div class="settings-block">
|
||||
Точек: {{ scenario.story?.places?.length }}
|
||||
<n-button quaternary @click="showSettingsModal = true" class="settings-button">
|
||||
|
||||
Reference in New Issue
Block a user