From 13fdf97f5aa7e0ab8fede13131241395333b98d9 Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 19 Feb 2026 17:43:22 +0100 Subject: [PATCH] - Rename and restructure components and assets for uniformity. - Refactor `Field.vue` for better state management and event handling. - Update path references for SVG assets. - Add selection highlighting in game field with red and white arrows. - Simplify and organize styles in game components. - Minor updates to local mode game logic (`LocalMode.vue`). --- GUI/public/Arrow/Arrow_Red.svg | 7 ++ GUI/public/Arrow/Arrow_White.svg | 7 ++ GUI/src/components/Game/Field.vue | 54 ------------ GUI/src/components/game/Field.vue | 86 +++++++++++++++++++ GUI/src/main.ts | 2 +- GUI/src/routes/LocalMode.vue | 29 ++++--- .../{Interfaces => scripts/classes}/.gitkeep | 0 GUI/src/scripts/interfaces/.gitkeep | 0 GUI/src/{router => utils}/index.ts | 0 9 files changed, 118 insertions(+), 67 deletions(-) create mode 100644 GUI/public/Arrow/Arrow_Red.svg create mode 100644 GUI/public/Arrow/Arrow_White.svg delete mode 100644 GUI/src/components/Game/Field.vue create mode 100644 GUI/src/components/game/Field.vue rename GUI/src/{Interfaces => scripts/classes}/.gitkeep (100%) create mode 100644 GUI/src/scripts/interfaces/.gitkeep rename GUI/src/{router => utils}/index.ts (100%) diff --git a/GUI/public/Arrow/Arrow_Red.svg b/GUI/public/Arrow/Arrow_Red.svg new file mode 100644 index 0000000..ab220b0 --- /dev/null +++ b/GUI/public/Arrow/Arrow_Red.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/GUI/public/Arrow/Arrow_White.svg b/GUI/public/Arrow/Arrow_White.svg new file mode 100644 index 0000000..e3be6e0 --- /dev/null +++ b/GUI/public/Arrow/Arrow_White.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/GUI/src/components/Game/Field.vue b/GUI/src/components/Game/Field.vue deleted file mode 100644 index 331c175..0000000 --- a/GUI/src/components/Game/Field.vue +++ /dev/null @@ -1,54 +0,0 @@ - - - - - \ No newline at end of file diff --git a/GUI/src/components/game/Field.vue b/GUI/src/components/game/Field.vue new file mode 100644 index 0000000..df6ac14 --- /dev/null +++ b/GUI/src/components/game/Field.vue @@ -0,0 +1,86 @@ + + + + + \ No newline at end of file diff --git a/GUI/src/main.ts b/GUI/src/main.ts index 9ce37d5..934aca6 100644 --- a/GUI/src/main.ts +++ b/GUI/src/main.ts @@ -1,6 +1,6 @@ import { createApp } from 'vue' import App from './Layout.vue' -import router from './router' +import router from './utils' // Vuetify import 'vuetify/styles' import { createVuetify } from 'vuetify' diff --git a/GUI/src/routes/LocalMode.vue b/GUI/src/routes/LocalMode.vue index 5062910..a34dc1f 100644 --- a/GUI/src/routes/LocalMode.vue +++ b/GUI/src/routes/LocalMode.vue @@ -1,20 +1,25 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/GUI/src/Interfaces/.gitkeep b/GUI/src/scripts/classes/.gitkeep similarity index 100% rename from GUI/src/Interfaces/.gitkeep rename to GUI/src/scripts/classes/.gitkeep diff --git a/GUI/src/scripts/interfaces/.gitkeep b/GUI/src/scripts/interfaces/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/GUI/src/router/index.ts b/GUI/src/utils/index.ts similarity index 100% rename from GUI/src/router/index.ts rename to GUI/src/utils/index.ts