From 5dfd7b6a448a31eb1693a75cf7c08bd7ca1cfdc0 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Thu, 31 Aug 2023 12:26:03 +1000 Subject: [PATCH] Rework deck editor page and allow drag/drop of decks and cards --- .gitmodules | 3 + .../assets/grip-horizontal.svg | 3 + TableturfBattleClient/assets/plus-circle.svg | 4 + TableturfBattleClient/index.html | 39 ++--- TableturfBattleClient/mobile-drag-drop | 1 + TableturfBattleClient/src/CheckButtonGroup.ts | 26 +++- TableturfBattleClient/src/Config.ts | 1 + .../src/Pages/DeckEditPage.ts | 79 +++++++++-- .../src/Pages/DeckListPage.ts | 134 +++++++++++++++--- .../src/Pages/PreGamePage.ts | 2 + TableturfBattleClient/tableturf.css | 94 ++++++++---- 11 files changed, 311 insertions(+), 75 deletions(-) create mode 100644 TableturfBattleClient/assets/grip-horizontal.svg create mode 100644 TableturfBattleClient/assets/plus-circle.svg create mode 160000 TableturfBattleClient/mobile-drag-drop diff --git a/.gitmodules b/.gitmodules index 8ff14ea..b44c2e5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "TableturfBattleClient/qrcodejs"] path = TableturfBattleClient/qrcodejs url = https://github.com/davidshimjs/qrcodejs.git +[submodule "TableturfBattleClient/mobile-drag-drop"] + path = TableturfBattleClient/mobile-drag-drop + url = https://github.com/timruffles/mobile-drag-drop.git diff --git a/TableturfBattleClient/assets/grip-horizontal.svg b/TableturfBattleClient/assets/grip-horizontal.svg new file mode 100644 index 0000000..58f6977 --- /dev/null +++ b/TableturfBattleClient/assets/grip-horizontal.svg @@ -0,0 +1,3 @@ + + + diff --git a/TableturfBattleClient/assets/plus-circle.svg b/TableturfBattleClient/assets/plus-circle.svg new file mode 100644 index 0000000..02d0ee0 --- /dev/null +++ b/TableturfBattleClient/assets/plus-circle.svg @@ -0,0 +1,4 @@ + + + + diff --git a/TableturfBattleClient/index.html b/TableturfBattleClient/index.html index 1ddd8a9..3ef2097 100644 --- a/TableturfBattleClient/index.html +++ b/TableturfBattleClient/index.html @@ -15,6 +15,11 @@ + + @@ -402,27 +407,27 @@