Commit graph

127 commits

Author SHA1 Message Date
Laravel Shift
3b2d58b77f Remove unnecessary table name property
By convention, Laravel uses the "snake case", plural name of the class as the table name.
2021-02-14 19:46:04 +00:00
Laravel Shift
3c43124446 Streamline calls to orderBy 2021-02-14 19:45:58 +00:00
Laravel Shift
2a62eaa50a Global Facades 2021-02-14 19:45:51 +00:00
Laravel Shift
f87b29d064 Shift to new helper methods
Laravel 5 added several new helper functions, including:

- `view()`
- `response()`
- `redirect()`
- `config()`
- `abort()`

Review the [helpers][1] documentation for more details.

[1]: https://laravel.com/docs/5.0/helpers
2021-02-14 19:38:28 +00:00
Laravel Shift
4a37c63876 Shift cleanup 2021-02-14 19:11:44 +00:00
Laravel Shift
635b39d109 Shift to class based factories 2021-02-14 19:11:17 +00:00
Laravel Shift
00e7dcfa3d Shift cleanup 2021-02-14 18:01:59 +00:00
Laravel Shift
392f9ffd69 Shift Cache methods to use seconds
To conform with PSR-16 Laravel 5.8 changed the cache expiration time from minutes to seconds. If you were passing an integer, Shift converted this to its integer equivalent in seconds. If you were passing a "minutes" variable, Shift converted this to the relative date time equivalent for readability.
2021-02-14 18:01:31 +00:00
Laravel Shift
dfd55352e4 Shift SoftDeletes date cast 2021-02-14 18:01:29 +00:00
Laravel Shift
263ea48c5b Adopt Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.

You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
2021-02-14 02:39:15 +00:00
Adam Lavin
a1522f3cd7
Change namespace to App 2021-02-14 02:34:58 +00:00
Alex I. Ramirez
f64400c46d
Update dev environment & add media player notifications (#139)
This changeset's key new feature is allowing web browsers to display media player notifications for Pony.fm by implementing the media session API. These notifications display Play/Pause, Previous, and Next controls that control Pony.fm's playback. This also makes Pony.fm controllable by automotive audio systems and other Bluetooth devices that expose their own (often physical) playback controls.

Other improvements in this changeset include:

- Update the automated dev environment setup to work in 2021

- Remove extraneous frontend logging

- Fix to consistently include album data with a track's data
2021-01-01 22:29:36 -08:00
Logic
0187f1268e Update copyright (#134) 2018-04-26 19:39:37 +01:00
Feld0
a0c68a9a6f Updating my copyright credits 2018-04-20 21:25:36 -07:00
Peter Deltchev
bd4b78c690
Merge pull request #124 from Lavoaster/laravel-upgrades
Upgrade to Laravel 5.5
2017-12-02 22:21:31 -08:00
Adam Lavin
081202e7e2
Merge branch 'master' into laravel-upgrades 2017-12-03 04:41:18 +00:00
Isaac
72117b000c Added a checks to buildCovers and processFile 2017-12-02 20:39:31 -08:00
Isaac
d96fde1f55 Minor changes 2017-12-02 19:06:25 -08:00
Isaac
821b5c5bdd Moved rebuilding code into Image and added error handling. 2017-11-28 13:47:37 -08:00
Isaac
e5c5dec14a Some small changes 2017-11-28 11:21:24 -08:00
Adam Lavin
d2390868dd Fix scoped queries 2017-11-28 16:44:28 +00:00
Adam Lavin
9f1f78339f Sync models, and fix issue with ide-helper. 2017-11-28 16:24:32 +00:00
Isaac
e6103bbd54 Fixed an issue with Image::clearExisting
Now no longer deletes original image regardless of paramter
2017-11-24 22:18:31 -08:00
Isaac
d8b9795ddc Created Image::clearExisting and refactored upload 2017-11-24 21:02:35 -08:00
Isaac
2f498f44d3 Removed getOriginalFiles and refactored image processing 2017-11-24 20:45:41 -08:00
Isaac
249b98311e Added getOriginalFiles() to Image 2017-11-24 20:17:44 -08:00
Isaac
ccb7361547 Thumbs now crop while cover have variable height 2017-11-24 19:00:37 -08:00
Isaac
2733071468 Changed Imagemagik parameters to stop cropping. 2017-11-23 13:13:19 -08:00
Peter Deltchev
dba9ae1b15 #58: Implemented a more stable and useful track details endpoint. 2017-10-28 16:44:08 -07:00
Peter Deltchev
df917890e3 Added genres to track pages 2017-09-22 05:10:26 -07:00
Peter Deltchev
8eaa22733b Documented the Track model's functions 2017-09-22 04:42:59 -07:00
Josef Citrine
e844054643 Merging accounts now redirects old URL 2017-09-20 22:02:39 +01:00
Peter Deltchev
dba3669d7e Fixed track collection downloads in Firefox and Safari
Firefox and Safari mistook the previous track collection download code for a
popup and blocked it, making it difficult to download transcoded-on-demand
collections in those browsers.
2017-09-16 02:27:54 -07:00
Peter Deltchev
8c7fe0ea33 #25: Enable certain email notifications by default for new users.
Also fixes a bug with storing OAuth tokens for new users!
2016-12-30 13:23:52 -08:00
Peter Deltchev
7ebab328d4 #25: Enabled email notifications for all users.
This also includes some fixes to the account merging script.
2016-12-30 12:19:10 -08:00
Peter Deltchev
1e670b673f #25: Implemented a command to ensure all users have valid refresh tokens and email addresses. 2016-12-30 08:13:10 -08:00
Peter Deltchev
f10da0019f #25: Patched up date parsing in the OAuth integration. 2016-12-30 02:59:34 -08:00
Peter Deltchev
7d18c8745f #25: Patched up access token management. 2016-12-29 11:30:55 -08:00
Peter Deltchev
0677d93e89 #25: Implemented support for Poniverse email address updates. 2016-12-29 08:46:31 -08:00
Peter Deltchev
ab9dd7a1eb #25: Rewrote authentication to use the Poniverse API PHP library. 2016-12-29 08:07:29 -08:00
Peter Deltchev
b7088ccfb7 #25: Built out email unsubscription UI and further tweaked the email template. 2016-12-28 07:07:28 -08:00
Peter Deltchev
b6b3f036cc #25: Corrected "new follower" notifications to point to the follower's profile. 2016-12-28 07:05:24 -08:00
Peter Deltchev
c627e5f216 #25: New Follower notifications now show the follower's avatar. 2016-12-26 19:45:31 -08:00
Peter Deltchev
2dedaf6638 #25: Upgraded email templates to use Foundation for Emails.
They're now 200% prettier. <3
2016-12-26 18:35:18 -08:00
Peter Deltchev
79e77a2da0 #25: Limited notification management to admins. 2016-12-24 18:39:05 -08:00
Peter Deltchev
b401a0ae7e #25: Implemented UI for managing email subscriptions. 2016-12-24 18:11:42 -08:00
Peter Deltchev
7e4faa0454 #25: Profile comment notifications hotfix. 2016-12-23 07:31:06 -08:00
Peter Deltchev
ff5d8220ef #25: Implemented all basic notification types.
- blocks off the unfinished URL endpoints for email notifications
2016-12-23 06:44:16 -08:00
Peter Deltchev
78b22cdfd0 #25: Added email templates for all currently implemented notification types. 2016-12-23 06:33:45 -08:00
Peter Deltchev
5822408655 #25: New tracks have working email notifications now! 2016-12-23 06:33:33 -08:00