Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
298fa80
feat: initial commit
phinocio Mar 20, 2025
b786b13
test: use pest instead of phpunit
phinocio Mar 20, 2025
44797df
chore: rename migrations so they're in an order I like
phinocio Mar 20, 2025
4fe261f
chore(deps): add eloquent-sluggable and laravel pint
phinocio Mar 20, 2025
0579a51
chore: add test lists
phinocio Mar 20, 2025
38bedd6
refactor: clean up code a bit
phinocio Mar 20, 2025
683ce3d
refactor: cleanup
phinocio Mar 20, 2025
e4c4ada
wip: auth
phinocio Mar 20, 2025
6e40af3
chore(deps): add ide helper
phinocio Mar 21, 2025
f097a79
wip: auth
phinocio Mar 21, 2025
b972d6b
chore: update example env
phinocio Mar 22, 2025
1bfed9e
chore: sail config
phinocio Mar 22, 2025
d7e0f8a
chore: auto generate ide helpers after install
phinocio Mar 22, 2025
d45b017
chore(deps): install phpstan
phinocio Mar 22, 2025
e2c77ba
chore: update gitignore
phinocio Mar 22, 2025
474ac3e
chore: pint
phinocio Mar 22, 2025
48ad393
chore: fix phpstan warnings
phinocio Mar 22, 2025
be7e992
wip: bad commit message
phinocio Mar 22, 2025
b4b1845
feat: custom auth exception and middleware
phinocio Mar 22, 2025
6f6b7bf
test: login test
phinocio Mar 22, 2025
0703fe9
test: finish auth tests
phinocio Mar 23, 2025
8e95300
refactor: auth exception middleware and exception dont need to be ver…
phinocio Mar 23, 2025
13b04f1
refactor: no need to report this
phinocio Mar 23, 2025
2186d6e
refactor: create user action
phinocio Mar 23, 2025
3fd8fad
feat: add route for getting current logged in user
phinocio Mar 23, 2025
32d5539
refactor: dont need user id
phinocio Mar 23, 2025
60798fb
refactor: rename action
phinocio Mar 23, 2025
b1e224d
refactor: dont need id
phinocio Mar 23, 2025
e691337
wip: implement user controller and policy
phinocio Mar 23, 2025
4d1c733
chore: switch back to mysql
phinocio Mar 23, 2025
e30244f
wip: user
phinocio Mar 23, 2025
d9e7075
refactor: remove policies for unused actions
phinocio Mar 23, 2025
31aa7df
chore(deps): update deps
phinocio Mar 24, 2025
ef7d937
chore: configure some scripts and pint
phinocio Mar 24, 2025
d892e6f
refactor: steal nuno's app service provider config
phinocio Mar 24, 2025
73a25e9
test: test user to array and update
phinocio Mar 24, 2025
83ca922
chore: pint config
phinocio Mar 24, 2025
d7edf84
chore: pint
phinocio Mar 24, 2025
bfcbbc7
ci: add tests ci
phinocio Mar 24, 2025
ff8959c
test: name tests instead of ci
phinocio Mar 24, 2025
eb72443
ci: run on correct branches
phinocio Mar 24, 2025
639e0a5
refactor: pass message when throwing exception
phinocio Mar 24, 2025
c82a501
refactor: make UserEmail its own resource
phinocio Mar 25, 2025
878ea8e
test: update tests to reflect user email controller
phinocio Mar 25, 2025
7562714
feat: user profile items
phinocio Mar 28, 2025
cbaa48c
refactor: only show email to the user themself
phinocio Mar 28, 2025
ce057c7
test: update test
phinocio Mar 28, 2025
e1c0b9c
chore(deps): update deps
phinocio Mar 28, 2025
91c45c2
refactor: order columns nicely
phinocio Mar 28, 2025
938bbe5
chore: pint
phinocio Mar 28, 2025
55fd0b1
refactor: return resources properly
phinocio Mar 28, 2025
57c0c8c
test: refactor tests
phinocio Mar 28, 2025
75265dd
refactor: remove uneeded relation for now
phinocio Mar 28, 2025
6a56c86
chore: proper folder
phinocio Mar 29, 2025
85c0a84
feat: separate user profile
phinocio Mar 29, 2025
40b4b7e
feat: user profiles
phinocio Mar 29, 2025
86a067f
test: fix tests
phinocio Mar 29, 2025
732c06f
test: finish user profile tests
phinocio Mar 29, 2025
a8a1c5f
test: finish tests fr this time
phinocio Mar 29, 2025
3cdc478
refactor: only include email in the response if the user is admin or …
phinocio Mar 29, 2025
081ff10
refactor: allow anyone to view user profile
phinocio Mar 29, 2025
0612815
refactor: only need update for user profile controller
phinocio Mar 29, 2025
d72049c
chore: move to v1 folder
phinocio Apr 1, 2025
dc20a76
feat: implement some caching, refactor a few things
phinocio Apr 1, 2025
7152647
refactor: admin controlelr and simplify authed user resource
phinocio Apr 1, 2025
c279602
refactor: remove unecessary comments
phinocio Apr 1, 2025
b9bb21a
refactor: updates
phinocio Apr 1, 2025
18270f5
test: refactor tests
phinocio Apr 1, 2025
49f93ba
refactor: tests
phinocio Apr 1, 2025
b61b814
feat: clear cache on user/profile model events
phinocio Apr 3, 2025
5a8a334
chore(deps): update deps
phinocio Apr 5, 2025
565d7a6
chore: rename phpstan conf file
phinocio Apr 5, 2025
2943966
chore: fix phpstan errors
phinocio Apr 5, 2025
6d7c962
feat: password update
phinocio Apr 5, 2025
51d3332
feat: admin update user password
phinocio Apr 5, 2025
a900c3a
chore: fix phpstan warnings
phinocio Apr 5, 2025
a358467
chore: remove uneeded event
phinocio Apr 5, 2025
775716d
chore: typings
phinocio Apr 5, 2025
ca15c15
chore: phpstan max and fix errors
phinocio Apr 5, 2025
26602c1
chore: min 90 instead of exactly
phinocio Apr 5, 2025
6c434eb
refactor: new with ()
phinocio Apr 5, 2025
c9d714f
refactor: setup cors, https always
phinocio Apr 13, 2025
aa8189f
fix: remove uneeded telescope provider
phinocio Apr 19, 2025
96a1532
refactor: ide helper in scripts breaks when prod deploy lol
phinocio Apr 19, 2025
7120c27
refactor: return current user when updating profile
phinocio Apr 19, 2025
59d38b9
refactor: invalidate and regenerate token on account delete
phinocio Apr 20, 2025
a86a7e3
refactor: return empty string if null
phinocio Apr 23, 2025
49063fe
test: fix tests
phinocio Apr 23, 2025
0040976
feat: add current password required when updating password
phinocio Apr 26, 2025
a9e87d6
refactor: auth middleware
phinocio Apr 26, 2025
70c34e8
feat: login user after password update
phinocio Apr 26, 2025
2840379
refactor: split up password update; return resource directly
phinocio Apr 26, 2025
37a8978
test: extract password tests to own file
phinocio Apr 26, 2025
f9c874b
feat: fix caching
phinocio Apr 26, 2025
bfae4ae
feat: endpoint for admin to verify user
phinocio Apr 26, 2025
dd5444e
chore(deps): update deps
phinocio Apr 26, 2025
14acaae
refactor: remove links from user resources
phinocio Apr 27, 2025
93928fe
feat: show admin status for requests to admin route
phinocio Apr 27, 2025
7e10b7f
refactor: better validation
phinocio Apr 27, 2025
bcfe293
chore: ignore
phinocio Apr 27, 2025
1adcee3
feat: forgot password
phinocio Apr 28, 2025
4e1e8af
test: create tests/update tests
phinocio Apr 28, 2025
8c64330
chore(deps): add resend, bump deps
phinocio Apr 28, 2025
6e2fd28
chore: add env
phinocio Apr 28, 2025
08a675e
refactor: improve seeding
phinocio Apr 28, 2025
3ad9fc9
feat: game module
phinocio Apr 29, 2025
7f3ca95
test: update tests
phinocio Apr 29, 2025
dce3553
feat: admin game module
phinocio Apr 29, 2025
47dc8d9
refactor: order by name
phinocio Apr 29, 2025
48db61d
chore(deps): update deps
phinocio Apr 30, 2025
fc44b48
feat: support remember me functionality
phinocio Apr 30, 2025
2be37d2
chore(deps): update deps
phinocio May 3, 2025
3fdc085
feat: file module
phinocio May 3, 2025
cca07e5
feat: remember use if user was logged in via remember
phinocio May 5, 2025
740624e
refactor: save remember value first
phinocio May 5, 2025
739803b
feat: r2 filesystem for uploads
phinocio May 5, 2025
187ac86
chore(deps): update deps
phinocio May 5, 2025
730a201
feat: cache file contents
phinocio May 5, 2025
347258a
feat: file module
phinocio May 6, 2025
6ba90b6
feat: file module and tests
phinocio May 6, 2025
a23e27a
refactor: no file delete route
phinocio May 6, 2025
999c56c
test: ignore some things I don't really need to test
phinocio May 6, 2025
d2b12d1
refactor: use query()
phinocio May 6, 2025
87a200c
feat: update models for list module
phinocio May 7, 2025
71947d5
refactor: no soft deletes
phinocio May 7, 2025
aba2254
feat: list module routes
phinocio May 7, 2025
f0edfe1
chore(deps): add query builder, update deps
phinocio May 7, 2025
c64c583
feat: view all, show specific laod order
phinocio May 8, 2025
0051664
chore: seeders
phinocio May 8, 2025
e162f9b
refactor: no content for now
phinocio May 8, 2025
f4d37a7
chore: types
phinocio May 8, 2025
10c8c86
test: tests for wip load order module
phinocio May 8, 2025
0340bf9
test: better caching/tests
phinocio May 9, 2025
4971c8a
refactor: update response return to use jsonresponse
phinocio May 9, 2025
deea41b
feat: delete load order
phinocio May 9, 2025
04d4693
feat: admin route for deleting load order
phinocio May 9, 2025
240756c
refactor: no need to extend api controller
phinocio May 9, 2025
c5aa542
feat: load order upload
phinocio May 9, 2025
665e775
test: upload load order
phinocio May 9, 2025
76a186f
refactor: transaction
phinocio May 9, 2025
e15d84b
feat: needs to be array
phinocio May 9, 2025
aca30b1
wip: files
phinocio May 9, 2025
fa1d498
refactor: only use files that exist in CF for now
phinocio May 10, 2025
3b6e560
refactor: name instead of user:name, etc
phinocio May 10, 2025
6bbfddf
test: unit test file content
phinocio May 10, 2025
1b00cb7
test: get load order unit test
phinocio May 10, 2025
54d3fd5
test: update
phinocio May 10, 2025
4290dd7
wip: tests
phinocio May 10, 2025
9a156c1
test: fix create test
phinocio May 12, 2025
2a59a86
test: create tests for filters
phinocio May 12, 2025
020ba43
test: more tests
phinocio May 12, 2025
abe0839
test: update
phinocio May 12, 2025
8b1880c
test: update
phinocio May 13, 2025
deef13d
chore(deps): update deps
phinocio May 19, 2025
ae499f4
test: fix random wrong order maybe
phinocio May 19, 2025
db13d17
chore: update seeder
phinocio May 19, 2025
96d9d0d
refactor: normalize urls
phinocio May 19, 2025
f4f5d99
refactor: url seeds
phinocio May 19, 2025
db20458
test: fix test
phinocio May 19, 2025
92ce196
feat: delete expired lists
phinocio May 19, 2025
f5a2b7a
test: update tests
phinocio May 21, 2025
0ad3974
feat: delete orphaned files
phinocio May 21, 2025
c4dd638
feat: file download
phinocio May 24, 2025
d78f2a8
refactor: simplify
phinocio May 24, 2025
523bba6
feat: files download tests
phinocio May 24, 2025
fa5e135
test: fix
phinocio May 24, 2025
8e22b2d
test: update
phinocio May 24, 2025
ea158be
temp
phinocio May 24, 2025
c5b3963
remove temp
phinocio May 24, 2025
4b3f7b1
refactor: include users lists with current user
phinocio May 24, 2025
e55be81
feat: always load game and author
phinocio May 24, 2025
6ec8087
feat: always load current user lists
phinocio May 24, 2025
6b40a18
chore(deps): update deps
phinocio May 27, 2025
7a0d151
refactor: load lists with latest first
phinocio May 27, 2025
354f9ef
refactor: fix
phinocio May 27, 2025
98eec59
refactor: globally handle model 404s
phinocio May 27, 2025
bbea0b8
feat: command to flush cache
phinocio May 29, 2025
b6ae3bc
feat: make sure public user profile only returns public lists
phinocio May 31, 2025
bd1af2c
test: update
phinocio May 31, 2025
010637d
chore: update cache forgetting
phinocio May 31, 2025
c062c79
chore(deps): update deps
phinocio May 31, 2025
79e5625
wip: api tokens
phinocio May 31, 2025
4e318b3
chore: remove uneeded policy items
phinocio May 31, 2025
3e90598
test: wip tests
phinocio May 31, 2025
b3d4841
test: wip tests
phinocio May 31, 2025
ff76d18
feat: api tokens
phinocio May 31, 2025
ca79399
fix: breaking things
phinocio May 31, 2025
bc87070
refactor: token format
phinocio May 31, 2025
9697248
test: fix tests
phinocio May 31, 2025
93b27d3
feat: medium text description
phinocio Jun 1, 2025
d86d7fb
feat: only show public lists
phinocio Jun 1, 2025
790210d
feat: proper type
phinocio Jun 1, 2025
0d81aac
feat: remove service files
phinocio Jun 1, 2025
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
12 changes: 0 additions & 12 deletions .dockerignore

This file was deleted.

36 changes: 21 additions & 15 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
# shellcheck disable=SC2034
APP_NAME="Load Order Library"
#shellcheck disable=SC2034
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_PORT=8000
APP_TIMEZONE=UTC
APP_URL=http://api.testing.lol.wonderland
FRONTEND_URL=http://testing.lol.wonderland
APP_PORT=
APP_URL=http://localhost
FRONTEND_URL=
SANCTUM_STATEFUL_DOMAINS=

APP_LOCALE=en
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=en_US

APP_MAINTENANCE_DRIVER=file
APP_MAINTENANCE_STORE=database
# APP_MAINTENANCE_STORE=database

PHP_CLI_SERVER_WORKERS=4

BCRYPT_ROUNDS=12

Expand All @@ -22,10 +24,10 @@ LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mariadb
DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=l11
DB_PORT=5432
DB_DATABASE=
DB_USERNAME=root
DB_PASSWORD=

Expand All @@ -40,7 +42,7 @@ FILESYSTEM_DISK=local
QUEUE_CONNECTION=database

CACHE_STORE=database
CACHE_PREFIX=
# CACHE_PREFIX=

MEMCACHED_HOST=127.0.0.1

Expand All @@ -50,22 +52,26 @@ REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
RESEND_API_KEY=

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

BACKUP_ARCHIVE_PASSWORD=
DISCORD_WEBHOOK_URL=
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_REGION=us-east-1
R2_ENDPOINT=
R2_USE_PATH_STYLE_ENDPOINT=false
R2_BUCKET_UPLOADS=

VITE_APP_NAME="${APP_NAME}"
VITE_PORT=5174
67 changes: 0 additions & 67 deletions .github/workflows/run_tests.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: tests

on:
push:
branches:
- main
- rewrite
pull_request:
branches:
- main

jobs:
tests:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.4
tools: composer:v2
coverage: xdebug

- name: Get Composer Cache Directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache Composer Dependencies
uses: actions/cache@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install Dependencies
run: composer install --no-interaction --prefer-dist --optimize-autoloader

- name: Copy Environment File
run: cp .env.example .env

- name: Generate Application Key
run: php artisan key:generate

- name: Tests
run: composer test:all
14 changes: 8 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@
/public/build
/public/hot
/public/storage
/public/vendor
/storage/*.key
/storage/pail
/vendor
.env
.env.testing
.env.backup
.env.production
.phpactor.json
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/auth.json
/.fleet
/.idea
/.nova
/.vscode
.ideavimrc
test-api-requests/http-client.env.json
test-api-requests/http-client.private.env.json
/.zed
.phpstorm.meta.php
_ide_helper.php
_ide_helper_models.php
Loading