Improved the stream page some more and now going to make the game display page a parody of a steam page.

This commit is contained in:
Zed A. Shaw 2025-09-17 01:28:23 -04:00
parent fc99fc955b
commit a013a26d94
8 changed files with 25 additions and 12 deletions

View file

@ -1,5 +1,5 @@
{
"HostPort": ":9998",
"HostPort": ":9999",
"Processes": {
"webapp": {
"URL": "/webapp",

View file

@ -4,6 +4,13 @@ ifeq '$(OS)' 'Windows_NT'
GO_IS_STUPID_EXE=.exe
endif
all: build
ifeq '$(OS)' 'Windows_NT'
powershell -ExecutionPolicy bypass "./tools/restart.ps1"
else
curl http://127.0.0.1:9999/webapp || true
endif
build: build_bot
go build .

View file

@ -169,4 +169,5 @@ func Setup(app *fiber.App) {
app.Post("/api/admin/new/table/:table", PostApiInsert)
app.Get("/api/admin/table/:table/:id", GetApiSelectOne)
app.Post("/api/admin/table/:table/:id", PostApiUpdate)
app.Delete("/api/admin/table/:table/:id", DeleteApi)
}

View file

@ -32,6 +32,10 @@ type Game struct {
Slug string `db:"slug" json:"slug"`
Title string `db:"title" json:"title"`
Description string `db:"description" json:"description"`
Image string `db:"image" json:"image"`
Url string `db:"url" json:"url"`
Tags string `db:"tags" json:"tags"`
Video string `db:"video" json:"video"`
}
func Models() map[string]reflect.Type {

View file

@ -1,7 +1,15 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE game (id INTEGER PRIMARY KEY,
slug TEXT, title TEXT, description TEXT);
CREATE TABLE game (
id INTEGER PRIMARY KEY,
slug TEXT,
title TEXT,
description TEXT,
image TEXT,
url TEXT,
tags TEXT,
video TEXT
);
-- +goose StatementEnd
-- +goose Down

View file

@ -75,6 +75,7 @@ const ConfirmDelete = async (table, obj_id) => {
await fetch("/api/admin/table/" + table + "/" + obj_id,
{ method: "DELETE" });
window.location = "/admin/table/" + table;
return true;
} else {
return false;
}

View file

@ -339,9 +339,6 @@
.items-center {
align-items: center;
}
.items-stretch {
align-items: stretch;
}
.justify-between {
justify-content: space-between;
}
@ -354,9 +351,6 @@
.justify-evenly {
justify-content: space-evenly;
}
.justify-stretch {
justify-content: stretch;
}
.gap-0\! {
gap: calc(var(--spacing) * 0) !important;
}
@ -499,9 +493,6 @@
.\!p-4 {
padding: calc(var(--spacing) * 4) !important;
}
.p-0 {
padding: calc(var(--spacing) * 0);
}
.p-0\! {
padding: calc(var(--spacing) * 0) !important;
}

1
tools/restart.ps1 Normal file
View file

@ -0,0 +1 @@
curl http://127.0.0.1:9999/webapp *> $null