diff --git a/src/components/GameWindow.vue b/src/components/GameWindow.vue index 13b68ae..57ef118 100644 --- a/src/components/GameWindow.vue +++ b/src/components/GameWindow.vue @@ -10,7 +10,6 @@ import { UnauthorizedError } from './UnauthorizedError'; import WelcomeGameBlock from './WelcomeGameBlock.vue'; import HeaderText from './HeaderText.vue'; import MessageCloud from './MessageCloud.vue'; -import HRLine from './HRLine.vue'; const router = useRouter(); const route = useRoute(); @@ -60,21 +59,17 @@ async function getTeam() { } } -function addAction() { +async function addAction() { inputPlace.value = true const placeValue = place.value.trim() if (placeValue === "") { place.value = "" return } - letsgo(placeValue) + await apiLetsgo(login.value, password.value, placeValue) place.value = "" } -async function letsgo(place: string) { - await apiLetsgo(login.value, password.value, place) -} - const scrollToBottom = async (behavior: ScrollBehavior = 'smooth'): Promise => { await nextTick(); if (scrollContainer.value) { @@ -155,8 +150,9 @@ onMounted(() => { :disabled="gameState !== 'RUN'">
- + @@ -173,24 +169,7 @@ onMounted(() => {
- - -
-
- -
{{ action.text }} -
- - - - - -
+
@@ -233,22 +212,6 @@ onMounted(() => { background-color: black; } -.message-content { - font-weight: 500; - white-space: pre-wrap; -} - -.message-image { - width: 40%; - float: left; - margin-right: 15px; -} - -.message-footer { - font-weight: 400; - color: var(--second-color); -} - .messages-block { top: 95px; height: calc(100dvh - 100px - 76px); @@ -388,25 +351,4 @@ onMounted(() => { .controller-metal-right { right: -15px; } - -.button-dialog { - background-color: var(--main-color); - font-weight: 600; - color: white; - - padding: 6px 14px; - border: 1px solid #ddd; - border-radius: 15px; - font-size: 16px; - margin-right: 6px; -} - -.button-dialog:hover { - background-color: var(--main-color); - opacity: 0.9; -} - -.button-dialog:disabled { - opacity: 0.5; -} diff --git a/src/components/HRLine.vue b/src/components/HRLine.vue deleted file mode 100644 index f89d482..0000000 --- a/src/components/HRLine.vue +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/src/components/MessageCloud.vue b/src/components/MessageCloud.vue index 5d73a8b..1f57e82 100644 --- a/src/components/MessageCloud.vue +++ b/src/components/MessageCloud.vue @@ -1,23 +1,56 @@ diff --git a/src/components/MessageCloudHeader.vue b/src/components/MessageCloudHeader.vue deleted file mode 100644 index c242b10..0000000 --- a/src/components/MessageCloudHeader.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - -