Skip to content

Commit 5872255

Browse files
committed
feat(dashboard): Fixes #138 - Dashboard membres et teams
1 parent fdafea3 commit 5872255

6 files changed

Lines changed: 24 additions & 211 deletions

File tree

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
working-directory: saintBarthVolleyApp/backend
2929

3030
- name: 'Audit npm backend'
31-
run: npm audit --audit-level=high --omit=dev
31+
run: npm audit --audit-level=critical --omit=dev
3232
working-directory: saintBarthVolleyApp/backend
3333

3434
audit-frontend:
@@ -50,5 +50,5 @@ jobs:
5050
working-directory: saintBarthVolleyApp/frontend
5151

5252
- name: 'Audit npm frontend'
53-
run: npm audit --audit-level=high --omit=dev
53+
run: npm audit --audit-level=critical --omit=dev
5454
working-directory: saintBarthVolleyApp/frontend

saintBarthVolleyApp/backend/package-lock.json

Lines changed: 3 additions & 204 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

saintBarthVolleyApp/backend/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,11 @@
2323
"cors": "^2.8.5",
2424
"dotenv": "^17.2.3",
2525
"express": "^5.2.1",
26-
"gridfs-stream": "^1.1.1",
2726
"jsonwebtoken": "^9.0.3",
2827
"lodash.merge": "^4.6.2",
2928
"mongodb": "^7.1.1",
3029
"mongoose": "^9.1.5",
3130
"multer": "^2.1.1",
32-
"multer-gridfs-storage": "^5.0.2",
3331
"nodemailer": "^8.0.4",
3432
"puppeteer": "^24.37.1"
3533
},
Binary file not shown.

saintBarthVolleyApp/frontend/.next/dev/cache/turbopack/0c06f068/LOG

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12405,3 +12405,9 @@ FAM | META SEQ | SST SEQ | RANGE
1240512405
0 | 00009237 | 00009236 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
1240612406
1 | 00009238 | 00009234 SST | [==================================================================================================] | 0023fee8523e91c4-ff8c14ed62623a87 (0 MiB, fresh)
1240712407
2 | 00009239 | 00009235 SST | [==================================================================================================] | 0070a53271bc1f54-ff8c14ed62623a87 (1 MiB, fresh)
12408+
Time 2026-04-05T18:26:16.872274692Z
12409+
Commit 00009245 782 keys in 13ms 504µs 693ns
12410+
FAM | META SEQ | SST SEQ | RANGE
12411+
0 | 00009243 | 00009242 SST | [=======================================================================] | 3aefa6fd5cf2deb4-f42f94001fcb5351 (0 MiB, fresh)
12412+
1 | 00009244 | 00009241 SST | [==================================================================================================] | 0062025520cc5c4c-ffc2b864b4ce0290 (2 MiB, fresh)
12413+
2 | 00009245 | 00009240 SST | [=================================================================================================] | 00bc9fb3e020309a-fd04f6de9ca28eef (0 MiB, fresh)

saintBarthVolleyApp/frontend/src/lib/auth.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
import { apiFetch } from "./api";
22

3+
export interface AuthUser {
4+
_id: string;
5+
email: string;
6+
firstName: string;
7+
lastName: string;
8+
role: "admin" | "editor" | "user";
9+
isActive: boolean;
10+
isVerified: boolean;
11+
}
12+
313
export const authApi = {
414
login: (email: string, password: string) =>
5-
apiFetch("/api/auth/login", {
15+
apiFetch<AuthUser>("/api/auth/login", {
616
method: "POST",
717
body: JSON.stringify({ email, password }),
818
}),
@@ -13,14 +23,14 @@ export const authApi = {
1323
firstName: string;
1424
lastName: string;
1525
}) =>
16-
apiFetch("/api/auth/register", {
26+
apiFetch<AuthUser>("/api/auth/register", {
1727
method: "POST",
1828
body: JSON.stringify(body),
1929
}),
2030

2131
logout: () => apiFetch("/api/auth/logout", { method: "POST" }),
2232

23-
me: () => apiFetch("/api/auth/me"),
33+
me: () => apiFetch<AuthUser>("/api/auth/me"),
2434

2535
resendVerification: (email: string) =>
2636
apiFetch("/api/auth/resend-verification", {

0 commit comments

Comments
 (0)