Commit Graph

79 Commits

Author SHA1 Message Date
rico-vz
651b6f449e Dusting 2025-03-04 11:50:42 +00:00
Rico van Zelst
68d18311b4 feat: refactor code and improve readability 2025-03-04 12:50:19 +01:00
Rico van Zelst
b246232ae4 fix: Add new Skin Rarity
All checks were successful
Duster Fix / duster (push) Successful in 36s
2024-12-06 14:12:25 +01:00
rico-vz
be90837cab Dusting 2024-06-18 12:27:13 +00:00
Rico van Zelst
35b5e060ec feat: Active Search for skins 2024-06-18 14:26:43 +02:00
Rico van Zelst
20f08944c2 feat: Add Heimerdinger PHP CS rules for Laravel
- Added a new phpcs.xml.dist file with specific coding standards for Laravel development.
2024-06-18 13:09:26 +02:00
StyleCI Bot
e05dd6201a Apply fixes from StyleCI 2024-06-18 10:44:33 +00:00
Rico van Zelst
68dd3dd2f8 fix: Handle null response in SaleController index method
- Add try-catch block to handle null response from API
- Log errors and return appropriate HTTP responses
- Update error message in 503.blade.php to show exception message if available
2024-06-18 12:31:21 +02:00
Rico van Zelst
f01703830d feat: Change support to donate and views
- Changed method name from support to donate in HomeController
- Updated footer link and view references from support to donate
- Renamed support.blade.php to donate.blade.php for consistency
- Updated route endpoint from /support-me to /donate in web.php
2024-06-18 12:31:08 +02:00
Rico van Zelst
1616891d21 style: update rarity color for 'Transcendent'
- Change the rarity color class for 'Transcendent' from 'text-orange-400' to 'text-violet-400'.
2024-06-03 18:54:05 +02:00
Rico van Zelst
0d2392eacc feat: Add 'Transcendent' rarity color
- Added a new rarity color 'Transcendent' with corresponding text color to the ChampionSkinController.
2024-06-03 18:51:14 +02:00
StyleCI Bot
919923111f Apply fixes from StyleCI 2024-04-18 17:44:20 +00:00
Rico van Zelst
267a2e4b67 feat: Add LMI API integration for fetching sales data
- Integrate LMI API to fetch current sales data using the provided API key.
- Update SaleController to use Http facade for making API requests.
- Modify services configuration to include LMI API key.
2024-04-18 19:44:09 +02:00
Rico van Zelst
984690b758 fix temporary 2024-04-17 12:59:25 +02:00
StyleCI Bot
401fa11cb1 Apply fixes from StyleCI 2024-04-15 03:17:22 +00:00
Rico van Zelst
29e102e8bb feat(champion-skin): Improve skin image URL handling
- Refactored the `getSkinImageAttribute` method in ChampionSkin model to accept a boolean parameter for uncentered images.
- Updated references to `getSkinImageAttribute` in ChampionSkinController and blade files to include the new parameter for uncentered images.
2024-04-14 14:29:30 +02:00
Rico van Zelst
0fb2b967fb feat: Add support for uncentered champion images
- Updated the Champion model to include an optional parameter for retrieving uncentered champion images. Adjusted image URLs in relevant views accordingly.
2024-04-14 14:21:32 +02:00
StyleCI Bot
94e37fcd30 Apply fixes from StyleCI 2024-04-01 14:36:34 +00:00
Rico van Zelst
55a72607e2 refactor: improve filtering of hidden posts in PostsController
- Refactored the code in `PostsController.php` to filter out hidden posts before sorting by date for better performance and accuracy.
- Updated the blade template `listposts.blade.php` to adjust formatting and structure for displaying posts.
2024-04-01 16:27:07 +02:00
StyleCI Bot
fd4ce12409 Apply fixes from StyleCI 2024-03-31 18:33:35 +00:00
Rico van Zelst
821c0d1c3c feat: Add roadmap functionality
- Added a new method `roadmap` to HomeController for displaying the roadmap view.
- Created a new Blade template `roadmap.blade.php` for the roadmap page.
- Defined a route `/roadmap` to access the roadmap feature.
2024-03-31 20:33:23 +02:00
Rico van Zelst
2b9fd26b7e fix: Use static arrow function for splash color calculation
- Replace the anonymous function with a static arrow function for calculating the splash color in ChampionSkinController.php.
2024-03-28 10:35:50 +01:00
Rico van Zelst
998f386f20 fix: Handle exceptions in image processing functions
- Catch exceptions when reading image content to prevent errors.
- Adjust image resizing dimensions for better display.
2024-03-28 10:34:16 +01:00
Rico van Zelst
5b55e21659 feat: Add support page
- Added a new method in HomeController to handle the support page.
- Created a new blade template for the support page with donation options.
2024-03-27 01:04:40 +01:00
StyleCI Bot
e436ceae38 Apply fixes from StyleCI 2024-03-26 10:27:36 +00:00
Rico van Zelst
7ccd8ba022 feat: Add caching to streamer data retrieval
- Added caching mechanism to store and retrieve streamer data for API responses, improving performance.
- Implemented cache forget method in StreamerPanelController for CRUD operations to update cached data accordingly.
2024-03-26 10:30:09 +01:00
Rico van Zelst
39e9acf85b refactor: Remove unused cache for streamers
- Removed the unused caching mechanism for champion streamers to improve code clarity and efficiency.
2024-03-23 03:06:32 +01:00
Rico van Zelst
e6dcfacb31 feat: Add streamers to champion show view
- Added loading of streamers data in the champion show view.
- Updated ChampionController to load streamers for display.
2024-03-23 02:48:08 +01:00
Rico van Zelst
b46128ec26 Add Champion model, form validation, and components for StreamerPanel.
- Added Champion model to StreamerPanelController.
- Implemented form validation for champion_id, platform, username, and displayname in create and update methods.
- Created StreamerCreateForm and StreamersTable components for better organization.
2024-03-22 02:35:44 +01:00
Rico van Zelst
236ff32acc feat: Update AWS SDK and Laravel Package Tools versions
- Updated AWS SDK version to 3.301.4
- Updated Laravel Package Tools version to 1.16.4
2024-03-21 01:10:43 +01:00
Rico van Zelst
effd0203a3 feat: Add Streamer and StreamerPanel controllers, Streamer model
- Added StreamerController with index and show methods
- Added StreamerPanelController with index, create, store, edit, update, and destroy methods
- Created Streamer model with fillable attributes and platform-specific URL generation logic
- Implemented migration for creating the streamers table
2024-03-21 00:47:41 +01:00
StyleCI Bot
8fa00e2ef6 Apply fixes from StyleCI 2024-03-18 17:48:57 +00:00
Shift
c3c694de26 Mark base controller as abstract 2024-03-18 16:13:36 +00:00
Rico
443c899eab Apply fixes from StyleCI 2024-03-03 16:44:46 +00:00
Rico van Zelst
37bc210923 feat(controller): add HTMLSitemapController for generating HTML sitemap
- Added HTMLSitemapController to generate sitemap with cached data
- Updated footer.blade.php and index.blade.php for sitemap links
2024-03-03 17:23:22 +01:00
Rico van Zelst
8bdcd5b086 feat(contact): Add hCaptcha integration, Discord alert for contact
- Added hCaptcha validation to the contact form.
- Integrated hCaptcha configuration in the application.
- Implemented Discord alerts for new contact submissions with detailed content.
2024-02-24 21:52:00 +01:00
Rico van Zelst
1ed7856985 feat(contact): add ContactSubmissionController and contact form view
- Added ContactSubmissionController with index and store methods for handling contact submissions.
- Created a new Blade view for the contact form with fields for name, email, discord, category, subject, and message.
- Updated routes to include endpoints for displaying the contact form and submitting it.
2024-02-24 20:30:23 +01:00
Rico van Zelst
a48ea6e42f feat(home): update upcoming and latest skins display
- Updated the query in HomeController@index to filter upcoming skins based on release date.
- Updated the query in HomeController@index to filter latest skins based on release date.
- Added links to champion details page for each champion in list_all.blade.php.
- Added links to skin details page for each skin in recent_skins.blade.php and upcoming_skins.blade.php.
2024-02-16 01:41:06 +01:00
Rico
00b096892e Apply fixes from StyleCI 2024-01-15 20:59:11 +00:00
Rico van Zelst
5c6f13a072 feat(cache): update cache expiration times
- Update the cache expiration time for 'championsListAllCache' and 'championsRolesCache' to 8 hours.
- Update the cache expiration time for 'championShowCache{slug}' to 3 days.
- Update the cache expiration time for 'championSplashColorCache{slug}' to 6 months.
- Update the cache expiration time for 'championSkinShowCache{slug}' to 48 hours.
- Update the cache expiration time for 'championSkinSplashColorCache{slug}' to 120 hours.
2024-01-14 00:13:37 +01:00
Rico
b2dedb56c9 Apply fixes from StyleCI 2024-01-05 23:14:56 +00:00
Rico van Zelst
85e3c4ff2e feat(controllers): optimize caching and view data passing
- Refactored the ChampionController, ChampionSkinController, HomeController, SaleController, SummonerEmoteController, and SummonerIconController to use arrow functions for cache callbacks.
- Updated the view data passing in the ChampionController, ChampionSkinController, HomeController, PostsController, SaleController, SummonerEmoteController, and SummonerIconController to use associative arrays instead of compact().
- Removed unused imports from web.php.
2024-01-06 00:15:19 +01:00
Rico van Zelst
3de5f42860 feat: blog post show page 2023-12-12 14:32:44 +01:00
Rico van Zelst
5fe3fcac61 feat: add working posts index
This commit adds pagination functionality to the posts index page. The code changes include:
- Sorting the posts by descending date
- Paginating the posts with 6 items per page
- Creating a new component called "Listposts" for rendering the paginated posts
- Adding a new view file for the "Listposts" component
- Updating the blade template of the posts index page to use the "Listposts" component and pass in the paginated posts

The purpose of these changes is to improve user experience by displaying a limited number of posts per page and providing navigation links for easier browsing.
2023-12-12 12:32:42 +01:00
Rico van Zelst
25c3675c2b feat: Add PostsController and configure routes
- Added a new file `PostsController.php` in the `app/Http/Controllers` directory.
- Implemented the `index()` method to retrieve all posts using the Sheets facade.
- Implemented the `show()` method to display a single post using route model binding with Sheets.
- Updated the `RouteServiceProvider.php` file to bind the 'post' route parameter to retrieve posts from the Sheets collection.
- Created a new configuration file `sheets.php` in the `config` directory, defining default settings for collections and their corresponding sheet classes, path parsers, content parsers, and extensions.
- Added a new markdown file `hello-world.md` in the `content/posts` directory as an example post.
- Created two new blade view files: `index.blade.php` and `show.blade.php`, under the `resources/views/posts` directory, for displaying lists of posts and individual post details respectively.
- Modified the existing web routes (`web.php`) to include routes for accessing posts.

The changes enable users to view all posts on `/posts`, as well as access individual post details at `/post/{post}`.
2023-12-12 10:23:15 +01:00
Rico
51e95ecf84 About (#46)
* feat(controllers): add AboutController and FAQController

- Added new controllers for the About page and FAQ page.
- The AboutController handles requests related to the About page.
- The FAQController handles requests related to the FAQ page.

feat(components): add Dropdown component

- Created a new Dropdown component for displaying questions and answers in the FAQ page.
- The Dropdown component takes in a question and answer as props.

feat(views): add blade templates for Heimerdinger and League of Legends FAQs

- Added blade templates for displaying frequently asked questions about Heimerdinger and League of Legends.
- The Heimerdinger template includes specific questions and answers about Heimerdinger, along with relevant meta tags for SEO purposes.
- The League of Legends template includes general questions and answers about League of Legends, along with relevant meta tags.

* feat(faq): add Heimerdinger's backstory and naming

- Added a new FAQ dropdown for Heimerdinger's backstory, providing information about his origins, role in Piltover, and association with Ekko.
- Included another FAQ dropdown that explains the inspiration behind Heimerdinger's name, combining J. Robert Oppenheimer and Erwin Schrödinger.
- These additions enhance the user's understanding of Heimerdinger's character and background.

* Apply fixes from StyleCI

* refactor(components): simplify constructor syntax

- Refactored the constructor syntax in the `Dropdown` component to use a simplified format.
- Removed unnecessary line breaks and indentation for improved readability.

* refactor(faq): update Heimerdinger page layout

- Change the heading tag from `<h2>` to `<h1>` for better semantic structure.
- Update the paragraph tag from `<p>` to `<h2>` for consistency with other sections.
- Improve the readability and maintainability of the code.

* feat(controllers): add AboutController and FAQController

- Added new controllers for the About page and FAQ page.
- The AboutController handles requests related to the About page.
- The FAQController handles requests related to the FAQ page.

feat(components): add Dropdown component

- Created a new Dropdown component for displaying questions and answers in the FAQ page.
- The Dropdown component takes in a question and answer as props.

feat(views): add blade templates for Heimerdinger and League of Legends FAQs

- Added blade templates for displaying frequently asked questions about Heimerdinger and League of Legends.
- The Heimerdinger template includes specific questions and answers about Heimerdinger, along with relevant meta tags for SEO purposes.
- The League of Legends template includes general questions and answers about League of Legends, along with relevant meta tags.

* feat(faq): add Heimerdinger's backstory and naming

- Added a new FAQ dropdown for Heimerdinger's backstory, providing information about his origins, role in Piltover, and association with Ekko.
- Included another FAQ dropdown that explains the inspiration behind Heimerdinger's name, combining J. Robert Oppenheimer and Erwin Schrödinger.
- These additions enhance the user's understanding of Heimerdinger's character and background.

* Apply fixes from StyleCI

* refactor(components): simplify constructor syntax

- Refactored the constructor syntax in the `Dropdown` component to use a simplified format.
- Removed unnecessary line breaks and indentation for improved readability.

* refactor(faq): update Heimerdinger page layout

- Change the heading tag from `<h2>` to `<h1>` for better semantic structure.
- Update the paragraph tag from `<p>` to `<h2>` for consistency with other sections.
- Improve the readability and maintainability of the code.

* feat(about): add about page and route

- Added a new AboutController class with an index method to handle the /about route.
- Created a new blade template file, index.blade.php, for the about page.
- Added HTML markup and content for the about page.
- Updated web.php routes file to include the /about route.

* feat(about): add information about League of Legends,  Heimerdinger

- Added a section with detailed information about League of Legends, including its gameplay, competitive scene, and spin-off game modes.
- Included a section introducing Heimerdinger.lol as a fan-made website dedicated to providing information about League of Legends.
- Added a section describing the character Heimerdinger, his role in the game, and his appearance in the animated series Arcane.

* feat(navbar): update About link and fix routing issue

- Updated the href attribute of the About link in the navbar component to point to the correct route.
- Fixed a routing issue where the active class was not being applied correctly when on the About page.

---------

Co-authored-by: Rico <rico-vz@users.noreply.github.com>
2023-12-07 23:37:12 +01:00
Rico
8fa2d066c8 Apply fixes from StyleCI 2023-12-05 14:41:37 +00:00
Rico van Zelst
48c74fb4d6 feat(sales): WIP: add SaleController, Current_sales component, and view
- Added a new file `SaleController.php` in the `app/Http/Controllers` directory to handle sales-related logic.
- Created a new file `Current_sales.php` in the `app/View/Components/Sales` directory to define the `Current_sales` component.
- Added a new file `current_sales.blade.php` in the `resources/views/components/sales` directory to display the current sales.
- Modified the `web.php` routes file to include a route for accessing the sales page.

These changes introduce functionality related to displaying and managing sales data on the website.
2023-12-05 13:35:59 +01:00
Rico van Zelst
d79c0dba5f style: laravel pint 2023-11-27 20:49:41 +01:00
Rico van Zelst
3e7592fa9c feat: summoner icon show 2023-11-27 19:11:09 +01:00