Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create locations pages for more content exploration #71

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d62f717
feat: fix the seed command to actually seed and create a repl
jmcdo29 Sep 30, 2023
0bf849d
chore: make route prefixes constants and re-use them in the sdk
jmcdo29 Sep 30, 2023
e6d62bd
chore: update pre-vcommit to only run git add when necessary
jmcdo29 Sep 30, 2023
7c5b384
chore: update pre-vcommit to only run git add when necessary
jmcdo29 Sep 30, 2023
61c0219
feat: crteate new endpoints to get location by name
jmcdo29 Oct 1, 2023
f14ab6e
feat: update valibot to use new intersection api
jmcdo29 Oct 1, 2023
e7da404
chore: move deities nav to match naming scheme
jmcdo29 Oct 2, 2023
e8f0afe
feat: region and cities components working
jmcdo29 Oct 12, 2023
8b586a4
chore: clean up seed command and add unknown words
jmcdo29 Oct 12, 2023
f6f0ef4
feat: create cache for sdk gets
jmcdo29 Oct 12, 2023
8fb7a21
feat: add openapi documentation to the server
jmcdo29 Oct 12, 2023
3124e4a
feat: create typeschema dto wrapper for valibot with openapi integration
jmcdo29 Oct 13, 2023
d3cecf9
chore: add better logging to the redis module
jmcdo29 Oct 14, 2023
55da787
feat: add caching at the server level rather than sdk
jmcdo29 Oct 23, 2023
8283895
fix: move cache module to separate class definition
jmcdo29 Oct 26, 2023
dca5c1f
fix: properly export the cache module
jmcdo29 Oct 28, 2023
dc1ebca
chore: better types and api types for overview objects
jmcdo29 Oct 28, 2023
6591c50
chore: unify the id param dto definition in common
jmcdo29 Oct 28, 2023
b21a677
chore: remove migrations alias import
jmcdo29 Oct 28, 2023
df99629
docs: add a wiki on the current ideas for permissions
jmcdo29 Oct 28, 2023
01b416e
feat: add open api tags
jmcdo29 Oct 28, 2023
0d47bf0
docs: add descriptions to the tags
jmcdo29 Oct 29, 2023
5b4ec05
feat: create caslte service and module for authorization
jmcdo29 Oct 31, 2023
fed35ae
feat: add authorization (#72)
jmcdo29 Oct 31, 2023
e3a01c1
chore: create the roles as a migration
jmcdo29 Nov 1, 2023
3330a4b
fix: provide users with default role of player
jmcdo29 Nov 1, 2023
c9ddf0a
feat: create user role as player and update guards to properly use re…
jmcdo29 Nov 2, 2023
9af372f
feat: location creation and update with authorization
jmcdo29 Nov 2, 2023
965af59
chore: ignore env file
jmcdo29 Nov 2, 2023
27c5549
feat: add user role to the sessioin store
jmcdo29 Nov 6, 2023
d03c8e0
feat: add user roles to request user object
jmcdo29 Nov 6, 2023
a2dde81
fix: get the user account from the database on login
jmcdo29 Nov 6, 2023
0b87d77
fix: use the reflector class to create the cache skip decorator
jmcdo29 Nov 6, 2023
4688521
ci: limit the time of the e2e trsts
jmcdo29 Nov 6, 2023
fa48058
ci: specify server and site e2e tests
jmcdo29 Nov 6, 2023
e18667a
docs: update db chart
jmcdo29 Nov 6, 2023
b0bc1a0
feat: create a file type for validation and document the swagger path
jmcdo29 Nov 7, 2023
ace0e35
feat: working location upload with images
jmcdo29 Nov 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .cspell/custom-dictionary-workspace.txt
Original file line number Diff line number Diff line change
@@ -1,61 +1,101 @@
abil
Aderberg
Amare
Amashia
Angelbury
Aodhan
Aquan
Arboria
Archfey
Avanix
Bonespire
Branok
buildx
Caelaum
Caoimhe
Celestials
Ciaradh
Crystalmaw
Daeris
Darkvision
Dawncrest
Dryacre
Ebonwood
Eira
Everfather
Felvcor
Felvos
Feywild
Foxvale
Frosdain
Genasi
Glaize
Goldburn
Golmars
Grassmire
Halflings
hexblade
Hollowrock
housecats
Insertable
Ironfell
Jarekos
jmcdo
Keygarde
Kimare
Kitsune
Klinge
Knightmount
Krypta
Kurio
Latubor
lightcookie
Maloka
McDoniel
Meadowrest
Meister
Militaris
Millis
Monstera
Moonsgate
Naga
Nagan
Nagas
Nevergrove
Ordin
pactum
Pomdra
Prismaglen
Proecerta
Roseport
Saberglass
Sabu
Sandrest
Scorchfell
Seele
Seelie
Shadewick
Shadowfell
Shapeshifter
Snowhunt
spellcasting
Spinne
Sunpoint
Tabaxi
Tadhg
Terae
Thirio
Tsumi
Unseelie
unteris
Updateable
Vatcher
Venlustel
Verfell
Viridi
Viridiem
Vistem
vitoak
Volnova
Wildemoor
Wyndfair
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,17 @@ jobs:
shell: bash
run: pnpm i

- name: Run E2E Tests
- name: Run Site E2E Tests
shell: bash
run: pnpm exec nx affected -t e2e --parallel --configuration=ci
run: pnpm exec nx run site-e2e:e2e --configuration=ci
continue-on-error: true

- name: Run Server E2E Tests
shell: bash
run: pnpm exec nx run server-e2e:e2e --configuration=ci
continue-on-error: true
timeout-minutes: 30

agents:
name: Nx Cloud - Agents
uses: nrwl/ci/.github/workflows/nx-cloud-agents.yml@v0.11.3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ docker/*
*.log
dump
.env
.env.serve
session.txt
6 changes: 5 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
. "$(dirname "$0")/_/husky.sh"

node_modules/.bin/nx affected:lint --base=HEAD^ --parallel
updatedByLinter=$(git status --porcelain | grep MM | awk '{print $2}')
if [ -z updatedByLinter ]; then
git add $updatedByLinter
fi
# no longer necessary as the biome lint formats as well
# node_modules/.bin/nx format:write
if git diff --cached --name-only | grep -Eq \(diagram\.mmd\|migrations\/README\); then
node_modules/.bin/embedme --stdout --strip-embed-comment libs/db/migrations/README.template.md > libs/db/migrations/README.md
git add libs/db/migrations/README.md
fi
if git diff --cached --name-only | grep -E migrations\/.*\.ts | grep -v 'sql\.ts' | grep -Eqv [0-9ABCDEFGHJKMNPQRSTVWXYZ]{26}
if git diff --cached --name-only | grep -E migrations\/.*\.ts | grep -v 'utils' | grep -Eqv [0-9ABCDEFGHJKMNPQRSTVWXYZ]{26}
then
echo "Migrations should start with a ULID"
exit 1
Expand Down
6 changes: 4 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"quickfix.biome": true
"quickfix.biome": true,
"source.organizeImports.biome": true
},
"editor.tabSize": 2,
"[javascript]": {
Expand All @@ -29,5 +30,6 @@
},
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
4 changes: 4 additions & 0 deletions apps/cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
"dryRun": {
"buildTarget": "cli:build:development",
"args": ["seed", "-d"]
},
"with-errors": {
"buildTarget": "cli:build:development",
"args": ["seed", "-a"]
}
},
"dependsOn": [
Expand Down
6 changes: 3 additions & 3 deletions apps/cli/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { KyselyModule } from "@unteris/server/kysely";
import { ServerLocationModule } from "@unteris/server/location";
import { ServerLoggingModule } from "@unteris/server/logging";

import { FullSeedCommand } from "./full-seed.command";
import { KyselyCliCommand } from "./kysely.command";
import { ReplCommand } from "./repl.command";
import { SeedCommand } from "./seed.command";
import { DeityCategoryQuestions } from "./seeds/deity-category.questions";
import { DeityDomainQuestions } from "./seeds/deity-domain.questions";
Expand All @@ -20,7 +20,7 @@ import { SeedTypeQuestions } from "./seeds/seed-type.questions";
imports: [
KyselyModule,
ServerLoggingModule.forApplication("CLI", "DEBUG"),
OgmaModule.forFeatures([KyselyCliCommand, SeedCommand, FullSeedCommand]),
OgmaModule.forFeatures([KyselyCliCommand, SeedCommand, ReplCommand]),
ServerDeitiesModule,
ServerLocationModule,
],
Expand All @@ -34,7 +34,7 @@ import { SeedTypeQuestions } from "./seeds/seed-type.questions";
RepeatQuestions,
DeityDomainQuestions,
LocationQuestions,
FullSeedCommand,
SeedCommand,
],
})
export class AppModule {}
162 changes: 0 additions & 162 deletions apps/cli/src/app/full-seed.command.ts

This file was deleted.

Loading
Loading