Commit Graph

269 Commits

Author SHA1 Message Date
HDVinnie
2529f646ee Merge pull request #4250 from Roardom/torrent-bool-refundable 2024-10-20 09:55:01 -04:00
Roardom
e740769299 fix: use bool for torrent/group refundable instead of int 2024-10-20 10:41:30 +00:00
Roardom
e75de5d546 update: allow editors to use sql searching 2024-10-19 18:43:09 +00:00
HDVinnie
c63c27924a fix: QuickSearch Controller
- allow searching by TMDB and IMDB ids
2024-10-18 08:30:04 -04:00
HDVinnie
c9dc4d6875 Merge pull request #4209 from HDInnovations/AIO-Quickseach
(Refactor) AIO Quicksearch
2024-10-16 08:49:45 -04:00
HDVinnie
9c2bb17aa1 update: QuickSearch Controller
- refactor logic to simpler approach
2024-10-15 22:48:55 -04:00
HDVinnie
92662ff77e update: QuickSearchController
- use meilisearch php client directly and not scout.
- use MultiSearchFederation
- ability to search by meta ids
2024-10-15 20:38:52 -04:00
Roardom
85eb7c366d fix: provide null for next page when no more results 2024-10-10 08:00:14 +00:00
Roardom
3e5f475a56 fix: broken api compatbility when no torrents found
There was always a null check here to return 404 when no torrents are found. But this null check was always comparing against a paginator instance... which would never be true. So when I changed it to an isEmpty when I changed the query from a database query to a meilisearch query, and thought that was the correct thing to do to make sure a 404 is still returned, that was incorrect, because a 404 was never returned in the first place. An empty array is proper here.
2024-10-08 11:33:14 +00:00
HDVinnie
ee8889d0d9 refactor: quicksearch
- refactored from livewire to alpinejs
- this is a crudish draft but is fullly functional
- script should be moved to own alpine component in js dir
- person command and filter is simply a test and works
- fixes long time safari issue when click result just closes search and doesnt direct to URL by following:

@click.prevent Directive: Added @click.prevent="navigateTo(result.url)" to the anchor tag to handle the click event and navigate to the URL.
navigateTo Method: Added a navigateTo method in the quickSearch function to change the window location to the clicked URL.
Event Listener: Updated the init method to add a click event listener that stops propagation and navigates to the URL.
2024-10-07 21:44:04 -04:00
HDVinnie
64107b3776 Merge pull request #4164 from Roardom/revert-api-torrent-resources
(Update) Don't query database in filter api take 2
2024-10-02 18:00:25 -04:00
HDVinnie
f86f3239ea Merge pull request #4185 from Roardom/destroy-deleted-message 2024-09-29 07:09:51 -04:00
Roardom
ad48d9bfb8 fix: check message existence before deletion 2024-09-29 05:32:20 +00:00
HDVinnie
ede8c563a3 fix: condition check 2024-09-22 12:43:09 -04:00
Roardom
d9f834d949 fix: fix backwards compatibility of api datetime format
The original format included microseconds as well.
2024-09-22 10:00:12 +00:00
Roardom
f8b31e2cdd fix: auth caching api between users
Don't cache rsskeys of users and provide the responses to other users.
2024-09-22 10:00:12 +00:00
Roardom
b313751581 Revert "revert: #4131"
This reverts commit 1bd9fbab12.
2024-09-22 10:00:12 +00:00
HDVinnie
1bd9fbab12 revert: #4131 2024-09-05 08:23:28 -04:00
HDVinnie
70c0a3e2ad Merge pull request #4143 from Roardom/fix-genre-array-string
(Fix) Genres array should be string
2024-09-04 22:37:48 -04:00
Roardom
a2d0e69428 fix: genres array should be string
Ideally should be array... but then when it exists it should be array too... and it should only be changed on a major release.
2024-09-05 02:25:17 +00:00
Roardom
49d4ece261 fix: null coalesce if torrent is missing category/type/resolution
If the torrent does not have an assigned category, type, or resolution, return a null category_id, type_id, and/or resolution_id from the api.
2024-09-05 01:05:46 +00:00
HDVinnie
12f0f225d5 Merge pull request #4135 from HDInnovations/Alpine-Components
(Refactor) Alpine components
2024-09-03 21:38:01 -04:00
HDVinnie
c51a937369 PHP Style Change (Laravel Pint CI) 2024-09-04 01:29:53 +00:00
HDVinnie
489c9d53b1 cleanup: post like and dislike logic 2024-09-02 23:47:14 -04:00
HDVinnie
33b2144419 refactor: alpinejs components
- this pr cleans up the app.js file and pulls all alpine logic into there own component js files making it much more organized and modular.
- this pr also converts the livewire post like and dislike buttons to alpinejs. this was done due to nesting components in livewire being bugged.
2024-09-02 22:38:18 -04:00
Roardom
cbcf34f29b update: don't query database in filter api
Better database performance using raw pagination since it doesn't have to run the data through eloquent resources (bad when there's thousands of TorrentFiles) or query the database to count the count of torrents inside the database for the total item count.
2024-09-02 10:03:38 +00:00
HDVinnie
4d863b7c89 Merge branch '8.x.x' into pr/4029 2024-08-26 20:15:35 -04:00
HDVinnie
931c99c690 Merge pull request #4083 from Roardom/system-user-id
(Update) Use system user id constant in more places
2024-08-26 16:51:18 -04:00
Roardom
5a9ae37921 update: use system user id constant in more places 2024-08-26 09:28:44 +00:00
Roardom
d1465ae390 remove: unused category num_torrents column 2024-08-25 14:14:24 +00:00
HDVinnie
1087dff233 Merge branch '8.x.x' into meilisearch-3 2024-08-18 01:19:43 -04:00
Roardom
dd538f73b0 fix: use the "all" matching strategy in meilisearch
Resembles the sql search better.
2024-08-12 11:58:50 +00:00
Roardom
73da1a1eb3 add: types to chat repository
Just absolute minimal changes for now to prevent breakage as much as possible.
2024-08-10 03:15:36 +00:00
Roardom
64a60089d9 refactor: treat sprintf as native function
This breaks the pint CI currently. This is probably due to the next version of php (8.4) adding opcache optimizations to sprintf and our config requiring pre-slashing native functions.
2024-08-09 21:08:26 +00:00
Roardom
fa35e4e5c0 add: use meilisearch to search torrents 2024-08-06 02:15:25 +00:00
Roardom
2e91e1157f fix: some user group permissions
These permissions were never meant to be directly edited by staff. They should never have been added to the staff user edit page as it just caused confusion when the settings reset at the daily group change. I've now added these settings to the group directly and allow the settings on the user edit page to override the group settings. I refrained from fixing the can_download permission for now, because so many different things affect it and it will need at 3 separate permissions to control everything it does. Trying to fix it will take much more effort than what can be fixed today. Because of this, I removed the setting from the user edit page to reduce confusion from staff who don't realize it is controlled by the scheduler. Relevant issue: #1820.
2024-07-26 22:35:45 +00:00
Roardom
d8f10b40da fix: small bookmark button again again
Goodbye livewire. Livewire's diffing algorithm kept messing up this livewire component.
2024-07-22 05:02:17 +00:00
Roardom
4b3b864fa4 refactor: use DTO to modularize torrent searching 2024-07-12 14:40:27 +00:00
HDVinnie
9cbeb30ad1 revert: chat changes 2024-06-23 13:05:24 -04:00
HDVinnie
1a934c2912 fix: phpstan errors 2024-06-21 11:39:48 -04:00
HDVinnie
eddad86406 fix: phpstan errors
- this commit tackles more phpstan errors from the baseline.
- the 2024_06_19_210338_update_colum_types.php migration will have more added to it. This PR is draft until more baaseline errors are closed.
2024-06-19 21:19:02 -04:00
HDVinnie
c4cd52e23b fix: multiple bugs
- adds laravel 11 casts support to phpstan https://github.com/larastan/larastan/blob/2.x/UPGRADE.md#upgrading-to-296-from-295
- fixes multiple bugs found by phpstan
- removes dead code in torrent filter trait
- ignores three new files in phpstan.neon temp until debugged for timeouts
2024-06-19 13:43:59 -04:00
HDVinnie
2378a9f977 add: soft deletes to torrents
- this adds laravel's soft deletes functionality to torrents.
2024-06-13 20:58:19 -04:00
Roardom
7027c4a2c5 fix: use setAttribute() to set custom model propeties 2024-06-05 11:23:59 +00:00
Roardom
12903f64ac fix: strict type issues
Don't pass null into functions that don't accept null.
2024-05-23 17:40:16 +00:00
Roardom
2e57262e97 fix: strict types phpstan errors 2024-05-23 15:38:35 +00:00
Roardom
b86475a732 add: strict types to all files 2024-05-23 13:58:29 +00:00
Roardom
7a71cc7935 refactor: simplify echo/audible creation logic
Refactor the code to be more idiomatic code.
2024-05-01 08:26:09 +00:00
Roardom
d59ef3ba8d remove: unused action from chat controller 2024-05-01 05:48:59 +00:00
Roardom
837441d34e refactor: simplify chatroom get echoes/audibles exist condition 2024-05-01 05:48:59 +00:00