Commit dfb66bb
authored
V0 (#33)
* feat: check user roles
* refactor: nit
* test: ensure and admin can assign and unassign a task
* fix: authorization plugin has no dependency
* fix: update migrations dir path
* fix: eslint
* refactor: nit
* Update .env.example
Signed-off-by: Jean <[email protected]>
* refactor: use knex
* refactor: migrations
* fix: remove useless c8 ignore comments
* docs: update path
* refactor: change JWT auth for cookie session auth
* chore: ci - env must have required property 'COOKIE_NAME'
* fix: uncomment unauthenticated test
* refactor: leverage fastify sensible decorators
* chore: use tsx
* feat: add pagination to tasks
* refactor: use COUNT(*) OVER() AS rowNum for tasks pagination
* refactor: decorate request for authorization
* fix: use transaction for login controller
* refactor: register cookie plugin in session plugin
* test: mock app.compare implementation instead of reassignation
* test: spy logger to ensure 500 error is due to Transaction failure
* feat: allow to upload task image
* refactor: improve scripts typing
* docs: static and multipart plugin
* chore: dangerous DB operations should be explicitly authorized
* refactor: use node test runner utitities
* refactor: check file size before mime-type
* fix: identifier typo
* feat: do not use rm -rf
* fix: storage path disclosure
* fix: nit
---------
Signed-off-by: Jean <[email protected]>1 parent 8ae2437 commit dfb66bb
File tree
47 files changed
+1209
-519
lines changed- .github/workflows
- @types/fastify
- migrations
- scripts
- src
- plugins
- custom
- external
- routes/api
- auth
- tasks
- schemas
- test
- app
- plugins
- routes/api
- auth
- tasks
- fixtures
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+1209
-519
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
17 | | - | |
18 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
| 72 | + | |
71 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | | - | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments