Commit Graph

183 Commits

Author SHA1 Message Date
HDVinnie
d2bbd9dae3 Merge pull request #725 from HDInnovations/shift-14576
(Update) Laravel Fixer
2019-05-13 11:22:44 -04:00
Morgan Wong
f7c871d57a (fix) missing SQL aggregate column
When user clicks the "size item", SQL returns error.
2019-05-13 04:05:17 +08:00
Laravel Shift
d9ddbe6159 Shift cleanup 2019-05-09 00:05:27 +00:00
Laravel Shift
4853105815 Shift to consistent, fluent response chains 2019-05-09 00:05:17 +00:00
Laravel Shift
97e88dd68b Leverage injected request object
Laravel automatically injects the current Http [request object][1] to all Controller actions and Middleware. Leveraging this object improves consistency and testability.

[1]: https://laravel.com/docs/5.7/requests#accessing-the-request
2019-05-09 00:05:13 +00:00
Laravel Shift
b0732954c4 Shift deprecated helpers
Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are [deprecated in Laravel 5.8][1] and will be removed in a future version.

[1]: https://github.com/laravel/framework/pull/26898
2019-05-09 00:05:08 +00:00
HDVinnie
907971d5ee (Fix) Torrent Tags System 🐛
- add/check torrent tags (genres) on torrent edit
- closes #695
2019-04-28 11:09:15 -04:00
Morgan Wong
c79078daaf (Fix) search result renders empty element
Resubmitted the change again.
When the $page posted back, it maybe 0. In order to use it for array index, we need to avoid negative value after deducting it by 1.
That 0 case occurs when the searching takes place at default Group View loading. On the other hand, if the searching combined with a click on Paginator, the Paginator already posts a correct $page value instead of 0.
2019-04-28 15:23:57 +08:00
HDVinnie
903c148391 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-04-24 19:39:24 +00:00
Morgan Wong
367202603a (fix)wrong page array index value passed in during Group View pagination
The index value should be -1 since arrays start from 0. Otherwise, n+1-th page will be displayed when mouse clicked n-th page.
2019-04-25 00:58:04 +08:00
Morgan Wong
f6049ce88d (fix) Incorrect function parameter passing in
The object constructor used requires total elements in the second parameter which should not have been rounded down.
https://laravel.com/api/5.0/Illuminate/Pagination/LengthAwarePaginator.html#method___construct

Otherwise, the pagination list displays with one missing page.

Such bug occurs in Group View only. Torrent Lists and Card Views are not affected.
2019-04-25 00:49:41 +08:00
HDVinnie
67339d7329 (Update) PHPDocs 🚀 2019-04-03 20:02:01 -04:00
HDVinnie
c382aa5236 (Update) Refactor Validation Error/Info/Warning/Success Handeling 🚀 2019-03-25 13:53:41 -04:00
HDVinnie
e8c9d90833 (Update) IRC Bot 🚀 2019-03-23 11:06:59 -04:00
HDVinnie
ec897bb6de Apply fixes from StyleCI
[ci skip] [skip ci]
2019-03-19 19:33:47 +00:00
HDVinnie
1e40db9cf0 (Update) Relocate TorrentTools + Bencode To Helpers 🚀
- these are better fit as helpers and not a service.
2019-03-19 13:44:19 -04:00
HDVinnie
70fb058cf0 (Update) TorrentController 🚀 2019-03-15 20:59:40 -04:00
HDVinnie
8bb397c29c (Update) Standardize Select Queries 🚀 2019-03-13 11:26:20 -04:00
HDVinnie
886903a9de Merge pull request #639 from HDInnovations/Improve-Torrent-File-Handeling
(Update) Torrent File Handling
2019-03-13 09:04:35 -04:00
HDVinnie
fe23df7927 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-03-11 16:58:00 +00:00
HDVinnie
26db81ea01 Merge branch 'master' into master 2019-03-11 12:57:17 -04:00
Rolando Guedes
0894edeb9c Fix standads 2019-03-11 15:09:00 +00:00
HDVinnie
a3c4267b81 (Fix) Similar Torrents 🐛
- now respects torrents category
2019-03-10 18:34:42 -04:00
HDVinnie
b9968aef6b (Update) Replace Usage Of redirect()->back() 🚀
- replacing usages of `redirect()->back()` in favor of defining the named route.
2019-03-08 19:53:51 -05:00
HDVinnie
e957965d82 Apply fixes from StyleCI
[ci skip] [skip ci]
2019-03-07 19:26:31 +00:00
HDVinnie
2b8b3b8ac8 (Update) Torrent Handeling 🚀 2019-03-07 14:25:13 -05:00
Rolando Guedes
af8acb9f8f (Update) If exists releases of Recommendationn, go to similar otherwise go to request/add 2019-03-06 21:26:31 +00:00
HDVinnie
5fe17b7fd5 (Update) Similar Torrents 🚀
- use TMDB ID over IMDB ID
2019-03-04 10:55:36 -05:00
HDVinnie
36d015c411 (Update) Torrent Upload Validation 🚀
- prevent duplicate uploads by making sure hash and name are unique.
2019-03-03 17:04:04 -05:00
HDVinnie
e6293b6a99 (Revert) Torrent Controller
- needs refactoring
2019-02-22 20:25:39 -05:00
HDVinnie
97f89bdd03 (Fix) Torrent Controller 🐛 2019-02-22 15:33:13 -05:00
HDVinnie
e0e1aa924b Apply fixes from StyleCI 2019-02-22 13:16:32 +00:00
HDVinnie
3c87845e54 (Update) Namespace models under App\Models 🚀 2019-02-22 08:15:41 -05:00
singularity43
1b062765d5 (Update) TorrentController
Add load for peers and history.
2019-02-21 19:48:13 -05:00
singularity43
bd71837189 (Update) TorrentController
Paginate at 5 like RequestController.
2019-02-21 13:48:46 -05:00
singularity43
7e7ad7bc9b (Update) TorrentController
Remove robot icon.
2019-02-09 14:59:57 -05:00
HDVinnie
059897426b Apply fixes from StyleCI 2019-01-26 00:21:50 +00:00
singularity43
eb4d321447 (Update) TorrentController
Bring up one unique user when searching uploader.
2019-01-25 16:23:54 -05:00
singularity43
69ea5ab4d9 (Fix) TorrentController
wrap fields in max for orderby.
2019-01-20 18:17:05 -05:00
HDVinnie
c56f18c309 Apply fixes from StyleCI 2019-01-20 22:49:54 +00:00
singularity43
a327916e97 (Fix) TorrentController
Fix previous commit logic and laravel query builder problem.

Earlier commit did not enclose the ors in their own brackets.

Earlier commit also had faulty logic.
2019-01-20 14:43:16 -05:00
singularity43
386964f90a (Fix) Bad Logic In TorrentController
Fixed.
2019-01-19 19:07:45 -05:00
HDVinnie
39ff7ef927 Apply fixes from StyleCI 2019-01-19 23:10:04 +00:00
singularity43
4d1e4d2f21 (Update) TorrentController
Handle new activity filters.
2019-01-19 17:49:22 -05:00
HDVinnie
f6f6a10cdf Apply fixes from StyleCI 2019-01-18 06:29:54 +00:00
singularity43
9799027c97 (Update) TorrentController Grouping Search
Update to optimize mysql queries/structure.

Stopped dumping full torrent table into collection.

May be optimized more.
2019-01-18 01:23:29 -05:00
HDVinnie
ee5ebfb6d2 Apply fixes from StyleCI 2019-01-18 03:43:51 +00:00
HDVinnie
ff520a6994 Merge branch 'master' into update-torrent-search-views 2019-01-17 22:41:37 -05:00
singularity43
6fe5d989d8 (Update) TorrentController
1: Add filtered() to remember users filter view setting.
2: Code fix unique imdb (map method didn't work)
3: Convert some array()'s to [ ]
4: Tag x to torrents in chunks (for load more).
2019-01-17 22:07:39 -05:00
HDVinnie
d29a5df589 Apply fixes from StyleCI 2019-01-17 22:41:33 +00:00