Commit Graph

117 Commits

Author SHA1 Message Date
Roardom a8b6f1fdcc add: livewire top torrents panel
By only showing the newest torrents by default, we can abuse the fact that it's the only tab we can easily put an index on to make the home page load fast, and keep the 4 other tabs that take ~1 second to query lazily loaded until clicked upon.
2024-03-06 19:34:31 +00:00
Roardom d879542bee update: optimize home page queries
The index on the torrents table makes two 2-second queries negligible. The order by id desc makes one of the 2 second query negligible. The explicit select on the torrents table halves the time of the other 4 of the 5 queries.
2024-03-06 16:44:41 +00:00
Roardom a37f414145 update: normalize post tips and torrent tips 2024-02-26 09:33:32 +00:00
Roardom 6e5b3d9e3b refactor: use scope for forum authorization 2024-02-25 10:23:56 +00:00
Roardom f30dec4a0c update: remove show_forum permission
This permission is used the same as the `read_topic` permission.
2024-02-10 19:50:05 +00:00
HDVinnie 3f03214e39 PHP Style Change (Laravel Pint CI) 2023-11-07 23:54:38 +00:00
Roardom 8d3a796868 fix: torrent activity indicator logic 2023-09-06 01:11:42 +00:00
Roardom f278906444 fix: home page eager loads 2023-09-04 08:07:17 +00:00
Roardom ae0d182217 fix: online users block last active 2023-08-02 00:49:09 +00:00
HDVinnie 0546343fbd Merge pull request #3013 from Roardom/update-online-users-block
(Update) Users online block cache and appearance
2023-08-01 12:29:29 -04:00
HDVinnie cce643b7fe Merge pull request #3012 from Roardom/cache-home-posts-by-group
(Fix) Cache home page posts/topics by group
2023-08-01 12:28:51 -04:00
Roardom d6a0d647a6 update: users online block cache and appearance
Make sure the cache caches based on the group since the privacy setting for showing up here can be based on the group. Also show the data in columns to look a little nicer.
2023-08-01 10:50:44 +00:00
Roardom 75d4610df4 fix: cache home page posts/topics by group
Otherwise it bypasses forum permission settings
2023-08-01 10:21:12 +00:00
Roardom 594e4e598b fix: exclude anon torrents from leaderboards
For privacy reasons.
2023-08-01 10:08:07 +00:00
Roardom bb5255d968 Revert "update: cache personal freeleech existence instead of its value"
This reverts commit b48a9222d1.
2023-07-28 06:08:55 +00:00
Roardom b48a9222d1 update: cache personal freeleech existence instead of its value
We only cache it if it exists, so let's not query it every single time it doesn't exist.
We don't remove it from the hourly run command yet so that currently existing freeleeches can be deleted.
2023-07-25 22:48:56 +00:00
Roardom 3b46c7819b refactor: use route model binding for user routes 2023-07-07 00:28:47 +00:00
Roardom d2e36c368e refactor: reduce temporary variables passed to views 2023-06-19 23:25:40 +00:00
HDVinnie 278cf8544a PHP Style Change (Laravel Pint CI) 2023-06-18 21:42:52 +00:00
HDVinnie 46803bea3f add: activity icons 2023-06-18 17:41:50 -04:00
Roardom 1e3c459278 fix: game torrents on home page 2023-05-18 04:30:12 +00:00
Roardom 1ae9cb76a0 fix: posts query on home page 2023-04-18 08:52:55 +00:00
Roardom 397d33616e fix: game ids on home page query 2023-04-09 00:40:53 +00:00
Roardom 53c7a8597c fix; game query on home page 2023-04-08 23:47:57 +00:00
Roardom 3ae38f2509 update: home view 2023-02-24 23:39:36 -06:00
HDVinnie f4ebee885c update: lint 2023-02-03 22:23:00 -05:00
HDVinnie 472c820f99 update: UNIT3D linting
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie 85ab302611 update: announce 2023-01-23 21:31:51 -05:00
HDVinnie 4da8bc29de PSR12 Linting 2023-01-05 07:54:08 +00:00
Roardom 50e7463926 update: cache personal freeleeches 2023-01-04 23:07:23 -06:00
Roardom 2685aa1bcb update: replace featured pane keen slider 2022-09-19 22:40:21 -05:00
HDVinnie 2ca429c4ce Revert "PSR12 Linting"
This reverts commit 7e65e1d589.
2022-09-11 19:51:58 -04:00
HDVinnie 7e65e1d589 PSR12 Linting 2022-09-11 23:50:41 +00:00
HDVinnie 92fb549ec6 fix: featured torrents slider query
- use eager loading on user relation to avoid N+1
2022-06-08 23:46:56 -04:00
HDVinnie 631a7068ce fix: lazy loading [group] on model [App\Models\User] 2022-06-05 21:51:15 -04:00
HDVinnie 1f8d977c45 fix: lazy loading [resolution] on model [App\Models\Torrent] 2022-06-05 21:46:09 -04:00
StyleCI Bot e292545306 Apply fixes from StyleCI 2022-05-31 22:06:07 +00:00
Shift be2d37ed6e Use Illuminate\Support\Carbon 2022-05-31 22:05:34 +00:00
HDVinnie d3abd28925 update: type hints 2022-01-08 15:35:53 -05:00
clandestine8 a737482e79 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-09-06 23:26:02 +00:00
HDVinnie 321847e067 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-05-16 02:41:53 +00:00
HDVinnie 3407075214 refactor: better php8 usage
- Change simple property init and assign to constructor promotion
- Remove unused variable in catch()
- Change docs types to union types, where possible
2021-05-15 22:41:28 -04:00
HDVinnie aed1cb235d refactor: home controller 2020-12-30 12:10:00 -05:00
HDVinnie 0733269867 update: phpdoc blocks 2020-07-22 16:57:13 -04:00
HDVinnie a975116218 refactor: preslash simple functions
- Add pre-slash to short named functions to improve performance by almost 30%
-  @see https://stackoverflow.com/questions/55419673/php7-adding-a-slash-to-all-standard-php-functions-php-cs-fixer-rule
2020-07-22 15:09:37 -04:00
HDVinnie 41b617bb2e update: laravel 7 support 2020-07-19 17:33:50 -04:00
HDVinnie 3d3de56ccb update: queries 2020-05-26 13:22:18 -04:00
innocente205 5122fc18f5 Update HomeController.php 2020-04-30 16:08:22 +07:00
innocente205 0249b8db7a Update HomeController.php 2020-04-30 16:05:42 +07:00
innocente205 bb7fe1a334 Update HomeController.php 2020-04-30 16:03:06 +07:00