Commit Graph

707 Commits

Author SHA1 Message Date
Rico van Zelst
079cca3751 refactor: Remove unused imports and dependencies
This commit removes unused imports and dependencies in the Listposts component, improving code cleanliness and reducing potential confusion.
2023-12-12 14:41:49 +01:00
Rico van Zelst
83eb1421f7 refactor: Update itemid attribute in show.blade.php
The commit updates the itemid attribute in the show.blade.php file to dynamically set it based on the current URL. This change improves the accuracy of metadata for search engine optimization.
2023-12-12 14:40:52 +01:00
Rico van Zelst
3de5f42860 feat: blog post show page 2023-12-12 14:32:44 +01:00
Rico van Zelst
87210ccac9 feat: add working posts index 2023-12-12 12:32:52 +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 van Zelst
bb25cc4aee chore: Update composer.lock
- Updated the version of "andcarpi/laravel-popper" package from 1.0.0 to 1.1.0
- Updated the version of "carbonphp/carbon-doctrine-types" package from 2.0.0 to 2.1.0
- Updated the version of "spatie/sheets" package from 1.9.0 to 1.10.0
- Added a new package "spatie/yaml-front-matter" with version 2.0.8
- Updated the version of "symfony/yaml" package from v6.3.4 to v6.4.0
- Updated the version of "mockery/mockery" package from 1.6.6 to 1.6
2023-12-12 09:39:51 +01:00
Rico van Zelst
ae545c125a feat: Add spatie/sheets package
Added the "spatie/sheets" package to the composer.json file. This package will be used for handling spreadsheets in the project.
2023-12-12 09:39:35 +01:00
Rico
b61d16cec4 Merge pull request #52 from rico-vz/dependabot/composer/laravel/sail-1.26.3
build(deps-dev): bump laravel/sail from 1.26.2 to 1.26.3
2023-12-12 08:43:56 +01:00
Rico
64f7bb5add Merge pull request #49 from rico-vz/dependabot/composer/intervention/image-3.0.1
build(deps): bump intervention/image from 2.7.2 to 3.0.1
2023-12-12 08:43:42 +01:00
Rico
715c51be50 Merge pull request #50 from rico-vz/dependabot/composer/phpunit/phpunit-10.5.2
build(deps-dev): bump phpunit/phpunit from 10.5.1 to 10.5.2
2023-12-12 08:43:23 +01:00
dependabot[bot]
237c1710c9 build(deps-dev): bump phpunit/phpunit from 10.5.1 to 10.5.2
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 10.5.1 to 10.5.2.
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/10.5.2/ChangeLog-10.5.md)
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/10.5.1...10.5.2)

---
updated-dependencies:
- dependency-name: phpunit/phpunit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 10:21:04 +00:00
dependabot[bot]
02d273b88a build(deps): bump intervention/image from 2.7.2 to 3.0.1
Bumps [intervention/image](https://github.com/Intervention/image) from 2.7.2 to 3.0.1.
- [Commits](https://github.com/Intervention/image/compare/2.7.2...3.0.1)

---
updated-dependencies:
- dependency-name: intervention/image
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 10:21:00 +00:00
Rico
10953adff6 Merge pull request #51 from rico-vz/dependabot/composer/laravel/framework-10.35.0
build(deps): bump laravel/framework from 10.34.2 to 10.35.0
2023-12-11 11:20:16 +01:00
dependabot[bot]
1c75d0e83f build(deps-dev): bump laravel/sail from 1.26.2 to 1.26.3
Bumps [laravel/sail](https://github.com/laravel/sail) from 1.26.2 to 1.26.3.
- [Release notes](https://github.com/laravel/sail/releases)
- [Changelog](https://github.com/laravel/sail/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/sail/compare/v1.26.2...v1.26.3)

---
updated-dependencies:
- dependency-name: laravel/sail
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 10:19:51 +00:00
Rico
78245543b4 Merge pull request #53 from rico-vz/dependabot/composer/laravel/pint-1.13.7
build(deps-dev): bump laravel/pint from 1.13.6 to 1.13.7
2023-12-11 11:18:26 +01:00
dependabot[bot]
cceaff300f build(deps-dev): bump laravel/pint from 1.13.6 to 1.13.7
Bumps [laravel/pint](https://github.com/laravel/pint) from 1.13.6 to 1.13.7.
- [Release notes](https://github.com/laravel/pint/releases)
- [Changelog](https://github.com/laravel/pint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/laravel/pint/compare/v1.13.6...v1.13.7)

---
updated-dependencies:
- dependency-name: laravel/pint
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 03:53:45 +00:00
dependabot[bot]
94fa6f23ff build(deps): bump laravel/framework from 10.34.2 to 10.35.0
Bumps [laravel/framework](https://github.com/laravel/framework) from 10.34.2 to 10.35.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/10.x/CHANGELOG.md)
- [Commits](https://github.com/laravel/framework/compare/v10.34.2...v10.35.0)

---
updated-dependencies:
- dependency-name: laravel/framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 03:53:26 +00:00
Rico van Zelst
7fd5f92853 fix(schedule): make seed scheduler work on prod. 2023-12-10 17:56:56 +01:00
Rico
69502a662d refactor(*): refact all pages to extend layout
refactor(*): refact all pages to extend layout
fixes #47
2023-12-08 18:19:54 +01:00
Rico van Zelst
66d71f84c0 feat(components): update heading tags in blade templates
- Updated the heading tags in the `list_all.blade.php` files for champions, emotes, icons, and skins from `<h2>` to `<h1>`.
- Also updated the heading tag in the `features.blade.php` file from `<h2>` to `<h1>`.
2023-12-08 18:18:12 +01:00
Rico van Zelst
733e9852ae refactor(faq): update about + faq
- Updated the HTML structure and removed unnecessary meta tags
- Replaced the Laravel blade syntax with standard PHP syntax
- Added appropriate section titles and descriptions for better SEO optimization
- Fixed a typo in the class name "min-h-sceen" to "min-h-screen"
- Removed redundant code related to OpenGraph and Twitter metadata
- Improved readability by using consistent indentation and spacing
2023-12-08 18:14:10 +01:00
Rico van Zelst
ba5f1f8b10 feat(assets): update assets index page layout and content
- Updated the layout of the assets index page to extend the 'layouts.app' template.
- Added a title and description for better SEO optimization.
- Reorganized the HTML structure for improved readability.
- Updated the section titles for clarity.
- Adjusted the styling of the main heading and subheading.
- Added an image and descriptive text to enhance user engagement.
- Improved the alignment and spacing of elements on the page.
- Updated the links to asset categories with improved hover effects.

This commit improves the overall user experience on the assets index page by enhancing its layout, content, and visual appeal.
2023-12-08 17:57:37 +01:00
Rico van Zelst
40fada31bd feat(views): update champions index and show views
- Updated the `index.blade.php` view to extend the `layouts.app` template and added a title, description, and content section.
- Added a new script (`lane-filter.js`) to be included in the `top_scripts` stack.
- Updated the `show.blade.php` view to extend the `layouts.app` template and added a title, description, and content section.
- Added a new script (`vert-scroll.js`) to be included in the `bottom_scripts` stack.
2023-12-08 17:46:45 +01:00
Rico van Zelst
b7b3fab027 refactor(emotes): update emotes index view
- Refactored the emotes index view to extend the 'layouts.app' blade template.
- Updated the title and description sections with dynamic content using Blade directives.
- Removed unnecessary meta tags related to favicon, OpenGraph, and Twitter.
- Added a new section for content and included the 'x-emotes.list_all' component.

This commit improves the structure and organization of the emotes index view by utilizing reusable components and dynamic content.
2023-12-08 17:41:33 +01:00
Rico van Zelst
561e53cee6 feat(icons): update index and show blade templates
- Updated the `index.blade.php` template to extend the `layouts.app` layout.
- Added a title and description section for SEO purposes in the `index.blade.php` template.
- Removed unnecessary HTML tags from the `index.blade.php` template.
- Updated the `show.blade.php` template to extend the `layouts.app` layout.
- Added a title and description section for SEO purposes in the `show.blade.php` template.
- Removed unnecessary HTML tags from the `show.blade.php` template.
2023-12-08 17:39:24 +01:00
Rico van Zelst
031883ad36 refactor(sales): update sales index view
- Refactored the sales index view to extend the 'layouts.app' blade template.
- Updated the title and description sections with appropriate content.
- Removed unnecessary meta tags related to icons, OpenGraph, and Twitter.
- Added a new section for content and included the 'x-sales.current_sales' component.

This commit improves the structure and content of the sales index page.
2023-12-08 17:34:55 +01:00
Rico van Zelst
3e9fbc05ff feat(layouts): update app.blade.php and add new sections
- Updated the meta description tag in `app.blade.php` to fix formatting.
- Added `@stack('top_scripts')` and `@stack('bottom_scripts')` sections in `app.blade.php`.
- Extended the `layouts.app` template in `skins/index.blade.php` and `skins/show.blade.php`.
- Added title and description sections in both files.
- Removed duplicate meta tags from both files.
- Added content section with appropriate components in both files.
- Added a new script file, 'vert-scroll.js', to be loaded at the bottom of the page in `skins/show.blade.php`.
2023-12-08 17:30:23 +01:00
Rico van Zelst
2294140fce refactor(views): Update home.blade.php and app.blade.php
- Refactored the home.blade.php file to extend the layouts.app.blade.php file.
- Moved the title and description sections to their respective yield sections in app.blade.php.
- Removed duplicate code from home.blade.php.

This commit improves code organization and removes duplication in the views.
2023-12-08 17:09:46 +01:00
Rico van Zelst
172c005e82 Merge branch 'main' into 47-refactor 2023-12-08 17:02:02 +01:00
Rico van Zelst
7833921632 chore(views): update livestreaming website name
The livestreaming website name "Trello" has been replaced with "Trovo" in the about/index.blade.php file. This change reflects the correct information regarding where League of Legends events are broadcasted.
2023-12-08 14:43:25 +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
37971923e0 Merge pull request #45 from rico-vz/dependabot/npm_and_yarn/vite-4.5.1
build(deps-dev): bump vite from 4.5.0 to 4.5.1
2023-12-06 22:43:49 +01:00
dependabot[bot]
4d198b89dc build(deps-dev): bump vite from 4.5.0 to 4.5.1
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v4.5.1/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v4.5.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 23:48:40 +00:00
Rico van Zelst
a659b4a855 feat(home): update features and navbar links
- Updated the link in the "features.blade.php" file to point to "/sale-rotation".
- Updated the link in the "navbar.blade.php" file to use the route "sales.index".

These changes improve navigation and ensure consistency across pages.
2023-12-05 15:46:44 +01:00
Rico
0b63d862e6 fix: styleci
Apply fixes from StyleCI
2023-12-05 15:42:30 +01:00
Rico van Zelst
39567c861c feat(sales): add discount percentage and link to champion/skin details
- Added the display of the discount percentage for each champion and skin on sale.
- Linked each champion and skin to their respective details page.
2023-12-05 15:41:40 +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
6eb9b48a84 Merge pull request #39 from rico-vz/dependabot/composer/guzzlehttp/guzzle-7.8.1
build(deps): bump guzzlehttp/guzzle from 7.8.0 to 7.8.1
2023-12-04 14:07:25 +01:00
dependabot[bot]
de48794dde build(deps): bump guzzlehttp/guzzle from 7.8.0 to 7.8.1
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.8.0 to 7.8.1.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/7.8/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.8.0...7.8.1)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 03:31:24 +00:00
Rico van Zelst
168bfb9e9c feat(vite.config): remove unnecessary build options
- Remove the `build` section from the Vite configuration file.
- The `rollupOptions` for output filenames have been removed.
2023-12-01 22:10:07 +01:00
Rico van Zelst
76d9a0c3ab style(*): update style
- Update the anonymous class syntax in the `add_admin_to_users` migration to use parentheses instead of a space before the opening brace.
- This change ensures compatibility with newer versions of PHP.
2023-12-01 21:50:26 +01:00
Rico van Zelst
2374a39c77 feat(monitoring): add pulse
- Added a new gate called `viewPulse` in the `AuthServiceProvider` class.
- The gate allows only admin users to view the Pulse feature.
2023-12-01 21:49:26 +01:00
Rico van Zelst
6c2deaa953 feat(public): add riot.txt file
This commit adds a new file called "riot.txt" to the public directory.
2023-12-01 15:22:47 +01:00
Rico
0713d481a5 *: funding 2023-11-30 23:43:50 +01:00
Rico van Zelst
d08702888f fix: meta for assets & emotes 2023-11-28 09:33:28 +01:00
Rico van Zelst
d79c0dba5f style: laravel pint 2023-11-27 20:49:41 +01:00
Rico van Zelst
0723d5aa72 fix: center icon show + add alt to img 2023-11-27 20:48:33 +01:00
Rico van Zelst
3e7592fa9c feat: summoner icon show 2023-11-27 19:11:09 +01:00