Commit Graph

132 Commits

Author SHA1 Message Date
Peter 4b5a49b82a Alignment fix 2025-04-11 23:40:45 +02:00
Peter 6526bad733 Merge remote-tracking branch 'origin/master' 2025-04-11 23:36:14 +02:00
Peter 9076f6d150 Styling and date changes on punishment page
Some styling changes for the punishments page. Also changes how the dates are displayed - they should display differently depending on what region you're in.
2025-04-11 23:35:57 +02:00
Teriuihi 44d28494e5 Add API endpoint to retrieve total punishment counts
Introduced a new API endpoint `/history/total` for fetching the total counts of bans, mutes, kicks, and warnings. Added database mapping and DTO classes to support this functionality, along with necessary schema and controller updates.
2025-04-11 23:27:20 +02:00
Peter 807569a0a1 More ban pages changes 2025-04-11 22:24:25 +02:00
Teriuihi e7fde81f49 Change page size from 100 to 10 2025-04-11 21:57:10 +02:00
Peter ce9260ede6 Added table headings and darkmode fix 2025-04-11 21:56:46 +02:00
Teriuihi 23367b6dea Fix history not loading 2025-04-11 21:37:21 +02:00
Peter 97e5d202bb Renamed and added Bans nav links 2025-04-11 21:25:18 +02:00
Teriuihi 2289b14b5a Add history page 2025-04-11 21:20:02 +02:00
Teriuihi 4b891dd672 Reworked database setup and added pagination
The database tables are now automatically created
The history lookup now uses a view for names (for simplicity and readability)
The all history lookup now uses a view combining all punishment history for efficiency
2025-04-11 18:22:07 +02:00
Teriuihi 3c6141f7ad Refactor imports in team.component.ts for conciseness
Consolidated and simplified imports from '../../api' to clean up the code. This reduces redundancy and improves readability while maintaining functionality.
2025-04-11 14:48:13 +02:00
Teriuihi 0f9761da3a Refactor history APIs and integrate LiteBans database support
Redesigned history-related APIs to streamline handling of user and UUID punishments, moving from POST to GET endpoints. Added support for LiteBans database with mappers for retrieving punishment records by name and UUID, and implemented global exception handling for better error reporting. Updated schema paths and added enums (UserType, HistoryType) and a new Gradle dependency.
2025-04-11 01:12:46 +02:00
Teriuihi 43a5dafd82 Refactor API structure and update schema references
Moved API files from `sub_api` to `schemas` for better organization. Updated schema references to use `ApiError` instead of `Error`. Adjusted build configuration to include new schema folder in the API generation process.
2025-04-10 23:16:57 +02:00
Teriuihi 2b818fc297 Add removedReason field to bans API schema 2025-04-10 23:12:20 +02:00
Teriuihi 7fa84fec81 Add "removedBy" field to bans.yml
This new field captures the name of the staff member who removed a punishment. It provides additional traceability and accountability for punishment actions.
2025-04-10 22:55:53 +02:00
Teriuihi 1585011143 Refactor API structure and endpoints for history and team.
Updated API definitions and endpoints to better support punishment history and team queries. Introduced new parameters, schemas, and operations to improve functionality, and reorganized related controllers into appropriate packages.
2025-04-10 22:46:30 +02:00
Teriuihi 2137459e9b Refactor API structure and enhance logging/debugging.
Modularized OpenAPI definitions by splitting into dedicated files for teams, bans, and errors. Improved backend logging for database connections, CORS configuration, and debugging. Updated application properties to support environment-specific CORS origins and logging levels.
2025-04-10 21:45:00 +02:00
Teriuihi 23f298b8c9 Log error when database settings fail to load 2025-04-10 21:11:26 +02:00
Teriuihi 02f21169b4 Remove unused TeamMemberDto import in TeamApiController
The TeamMemberDto import was unnecessary and not used in the code. Removing it improves code cleanliness and reduces potential confusion. This is a minor optimization with no functional changes.
2025-04-10 20:39:51 +02:00
Teriuihi f10c3ab2d3 Refactor team component to use dynamic data loading
Replaced static member entries with dynamic rendering using `getTeamMembers` for better scalability. Added caching and data deduplication logic to optimize API calls. This enhances maintainability and reduces redundancy in the team component.
2025-04-10 02:08:27 +02:00
Teriuihi d5daa8458b Refactor database structure and improve player handling.
Reorganized database-related code into a dedicated module, added mappings for UUID handling, and updated SQL queries for clarity. Enhanced team members API to use player data directly, ensuring consistency and better handling of UUIDs. Introduced new database table for connection settings and adjusted Gradle configurations for modularization.
2025-04-10 01:22:19 +02:00
Teriuihi 67a3162ae3 Added backend and fixed openapi generation 2025-04-08 22:24:24 +02:00
Teriuihi 21496baab5 Remove AppModule and enhance Team and Header components
Deleted unused `AppModule` to streamline the project structure. Enhanced the `TeamComponent` by integrating team member data from the API and updating its template. Improved the `HeaderComponent` by adding `priority` to the logo image for better performance.
2025-04-08 22:23:37 +02:00
Teriuihi c2c81de9d0 Convert components to standalone and implement route-based loading
Refactored Angular components to standalone modules, enhancing modularity and reducing dependency on `AppModule`. Updated routes to facilitate lazy loading for improved performance and maintainability. Replaced `platformBrowserDynamic` with `bootstrapApplication` for modern bootstrapping.
2025-04-08 21:45:44 +02:00
Peter 9615139554 Added styling for birthday member component
Introduce new CSS styles to ensure consistent layout and design for the birthday member section. These styles handle width, padding, text alignment, and font styling for improved visual presentation.
2025-04-06 22:10:46 +02:00
Peter e7ac2d0462 Added Birthdays page
Introduced a new BirthdaysComponent with its corresponding HTML, SCSS, and spec files. Added a route for '/birthdays' in the application and integrated it into the module and routing. This component showcases staff and previous staff birthdays.
2025-04-06 22:06:48 +02:00
Teriuihi ab3abe7f6b Refactor background-position logic in header component 2025-04-06 20:50:49 +02:00
Teriuihi 7b377a3667 Refactor team section styles by using a common CSS class
Replaced inline styles with a reusable `.teamContainer` class in the team component. This improves maintainability and ensures consistent styling across sections.
2025-04-06 20:46:57 +02:00
Peter d61a783f7f Merge remote-tracking branch 'origin/master' 2025-04-06 20:46:13 +02:00
Peter b1f2a89a2e Added voting page & header styling fix
Implemented VoteComponent to allow users to vote for the server on multiple platforms. Updated routes, styles, and headers for consistency.
2025-04-06 20:45:43 +02:00
Teriuihi b256b9f66b Enable scroll position restoration in app routing 2025-04-06 17:51:16 +02:00
Teriuihi 6f0c667bdd Revert "Add OnInit to components to scroll to top on initialization"
This reverts commit d4e231f67b.
2025-04-06 17:48:44 +02:00
Teriuihi d4e231f67b Add OnInit to components to scroll to top on initialization
Updated Privacy, Team, Terms, and About components to implement OnInit. Each component now calls the `scrollToTop` method of the `ScrollService` in the `ngOnInit` lifecycle to ensure the page starts at the top when initialized.
2025-04-06 17:47:12 +02:00
Teriuihi b4d78690d9 Add overlay gradient option to rules page header 2025-04-06 17:34:44 +02:00
Teriuihi d981b7dcff Add toggle functionality for exceptions in Rules component 2025-04-06 17:29:52 +02:00
Teriuihi d006a47cf3 Integrate ScrollService into multiple components. 2025-04-06 17:27:22 +02:00
Peter 85c73c22c8 Update "Contact Us" link to use routerLink
Replaced the external Typeform link with an internal [routerLink] to route to the "/contact" page. This ensures consistency and improves navigation within the application.
2025-04-06 14:38:40 +02:00
Peter c0f2a38f4d Added Socials page component
Created a new SocialsComponent with corresponding HTML, SCSS, and tests. Updated `app.module.ts` to include the Socials route and modified the Team page to use `ngSrc` for image optimization.
2025-04-06 13:37:44 +02:00
Peter 6e459767ed Added About and Team components with routing
This commit introduces new "About" and "Team" components, integrating them into the application and updating the routing module.
2025-04-06 13:03:59 +02:00
Peter 2eb619b253 Added detailed Terms of Use and improved Terms styling
Expanded the Terms of Use content with sections on fair use, donations, external services, and more to improve clarity and coverage. Updated SCSS to enhance readability and layout. Updated expired links to their current live version.
Minor punctuation fix in the Privacy Policy for consistency.
2025-04-06 12:18:00 +02:00
Peter 7b5002a475 Updated Privacy Policy
Updated privacy policies with revised dates, modernized links, and replaced references from Mojang's expired links to their Privacy Policy to Microsoft's Privacy Policy. Replaced hardcoded links with Angular router links for improved maintainability. Updated the "Last Updated" date.
2025-04-06 11:59:46 +02:00
Peter 25931d05d7 Implement detailed privacy policy content
Replaced placeholder privacy content with a comprehensive privacy policy, including sections on data collection, usage, third-party involvement, and user rights. Added necessary styles for the privacy policy layout.
Also actually fixed the social icons in the footer
2025-04-06 11:43:33 +02:00
Peter b029153657 Added Terms and Privacy components with routing
Introduced `TermsComponent` and `PrivacyComponent` with basic templates, styles, and unit tests. Updated routing in `app.module` to include `/terms` and `/privacy` paths and registered these components.
2025-04-06 10:25:48 +02:00
Peter 4e77f50d70 Update header and scroll-up button functionalities
Removed unnecessary `background-size` property from the header and updated the scroll-up button to use a service for scrolling.
2025-04-06 10:13:30 +02:00
Peter 0652e5e55e Fixed all styling for rules page.
Reorganized SCSS files for better structure and maintainability. Updated layouts to ensure consistent spacing, alignment, and responsiveness across components. Note: "Show exceptions" still needs to be fixed.
Also fixed social icon spacing in the footer.
2025-04-06 10:11:23 +02:00
Peter 1a6e489f9a Improved UI styles and updated community section content
Added styling updates to map title and container padding for better visual consistency. Updated the community section text to acknowledge player contributions and invite suggestions for featured builds.
2025-04-06 09:19:06 +02:00
Teriuihi 849f09d10a Update carousel to include opacity animation
Refactored slide navigation to integrate smooth fade animations using opacity changes. Introduced `carouselOpacity` and `triggerAnimation` to manage animation state, and replaced direct slide index changes with the `setSlide` method for improved modularity. Updated HTML and SCSS to support the new animation behavior.
2025-04-06 00:03:35 +02:00
Teriuihi 6f3445dc01 Move <app-footer> to the root app component
The <app-footer> component is now included only in app.component.html to avoid duplication across pages. This simplifies maintenance and ensures consistent behavior throughout the application.
2025-04-05 23:19:50 +02:00
Teriuihi 13089ba437 Add footer component to rules page
Inserted the `<app-footer>` component to the rules page template. This ensures consistency in the layout by including the footer across all pages. No additional logic or styles were modified.
2025-04-05 23:18:55 +02:00