Refactor everything that's used all over into a common/ package and sync files from static/ into public/ so that public's not in the git.
This commit is contained in:
parent
d12817f4cc
commit
ec7298cce0
36 changed files with 112 additions and 902 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,3 +28,4 @@ coverage/*
|
||||||
.venv
|
.venv
|
||||||
*.gz
|
*.gz
|
||||||
config.toml
|
config.toml
|
||||||
|
public
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -9,6 +9,13 @@ build:
|
||||||
go build .
|
go build .
|
||||||
|
|
||||||
site:
|
site:
|
||||||
|
ifeq '$(OS)' 'Windows_NT'
|
||||||
|
powershell "mkdir public -force"
|
||||||
|
robocopy static public /nfl /ndl /njh /njs /COPY:DATSO /e
|
||||||
|
else
|
||||||
|
mkdir -p public
|
||||||
|
rsync -av static/ public/
|
||||||
|
endif
|
||||||
go run tools/cmd/sitebuild/main.go
|
go run tools/cmd/sitebuild/main.go
|
||||||
|
|
||||||
test: site
|
test: site
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"zedshaw.games/webapp/data"
|
"zedshaw.games/webapp/data"
|
||||||
"zedshaw.games/webapp/api"
|
. "zedshaw.games/webapp/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetApiTableIndex(c *fiber.Ctx) error {
|
func GetApiTableIndex(c *fiber.Ctx) error {
|
||||||
|
@ -25,7 +25,7 @@ func GetApiSelectAll(c *fiber.Ctx) error {
|
||||||
type_is := data.Models()[table]
|
type_is := data.Models()[table]
|
||||||
|
|
||||||
result, err := SelectTable(table, type_is, 20, 0);
|
result, err := SelectTable(table, type_is, 20, 0);
|
||||||
if err != nil { return api.IfErrNil(err, c) }
|
if err != nil { return IfErrNil(err, c) }
|
||||||
|
|
||||||
return c.JSON(result)
|
return c.JSON(result)
|
||||||
}
|
}
|
||||||
|
@ -37,12 +37,12 @@ func GetPageSelectAll(c *fiber.Ctx) error {
|
||||||
func GetApiSelectOne(c *fiber.Ctx) error {
|
func GetApiSelectOne(c *fiber.Ctx) error {
|
||||||
table := c.Params("table")
|
table := c.Params("table")
|
||||||
id, err := strconv.ParseInt(c.Params("id"), 10, 64)
|
id, err := strconv.ParseInt(c.Params("id"), 10, 64)
|
||||||
if err != nil { return api.IfErrNil(err, c) }
|
if err != nil { return IfErrNil(err, c) }
|
||||||
|
|
||||||
type_is := data.Models()[table]
|
type_is := data.Models()[table]
|
||||||
|
|
||||||
result, err := Get(table, type_is, id)
|
result, err := Get(table, type_is, id)
|
||||||
if err != nil { return api.IfErrNil(err, c) }
|
if err != nil { return IfErrNil(err, c) }
|
||||||
|
|
||||||
return c.JSON(result.Interface())
|
return c.JSON(result.Interface())
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ func GetApiSelectOne(c *fiber.Ctx) error {
|
||||||
func GetPageSelectOne(c *fiber.Ctx) error {
|
func GetPageSelectOne(c *fiber.Ctx) error {
|
||||||
table := c.Params("table")
|
table := c.Params("table")
|
||||||
id, err := strconv.ParseInt(c.Params("id"), 10, 64)
|
id, err := strconv.ParseInt(c.Params("id"), 10, 64)
|
||||||
if err != nil { return api.IfErrNil(err, c) }
|
if err != nil { return IfErrNil(err, c) }
|
||||||
|
|
||||||
return c.Render("admin/table/view", fiber.Map{
|
return c.Render("admin/table/view", fiber.Map{
|
||||||
"Table": table,
|
"Table": table,
|
||||||
|
@ -58,7 +58,6 @@ func GetPageSelectOne(c *fiber.Ctx) error {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func PostApiUpdate(c *fiber.Ctx) error {
|
func PostApiUpdate(c *fiber.Ctx) error {
|
||||||
return c.JSON(fiber.Map{})
|
return c.JSON(fiber.Map{})
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import (
|
||||||
"github.com/gofiber/fiber/v2/middleware/session"
|
"github.com/gofiber/fiber/v2/middleware/session"
|
||||||
|
|
||||||
"zedshaw.games/webapp/data"
|
"zedshaw.games/webapp/data"
|
||||||
|
. "zedshaw.games/webapp/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
var STORE *session.Store
|
var STORE *session.Store
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
package api
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"github.com/gofiber/fiber/v2"
|
"github.com/gofiber/fiber/v2"
|
||||||
"github.com/go-playground/validator/v10"
|
"github.com/go-playground/validator/v10"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Failure struct {
|
type Failure struct {
|
||||||
Message string `json:"message"`
|
Message string `json:"message"`
|
|
@ -1,4 +1,4 @@
|
||||||
package zed
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
|
@ -1,4 +1,4 @@
|
||||||
package zed
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
@ -37,8 +37,9 @@ func RenderPages(pages_path string, target string, layout string) {
|
||||||
_, err := os.Stat(target_path)
|
_, err := os.Stat(target_path)
|
||||||
|
|
||||||
if os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
log.Println("MAKING: ", "MAKE THE DAMN PATH NO FILE")
|
target_dir := filepath.Dir(target_path)
|
||||||
// os.MkdirAll(target_path, 0750)
|
log.Println("MAKING: ", target_dir)
|
||||||
|
os.MkdirAll(target_dir, 0750)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: compare time stamps and skip if not newer
|
// TODO: compare time stamps and skip if not newer
|
10
go.mod
10
go.mod
|
@ -3,7 +3,7 @@ module zedshaw.games/webapp
|
||||||
go 1.24.2
|
go 1.24.2
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/BurntSushi/toml v0.3.1
|
github.com/BurntSushi/toml v1.4.0
|
||||||
github.com/Masterminds/squirrel v1.5.4
|
github.com/Masterminds/squirrel v1.5.4
|
||||||
github.com/chromedp/chromedp v0.13.6
|
github.com/chromedp/chromedp v0.13.6
|
||||||
github.com/go-playground/validator/v10 v10.26.0
|
github.com/go-playground/validator/v10 v10.26.0
|
||||||
|
@ -28,6 +28,7 @@ require (
|
||||||
github.com/chromedp/cdproto v0.0.0-20250611220608-a17eb1ae8ff0 // indirect
|
github.com/chromedp/cdproto v0.0.0-20250611220608-a17eb1ae8ff0 // indirect
|
||||||
github.com/chromedp/sysutil v1.1.0 // indirect
|
github.com/chromedp/sysutil v1.1.0 // indirect
|
||||||
github.com/coder/websocket v1.8.13 // indirect
|
github.com/coder/websocket v1.8.13 // indirect
|
||||||
|
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
|
||||||
github.com/creack/pty v1.1.24 // indirect
|
github.com/creack/pty v1.1.24 // indirect
|
||||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||||
|
@ -49,11 +50,14 @@ require (
|
||||||
github.com/gofiber/template v1.8.3 // indirect
|
github.com/gofiber/template v1.8.3 // indirect
|
||||||
github.com/gofiber/utils v1.1.0 // indirect
|
github.com/gofiber/utils v1.1.0 // indirect
|
||||||
github.com/gohugoio/hugo v0.147.6 // indirect
|
github.com/gohugoio/hugo v0.147.6 // indirect
|
||||||
|
github.com/gokrazy/rsync v0.2.10 // indirect
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
|
github.com/golang-jwt/jwt/v4 v4.5.2 // indirect
|
||||||
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
|
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
|
||||||
github.com/golang-sql/sqlexp v0.1.0 // indirect
|
github.com/golang-sql/sqlexp v0.1.0 // indirect
|
||||||
github.com/google/licensecheck v0.3.1 // indirect
|
github.com/google/licensecheck v0.3.1 // indirect
|
||||||
|
github.com/google/renameio/v2 v2.0.0 // indirect
|
||||||
github.com/google/safehtml v0.0.3-0.20211026203422-d6f0e11a5516 // indirect
|
github.com/google/safehtml v0.0.3-0.20211026203422-d6f0e11a5516 // indirect
|
||||||
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
|
||||||
github.com/google/uuid v1.6.0 // indirect
|
github.com/google/uuid v1.6.0 // indirect
|
||||||
github.com/jackc/pgpassfile v1.0.0 // indirect
|
github.com/jackc/pgpassfile v1.0.0 // indirect
|
||||||
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect
|
||||||
|
@ -62,6 +66,7 @@ require (
|
||||||
github.com/joho/godotenv v1.5.1 // indirect
|
github.com/joho/godotenv v1.5.1 // indirect
|
||||||
github.com/jonboulle/clockwork v0.5.0 // indirect
|
github.com/jonboulle/clockwork v0.5.0 // indirect
|
||||||
github.com/klauspost/compress v1.18.0 // indirect
|
github.com/klauspost/compress v1.18.0 // indirect
|
||||||
|
github.com/landlock-lsm/go-landlock v0.0.0-20250303204525-1544bccde3a3 // indirect
|
||||||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
|
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 // indirect
|
||||||
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
|
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 // indirect
|
||||||
github.com/leodido/go-urn v1.4.0 // indirect
|
github.com/leodido/go-urn v1.4.0 // indirect
|
||||||
|
@ -71,6 +76,7 @@ require (
|
||||||
github.com/mfridman/interpolate v0.0.2 // indirect
|
github.com/mfridman/interpolate v0.0.2 // indirect
|
||||||
github.com/mfridman/xflag v0.1.0 // indirect
|
github.com/mfridman/xflag v0.1.0 // indirect
|
||||||
github.com/microsoft/go-mssqldb v1.8.0 // indirect
|
github.com/microsoft/go-mssqldb v1.8.0 // indirect
|
||||||
|
github.com/mmcloughlin/md4 v0.1.2 // indirect
|
||||||
github.com/ncruces/go-strftime v0.1.9 // indirect
|
github.com/ncruces/go-strftime v0.1.9 // indirect
|
||||||
github.com/paulmach/orb v0.11.1 // indirect
|
github.com/paulmach/orb v0.11.1 // indirect
|
||||||
github.com/pelletier/go-toml v1.9.5 // indirect
|
github.com/pelletier/go-toml v1.9.5 // indirect
|
||||||
|
@ -110,6 +116,7 @@ require (
|
||||||
google.golang.org/protobuf v1.36.6 // indirect
|
google.golang.org/protobuf v1.36.6 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
howett.net/plist v1.0.1 // indirect
|
howett.net/plist v1.0.1 // indirect
|
||||||
|
kernel.org/pub/linux/libs/security/libcap/psx v1.2.70 // indirect
|
||||||
modernc.org/libc v1.65.0 // indirect
|
modernc.org/libc v1.65.0 // indirect
|
||||||
modernc.org/mathutil v1.7.1 // indirect
|
modernc.org/mathutil v1.7.1 // indirect
|
||||||
modernc.org/memory v1.10.0 // indirect
|
modernc.org/memory v1.10.0 // indirect
|
||||||
|
@ -119,6 +126,7 @@ require (
|
||||||
|
|
||||||
tool (
|
tool (
|
||||||
github.com/air-verse/air
|
github.com/air-verse/air
|
||||||
|
github.com/gokrazy/rsync/cmd/gokr-rsync
|
||||||
github.com/pressly/goose/v3/cmd/goose
|
github.com/pressly/goose/v3/cmd/goose
|
||||||
golang.org/x/pkgsite/cmd/pkgsite
|
golang.org/x/pkgsite/cmd/pkgsite
|
||||||
golang.org/x/tools/cmd/goimports
|
golang.org/x/tools/cmd/goimports
|
||||||
|
|
16
go.sum
16
go.sum
|
@ -20,6 +20,8 @@ github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69 h1:+tu3HOoMXB7RX
|
||||||
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69/go.mod h1:L1AbZdiDllfyYH5l5OkAaZtk7VkWe89bPJFmnDBNHxg=
|
github.com/BurntSushi/locker v0.0.0-20171006230638-a6e239ea1c69/go.mod h1:L1AbZdiDllfyYH5l5OkAaZtk7VkWe89bPJFmnDBNHxg=
|
||||||
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
|
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
|
||||||
|
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||||
github.com/ClickHouse/ch-go v0.65.1 h1:SLuxmLl5Mjj44/XbINsK2HFvzqup0s6rwKLFH347ZhU=
|
github.com/ClickHouse/ch-go v0.65.1 h1:SLuxmLl5Mjj44/XbINsK2HFvzqup0s6rwKLFH347ZhU=
|
||||||
github.com/ClickHouse/ch-go v0.65.1/go.mod h1:bsodgURwmrkvkBe5jw1qnGDgyITsYErfONKAHn05nv4=
|
github.com/ClickHouse/ch-go v0.65.1/go.mod h1:bsodgURwmrkvkBe5jw1qnGDgyITsYErfONKAHn05nv4=
|
||||||
github.com/ClickHouse/clickhouse-go/v2 v2.34.0 h1:Y4rqkdrRHgExvC4o/NTbLdY5LFQ3LHS77/RNFxFX3Co=
|
github.com/ClickHouse/clickhouse-go/v2 v2.34.0 h1:Y4rqkdrRHgExvC4o/NTbLdY5LFQ3LHS77/RNFxFX3Co=
|
||||||
|
@ -84,6 +86,8 @@ github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWH
|
||||||
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
|
||||||
github.com/coder/websocket v1.8.13 h1:f3QZdXy7uGVz+4uCJy2nTZyM0yTBj8yANEHhqlXZ9FE=
|
github.com/coder/websocket v1.8.13 h1:f3QZdXy7uGVz+4uCJy2nTZyM0yTBj8yANEHhqlXZ9FE=
|
||||||
github.com/coder/websocket v1.8.13/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
|
github.com/coder/websocket v1.8.13/go.mod h1:LNVeNrXQZfe5qhS9ALED3uA+l5pPqvwXg3CKoDBB2gs=
|
||||||
|
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf h1:iW4rZ826su+pqaw19uhpSCzhj44qo35pNgKFGqzDKkU=
|
||||||
|
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
||||||
github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s=
|
github.com/creack/pty v1.1.24 h1:bJrF4RRfyJnbTJqzRLHzcGaZK1NeM5kTC9jGgovnR1s=
|
||||||
github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
|
github.com/creack/pty v1.1.24/go.mod h1:08sCNb52WyoAwi2QDyzUCTgcvVFhUzewun7wtTfvcwE=
|
||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
|
@ -182,6 +186,8 @@ github.com/gohugoio/locales v0.14.0 h1:Q0gpsZwfv7ATHMbcTNepFd59H7GoykzWJIxi113XG
|
||||||
github.com/gohugoio/locales v0.14.0/go.mod h1:ip8cCAv/cnmVLzzXtiTpPwgJ4xhKZranqNqtoIu0b/4=
|
github.com/gohugoio/locales v0.14.0/go.mod h1:ip8cCAv/cnmVLzzXtiTpPwgJ4xhKZranqNqtoIu0b/4=
|
||||||
github.com/gohugoio/localescompressed v1.0.1 h1:KTYMi8fCWYLswFyJAeOtuk/EkXR/KPTHHNN9OS+RTxo=
|
github.com/gohugoio/localescompressed v1.0.1 h1:KTYMi8fCWYLswFyJAeOtuk/EkXR/KPTHHNN9OS+RTxo=
|
||||||
github.com/gohugoio/localescompressed v1.0.1/go.mod h1:jBF6q8D7a0vaEmcWPNcAjUZLJaIVNiwvM3WlmTvooB0=
|
github.com/gohugoio/localescompressed v1.0.1/go.mod h1:jBF6q8D7a0vaEmcWPNcAjUZLJaIVNiwvM3WlmTvooB0=
|
||||||
|
github.com/gokrazy/rsync v0.2.10 h1:9wXJmvKACwmfIq/ent6C/AiG5n+WonOfQPAKzxv5dUU=
|
||||||
|
github.com/gokrazy/rsync v0.2.10/go.mod h1:nrvfy+3qYcxt92pGtVa38uKlQ0dl2SrXEmtIaY/vCHA=
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI=
|
github.com/golang-jwt/jwt/v4 v4.5.2 h1:YtQM7lnr8iZ+j5q71MGKkNw9Mn7AjHM68uc9g5fXeUI=
|
||||||
github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
github.com/golang-jwt/jwt/v4 v4.5.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0=
|
||||||
github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8=
|
github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8=
|
||||||
|
@ -222,8 +228,12 @@ github.com/google/licensecheck v0.3.1 h1:QoxgoDkaeC4nFrtGN1jV7IPmDCHFNIVh54e5hSt
|
||||||
github.com/google/licensecheck v0.3.1/go.mod h1:ORkR35t/JjW+emNKtfJDII0zlciG9JgbT7SmsohlHmY=
|
github.com/google/licensecheck v0.3.1/go.mod h1:ORkR35t/JjW+emNKtfJDII0zlciG9JgbT7SmsohlHmY=
|
||||||
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs=
|
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e h1:ijClszYn+mADRFY17kjQEVQ1XRhq2/JR1M3sGqeJoxs=
|
||||||
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
|
github.com/google/pprof v0.0.0-20250317173921-a4b03ec1a45e/go.mod h1:boTsfXsheKC2y+lKOCMpSfarhxDeIzfZG1jqGcPl3cA=
|
||||||
|
github.com/google/renameio/v2 v2.0.0 h1:UifI23ZTGY8Tt29JbYFiuyIU3eX+RNFtUwefq9qAhxg=
|
||||||
|
github.com/google/renameio/v2 v2.0.0/go.mod h1:BtmJXm5YlszgC+TD4HOEEUFgkJP3nLxehU6hfe7jRt4=
|
||||||
github.com/google/safehtml v0.0.3-0.20211026203422-d6f0e11a5516 h1:pSEdbeokt55L2hwtWo6A2k7u5SG08rmw0LhWEyrdWgk=
|
github.com/google/safehtml v0.0.3-0.20211026203422-d6f0e11a5516 h1:pSEdbeokt55L2hwtWo6A2k7u5SG08rmw0LhWEyrdWgk=
|
||||||
github.com/google/safehtml v0.0.3-0.20211026203422-d6f0e11a5516/go.mod h1:L4KWwDsUJdECRAEpZoBn3O64bQaywRscowZjJAzjHnU=
|
github.com/google/safehtml v0.0.3-0.20211026203422-d6f0e11a5516/go.mod h1:L4KWwDsUJdECRAEpZoBn3O64bQaywRscowZjJAzjHnU=
|
||||||
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
|
||||||
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
|
||||||
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
@ -268,6 +278,8 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0
|
||||||
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
|
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
|
||||||
github.com/kyokomi/emoji/v2 v2.2.13 h1:GhTfQa67venUUvmleTNFnb+bi7S3aocF7ZCXU9fSO7U=
|
github.com/kyokomi/emoji/v2 v2.2.13 h1:GhTfQa67venUUvmleTNFnb+bi7S3aocF7ZCXU9fSO7U=
|
||||||
github.com/kyokomi/emoji/v2 v2.2.13/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
|
github.com/kyokomi/emoji/v2 v2.2.13/go.mod h1:JUcn42DTdsXJo1SWanHh4HKDEyPaR5CqkmoirZZP9qE=
|
||||||
|
github.com/landlock-lsm/go-landlock v0.0.0-20250303204525-1544bccde3a3 h1:zcMi8R8vP0WrrXlFMNUBpDy/ydo3sTnCcUPowq1XmSc=
|
||||||
|
github.com/landlock-lsm/go-landlock v0.0.0-20250303204525-1544bccde3a3/go.mod h1:RSub3ourNF8Hf+swvw49Catm3s7HVf4hzdFxDUnEzdA=
|
||||||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw=
|
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0 h1:SOEGU9fKiNWd/HOJuq6+3iTQz8KNCLtVX6idSoTLdUw=
|
||||||
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o=
|
github.com/lann/builder v0.0.0-20180802200727-47ae307949d0/go.mod h1:dXGbAdH5GtBTC4WfIxhKZfyBF/HBFgRZSWwZ9g/He9o=
|
||||||
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 h1:P6pPBnrTSX3DEVR4fDembhRWSsG5rVo6hYhAB/ADZrk=
|
github.com/lann/ps v0.0.0-20150810152359-62de8c46ede0 h1:P6pPBnrTSX3DEVR4fDembhRWSsG5rVo6hYhAB/ADZrk=
|
||||||
|
@ -301,6 +313,8 @@ github.com/microsoft/go-mssqldb v1.8.0 h1:7cyZ/AT7ycDsEoWPIXibd+aVKFtteUNhDGf3ao
|
||||||
github.com/microsoft/go-mssqldb v1.8.0/go.mod h1:6znkekS3T2vp0waiMhen4GPU1BiAsrP+iXHcE7a7rFo=
|
github.com/microsoft/go-mssqldb v1.8.0/go.mod h1:6znkekS3T2vp0waiMhen4GPU1BiAsrP+iXHcE7a7rFo=
|
||||||
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c h1:cqn374mizHuIWj+OSJCajGr/phAmuMug9qIX3l9CflE=
|
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c h1:cqn374mizHuIWj+OSJCajGr/phAmuMug9qIX3l9CflE=
|
||||||
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
github.com/mitchellh/mapstructure v1.5.1-0.20231216201459-8508981c8b6c/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||||
|
github.com/mmcloughlin/md4 v0.1.2 h1:kGYl+iNbxhyz4u76ka9a+0TXP9KWt/LmnM0QhZwhcBo=
|
||||||
|
github.com/mmcloughlin/md4 v0.1.2/go.mod h1:AAxFX59fddW0IguqNzWlf1lazh1+rXeIt/Bj49cqDTQ=
|
||||||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
|
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 h1:RWengNIwukTxcDr9M+97sNutRR1RKhG96O6jWumTTnw=
|
||||||
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8=
|
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826/go.mod h1:TaXosZuwdSHYgviHp1DAtfrULt5eUgsSMsZf+YrPgl8=
|
||||||
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
|
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
|
||||||
|
@ -553,6 +567,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
|
||||||
howett.net/plist v0.0.0-20181124034731-591f970eefbb/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
|
howett.net/plist v0.0.0-20181124034731-591f970eefbb/go.mod h1:vMygbs4qMhSZSc4lCUl2OEE+rDiIIJAIdR4m7MiMcm0=
|
||||||
howett.net/plist v1.0.1 h1:37GdZ8tP09Q35o9ych3ehygcsL+HqKSwzctveSlarvM=
|
howett.net/plist v1.0.1 h1:37GdZ8tP09Q35o9ych3ehygcsL+HqKSwzctveSlarvM=
|
||||||
howett.net/plist v1.0.1/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g=
|
howett.net/plist v1.0.1/go.mod h1:lqaXoTrLY4hg8tnEzNru53gicrbv7rrk+2xJA/7hw9g=
|
||||||
|
kernel.org/pub/linux/libs/security/libcap/psx v1.2.70 h1:HsB2G/rEQiYyo1bGoQqHZ/Bvd6x1rERQTNdPr1FyWjI=
|
||||||
|
kernel.org/pub/linux/libs/security/libcap/psx v1.2.70/go.mod h1:+l6Ee2F59XiJ2I6WR5ObpC1utCQJZ/VLsEbQCD8RG24=
|
||||||
modernc.org/cc/v4 v4.26.0 h1:QMYvbVduUGH0rrO+5mqF/PSPPRZNpRtg2CLELy7vUpA=
|
modernc.org/cc/v4 v4.26.0 h1:QMYvbVduUGH0rrO+5mqF/PSPPRZNpRtg2CLELy7vUpA=
|
||||||
modernc.org/cc/v4 v4.26.0/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
|
modernc.org/cc/v4 v4.26.0/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
|
||||||
modernc.org/ccgo/v4 v4.26.0 h1:gVzXaDzGeBYJ2uXTOpR8FR7OlksDOe9jxnjhIKCsiTc=
|
modernc.org/ccgo/v4 v4.26.0 h1:gVzXaDzGeBYJ2uXTOpR8FR7OlksDOe9jxnjhIKCsiTc=
|
||||||
|
|
1
main.go
1
main.go
|
@ -19,7 +19,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
config.Load("config.toml")
|
config.Load("config.toml")
|
||||||
log.Printf("ADMIN is %s", config.Settings.Admin)
|
log.Printf("ADMIN is %s", config.Settings.Admin)
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
|
<meta name="viewport" content="initial-scale=1.0" />
|
||||||
|
<meta name="author" content="Zed A. Shaw" />
|
||||||
|
<meta name="description" content="My Go learning project, which is a Twitch support thing." />
|
||||||
|
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="admin-table-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
let Rows = new GetJson("/api/admin/table/")
|
|
||||||
console.log("Rows", Rows)
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
<h1>Admin Rows</h1>
|
|
||||||
|
|
||||||
<block x-data="Rows">
|
|
||||||
<ul>
|
|
||||||
<template x-for="item in theData">
|
|
||||||
<li><a x-bind:href="'/admin/table/' + item + '/'">
|
|
||||||
<span x-text="item"></span>
|
|
||||||
</a></li>
|
|
||||||
</template>
|
|
||||||
</ul>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,69 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1 x-data="{ message: 'I ❤️ Alpine' }" x-text="message"></h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
{}}">
|
|
||||||
<header>
|
|
||||||
<a href="/">🏡</a> <span>Zed's Game Dev Website Yay</span>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
<shape style="--w: 100%; --h: 300px">Gameplay Demo Video</shape>
|
|
||||||
|
|
||||||
<block style="--value: 7">
|
|
||||||
<h1 x-text="Game.title">Title</h1>
|
|
||||||
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 200px;">Some Image</shape>
|
|
||||||
|
|
||||||
<p x-text="Game.description">Description</p>
|
|
||||||
</block>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 7;">
|
|
||||||
<h2>Current Status</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<h2>Planned Work</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 2; --text: 9">
|
|
||||||
<h2>Read The Code</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
<button><a href="https://git.learnjsthehardway.com/learn-code-the-hard-way/turings-tarpit">View the Git</a></button>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<h1>Footer</h1>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,3 +0,0 @@
|
||||||
{"title": "Turing's Tarpit",
|
|
||||||
"description": "The description.",
|
|
||||||
"url": "/game/1/turings-tarpit/"}
|
|
|
@ -1,6 +0,0 @@
|
||||||
[
|
|
||||||
{"title": "Turing's Tarpit", "url": "/game/1/turings-tarpit/"},
|
|
||||||
{"title": "Roguish", "url": "/game/1/turings-tarpit/"},
|
|
||||||
{"title": "Raycaster", "url": "/game/1/turings-tarpit/"},
|
|
||||||
{"title": "Clicker Loves You", "url": "/game/1/turings-tarpit/"}
|
|
||||||
]
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"title": "Stream #34: C++ Game Dev|Retro Raycaster|No Brainrot Stream",
|
|
||||||
"description": "Some kind of stream.",
|
|
||||||
"links": [
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
"title": "Stream #34: C++ Game Dev|Retro Raycaster|No Brainrot Stream",
|
|
||||||
"streamed_on": "10/10/2025",
|
|
||||||
"description": "Some kind of stream.",
|
|
||||||
"links": [
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
},
|
|
||||||
{"description": "A funky website",
|
|
||||||
"url": "https://test.com"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -1,58 +0,0 @@
|
||||||
[
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
},
|
|
||||||
{ "date": "12/10/2025",
|
|
||||||
"description": "A great stream.",
|
|
||||||
"url": "/stream/1/"
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,47 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="base-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,48 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="error-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
<h1>ERROR</h1>
|
|
||||||
<p>You have an error.</p>
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,83 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="game-1-turings-tarpit-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a href="/">🏡</a>
|
|
||||||
<a href="/live/">Live</a>
|
|
||||||
<a href="/stream/">Streams</a>
|
|
||||||
<a href="/game/">Games</a>
|
|
||||||
<a href="/register/">Register</a>
|
|
||||||
<a href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
let req = new GetJson("/api/game/1/index.json");
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
<shape style="--w: 100%; --h: 300px">Gameplay Demo Video</shape>
|
|
||||||
|
|
||||||
<block style="--value: 7">
|
|
||||||
<h1 x-text="Game.title">Title</h1>
|
|
||||||
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 200px;">Some Image</shape>
|
|
||||||
|
|
||||||
<p x-text="Game.description">Description</p>
|
|
||||||
</block>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 7;">
|
|
||||||
<h2>Current Status</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<h2>Planned Work</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 2; --text: 9">
|
|
||||||
<h2>Read The Code</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
<button><a href="https://git.learnjsthehardway.com/learn-code-the-hard-way/turings-tarpit">View the Git</a></button>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,74 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="game-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
let Games = new GetJson("/api/game/index.json");
|
|
||||||
</script>
|
|
||||||
<blockstart>
|
|
||||||
<block style="--w: 100%; --value: 7">
|
|
||||||
<h1 id="page-title">Zed's Trash Ass Games</h1>
|
|
||||||
|
|
||||||
<p>More fun than a barrel full of monkeys with syphilus.
|
|
||||||
</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<hr/>
|
|
||||||
<grid x-data="Games" style="--cols: 2">
|
|
||||||
<template x-for="item in theData">
|
|
||||||
<shape style="--h: 200px"><a data-testid="game-link" x-text="item.title" x-bind:href="item.url"></a></shape>
|
|
||||||
</template>
|
|
||||||
</grid>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<h2>Planned Work</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 2; --text: 9">
|
|
||||||
<h2>Read The Code</h2>
|
|
||||||
<p>Polaroid retro pork belly yes plz bitters, viral chicharrones typewriter chartreuse vice Brooklyn. Adaptogen pour-over vibecession viral. Tote bag tonx DIY microdosing. Pickled selvage bespoke small batch, blue bottle twee tacos jean shorts before they sold out chicharrones solarpunk. Hoodie taiyaki poutine jianbing chambray.</p>
|
|
||||||
<button><a href="https://git.learnjsthehardway.com/learn-code-the-hard-way/turings-tarpit">View the Git</a></button>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,110 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
<h1>Zed's Game Dev Website</h1>
|
|
||||||
|
|
||||||
<shape style="--w: 100%; --h: 300px">
|
|
||||||
<button><a id="streams" href="/stream/">View Past Streams</a></button>
|
|
||||||
<button><a id="live" href="/live/">Watch Today's Livestream</a></button>
|
|
||||||
</shape>
|
|
||||||
|
|
||||||
<block data-testid="clickblock">
|
|
||||||
<p>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby.
|
|
||||||
</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 7; --border: 1px;" class="horizontal">
|
|
||||||
<grid style="--cols: 2">
|
|
||||||
<shape>Left Image</shape>
|
|
||||||
<div>
|
|
||||||
<h3>I stream on Twitch.</h3>
|
|
||||||
|
|
||||||
<p>I stream every day at 10AM/10PM EST time. 60% of the time it's a chill laid back stream with only programming and a bit of talking about programming. 30% of the time it's art for games I'm making. 10% of the time it's games I'm playing.</p>
|
|
||||||
|
|
||||||
<a href="https://twitch.tv/zedashaw"><button style="--value: 2; --text: 9">Watch me on Twitch</button></a>
|
|
||||||
</div>
|
|
||||||
</grid>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<p>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby.
|
|
||||||
</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 7">
|
|
||||||
<grid style="--cols: 2">
|
|
||||||
<div>
|
|
||||||
<h2>Zed's Trash Ass Games</h2>
|
|
||||||
<p>Are you a fan of retro styled half-assed but fun games? Me too, so here's my games I've made with that theme. Think "it's the late 80s and nobody knows how to make a game" when you play these and you'll enjoy every minute of it.</p>
|
|
||||||
|
|
||||||
<a href="/game/"><button style="--value: 2; --text: 9">Play my Games</button></a>
|
|
||||||
</div>
|
|
||||||
<shape>Right Image</shape>
|
|
||||||
</grid>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<p>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby.
|
|
||||||
</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block style="--value: 7">
|
|
||||||
<grid style="--cols: 2">
|
|
||||||
<shape>Left Image</shape>
|
|
||||||
<div>
|
|
||||||
<h2>Checkout my Git</h2>
|
|
||||||
<p>I put al of my code online for people to read and study. If you're curious about the code behind my games or anything else I make then take a look at my git. It's like a buffet of half-finished genius.</p>
|
|
||||||
|
|
||||||
<a href="https://git.learnjsthehardway.com"><button style="--value: 2; --text: 9">View my Git</button></a>
|
|
||||||
</div>
|
|
||||||
</grid>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<p>Zombie ipsum reversus ab viral inferno, nam rick grimes malum cerebro. De carne lumbering animata corpora quaeritis. Summus brains sit, morbo vel maleficia? De apocalypsi gorger omero undead survivor dictum mauris. Hi mindless mortuis soulless creaturas, imo evil stalking monstra adventus resi dentevil vultus comedat cerebella viventium. Qui animated corpse, cricket bat max brucks terribilem incessu zomby.
|
|
||||||
</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,81 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="live-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
let req = new GetJson("/api/stream/1");
|
|
||||||
let link_req = new GetJson("/api/stream/1/links");
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<div x-init="Stream = await req.theData()" x-data="{Stream: {}}">
|
|
||||||
<blockstart>
|
|
||||||
|
|
||||||
<shape style="--w: 100%; --h: 350px">
|
|
||||||
Stream Viewer
|
|
||||||
</shape>
|
|
||||||
|
|
||||||
<block>
|
|
||||||
<h2>Links Found in Chat</h2>
|
|
||||||
<ul x-init="links = await link_req.theData()" x-data="{links: {}}">
|
|
||||||
<template x-for="item in links">
|
|
||||||
<li><a x-text="item.description" x-bind:href="item.url"></a></li>
|
|
||||||
</template>
|
|
||||||
</ul>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<form action="/api/link" method="POST">
|
|
||||||
<card>
|
|
||||||
<top>Submit a Link</top>
|
|
||||||
<middle>
|
|
||||||
<input id="stream_id" name="stream_id" type="hidden" value="1">
|
|
||||||
<input id="url" name="url" type="text" placeholder="Link Url">
|
|
||||||
<input id="description" name="description" type="text" placeholder="Description">
|
|
||||||
</middle>
|
|
||||||
</card>
|
|
||||||
<buttons>
|
|
||||||
<button id="submit" type="submit">Send It</button>
|
|
||||||
</buttons>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</blockstart>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,67 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="login-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart style="min-height: 90vw">
|
|
||||||
<h1>Login</h1>
|
|
||||||
<block class="center-self" style="--w: 500px; --h: 500px;">
|
|
||||||
<form action="/api/login" method="POST">
|
|
||||||
<card>
|
|
||||||
<top><h2 style="color: white">Login</h2></top>
|
|
||||||
<middle>
|
|
||||||
<label for="username">Username</label>
|
|
||||||
<input id="username" name="username" placeholder="Username" type="text">
|
|
||||||
<label for="password">Password</label>
|
|
||||||
<input id="password" name="password" placeholder="Password" type="password">
|
|
||||||
</middle>
|
|
||||||
<bottom>
|
|
||||||
<button-group>
|
|
||||||
<button type="button">Cancel</button>
|
|
||||||
<button id="login-submit" type="submit">Login</button>
|
|
||||||
</button-group>
|
|
||||||
</bottom>
|
|
||||||
</card>
|
|
||||||
</form>
|
|
||||||
<div class="center"><a href="/register/">Need an account? Click to Register.</a></div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,69 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="register-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<blockstart style="min-height: 90vw">
|
|
||||||
<h1>Login</h1>
|
|
||||||
<block class="center-self" style="--w: 500px; --h: 500px;">
|
|
||||||
<form action="/api/register" method="POST">
|
|
||||||
<card>
|
|
||||||
<top><h2 style="color: white">Register</h2></top>
|
|
||||||
<middle>
|
|
||||||
<label for="username">Username</label>
|
|
||||||
<input id="username" name="username" placeholder="Username" type="text">
|
|
||||||
<label for="email">FAKE! Email</label>
|
|
||||||
<input id="email" name="email" placeholder="fake@faker.com" type="text">
|
|
||||||
<label for="password">Password</label>
|
|
||||||
<input id="password" name="password" placeholder="Password" type="password">
|
|
||||||
</middle>
|
|
||||||
<bottom>
|
|
||||||
<button-group>
|
|
||||||
<button type="button">Cancel</button>
|
|
||||||
<button id="register-submit" type="submit">Register</button>
|
|
||||||
</button-group>
|
|
||||||
</bottom>
|
|
||||||
</card>
|
|
||||||
</form>
|
|
||||||
<div class="center"><a href="/login/">Have an account? Click to Login.</a></div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,68 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8" />
|
|
||||||
<link rel="stylesheet" href="/global.css">
|
|
||||||
<link rel="stylesheet" href="/color.css">
|
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
|
||||||
<script defer src="/js/alpine.js"></script>
|
|
||||||
<script src="/js/code.js"></script>
|
|
||||||
<title>ZedShaw.games</title>
|
|
||||||
</head>
|
|
||||||
<body data-testid="stream-index-page">
|
|
||||||
<header>
|
|
||||||
<blockstart style="background-color: var(--value0)">
|
|
||||||
<block style="--value: 0; --text: 9" class="horizontal">
|
|
||||||
<a id="home" href="/">🏡</a>
|
|
||||||
<a id="live" href="/live/">Live</a>
|
|
||||||
<a id="stream" href="/stream/">Streams</a>
|
|
||||||
<a id="game" href="/game/">Games</a>
|
|
||||||
<a id="register" href="/register/">Register</a>
|
|
||||||
<a id="login" href="/login/">Login</a>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
let Streams = new GetJson("/api/stream");
|
|
||||||
console.log("Streams", Streams);
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<blockstart>
|
|
||||||
<block style="--value: 7">
|
|
||||||
<h1 id="page-title">Past Streams</h1>
|
|
||||||
<p>This is where you can checkout information we dropped in a past stream. Did I post a link and you need to remember it? Did someone in chat mention something? Here's where you find it.</p>
|
|
||||||
</block>
|
|
||||||
|
|
||||||
<block x-data="Streams">
|
|
||||||
<template x-for="item in theData">
|
|
||||||
<stream class="horizontal">
|
|
||||||
<shape style="--w: 100px; --h: 100px">Stream Thumbnail</shape>
|
|
||||||
<info>
|
|
||||||
<date x-text="item.date"></date>
|
|
||||||
<p x-text="item.description"></p>
|
|
||||||
<a style="text-align: right" x-bind:href="'/stream/' + item.id + '/'">View This Stream</a>
|
|
||||||
</info>
|
|
||||||
</stream>
|
|
||||||
</template>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<blockstart style="--value: 0; --text: 9">
|
|
||||||
<block class="horizontal">
|
|
||||||
<shape style="--w: 200px; --h: 250px">Zed Pic</shape>
|
|
||||||
<div>
|
|
||||||
<h3>About Me</h3>
|
|
||||||
<p>Blah blah about me.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<h3>Other Projects</h3>
|
|
||||||
<p>Some other links to stuff.</p>
|
|
||||||
</div>
|
|
||||||
</block>
|
|
||||||
</blockstart>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
54
static/reset.css
Normal file
54
static/reset.css
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
/* 1. Use a more-intuitive box-sizing model */
|
||||||
|
*, *::before, *::after {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 2. Remove default margin */
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 3. Enable keyword animations */
|
||||||
|
@media (prefers-reduced-motion: no-preference) {
|
||||||
|
html {
|
||||||
|
interpolate-size: allow-keywords;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
/* 4. Add accessible line-height */
|
||||||
|
line-height: 1.5;
|
||||||
|
/* 5. Improve text rendering */
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 6. Improve media defaults */
|
||||||
|
img, picture, video, canvas, svg {
|
||||||
|
display: block;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 7. Inherit fonts for form controls */
|
||||||
|
input, button, textarea, select {
|
||||||
|
font: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 8. Avoid text overflows */
|
||||||
|
p, h1, h2, h3, h4, h5, h6 {
|
||||||
|
overflow-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 9. Improve line wrapping */
|
||||||
|
p {
|
||||||
|
text-wrap: pretty;
|
||||||
|
}
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
text-wrap: balance;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
10. Create a root stacking context
|
||||||
|
*/
|
||||||
|
#root, #__next {
|
||||||
|
isolation: isolate;
|
||||||
|
}
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
"flag"
|
"flag"
|
||||||
"zedshaw.games/webapp/zed"
|
"zedshaw.games/webapp/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
type config struct {
|
type config struct {
|
||||||
|
@ -21,5 +21,5 @@ func main() {
|
||||||
|
|
||||||
log.Println("Generating site from pages to public.")
|
log.Println("Generating site from pages to public.")
|
||||||
|
|
||||||
zed.RenderPages(cfg.source, cfg.target, cfg.layouts)
|
common.RenderPages(cfg.source, cfg.target, cfg.layouts)
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
|
<meta name="viewport" content="initial-scale=1.0" />
|
||||||
|
<meta name="author" content="Zed A. Shaw" />
|
||||||
|
<meta name="description" content="My Go learning project, which is a Twitch support thing." />
|
||||||
|
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||||
<link rel="stylesheet" href="/global.css">
|
<link rel="stylesheet" href="/global.css">
|
||||||
<link rel="stylesheet" href="/color.css">
|
<link rel="stylesheet" href="/color.css">
|
||||||
<link rel="stylesheet" href="/blockstart.css">
|
<link rel="stylesheet" href="/blockstart.css">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue