This commit is contained in:
2026-10-11 01:45:53 +07:00
parent 927aa81dda
commit 535d2c3649
5 changed files with 115 additions and 1 deletions
+14 -1
View File
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { Flag, Pause, Play, Reset, Trophy } from '@vicons/carbon'
import { Icon } from '@vicons/utils'
import { NButton, NTag } from 'naive-ui'
import { NAlert, NButton, NTag } from 'naive-ui'
import {
NCard,
NFlex,
@@ -107,6 +107,7 @@ const game = ref<Game>({
location: undefined,
scenario: undefined,
teams: undefined,
export: undefined,
})
const participationOptions = [
{ label: 'Ожидает ответа', value: 'pending' },
@@ -782,6 +783,18 @@ useSimplePolling(() => {
<template>
<div class="center-block-custom">
<div class="width1200">
<UiBlock v-if="game.export?.state === 'preparing' || game.export?.state === 'ready'">
<n-alert
type="info"
:title="game.export.state === 'ready' ? 'Игра в офлайн-режиме' : 'Подготовка офлайн-пакета'"
>
{{
game.export.state === 'ready'
? 'Изменения на онлайн-сервере не синхронизируются с офлайн-площадкой.'
: 'Создаётся пакет для офлайн-площадки.'
}}
</n-alert>
</UiBlock>
<n-tabs :value="activeTab" type="line" animated @update:value="setActiveTab">
<n-tab-pane name="settings" tab="Настройки">
<div class="game-tab-content">