Merge pull request #461 from pixelfed/frontend-ui-refactor

Frontend ui refactor
This commit is contained in:
daniel 2018-09-11 22:34:40 -06:00 committed by GitHub
commit c2c9a974c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 101 additions and 100 deletions

View file

@ -43,7 +43,7 @@ class SiteController extends Controller
->whereNotIn('profile_id', $filtered) ->whereNotIn('profile_id', $filtered)
->whereHas('media') ->whereHas('media')
->whereVisibility('public') ->whereVisibility('public')
->orderBy('id', 'desc') ->orderBy('created_at', 'desc')
->withCount(['comments', 'likes', 'shares']) ->withCount(['comments', 'likes', 'shares'])
->simplePaginate(20); ->simplePaginate(20);
$type = 'personal'; $type = 'personal';

View file

@ -28,7 +28,7 @@ class TimelineController extends Controller
->pluck('filterable_id'); ->pluck('filterable_id');
$timeline = Status::whereIn('profile_id', $following) $timeline = Status::whereIn('profile_id', $following)
->whereNotIn('profile_id', $filtered) ->whereNotIn('profile_id', $filtered)
->orderBy('id', 'desc') ->orderBy('created_at', 'desc')
->withCount(['comments', 'likes']) ->withCount(['comments', 'likes'])
->simplePaginate(20); ->simplePaginate(20);
$type = 'personal'; $type = 'personal';
@ -54,7 +54,7 @@ class TimelineController extends Controller
->whereNull('reblog_of_id') ->whereNull('reblog_of_id')
->whereVisibility('public') ->whereVisibility('public')
->withCount(['comments', 'likes']) ->withCount(['comments', 'likes'])
->orderBy('id', 'desc') ->orderBy('created_at', 'desc')
->simplePaginate(20); ->simplePaginate(20);
$type = 'local'; $type = 'local';

131
composer.lock generated
View file

@ -8,16 +8,16 @@
"packages": [ "packages": [
{ {
"name": "aws/aws-sdk-php", "name": "aws/aws-sdk-php",
"version": "3.67.8", "version": "3.67.10",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/aws/aws-sdk-php.git", "url": "https://github.com/aws/aws-sdk-php.git",
"reference": "b74a9e68b44f25215093b3fd480ee6cf3657e9df" "reference": "e6571970d7f28da4c736eeeb0d01c0a5fdaf51e1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/b74a9e68b44f25215093b3fd480ee6cf3657e9df", "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/e6571970d7f28da4c736eeeb0d01c0a5fdaf51e1",
"reference": "b74a9e68b44f25215093b3fd480ee6cf3657e9df", "reference": "e6571970d7f28da4c736eeeb0d01c0a5fdaf51e1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -84,7 +84,7 @@
"s3", "s3",
"sdk" "sdk"
], ],
"time": "2018-09-07T20:09:11+00:00" "time": "2018-09-11T18:17:34+00:00"
}, },
{ {
"name": "beyondcode/laravel-self-diagnosis", "name": "beyondcode/laravel-self-diagnosis",
@ -1329,16 +1329,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v5.6.37", "version": "v5.6.38",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "975e182d42403b0efdf847c05f6bfb99144f95f5" "reference": "38d838bab9434af79e8ab274ae63f52f7ed45d6e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/975e182d42403b0efdf847c05f6bfb99144f95f5", "url": "https://api.github.com/repos/laravel/framework/zipball/38d838bab9434af79e8ab274ae63f52f7ed45d6e",
"reference": "975e182d42403b0efdf847c05f6bfb99144f95f5", "reference": "38d838bab9434af79e8ab274ae63f52f7ed45d6e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1464,20 +1464,20 @@
"framework", "framework",
"laravel" "laravel"
], ],
"time": "2018-09-02T13:51:42+00:00" "time": "2018-09-04T13:15:09+00:00"
}, },
{ {
"name": "laravel/horizon", "name": "laravel/horizon",
"version": "v1.3.1", "version": "v1.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/horizon.git", "url": "https://github.com/laravel/horizon.git",
"reference": "342c4ddf6dda7c7ed21e57566f202b96e28afb6b" "reference": "0fb52858974e08e26fc214441a90aec652bc1204"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/horizon/zipball/342c4ddf6dda7c7ed21e57566f202b96e28afb6b", "url": "https://api.github.com/repos/laravel/horizon/zipball/0fb52858974e08e26fc214441a90aec652bc1204",
"reference": "342c4ddf6dda7c7ed21e57566f202b96e28afb6b", "reference": "0fb52858974e08e26fc214441a90aec652bc1204",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1532,7 +1532,7 @@
"laravel", "laravel",
"queue" "queue"
], ],
"time": "2018-06-21T09:19:40+00:00" "time": "2018-09-07T11:08:22+00:00"
}, },
{ {
"name": "laravel/passport", "name": "laravel/passport",
@ -3175,16 +3175,16 @@
}, },
{ {
"name": "psy/psysh", "name": "psy/psysh",
"version": "v0.9.7", "version": "v0.9.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/bobthecow/psysh.git", "url": "https://github.com/bobthecow/psysh.git",
"reference": "4f5b6c090948773a8bfeea6a0f07ab7d0b24e932" "reference": "ed3c32c4304e1a678a6e0f9dc11dd2d927d89555"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/bobthecow/psysh/zipball/4f5b6c090948773a8bfeea6a0f07ab7d0b24e932", "url": "https://api.github.com/repos/bobthecow/psysh/zipball/ed3c32c4304e1a678a6e0f9dc11dd2d927d89555",
"reference": "4f5b6c090948773a8bfeea6a0f07ab7d0b24e932", "reference": "ed3c32c4304e1a678a6e0f9dc11dd2d927d89555",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3245,7 +3245,7 @@
"interactive", "interactive",
"shell" "shell"
], ],
"time": "2018-08-11T15:54:43+00:00" "time": "2018-09-05T11:40:09+00:00"
}, },
{ {
"name": "ramsey/uuid", "name": "ramsey/uuid",
@ -3381,16 +3381,16 @@
}, },
{ {
"name": "spatie/image-optimizer", "name": "spatie/image-optimizer",
"version": "1.1.0", "version": "1.1.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/spatie/image-optimizer.git", "url": "https://github.com/spatie/image-optimizer.git",
"reference": "1530d6cf72070068eecab150ffb73466c3806bdd" "reference": "0cc312a83186afc586df0cb034c4303c3d7cf629"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/spatie/image-optimizer/zipball/1530d6cf72070068eecab150ffb73466c3806bdd", "url": "https://api.github.com/repos/spatie/image-optimizer/zipball/0cc312a83186afc586df0cb034c4303c3d7cf629",
"reference": "1530d6cf72070068eecab150ffb73466c3806bdd", "reference": "0cc312a83186afc586df0cb034c4303c3d7cf629",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3426,7 +3426,7 @@
"image-optimizer", "image-optimizer",
"spatie" "spatie"
], ],
"time": "2018-06-05T07:36:17+00:00" "time": "2018-09-10T10:21:45+00:00"
}, },
{ {
"name": "spatie/laravel-backup", "name": "spatie/laravel-backup",
@ -3662,16 +3662,16 @@
}, },
{ {
"name": "swiftmailer/swiftmailer", "name": "swiftmailer/swiftmailer",
"version": "v6.1.2", "version": "v6.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/swiftmailer/swiftmailer.git", "url": "https://github.com/swiftmailer/swiftmailer.git",
"reference": "7d760881d266d63c5e7a1155cbcf2ac656a31ca8" "reference": "8ddcb66ac10c392d3beb54829eef8ac1438595f4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/7d760881d266d63c5e7a1155cbcf2ac656a31ca8", "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/8ddcb66ac10c392d3beb54829eef8ac1438595f4",
"reference": "7d760881d266d63c5e7a1155cbcf2ac656a31ca8", "reference": "8ddcb66ac10c392d3beb54829eef8ac1438595f4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3717,7 +3717,7 @@
"mail", "mail",
"mailer" "mailer"
], ],
"time": "2018-07-13T07:04:35+00:00" "time": "2018-09-11T07:12:52+00:00"
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
@ -4762,26 +4762,26 @@
}, },
{ {
"name": "tightenco/collect", "name": "tightenco/collect",
"version": "v5.6.33", "version": "v5.7.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/tightenco/collect.git", "url": "https://github.com/tightenco/collect.git",
"reference": "d7381736dca44ac17d0805a25191b094e5a22446" "reference": "87c1e7eb0a2252748fa2fc1824e97f2fc892788f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/tightenco/collect/zipball/d7381736dca44ac17d0805a25191b094e5a22446", "url": "https://api.github.com/repos/tightenco/collect/zipball/87c1e7eb0a2252748fa2fc1824e97f2fc892788f",
"reference": "d7381736dca44ac17d0805a25191b094e5a22446", "reference": "87c1e7eb0a2252748fa2fc1824e97f2fc892788f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.1.3", "php": "^7.1.3",
"symfony/var-dumper": ">=3.1.10" "symfony/var-dumper": "^4.1"
}, },
"require-dev": { "require-dev": {
"mockery/mockery": "~1.0", "mockery/mockery": "^1.0",
"nesbot/carbon": "~1.20", "nesbot/carbon": "^1.26.3",
"phpunit/phpunit": "~7.0" "phpunit/phpunit": "^7.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@ -4808,7 +4808,7 @@
"collection", "collection",
"laravel" "laravel"
], ],
"time": "2018-08-09T16:56:26+00:00" "time": "2018-09-06T15:55:11+00:00"
}, },
{ {
"name": "tijsverkoyen/css-to-inline-styles", "name": "tijsverkoyen/css-to-inline-styles",
@ -4909,16 +4909,16 @@
}, },
{ {
"name": "zendframework/zend-diactoros", "name": "zendframework/zend-diactoros",
"version": "1.8.5", "version": "1.8.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/zendframework/zend-diactoros.git", "url": "https://github.com/zendframework/zend-diactoros.git",
"reference": "3e4edb822c942f37ade0d09579cfbab11e2fee87" "reference": "20da13beba0dde8fb648be3cc19765732790f46e"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/3e4edb822c942f37ade0d09579cfbab11e2fee87", "url": "https://api.github.com/repos/zendframework/zend-diactoros/zipball/20da13beba0dde8fb648be3cc19765732790f46e",
"reference": "3e4edb822c942f37ade0d09579cfbab11e2fee87", "reference": "20da13beba0dde8fb648be3cc19765732790f46e",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4931,6 +4931,7 @@
"require-dev": { "require-dev": {
"ext-dom": "*", "ext-dom": "*",
"ext-libxml": "*", "ext-libxml": "*",
"php-http/psr7-integration-tests": "dev-master",
"phpunit/phpunit": "^5.7.16 || ^6.0.8 || ^7.2.7", "phpunit/phpunit": "^5.7.16 || ^6.0.8 || ^7.2.7",
"zendframework/zend-coding-standard": "~1.0" "zendframework/zend-coding-standard": "~1.0"
}, },
@ -4968,35 +4969,35 @@
"psr", "psr",
"psr-7" "psr-7"
], ],
"time": "2018-08-10T14:16:32+00:00" "time": "2018-09-05T19:29:37+00:00"
} }
], ],
"packages-dev": [ "packages-dev": [
{ {
"name": "barryvdh/laravel-debugbar", "name": "barryvdh/laravel-debugbar",
"version": "v3.1.5", "version": "v3.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/barryvdh/laravel-debugbar.git", "url": "https://github.com/barryvdh/laravel-debugbar.git",
"reference": "d3cdca2ad6cc6e67735b4a63e7551c690a497f5f" "reference": "5b68f3972083a7eeec0d6f161962fcda71a127c0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/d3cdca2ad6cc6e67735b4a63e7551c690a497f5f", "url": "https://api.github.com/repos/barryvdh/laravel-debugbar/zipball/5b68f3972083a7eeec0d6f161962fcda71a127c0",
"reference": "d3cdca2ad6cc6e67735b4a63e7551c690a497f5f", "reference": "5b68f3972083a7eeec0d6f161962fcda71a127c0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"illuminate/routing": "5.5.x|5.6.x", "illuminate/routing": "5.5.x|5.6.x|5.7.x",
"illuminate/session": "5.5.x|5.6.x", "illuminate/session": "5.5.x|5.6.x|5.7.x",
"illuminate/support": "5.5.x|5.6.x", "illuminate/support": "5.5.x|5.6.x|5.7.x",
"maximebf/debugbar": "~1.15.0", "maximebf/debugbar": "~1.15.0",
"php": ">=7.0", "php": ">=7.0",
"symfony/debug": "^3|^4", "symfony/debug": "^3|^4",
"symfony/finder": "^3|^4" "symfony/finder": "^3|^4"
}, },
"require-dev": { "require-dev": {
"illuminate/framework": "5.5.x" "laravel/framework": "5.5.x"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@ -5038,7 +5039,7 @@
"profiler", "profiler",
"webprofiler" "webprofiler"
], ],
"time": "2018-05-03T18:27:04+00:00" "time": "2018-08-22T11:06:19+00:00"
}, },
{ {
"name": "beyondcode/laravel-er-diagram-generator", "name": "beyondcode/laravel-er-diagram-generator",
@ -5158,16 +5159,16 @@
}, },
{ {
"name": "filp/whoops", "name": "filp/whoops",
"version": "2.2.0", "version": "2.2.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filp/whoops.git", "url": "https://github.com/filp/whoops.git",
"reference": "181c4502d8f34db7aed7bfe88d4f87875b8e947a" "reference": "e79cd403fb77fc8963a99ecc30e80ddd885b3311"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filp/whoops/zipball/181c4502d8f34db7aed7bfe88d4f87875b8e947a", "url": "https://api.github.com/repos/filp/whoops/zipball/e79cd403fb77fc8963a99ecc30e80ddd885b3311",
"reference": "181c4502d8f34db7aed7bfe88d4f87875b8e947a", "reference": "e79cd403fb77fc8963a99ecc30e80ddd885b3311",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5186,7 +5187,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "2.1-dev" "dev-master": "2.2-dev"
} }
}, },
"autoload": { "autoload": {
@ -5215,7 +5216,7 @@
"throwable", "throwable",
"whoops" "whoops"
], ],
"time": "2018-03-03T17:56:25+00:00" "time": "2018-06-30T13:14:06+00:00"
}, },
{ {
"name": "fzaninotto/faker", "name": "fzaninotto/faker",
@ -6162,16 +6163,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "7.3.3", "version": "7.3.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "1bd5629cccfb2c0a9ef5474b4ff772349e1ec898" "reference": "7b331efabbb628c518c408fdfcaf571156775de2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1bd5629cccfb2c0a9ef5474b4ff772349e1ec898", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/7b331efabbb628c518c408fdfcaf571156775de2",
"reference": "1bd5629cccfb2c0a9ef5474b4ff772349e1ec898", "reference": "7b331efabbb628c518c408fdfcaf571156775de2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6242,7 +6243,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2018-09-01T15:49:55+00:00" "time": "2018-09-08T15:14:29+00:00"
}, },
{ {
"name": "sebastian/code-unit-reverse-lookup", "name": "sebastian/code-unit-reverse-lookup",

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« التالي', 'previous' => '« التالي',
'next' => 'العودة »', 'next' => 'العودة »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« forrige', 'previous' => '« forrige',
'next' => 'næste »', 'next' => 'naeligste »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Vorherige', 'previous' => '« Vorherige',
'next' => 'Nächste »', 'next' => 'Naumlchste »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Προηγούμενο', 'previous' => '« Προηγούμενο',
'next' => 'Επόμενο »', 'next' => 'Επόμενο »;',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Previous', 'previous' => '« Previous',
'next' => 'Next »', 'next' => 'Next »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Anterior', 'previous' => '« Anterior',
'next' => 'Siguiente »', 'next' => 'Siguiente »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Edellinen', 'previous' => '« Edellinen',
'next' => 'Seuraava »', 'next' => 'Seuraava »',
]; ];

View file

@ -11,6 +11,6 @@ return [
| you want to customize your views to better match your application. | you want to customize your views to better match your application.
| |
*/ */
'previous' => '« Précédent', 'previous' => '« Précédent',
'next' => 'Suivant »', 'next' => 'Suivant »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Anterior', 'previous' => '« Anterior',
'next' => 'Seguinte »', 'next' => 'Seguinte »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« הקודם', 'previous' => '« הקודם',
'next' => 'הבא »', 'next' => 'הבא »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« 戻る', 'previous' => '« 戻る',
'next' => '次へ »', 'next' => '次へ »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Sebelum', 'previous' => '« Sebelum',
'next' => 'Seterusnya »', 'next' => 'Seterusnya »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Predecent', 'previous' => '« Predecent',
'next' => 'Seguent »', 'next' => 'Seguent »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => 'Wstecz', 'previous' => '« Wstecz',
'next' => 'Dalej »', 'next' => 'Dalej »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Назад', 'previous' => '« Назад',
'next' => 'Вперёд »', 'next' => 'Вперёд »',
]; ];

View file

@ -13,7 +13,7 @@ return [
| |
*/ */
'previous' => '« Föregående', 'previous' => '« Föregående',
'next' => 'Nästa »', 'next' => 'Nästa »',
]; ];