From 566d645230393c130fa63c1250c0075aaee68206 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Fri, 11 Jul 2025 12:43:04 +0300 Subject: [PATCH] Enha: avoid replacing div that connects to sse --- components/base.html | 2 ++ components/createroomform.html | 2 +- components/linklogin.html | 2 +- components/login.html | 2 +- components/room.html | 2 +- components/roomlist.html | 4 ++-- components/stats.html | 2 +- components/teampew.html | 4 ++-- todos.md | 2 +- 9 files changed, 12 insertions(+), 10 deletions(-) diff --git a/components/base.html b/components/base.html index 142b222..3d8a9dc 100644 --- a/components/base.html +++ b/components/base.html @@ -13,7 +13,9 @@
+
{{template "main" .}} +
diff --git a/components/createroomform.html b/components/createroomform.html index 38b0ded..184dfe5 100644 --- a/components/createroomform.html +++ b/components/createroomform.html @@ -4,7 +4,7 @@ Create a room
or
-
+


diff --git a/components/linklogin.html b/components/linklogin.html index 275fcc4..d160218 100644 --- a/components/linklogin.html +++ b/components/linklogin.html @@ -1,7 +1,7 @@ {{define "linklogin"}}
You're about to join room#{{.}}; but first! - +
diff --git a/components/login.html b/components/login.html index e2e52ae..159c838 100644 --- a/components/login.html +++ b/components/login.html @@ -1,6 +1,6 @@ {{define "login"}}
- +
diff --git a/components/room.html b/components/room.html index 2c282e1..47497b6 100644 --- a/components/room.html +++ b/components/room.html @@ -80,7 +80,7 @@
{{if not .Room.IsRunning}}
- +
{{end}}
diff --git a/components/roomlist.html b/components/roomlist.html index b438adf..bfd35db 100644 --- a/components/roomlist.html +++ b/components/roomlist.html @@ -1,7 +1,7 @@ {{define "roomlist"}} -
+
{{range .}} -
+
diff --git a/components/stats.html b/components/stats.html index e2cdcd6..23205b7 100644 --- a/components/stats.html +++ b/components/stats.html @@ -12,7 +12,7 @@ -
+

Player Leaderboard

diff --git a/components/teampew.html b/components/teampew.html index 13f3a65..d82d53e 100644 --- a/components/teampew.html +++ b/components/teampew.html @@ -2,7 +2,7 @@

Join Blue Team

- +
{{if and (eq .State.Role "guesser") (eq .State.Team "blue")}} @@ -23,7 +23,7 @@

Join Red Team

- +
{{if and (eq .State.Role "guesser") (eq .State.Team "red")}} diff --git a/todos.md b/todos.md index ff511c6..ab591ac 100644 --- a/todos.md +++ b/todos.md @@ -90,4 +90,4 @@ - there is a problem of two timers, they both could switch turn, but it is not easy to stop them from llmapi or handlers. + - journal still does not work; + - lose/win game; then exit room (while being the creator), then press to stats -> cannot find session in db, although cookie in place and session in db; -- player got deleted from db; +- exit endpoints delets player from db;