Merge pull request #335 from dansup/frontend-ui-refactor

Frontend ui refactor
This commit is contained in:
daniel 2018-07-23 19:01:45 -06:00 committed by GitHub
commit 9df9f39e01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 149 additions and 115 deletions

View file

@ -15,7 +15,7 @@ class User extends Authenticatable
* *
* @var array * @var array
*/ */
protected $dates = ['deleted_at']; protected $dates = ['deleted_at', 'email_verified_at'];
/** /**
* The attributes that are mass assignable. * The attributes that are mass assignable.
@ -44,4 +44,9 @@ class User extends Authenticatable
{ {
return url(config('app.url') . '/' . $this->username); return url(config('app.url') . '/' . $this->username);
} }
public function settings()
{
return $this->hasOne(UserSetting::class);
}
} }

View file

@ -6,7 +6,6 @@
"type": "project", "type": "project",
"require": { "require": {
"php": "^7.1.3", "php": "^7.1.3",
"99designs/http-signatures-guzzlehttp": "^2.0",
"beyondcode/laravel-self-diagnosis": "^0.4.0", "beyondcode/laravel-self-diagnosis": "^0.4.0",
"bitverse/identicon": "^1.1", "bitverse/identicon": "^1.1",
"doctrine/dbal": "^2.7", "doctrine/dbal": "^2.7",
@ -23,6 +22,7 @@
"pixelfed/dotenv-editor": "^2.0", "pixelfed/dotenv-editor": "^2.0",
"pixelfed/fractal": "^0.18.0", "pixelfed/fractal": "^0.18.0",
"pixelfed/google2fa-laravel": "^2.0", "pixelfed/google2fa-laravel": "^2.0",
"pixelfed/http-signatures-guzzlehttp": "^4.0",
"predis/predis": "^1.1", "predis/predis": "^1.1",
"spatie/laravel-backup": "^5.0.0", "spatie/laravel-backup": "^5.0.0",
"spatie/laravel-image-optimizer": "^1.1", "spatie/laravel-image-optimizer": "^1.1",

220
composer.lock generated
View file

@ -4,117 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "00d8fe04c29dc3eb62ed466b4ef241da", "content-hash": "69060b27fb92fe5440aae30a3e4928ac",
"packages": [ "packages": [
{
"name": "99designs/http-signatures",
"version": "4.0.0",
"source": {
"type": "git",
"url": "https://github.com/99designs/http-signatures-php.git",
"reference": "acb9d2e4f4661de9445fa5930b49a259bfd6175b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/99designs/http-signatures-php/zipball/acb9d2e4f4661de9445fa5930b49a259bfd6175b",
"reference": "acb9d2e4f4661de9445fa5930b49a259bfd6175b",
"shasum": ""
},
"require": {
"paragonie/random_compat": "^1.0|^2.0",
"php": ">=5.5",
"psr/http-message": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^1.11",
"guzzlehttp/psr7": "^1.2",
"phpunit/phpunit": "~4.8",
"symfony/http-foundation": "~2.8|~3.0",
"symfony/psr-http-message-bridge": "^1.0",
"zendframework/zend-diactoros": "^1.1"
},
"type": "library",
"autoload": {
"psr-4": {
"HttpSignatures\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Paul Annesley",
"email": "paul@99designs.com"
}
],
"description": "Sign and verify HTTP messages",
"keywords": [
"hmac",
"http",
"https",
"signature",
"signed",
"signing"
],
"time": "2017-05-04T01:36:17+00:00"
},
{
"name": "99designs/http-signatures-guzzlehttp",
"version": "2.0.1",
"source": {
"type": "git",
"url": "https://github.com/99designs/http-signatures-guzzlehttp.git",
"reference": "920ddd3cfbfae4c11a0f7c3b44699c01ae8cb203"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/99designs/http-signatures-guzzlehttp/zipball/920ddd3cfbfae4c11a0f7c3b44699c01ae8cb203",
"reference": "920ddd3cfbfae4c11a0f7c3b44699c01ae8cb203",
"shasum": ""
},
"require": {
"99designs/http-signatures": ">=3.0.0 <5.0.0",
"guzzlehttp/guzzle": ">=6.0 <7.0.0",
"php": ">=5.5.0"
},
"require-dev": {
"phpunit/phpunit": "~4.1"
},
"type": "library",
"autoload": {
"psr-4": {
"": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Adrian Palmer",
"email": "adrian.palmer@99designs.com"
},
{
"name": "Ruben de Vries",
"email": "ruben@rubensayshi.com"
}
],
"description": "Sign and verify HTTP messages with Guzzle 6",
"homepage": "https://github.com/99designs/http-signatures-guzzlehttp",
"keywords": [
"guzzle 6",
"hmac",
"http",
"https",
"signature",
"signed",
"signing"
],
"time": "2017-05-04T02:00:20+00:00"
},
{ {
"name": "beyondcode/laravel-self-diagnosis", "name": "beyondcode/laravel-self-diagnosis",
"version": "0.4.0", "version": "0.4.0",
@ -2811,6 +2702,115 @@
], ],
"time": "2018-07-05T03:42:05+00:00" "time": "2018-07-05T03:42:05+00:00"
}, },
{
"name": "pixelfed/http-signatures",
"version": "v5.0.0",
"source": {
"type": "git",
"url": "https://github.com/pixelfed/http-signatures-php.git",
"reference": "a3b6985c632b7add360a24a507eae4187f2b51a4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pixelfed/http-signatures-php/zipball/a3b6985c632b7add360a24a507eae4187f2b51a4",
"reference": "a3b6985c632b7add360a24a507eae4187f2b51a4",
"shasum": ""
},
"require": {
"paragonie/random_compat": "^1.0|^2.0",
"php": ">=5.5",
"psr/http-message": "^1.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^1.11",
"guzzlehttp/psr7": "^1.2",
"phpunit/phpunit": "~4.8",
"symfony/http-foundation": "~2.8|~3.0",
"symfony/psr-http-message-bridge": "^1.0",
"zendframework/zend-diactoros": "^1.1"
},
"type": "library",
"autoload": {
"psr-4": {
"HttpSignatures\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Paul Annesley",
"email": "paul@99designs.com"
}
],
"description": "Sign and verify HTTP messages",
"keywords": [
"hmac",
"http",
"https",
"signature",
"signed",
"signing"
],
"time": "2018-07-18T02:16:30+00:00"
},
{
"name": "pixelfed/http-signatures-guzzlehttp",
"version": "v4.0.0",
"source": {
"type": "git",
"url": "https://github.com/pixelfed/http-signatures-guzzlehttp.git",
"reference": "19f74eb85d7d13b7e71d6c7983a227c06342c8a4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/pixelfed/http-signatures-guzzlehttp/zipball/19f74eb85d7d13b7e71d6c7983a227c06342c8a4",
"reference": "19f74eb85d7d13b7e71d6c7983a227c06342c8a4",
"shasum": ""
},
"require": {
"guzzlehttp/guzzle": ">=6.0 <7.0.0",
"php": ">=5.5.0",
"pixelfed/http-signatures": "5.x"
},
"require-dev": {
"phpunit/phpunit": "~4.1"
},
"type": "library",
"autoload": {
"psr-4": {
"": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Adrian Palmer",
"email": "adrian.palmer@99designs.com"
},
{
"name": "Ruben de Vries",
"email": "ruben@rubensayshi.com"
}
],
"description": "Sign and verify HTTP messages with Guzzle 6",
"homepage": "https://github.com/99designs/http-signatures-guzzlehttp",
"keywords": [
"guzzle 6",
"hmac",
"http",
"https",
"signature",
"signed",
"signing"
],
"time": "2018-07-18T02:23:35+00:00"
},
{ {
"name": "predis/predis", "name": "predis/predis",
"version": "v1.1.1", "version": "v1.1.1",

View file

@ -151,6 +151,7 @@ return [
* Package Service Providers... * Package Service Providers...
*/ */
Greggilbert\Recaptcha\RecaptchaServiceProvider::class, Greggilbert\Recaptcha\RecaptchaServiceProvider::class,
Jackiedo\DotenvEditor\DotenvEditorServiceProvider::class,
/* /*
* Application Service Providers... * Application Service Providers...
@ -211,6 +212,7 @@ return [
'View' => Illuminate\Support\Facades\View::class, 'View' => Illuminate\Support\Facades\View::class,
'Recaptcha' => Greggilbert\Recaptcha\Facades\Recaptcha::class, 'Recaptcha' => Greggilbert\Recaptcha\Facades\Recaptcha::class,
'DotenvEditor' => Jackiedo\DotenvEditor\Facades\DotenvEditor::class,
], ],
]; ];

27
config/dotenv-editor.php Normal file
View file

@ -0,0 +1,27 @@
<?php
return array(
/*
|----------------------------------------------------------------------
| Auto backup mode
|----------------------------------------------------------------------
|
| This value is used when you save your file content. If value is true,
| the original file will be backed up before save.
*/
'autoBackup' => true,
/*
|----------------------------------------------------------------------
| Backup location
|----------------------------------------------------------------------
|
| This value is used when you backup your file. This value is the sub
| path from root folder of project application.
*/
'backupPath' => base_path('storage/dotenv-editor/backups/')
);

View file

@ -23,7 +23,7 @@ return [
| This value is the version of your PixelFed instance. | This value is the version of your PixelFed instance.
| |
*/ */
'version' => '0.1.0', 'version' => '0.1.1',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -82,8 +82,8 @@ return [
| Account file size limit | Account file size limit
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| Update the max account size, the per user limit of files in kb. | Update the max account size, the per user limit of files in KB.
| This applies to local and remote users. Old remote posts may be GC. |
| |
*/ */
'max_account_size' => env('MAX_ACCOUNT_SIZE', 100000), 'max_account_size' => env('MAX_ACCOUNT_SIZE', 100000),