Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
ad95465
Started working on home site
Myjem Jun 2, 2025
72a2f03
Add create game endpoint to ContentController
PEXEL2002 Jun 3, 2025
471cc2e
Add createGame.html template for game creation interface
PEXEL2002 Jun 3, 2025
d731f6f
Add user list functionality to createGame.html with role selection
PEXEL2002 Jun 3, 2025
4444228
Add user info retrieval and system selection to createGame.html
PEXEL2002 Jun 3, 2025
3f04292
Update createGame.html for user management and interface improvements
PEXEL2002 Jun 4, 2025
149ece1
added assets for home page
szxxlc Jun 4, 2025
2e8e6dd
Add user search functionality by regex username in UserController and…
xEdziu Jun 4, 2025
a7a0d47
Add user search functionality by regex username in UserController and…
xEdziu Jun 4, 2025
aa8207c
Add request states for fetching users by regex and adding multiple us…
xEdziu Jun 4, 2025
d986e26
Progress on home site
Myjem Jun 6, 2025
7eb68cc
Merge remote-tracking branch 'origin/Strona-glowna-/home' into Strona…
Myjem Jun 6, 2025
d838b3b
Merge remote-tracking branch 'origin/main' into Strona-glowna-/home
Myjem Jun 6, 2025
b94b2c5
Add endpoint to check if password is set for GitHub user in UserContr…
xEdziu Jun 7, 2025
154b879
Sidebar changes
Myjem Jun 9, 2025
6bcd30a
working on mobile
Myjem Jun 9, 2025
95e43c9
erge remote-tracking branch 'origin/main' into Strona-glowna-/home
Myjem Jun 9, 2025
7d0e019
Add NextSession DTO and implement endpoints for retrieving pending sc…
xEdziu Jun 10, 2025
b1e99d3
Update state.xml to modify enemy and scheduler IDs in request bodies
xEdziu Jun 10, 2025
f03f458
Refactor NextSession DTO to rename fields and include game name
xEdziu Jun 10, 2025
1d33639
Update log message for application startup
xEdziu Jun 13, 2025
d8b3c01
Add admin panel with user management functionality
xEdziu Jun 13, 2025
0d7d66c
Add user edit form and update request model for admin panel
xEdziu Jun 13, 2025
b6a06d8
Add methods to delete user notes and remove players from all schedule…
xEdziu Jun 13, 2025
69595a1
Add logout link and user greeting in admin panel
xEdziu Jun 13, 2025
5c59ed0
Remove hardcoded localhost URL from API fetch calls in admin-related …
xEdziu Jun 13, 2025
d8fb36b
Add password change functionality for admin users
xEdziu Jun 13, 2025
b1b8dab
dodanie usuwania usera z gier
ZuberRS03 Jun 13, 2025
5914ecf
Gotowe issue #306
ZuberRS03 Jun 13, 2025
6f96793
Added scheduler thingy
Myjem Jun 13, 2025
71757a4
Implement user list backdrop functionality and improve editor visibil…
PEXEL2002 Jun 14, 2025
68d16a2
Merge branch 'front-create-game' of https://github.com/xEdziu/RPG-Han…
PEXEL2002 Jun 14, 2025
6717ed3
Implement game creation functionality with input validation and API i…
PEXEL2002 Jun 14, 2025
73ca3c5
Add user search functionality with API integration and update user li…
PEXEL2002 Jun 14, 2025
7e34600
Refactor user search functionality to trim input and limit results to…
PEXEL2002 Jun 14, 2025
0356c33
Implement user editor functionality with backdrop handling and user d…
PEXEL2002 Jun 14, 2025
470719b
Update user display styles in game creation and user list sections
PEXEL2002 Jun 14, 2025
2fa6244
Add role color update functionality for user roles in the user list
PEXEL2002 Jun 14, 2025
3ef678c
Fix user search functionality to exclude current user and update no r…
PEXEL2002 Jun 14, 2025
5a7f6ca
Refactor game creation process to improve user addition and success n…
PEXEL2002 Jun 14, 2025
fcd5339
zmiana adresu podstrony
PEXEL2002 Jun 14, 2025
2bf5e7e
Merge branch 'main' into front-create-game
xEdziu Jun 14, 2025
9b888ef
Implement theme toggle and enhance admin panel layout with responsive…
PEXEL2002 Jun 14, 2025
6790316
Enhance change password page with responsive design and theme toggle …
PEXEL2002 Jun 14, 2025
5f05b8b
Add footer script inclusion to change password admin page
PEXEL2002 Jun 14, 2025
ee02fcf
Enhance user management page with theme toggle, responsive design, an…
PEXEL2002 Jun 14, 2025
b7d1886
Enhance user edit page with theme toggle, responsive design, and impr…
PEXEL2002 Jun 14, 2025
99fd8e9
Enhance user interaction with SweetAlert2 for password change and use…
PEXEL2002 Jun 14, 2025
0ea9050
Enhance admin pages with navigation buttons for improved user experience
PEXEL2002 Jun 14, 2025
e09ecd1
Add footer script inclusion to user edit page
PEXEL2002 Jun 14, 2025
fc5f603
Rename endpoint and service method to check password status for Disco…
xEdziu Jun 14, 2025
a4ef920
Progress on home site (I dont remember whan I changed lol)
Myjem Jun 16, 2025
90af894
Mostly working gameList site, just need to change the colors but im lazy
Myjem Jun 16, 2025
f874bae
Fixed colors
Myjem Jun 16, 2025
9b092f6
Fixed footer
Myjem Jun 16, 2025
6761c69
Added fun custom text yipee
Myjem Jun 16, 2025
a3bbc51
Fixed colors and file names
Myjem Jun 17, 2025
4ac4f15
Update HTML language attribute to Polish for consistency across admin…
PEXEL2002 Jun 18, 2025
99b70c1
Fix button margin on user edit page for improved layout consistency
PEXEL2002 Jun 18, 2025
c9608dd
Add server response logging and update password error message for cla…
PEXEL2002 Jun 18, 2025
1696433
Refactor user table layout for improved readability and consistency
PEXEL2002 Jun 18, 2025
68e496f
Trim whitespace from game name input and set maxlength for title inpu…
PEXEL2002 Jun 18, 2025
af63991
Refactor user interface elements for improved readability and consist…
PEXEL2002 Jun 18, 2025
b23cc62
Changed surface color in dark mode and added przeniesienie przycisku
Myjem Jun 25, 2025
525fd22
Merge branch 'oddanie-projektu' into Strona-glowna-/home
MANDRW Jun 25, 2025
71aef39
Merge pull request #340 from xEdziu/Strona-glowna-/home
MANDRW Jun 25, 2025
9d07f04
Merge pull request #341 from xEdziu/Strona-z-grami-użytkownika
xEdziu Jun 25, 2025
512ac40
Merge branch 'oddanie-projektu' into admin-forms
MANDRW Jun 25, 2025
3c8ea54
Update UserService.java
MANDRW Jun 25, 2025
60274dd
Update ContentController.java
MANDRW Jun 25, 2025
41d37aa
Merge pull request #342 from xEdziu/admin-forms
MANDRW Jun 25, 2025
ef6be83
Merge branch 'oddanie-projektu' into front-create-game
xEdziu Jun 25, 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
107 changes: 104 additions & 3 deletions .idea/JetClient/state.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class RpgHandyHelperApplication {

public static void main(String[] args) {
// Initialize the logger service
LoggerService.logInfo("Application is started");
LoggerService.logInfo("Application is starting");
SpringApplication.run(RpgHandyHelperApplication.class, args);
// Log the application start
LoggerService.logInfo("Application has started successfully");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,41 @@ public String getNotes() {
System.out.println("ContentController: getNotes()");
return "home/notes";
}

@GetMapping("/home/create-game")
public String getCreateGame() {
System.out.println("ContentController: getCreateGame()");
return "home/createGame";
}
// ADMIN PAGES

@GetMapping("/admin")
public String getAdmin() {
System.out.println("ContentController: getAdmin()");
return "admin/admin";
}

@GetMapping("/admin/users")
public String getAdminUsers() {
System.out.println("ContentController: getAdminUsers()");
return "admin/users";
}

@GetMapping("/admin/user/edit")
public String getAdminUserEdit() {
System.out.println("ContentController: getAdminUserEdit()");
return "admin/userEdit";
}

@GetMapping("/admin/user/myPassword")
public String getAdminUserMyPassword() {
System.out.println("ContentController: getAdminUserMyPassword()");
return "admin/changePasswordAdmin";
}

@GetMapping("/home/games")
public String getgames() {
System.out.println("ContentController: getgames()");
return "home/games";
}
}
2 changes: 1 addition & 1 deletion src/main/java/dev/goral/rpghandyhelper/game/Game.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class Game {
@JoinColumn(
name = "user_id",
referencedColumnName = "id",
nullable = false
nullable = true
)
private User owner;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.springframework.security.core.annotation.AuthenticationPrincipal;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
Expand Down Expand Up @@ -42,6 +43,11 @@ public Map<String, Object> addUserToGame(@RequestBody AddUserToGameRequest reque
return gameService.addUserToGame(request);
}

@PostMapping(path = "/game/addUsersToGame")
public Map<String, Object> addUsersToGame(@RequestBody List<AddUserToGameRequest> requests) {
return gameService.addUsersToGame(requests);
}

@DeleteMapping(path = "/game/deleteUserFromGame")
public Map<String, Object> deleteUserToGame(@RequestBody DeleteUserFromGameRequest request) {
return gameService.deleteUserFromGame(request);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
package dev.goral.rpghandyhelper.game;

import dev.goral.rpghandyhelper.user.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface GameRepository extends JpaRepository<Game, Long> {
Optional<Game> findGameById(Long id);
Optional<Game> findGameByName(String name);

List<Game> findAllByOwner(User user);
}
Loading