Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b170560
Refactor hlstatx stats storage and import pipeline
leighmacdonald Jun 8, 2026
54d30e5
Add postgres-language-server configuration
leighmacdonald Jun 8, 2026
73ee0e2
Refactor stats match types and add migration
leighmacdonald Jun 8, 2026
70c6666
Add round-level player, weapon, and class stats
leighmacdonald Jun 8, 2026
2957710
Refactor stats repository queries and formatting
leighmacdonald Jun 8, 2026
02ad346
Add Stats service for match retrieval
leighmacdonald Jun 10, 2026
5b93ac9
Add timer for view refresh
leighmacdonald Jun 10, 2026
89a96ee
Add stats dashboard and refactor counts to uint64
leighmacdonald Jun 12, 2026
20e4fc5
Add matches with player stats feature
leighmacdonald Jun 13, 2026
f1c62b7
lint fixes
leighmacdonald Jun 13, 2026
abcfa60
Add player match history page and service
leighmacdonald Jun 13, 2026
e2fa8de
wip
leighmacdonald Jun 20, 2026
3e16cb8
Add match history feature and rename UserSettings
leighmacdonald Jun 21, 2026
30aaa1d
Add match stats UI components and refactor route
leighmacdonald Jun 23, 2026
837f67e
Update dependencies
leighmacdonald Jun 23, 2026
40b6965
Fix routes
leighmacdonald Jun 23, 2026
6019e5f
wip
leighmacdonald Jun 23, 2026
d105739
Use direct MUI imports and update Vite config
leighmacdonald Jun 23, 2026
3bb6342
Drop pgx-gofrs-uuid and consolidate justfiles
leighmacdonald Jun 25, 2026
35be220
More justfile refactoring
leighmacdonald Jun 26, 2026
841b55f
Fix login error message
leighmacdonald Jun 26, 2026
ad068fe
Restrict stats access to moderators
leighmacdonald Jun 26, 2026
db42137
Refactor chat history query and add indexes
leighmacdonald Jun 27, 2026
5e3ed85
Switch matches to start time and manual pagination
leighmacdonald Jun 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 8 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
* text=auto eol=lf
docs/* linguist-documentation eol=lf
go.sum linguist-generated merge=ours eol=lf
go.sum linguist-generated merge=ours eol=lf -diff
go.mod linguist-generated eol=lf

pnpm-lock.yaml -diff
/.github export-ignore eol=lf
.gitattributes export-ignore eol=lf
.gitignore export-ignore eol=lf

/frontend/src/routeTree.gen.ts -diff

/frontend/src/icons/* binary
/frontend/src/fonts/* binary
*.js text eol=lf
*.json text eol=lf
*.ts text eol=lf
*.md text eol=lf
*.md text eol=lf diff=markdown
*.yml text eol=lf

internal/**/*.pb.go linguist-generated=true
internal/**/*.connect.go linguist-generated=true

*.dem binary
*.png binary
*.jpg binary
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,7 @@ id_stv*
!buf*.yaml
!.env-example
*.vdf
dist
import.sh
importer
*.sql.gz
39 changes: 29 additions & 10 deletions .zellij.kdl
Original file line number Diff line number Diff line change
@@ -1,22 +1,41 @@
layout {
pane split_direction="horizontal" {
pane command="just" size="16%" {
args "db"
default_tab_template {
// pane size=1 borderless=true {
// plugin location="tab-bar"
// }
children
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
}

pane command="just" size="16%" {
args "demostats-serve"
tab name="build" {
pane command="just" {
start_suspended false
args "serve-frontend"
}

pane command="just" {
args "serve"
start_suspended false
args "air"
}
}

tab name="postgres" {
pane command="just" size="15%" {
start_suspended false
args "db"
}
pane command="bash" {
start_suspended false
args "-c" "sleep 10 && just pgcli"
}
}

tab name="demostats" {
pane command="just" {
args "air"
start_suspended false
args "demostats-serve"
}
}
// pane size=1 borderless=true {
// plugin location="zellij:compact-bar"
// }
}
48 changes: 48 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-26.05";
#nixpkgs = fetchTarball "https://github.com/nixos/nixpkgs/archive/nixos-unstable.tar.gz";
#nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/archive/ce657ac8a02003528e4ea4bb59d58e1c634b790c.tar.gz";

pkgs = import nixpkgs {
config = {
hardeningDisable = [ "all" ];
};
overlays = [ ];
};
in
pkgs.mkShell {
shellHook = ''
export PATH="$PWD/frontend/node_modules/.bin:$PATH"
'';
hardeningDisable = [ "fortify" ];
buildInputs = with pkgs; [
gcc
go
golangci-lint
goreleaser
nilaway
nodejs
pnpm_11
just
just-lsp
nil
nixd
govulncheck
zellij
air
delve
markdownlint-cli2
sourcepawn-studio
buf
protoc-gen-go
protoc-gen-connect-go
oapi-codegen
sql-formatter
protoc-gen-es
protobuf-language-server
rcon-cli
clang-tools
govulncheck
pgcli
];
}
2 changes: 1 addition & 1 deletion docker/dev_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docker run -t \
--name=gbans-db \
--restart unless-stopped \
-p 0.0.0.0:5432:5432 \
-v gbans-db-data:/var/lib/postgresql/data \
-v gbans-db-data:/var/lib/postgresql \
-e POSTGRES_USER=gbans \
-e POSTGRES_PASSWORD=gbans \
-e POSTGRES_DB=gbans \
Expand Down
2 changes: 1 addition & 1 deletion docker/postgres-ip4r.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM postgis/postgis:16-3.5
FROM postgis/postgis:18-3.6

RUN apt-get update \
&& apt-cache showpkg postgresql-$PG_MAJOR-ip4r \
Expand Down
17 changes: 0 additions & 17 deletions docs/justfile

This file was deleted.

32 changes: 0 additions & 32 deletions frontend/justfile

This file was deleted.

28 changes: 15 additions & 13 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@
"@connectrpc/protoc-gen-connect-query": "^2.2.0",
"@sentry/vite-plugin": "^5.3.0",
"@tanstack/react-query-devtools": "^5.101.0",
"@tanstack/router-vite-plugin": "^1.167.14",
"@tanstack/router-vite-plugin": "^1.167.18",
"@types/leaflet": "^1.9.21",
"@types/node": "^25.9.1",
"@types/react": "^19.2.16",
"@types/node": "^25.9.4",
"@types/react": "^19.2.17",
"@types/react-dom": "^19.2.3",
"@types/steamid": "^2.0.4",
"sharp": "^0.35.2",
"typescript": "^6.0.3",
"vite": "^8.0.16",
"vite-plugin-html": "^3.2.2",
"vitest": "^4.1.8"
"vitest": "^4.1.9"
},
"browserslist": {
"production": [
Expand All @@ -55,29 +56,29 @@
},
"packageManager": "pnpm@10.21.0",
"dependencies": {
"@base-ui/react": "^1.5.0",
"@base-ui/react": "^1.6.0",
"@bufbuild/protobuf": "^2.12.0",
"@bufbuild/protovalidate": "^1.2.0",
"@connectrpc/connect": "^2.1.1",
"@connectrpc/connect": "^2.1.2",
"@connectrpc/connect-query": "^2.2.0",
"@connectrpc/connect-web": "^2.1.1",
"@connectrpc/connect-web": "^2.1.2",
"@connectrpc/validate": "^0.2.0",
"@ebay/nice-modal-react": "^1.2.13",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@fontsource/roboto": "^5.2.10",
"@mdxeditor/editor": "^4.0.2",
"@mdxeditor/editor": "^4.0.4",
"@mui/icons-material": "^7.3.11",
"@mui/lab": "7.0.1-beta.23",
"@mui/material": "^7.3.11",
"@mui/system": "^7.3.11",
"@mui/x-charts": "^8.28.2",
"@mui/x-date-pickers": "^8.28.7",
"@sentry/react": "^10.56.0",
"@mui/x-charts": "^8.29.0",
"@mui/x-date-pickers": "^8.29.0",
"@sentry/react": "^10.59.0",
"@tanstack/react-form": "^1.33.0",
"@tanstack/react-pacer": "^0.21.1",
"@tanstack/react-query": "^5.101.0",
"@tanstack/react-router": "^1.170.11",
"@tanstack/react-router": "^1.170.16",
"@vitejs/plugin-react": "^6.0.2",
"date-fns": "4.1.0",
"iso8601-duration": "^2.1.3",
Expand All @@ -86,13 +87,14 @@
"material-ui-popup-state": "^5.3.7",
"mui-markdown": "^2.1.1",
"mui-nested-menu": "^4.0.3",
"pretty-ms": "^9.3.0",
"prop-types": "^15.8.1",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-leaflet": "^5.0.0",
"react-player": "^3.4.0",
"react-scrollable-feed": "^2.0.4",
"react-timer-hook": "^4.0.5",
"react-timer-hook": "^4.0.6",
"steamid": "^2.1.0",
"zod": "^4.4.3"
}
Expand Down
Loading
Loading