From 08d391010d9357f83133e0e60ea0fab7c363e1e5 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Mon, 5 Feb 2024 10:30:23 -0500 Subject: [PATCH] show the neighbourhood --- Taskfile.yaml | 2 ++ src/routes/+layout.svelte | 32 +++++++++++++++++++++++++++++++- src/routes/+page.js | 9 --------- src/routes/+page.svelte | 12 ++++++------ src/routes/GameList.svelte | 27 ++++++++++++++++++--------- static/dev/sellers.json | 2 ++ 6 files changed, 59 insertions(+), 25 deletions(-) delete mode 100644 src/routes/+page.js create mode 100644 static/dev/sellers.json diff --git a/Taskfile.yaml b/Taskfile.yaml index 3ea7723..0277974 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -9,9 +9,11 @@ tasks: export-db: cmds: - sqlite3 /home/bggsell/games.db '.mode json' '.once /home/bggsell/db/games.json' 'select * from game' + - sqlite3 /home/bggsell/games.db '.mode json' '.once /home/bggsell/db/sellers.json' 'select * from bgg_user' export-db:dev: cmds: - sqlite3 games.db '.mode json' '.once static/dev/games.json' 'select * from game' + - sqlite3 games.db '.mode json' '.once static/dev/sellers.json' 'select * from bgg_user' deploy: deps: [build] diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index f4203f6..2c863f5 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -7,7 +7,37 @@ diff --git a/static/dev/sellers.json b/static/dev/sellers.json new file mode 100644 index 0000000..68503d3 --- /dev/null +++ b/static/dev/sellers.json @@ -0,0 +1,2 @@ +[{"username":"yenzie","neighbourhood":"Bells Corners"}, +{"username":"jmarkmoss","neighbourhood":null}]