Commit graph

975 commits

Author SHA1 Message Date
Peter KW
e7911574be Removed unused files 2024-03-31 20:56:40 +02:00
Peter KW
0c8a394f74 Small fix so that it uses component for getting users in a proj 2024-03-31 20:56:08 +02:00
Peter KW
5f42fa7818 Fixed types and imports of types 2024-03-31 20:54:00 +02:00
Peter KW
8b6462abee Changed so that username is required to get projects, so that you can get another user's projects (for admin stuff) 2024-03-29 20:19:22 +01:00
Peter KW
4ab23b3c3c Merge branch 'dev' into gruppPP 2024-03-29 20:05:10 +01:00
Imbus
bc9b01d85a Example component GenApiDemo on how to use the new API 2024-03-29 19:37:21 +01:00
Imbus
d2b4bf2a89 Brand new typescript API interface generated from swagger 2024-03-29 19:36:47 +01:00
Imbus
8d5329146d New tygo generated goTypes 2024-03-29 19:36:06 +01:00
Imbus
77f028fd39 Prettierignore for generated files 2024-03-29 19:23:35 +01:00
Imbus
f1e15137d6 Freshly generated swagger docs 2024-03-29 18:43:26 +01:00
Imbus
87a19bfd4e Swagger annotations for JWT key 2024-03-29 18:42:53 +01:00
Imbus
c2fa9aa0c1 Lots of fiddling with swagger annotations in user related handlers 2024-03-29 18:42:12 +01:00
Imbus
1385011769 Make swagger-typescript-api makefile target wipe the previous version 2024-03-29 18:41:20 +01:00
Davenludd
c1f49915ba Refactor signReport method signature 2024-03-29 18:29:38 +01:00
Davenludd
2aaa327a01 Merge branch 'dev' into gruppDM 2024-03-29 17:55:32 +01:00
Davenludd
05545f6f88 Minor fixes 2024-03-29 17:53:37 +01:00
Imbus
374e357820 Add database.txt to clean target 2024-03-29 16:41:55 +01:00
Imbus
0792c6b8a3 More sane swagger-typescript-api generator parameters 2024-03-29 16:36:47 +01:00
Imbus
45e891ed2c Regenerated swagger docs 2024-03-29 15:59:36 +01:00
Imbus
1db1b84e8f Initial demo of swagger-typescript-api interface generation 2024-03-29 15:58:36 +01:00
Imbus
0cd0c8d832 Handler re-order to satisfy human OCD 2024-03-29 15:36:42 +01:00
Imbus
4538a3b193 SignReport handler changes along with tests and TS interface 2024-03-29 15:33:20 +01:00
Imbus
b927fb80fb Refactor again, splitting project related handlers 2024-03-29 15:00:29 +01:00
Imbus
1d5fcd61b6 Refactor, report related endpoints now reside in individual files 2024-03-29 14:50:56 +01:00
Imbus
13d3035e49 Major refactor, splitting user handlers into separate files and changes to how the database is accessed 2024-03-29 14:37:22 +01:00
al8763be
c466a98b15 test for getUnsigned 2024-03-29 12:43:35 +01:00
Imbus
9edcc74ee2 Fix for IsProjectManagerHandler 2024-03-29 12:41:51 +01:00
Peter KW
b036ef906c Small fixes in all files that fetches user projects, so that they pass username as argument to GetProjects-function 2024-03-28 21:31:30 +01:00
Peter KW
85795f5406 Changed GetUserProjects so that you have to get username from params. Now admin can choose a user and see what projects the user belongs to 2024-03-28 21:25:59 +01:00
al8763be
8d7d815745 Merge remote-tracking branch 'origin/gruppDM' into BumBranch 2024-03-28 16:46:29 +01:00
al8763be
09f2a2202f Merge remote-tracking branch 'origin/frontend' into BumBranch 2024-03-28 16:45:39 +01:00
al8763be
5d714bbacf Merge remote-tracking branch 'origin/AlexTester' into BumBranch 2024-03-28 16:44:29 +01:00
al8763be
9a54175d49 Co-authored-by: Imbus <imbus64@users.noreply.github.com> 2024-03-28 16:43:34 +01:00
al8763be
f6dcdcc376 GetUnsignedReports 2024-03-28 16:40:55 +01:00
Peter KW
218b0b3ab7 Merge branch 'frontend' into gruppPP 2024-03-28 12:41:43 +01:00
Peter KW
a96f0fb488 Can now delete user, and also asks user to confirm action 2024-03-28 12:39:23 +01:00
Peter KW
48e53b8768 Added some alerts 2024-03-28 12:38:40 +01:00
Peter KW
3d9bd2ef96 Fixed bugs in removeUser api 2024-03-28 12:38:12 +01:00
Peter KW
50042ded41 Fix in handler 2024-03-28 12:37:04 +01:00
Davenludd
4a71078f2a Fix API endpoint for checking project manager 2024-03-28 12:25:24 +01:00
Davenludd
c002f0e530 Merge remote-tracking branch 'origin/AlexTester' into gruppDM 2024-03-28 12:19:45 +01:00
al8763be
6a7bb9ab26 fix ifPM igen 2024-03-28 12:19:11 +01:00
Davenludd
cc186f8ad0 Refactor handleProjectClick function to remove unused username parameter 2024-03-28 12:16:35 +01:00
Davenludd
e589726ab2 Merge remote-tracking branch 'origin/AlexTester' into gruppDM 2024-03-28 12:10:53 +01:00
Davenludd
37d06b10be Fix typo in route parameter name 2024-03-28 12:09:16 +01:00
Davenludd
48e4d1a8df Refactor fetchWeeklyReport in EditWeeklyReport component 2024-03-28 12:09:09 +01:00
al8763be
6a78e67e7e lol 2024-03-28 12:08:14 +01:00
al8763be
7c46797634 ifPM fix 2024-03-28 12:06:59 +01:00
Peter KW
cef7b34092 Small change to newprojmember type 2024-03-28 01:36:48 +01:00
Peter KW
9052babaae Now uses addUserToProject 2024-03-28 01:35:36 +01:00