Enha: move backlog
This commit is contained in:
2
Makefile
2
Makefile
@ -33,7 +33,7 @@ stop-container:
|
|||||||
|
|
||||||
run-container: stop-container
|
run-container: stop-container
|
||||||
migrate -database 'sqlite3://gralias.db' -path migrations up
|
migrate -database 'sqlite3://gralias.db' -path migrations up
|
||||||
docker run --name=gralias -v $(CURDIR)/gralias.db:/app/gralias.db -p 0.0.0.0:3000:3000 -d gralias:master
|
docker run --name=gralias -v $(CURDIR)/gralias.db:/app/gralias.db -p 0.0.0.0:3003:3000 -d gralias:master
|
||||||
|
|
||||||
migrate-up:
|
migrate-up:
|
||||||
migrate -database 'sqlite3://gralias.db' -path migrations up
|
migrate -database 'sqlite3://gralias.db' -path migrations up
|
||||||
|
@ -49,17 +49,18 @@
|
|||||||
{{template "teamlist" .Room.RedTeam}}
|
{{template "teamlist" .Room.RedTeam}}
|
||||||
</div>
|
</div>
|
||||||
<hr/>
|
<hr/>
|
||||||
<div id="systembox" style="overflow-y: auto; max-height: 100px;">
|
<div id="systembox" class="overflow-y-auto max-h-96 border-2 border-gray-300 p-4 rounded-lg space-y-2">
|
||||||
Server says: <br>
|
bot thought: <br>
|
||||||
<ul>
|
<ul>
|
||||||
{{range .Room.LogJournal}}
|
{{range .Room.LogJournal}}
|
||||||
<li>{{.Username}}: {{.Entry}}</li>
|
<li>{{.Username}}: {{.Entry}}</li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div sse-swap="journal_{{.Room.ID}}">
|
<div hx-get="/actionhistory" hx-trigger="sse:backlog_{{.Room.ID}}">
|
||||||
bot thoughts
|
{{template "actionhistory" .Room.ActionHistory}}
|
||||||
<div>
|
</div>
|
||||||
|
<hr/>
|
||||||
<div id="cardtable">
|
<div id="cardtable">
|
||||||
{{template "cardtable" .Room}}
|
{{template "cardtable" .Room}}
|
||||||
</div>
|
</div>
|
||||||
@ -77,9 +78,6 @@
|
|||||||
<button hx-get="/renotify-bot" hx-swap="none" class="bg-gray-100 text-black px-1 py-1 rounded">Btn in case llm call failed</button>
|
<button hx-get="/renotify-bot" hx-swap="none" class="bg-gray-100 text-black px-1 py-1 rounded">Btn in case llm call failed</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div hx-get="/actionhistory" hx-trigger="sse:backlog_{{.Room.ID}}">
|
|
||||||
{{template "actionhistory" .Room.ActionHistory}}
|
|
||||||
</div>
|
|
||||||
{{if not .Room.IsRunning}}
|
{{if not .Room.IsRunning}}
|
||||||
<div id="exitbtn">
|
<div id="exitbtn">
|
||||||
<button button id="exit-room-btn" type="submit" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" hx-get="/room/exit" hx-target="#ancestor">Exit Room</button>
|
<button button id="exit-room-btn" type="submit" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600" hx-get="/room/exit" hx-target="#ancestor">Exit Room</button>
|
||||||
|
Reference in New Issue
Block a user