Commit Graph

20 Commits

Author SHA1 Message Date
Rico van Zelst
35b5e060ec feat: Active Search for skins 2024-06-18 14:26:43 +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
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
StyleCI Bot
fd4ce12409 Apply fixes from StyleCI 2024-03-31 18:33:35 +00: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
StyleCI Bot
8fa00e2ef6 Apply fixes from StyleCI 2024-03-18 17:48:57 +00: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
d79c0dba5f style: laravel pint 2023-11-27 20:49:41 +01:00
Rico van Zelst
7ced468ad1 feat: search through skins 2023-11-14 10:30:44 +01:00
Rico van Zelst
c542a2421b feat: skin grid info 2023-11-09 14:55:57 +01:00
Rico van Zelst
86990c6fea feat: skin rarity color 2023-11-09 14:10:01 +01:00
Rico van Zelst
2b8e6d9327 feat: skin list 2023-11-09 12:20:46 +01:00
Rico van Zelst
bb771faf25 🍺 Laravel Pint ran
- Moved the import statement for `Champion` and `ChampionSkin` models in their respective controllers to improve code organization.
- Refactored image attribute methods in the `Champion` model to use string interpolation for better readability.
- Refactored image attribute methods in the `ChampionSkin` model to use string interpolation for better readability.

This commit improves code organization and readability by refactoring import statements and using string interpolation for image attribute methods.
2023-10-27 01:23:39 +02:00
Rico van Zelst
1414391197 🎨 Champion + Skin databases 2023-10-26 20:46:09 +02:00