From 72efa66a2f4a20eff7697f6639d9afca1ff37d57 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sat, 1 Aug 2026 01:33:54 +0700 Subject: [PATCH] add update game window --- src/components/GamePage.vue | 67 ++++++++++++++++++++++++++ src/components/ScenariosEditorPage.vue | 16 +++--- 2 files changed, 75 insertions(+), 8 deletions(-) diff --git a/src/components/GamePage.vue b/src/components/GamePage.vue index 9c949c0..06d48b8 100644 --- a/src/components/GamePage.vue +++ b/src/components/GamePage.vue @@ -1,6 +1,11 @@ @@ -69,4 +124,16 @@ async function toTeamStory(id: number, password: string) { font-size: 24px; margin-bottom: 10px; } + +.settings-block { + height: 40px; +} + +.settings-button { + float: right; +} + +.settings-icon { + width: 20px; +} diff --git a/src/components/ScenariosEditorPage.vue b/src/components/ScenariosEditorPage.vue index 93c50dd..5460af5 100644 --- a/src/components/ScenariosEditorPage.vue +++ b/src/components/ScenariosEditorPage.vue @@ -16,7 +16,7 @@ const client = getAuthClient() const route = useRoute() const scenarioId = route.params.id -const showSettingsScenarioModal = ref(false) +const showSettingsModal = ref(false) const statusScenarioName = ref('') const deletedScenarioName = ref('') @@ -66,7 +66,7 @@ async function publicScenario(id: number) { } await getScenario(Number(scenarioId)) statusScenarioName.value = '' - showSettingsScenarioModal.value = false + showSettingsModal.value = false } async function addGame(name: string, id: number) { @@ -100,7 +100,7 @@ async function draftScenario(id: number) { } await getScenario(Number(scenarioId)) statusScenarioName.value = '' - showSettingsScenarioModal.value = false + showSettingsModal.value = false } async function uploadFile(file: File | null, filename: string): Promise { @@ -148,7 +148,7 @@ async function updateScenario() { return } await getScenario(Number(scenarioId)) - showSettingsScenarioModal.value = false + showSettingsModal.value = false } function uint8ToBase64(uint8Array: Uint8Array) { @@ -282,7 +282,7 @@ async function deletePlace(place: Place) {
Точек: {{ scenario.story?.places?.length }} - + @@ -310,12 +310,12 @@ async function deletePlace(place: Place) {
- - + +

Название