Commit graph

605 commits

Author SHA1 Message Date
Adam Lavin
eb02ff48c2
Fix playlist download url 2021-03-29 09:50:56 +01:00
Adam Lavin
293fd535c4
Fix model binding when using cached routes, install imagick in container 2021-03-29 02:40:59 +01:00
Adam Lavin
6b15f35508
Trust all proxies 2021-03-29 01:10:05 +01:00
Adam Lavin
ff79a638d3
Add a way of specifying the ffmpeg prefix to use
It's useful for specifying a docker command
2021-03-28 17:51:21 +01:00
Adam Lavin
16b9f33986
Yeet getide3 from our manually vendored dependencies 2021-03-27 03:52:40 +00:00
Adam Lavin
ff57ce54dd
Biggus Upgradus
- !! NEW DOCKER FILES :D !!
- getid3 is now vendored from composer! :D
- fix elasticsearch for use with newer versions
- fix some migration issues by yeeting a migration that has had its day
- fix our asset pipeline (webpack / gulp)
2021-03-27 03:51:45 +00:00
Laravel Shift
8411287d95 Shift cleanup 2021-02-14 19:46:41 +00:00
Laravel Shift
12239c16de Shift to class based routes 2021-02-14 19:46:05 +00:00
Laravel Shift
40ead10cd8 Convert deprecated $dates property to $casts 2021-02-14 19:46:05 +00:00
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
a526f2c3f8 Shift to consistent, fluent response chains 2021-02-14 19:46:03 +00:00
Laravel Shift
dce4ad2a74 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/requests#accessing-the-request
2021-02-14 19:46:02 +00:00
Laravel Shift
3c43124446 Streamline calls to orderBy 2021-02-14 19:45:58 +00:00
Laravel Shift
3f85a1ca06 Shift to helper methods
Laravel offers many helper functions, including: `view()`, `response()`, `redirect()`, `config()`, and more.

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

[1]: https://laravel.com/docs/5.7/helpers
2021-02-14 19:45:52 +00:00
Laravel Shift
2a62eaa50a Global Facades 2021-02-14 19:45:51 +00:00
Laravel Shift
b8fa6cb1f7 Modernize PHP syntax
PHP 7 adopts a short array syntax as well as prefers single quoted
string were possible.
2021-02-14 19:45:36 +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
Adam Lavin
15e01fcc8d
Updates after 8.0 shift 2021-02-14 19:34:53 +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
f2dc11ea5c Shift service providers 2021-02-14 19:11:15 +00:00
Laravel Shift
d947e5e069 Shift HTTP kernel and middleware 2021-02-14 19:11:14 +00:00
Laravel Shift
3cac627f82 Shift cleanup 2021-02-14 18:57:52 +00:00
Laravel Shift
f639c5653e Shift to Throwable 2021-02-14 18:57:24 +00:00
Laravel Shift
a6f58f867f Shift core files 2021-02-14 18:57:23 +00:00
Adam Lavin
301e6478cb
Updates after 6.0 shift 2021-02-14 18:53:00 +00:00
Laravel Shift
0c6c81bdc6 Shift cleanup 2021-02-14 18:21:58 +00:00
Laravel Shift
0c9447a817 Shift Input to Request facade
Laravel 5.2 no longer registers the `Input` facade by default. While
still available in Laravel 5, the `Input` facade is removed in
Laravel 6.
2021-02-14 18:21:31 +00:00
Laravel Shift
cd5e3e9030 Leverage HOME constant 2021-02-14 18:21:25 +00:00
Laravel Shift
ebac1ac435 Shift core files 2021-02-14 18:21:24 +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
bf34794087 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
2021-02-14 18:01:29 +00:00
Laravel Shift
62e45170c1 Shift middleware 2021-02-14 04:23:11 +00:00
Adam Lavin
76a01273f6
Updates following 5.6 shift 2021-02-14 04:17:45 +00:00
Laravel Shift
3573bed220 Shift bindings
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
2021-02-14 02:39:58 +00:00
Laravel Shift
6720c09a1c Shift middleware 2021-02-14 02:39:20 +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
Isaac
a74b5d6975 Merge branch 'master' of https://github.com/Poniverse/Pony.fm 2017-12-02 21:46:22 -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
Peter Deltchev
ae7ecea905
Merge pull request #123 from ILikePizza555/master
Changed Imagemagik parameters to stop cropping.
2017-12-02 19:58:28 -08:00
Isaac
d96fde1f55 Minor changes 2017-12-02 19:06:25 -08:00
Adam Lavin
950beec948 Fix API track validation 2017-11-29 04:27:42 +00:00