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:
parent
fc99fc955b
commit
a013a26d94
8 changed files with 25 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"HostPort": ":9998",
|
"HostPort": ":9999",
|
||||||
"Processes": {
|
"Processes": {
|
||||||
"webapp": {
|
"webapp": {
|
||||||
"URL": "/webapp",
|
"URL": "/webapp",
|
||||||
|
|
|
||||||
7
Makefile
7
Makefile
|
|
@ -4,6 +4,13 @@ ifeq '$(OS)' 'Windows_NT'
|
||||||
GO_IS_STUPID_EXE=.exe
|
GO_IS_STUPID_EXE=.exe
|
||||||
endif
|
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
|
build: build_bot
|
||||||
go build .
|
go build .
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,4 +169,5 @@ func Setup(app *fiber.App) {
|
||||||
app.Post("/api/admin/new/table/:table", PostApiInsert)
|
app.Post("/api/admin/new/table/:table", PostApiInsert)
|
||||||
app.Get("/api/admin/table/:table/:id", GetApiSelectOne)
|
app.Get("/api/admin/table/:table/:id", GetApiSelectOne)
|
||||||
app.Post("/api/admin/table/:table/:id", PostApiUpdate)
|
app.Post("/api/admin/table/:table/:id", PostApiUpdate)
|
||||||
|
app.Delete("/api/admin/table/:table/:id", DeleteApi)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,10 @@ type Game struct {
|
||||||
Slug string `db:"slug" json:"slug"`
|
Slug string `db:"slug" json:"slug"`
|
||||||
Title string `db:"title" json:"title"`
|
Title string `db:"title" json:"title"`
|
||||||
Description string `db:"description" json:"description"`
|
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 {
|
func Models() map[string]reflect.Type {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,15 @@
|
||||||
-- +goose Up
|
-- +goose Up
|
||||||
-- +goose StatementBegin
|
-- +goose StatementBegin
|
||||||
CREATE TABLE game (id INTEGER PRIMARY KEY,
|
CREATE TABLE game (
|
||||||
slug TEXT, title TEXT, description TEXT);
|
id INTEGER PRIMARY KEY,
|
||||||
|
slug TEXT,
|
||||||
|
title TEXT,
|
||||||
|
description TEXT,
|
||||||
|
image TEXT,
|
||||||
|
url TEXT,
|
||||||
|
tags TEXT,
|
||||||
|
video TEXT
|
||||||
|
);
|
||||||
-- +goose StatementEnd
|
-- +goose StatementEnd
|
||||||
|
|
||||||
-- +goose Down
|
-- +goose Down
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,7 @@ const ConfirmDelete = async (table, obj_id) => {
|
||||||
await fetch("/api/admin/table/" + table + "/" + obj_id,
|
await fetch("/api/admin/table/" + table + "/" + obj_id,
|
||||||
{ method: "DELETE" });
|
{ method: "DELETE" });
|
||||||
window.location = "/admin/table/" + table;
|
window.location = "/admin/table/" + table;
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -339,9 +339,6 @@
|
||||||
.items-center {
|
.items-center {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.items-stretch {
|
|
||||||
align-items: stretch;
|
|
||||||
}
|
|
||||||
.justify-between {
|
.justify-between {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
@ -354,9 +351,6 @@
|
||||||
.justify-evenly {
|
.justify-evenly {
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
}
|
}
|
||||||
.justify-stretch {
|
|
||||||
justify-content: stretch;
|
|
||||||
}
|
|
||||||
.gap-0\! {
|
.gap-0\! {
|
||||||
gap: calc(var(--spacing) * 0) !important;
|
gap: calc(var(--spacing) * 0) !important;
|
||||||
}
|
}
|
||||||
|
|
@ -499,9 +493,6 @@
|
||||||
.\!p-4 {
|
.\!p-4 {
|
||||||
padding: calc(var(--spacing) * 4) !important;
|
padding: calc(var(--spacing) * 4) !important;
|
||||||
}
|
}
|
||||||
.p-0 {
|
|
||||||
padding: calc(var(--spacing) * 0);
|
|
||||||
}
|
|
||||||
.p-0\! {
|
.p-0\! {
|
||||||
padding: calc(var(--spacing) * 0) !important;
|
padding: calc(var(--spacing) * 0) !important;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1
tools/restart.ps1
Normal file
1
tools/restart.ps1
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
curl http://127.0.0.1:9999/webapp *> $null
|
||||||
Loading…
Add table
Add a link
Reference in a new issue