generated from VLADIMIR/template_frontend
up
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Вечерний детектив</title>
|
<title>Вечерний детектив</title>
|
||||||
<script type="module" crossorigin src="/assets/index-DNdwunR3.js"></script>
|
<script type="module" crossorigin src="/assets/index-oex1uI7H.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/client-CT8bsOZT.js">
|
<link rel="modulepreload" crossorigin href="/assets/client-CT8bsOZT.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/light-DhgSQSdG.js">
|
<link rel="modulepreload" crossorigin href="/assets/light-DhgSQSdG.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/light-DW22zwJY.js">
|
<link rel="modulepreload" crossorigin href="/assets/light-DW22zwJY.js">
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ import type {
|
|||||||
TeamResult,
|
TeamResult,
|
||||||
Ticket,
|
Ticket,
|
||||||
} from '@/api/generated/crabs/evening_detective_server'
|
} from '@/api/generated/crabs/evening_detective_server'
|
||||||
import { getURL } from '@/api/generated/crabs/evening_detective_server/client'
|
|
||||||
import GameMapPanel from '@/components/GameMapPanel.vue'
|
import GameMapPanel from '@/components/GameMapPanel.vue'
|
||||||
import GameScreensPanel from '@/components/GameScreensPanel.vue'
|
import GameScreensPanel from '@/components/GameScreensPanel.vue'
|
||||||
import GameTeamsPanel from '@/components/GameTeamsPanel.vue'
|
import GameTeamsPanel from '@/components/GameTeamsPanel.vue'
|
||||||
@@ -499,7 +498,9 @@ async function deleteGame() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTeamStoryURL(id: number, password: string): string {
|
function getTeamStoryURL(id: number, password: string): string {
|
||||||
return getURL() + '/team-story/' + id + '?password=' + password
|
const url = new URL(`/team-story/${id}`, window.location.origin)
|
||||||
|
url.searchParams.set('password', password)
|
||||||
|
return url.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
function openTeamQR(team: Team) {
|
function openTeamQR(team: Team) {
|
||||||
|
|||||||
@@ -11,10 +11,10 @@ defineProps<{
|
|||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
add: []
|
add: []
|
||||||
openQR: [team: Team]
|
'open-qr': [team: Team]
|
||||||
preview: [id: number, password: string]
|
preview: [id: number, password: string]
|
||||||
delete: [team: Team]
|
delete: [team: Team]
|
||||||
giveApplication: [team: Team, application: Application]
|
'give-application': [team: Team, application: Application]
|
||||||
}>()
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ const emit = defineEmits<{
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<n-flex justify="end">
|
<n-flex justify="end">
|
||||||
<n-button v-if="team.participationStatus !== 'cancelled'" @click="emit('openQR', team)"
|
<n-button v-if="team.participationStatus !== 'cancelled'" @click="emit('open-qr', team)"
|
||||||
>QR</n-button
|
>QR</n-button
|
||||||
>
|
>
|
||||||
<n-button
|
<n-button
|
||||||
@@ -62,7 +62,7 @@ const emit = defineEmits<{
|
|||||||
v-for="application in team.applications"
|
v-for="application in team.applications"
|
||||||
:key="application.name"
|
:key="application.name"
|
||||||
class="link-button"
|
class="link-button"
|
||||||
@click="emit('giveApplication', team, application)"
|
@click="emit('give-application', team, application)"
|
||||||
>
|
>
|
||||||
Выдать: {{ application.name }}
|
Выдать: {{ application.name }}
|
||||||
</n-button>
|
</n-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user