Improved consistency between API endpoint data

This commit is contained in:
Will Browning 2022-04-13 13:51:56 +01:00
parent df36f7baec
commit e8dc495215
15 changed files with 483 additions and 882 deletions

View file

@ -20,7 +20,7 @@ class ActiveAliasController extends Controller
$alias->activate(); $alias->activate();
return new AliasResource($alias); return new AliasResource($alias->load('recipients'));
} }
public function destroy($id) public function destroy($id)

View file

@ -16,7 +16,7 @@ class ActiveDomainController extends Controller
$domain->activate(); $domain->activate();
return new DomainResource($domain); return new DomainResource($domain->load(['aliases', 'defaultRecipient']));
} }
public function destroy($id) public function destroy($id)

View file

@ -16,7 +16,7 @@ class ActiveUsernameController extends Controller
$username->activate(); $username->activate();
return new UsernameResource($username); return new UsernameResource($username->load(['aliases', 'defaultRecipient']));
} }
public function destroy($id) public function destroy($id)

View file

@ -16,7 +16,7 @@ class AllowedRecipientController extends Controller
$recipient->update(['can_reply_send' => true]); $recipient->update(['can_reply_send' => true]);
return new RecipientResource($recipient); return new RecipientResource($recipient->load('aliases'));
} }
public function destroy($id) public function destroy($id)

View file

@ -16,7 +16,7 @@ class CatchAllDomainController extends Controller
$domain->enableCatchAll(); $domain->enableCatchAll();
return new DomainResource($domain); return new DomainResource($domain->load(['aliases', 'defaultRecipient']));
} }
public function destroy($id) public function destroy($id)

View file

@ -16,7 +16,7 @@ class CatchAllUsernameController extends Controller
$username->enableCatchAll(); $username->enableCatchAll();
return new UsernameResource($username); return new UsernameResource($username->load(['aliases', 'defaultRecipient']));
} }
public function destroy($id) public function destroy($id)

View file

@ -20,6 +20,6 @@ class DomainDefaultRecipientController extends Controller
$domain->save(); $domain->save();
return new DomainResource($domain); return new DomainResource($domain->load(['aliases', 'defaultRecipient']));
} }
} }

View file

@ -14,9 +14,13 @@ class EncryptedRecipientController extends Controller
$recipient = user()->recipients()->findOrFail($request->id); $recipient = user()->recipients()->findOrFail($request->id);
if (! $recipient->fingerprint) {
return response('You need to add a public key to this recipient before you can enable encryption', 422);
}
$recipient->update(['should_encrypt' => true]); $recipient->update(['should_encrypt' => true]);
return new RecipientResource($recipient); return new RecipientResource($recipient->load('aliases'));
} }
public function destroy($id) public function destroy($id)

View file

@ -30,7 +30,7 @@ class RecipientKeyController extends Controller
'fingerprint' => $info['fingerprint'] 'fingerprint' => $info['fingerprint']
]); ]);
return new RecipientResource($recipient->fresh()); return new RecipientResource($recipient->fresh()->load('aliases'));
} }
public function destroy($id) public function destroy($id)

View file

@ -20,6 +20,6 @@ class UsernameDefaultRecipientController extends Controller
$username->save(); $username->save();
return new UsernameResource($username); return new UsernameResource($username->load(['aliases', 'defaultRecipient']));
} }
} }

294
composer.lock generated
View file

@ -621,16 +621,16 @@
}, },
{ {
"name": "doctrine/dbal", "name": "doctrine/dbal",
"version": "3.3.4", "version": "3.3.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/doctrine/dbal.git", "url": "https://github.com/doctrine/dbal.git",
"reference": "83f779beaea1893c0bece093ab2104c6d15a7f26" "reference": "719663b15983278227669c8595151586a2ff3327"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/83f779beaea1893c0bece093ab2104c6d15a7f26", "url": "https://api.github.com/repos/doctrine/dbal/zipball/719663b15983278227669c8595151586a2ff3327",
"reference": "83f779beaea1893c0bece093ab2104c6d15a7f26", "reference": "719663b15983278227669c8595151586a2ff3327",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -645,7 +645,7 @@
"require-dev": { "require-dev": {
"doctrine/coding-standard": "9.0.0", "doctrine/coding-standard": "9.0.0",
"jetbrains/phpstorm-stubs": "2021.1", "jetbrains/phpstorm-stubs": "2021.1",
"phpstan/phpstan": "1.4.6", "phpstan/phpstan": "1.5.3",
"phpstan/phpstan-strict-rules": "^1.1", "phpstan/phpstan-strict-rules": "^1.1",
"phpunit/phpunit": "9.5.16", "phpunit/phpunit": "9.5.16",
"psalm/plugin-phpunit": "0.16.1", "psalm/plugin-phpunit": "0.16.1",
@ -712,7 +712,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/doctrine/dbal/issues", "issues": "https://github.com/doctrine/dbal/issues",
"source": "https://github.com/doctrine/dbal/tree/3.3.4" "source": "https://github.com/doctrine/dbal/tree/3.3.5"
}, },
"funding": [ "funding": [
{ {
@ -728,7 +728,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-03-20T18:37:29+00:00" "time": "2022-04-05T09:50:18+00:00"
}, },
{ {
"name": "doctrine/deprecations", "name": "doctrine/deprecations",
@ -1349,23 +1349,23 @@
}, },
{ {
"name": "firebase/php-jwt", "name": "firebase/php-jwt",
"version": "v5.5.1", "version": "v6.1.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/firebase/php-jwt.git", "url": "https://github.com/firebase/php-jwt.git",
"reference": "83b609028194aa042ea33b5af2d41a7427de80e6" "reference": "fbb2967a3a68b07e37678c00c0cf51165051495f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/83b609028194aa042ea33b5af2d41a7427de80e6", "url": "https://api.github.com/repos/firebase/php-jwt/zipball/fbb2967a3a68b07e37678c00c0cf51165051495f",
"reference": "83b609028194aa042ea33b5af2d41a7427de80e6", "reference": "fbb2967a3a68b07e37678c00c0cf51165051495f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.0" "php": "^7.1||^8.0"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": ">=4.8 <=9" "phpunit/phpunit": "^7.5||9.5"
}, },
"suggest": { "suggest": {
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present" "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
@ -1400,9 +1400,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/firebase/php-jwt/issues", "issues": "https://github.com/firebase/php-jwt/issues",
"source": "https://github.com/firebase/php-jwt/tree/v5.5.1" "source": "https://github.com/firebase/php-jwt/tree/v6.1.0"
}, },
"time": "2021-11-08T20:18:51+00:00" "time": "2022-03-23T18:26:04+00:00"
}, },
{ {
"name": "fruitcake/laravel-cors", "name": "fruitcake/laravel-cors",
@ -1954,16 +1954,16 @@
}, },
{ {
"name": "laravel/framework", "name": "laravel/framework",
"version": "v8.83.6", "version": "v8.83.8",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/framework.git", "url": "https://github.com/laravel/framework.git",
"reference": "dffcec0cb686eafaa3b8f33db11da2cd9d69af1c" "reference": "cf430301ad17656b3d918995bcdd0454c3c119b9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/dffcec0cb686eafaa3b8f33db11da2cd9d69af1c", "url": "https://api.github.com/repos/laravel/framework/zipball/cf430301ad17656b3d918995bcdd0454c3c119b9",
"reference": "dffcec0cb686eafaa3b8f33db11da2cd9d69af1c", "reference": "cf430301ad17656b3d918995bcdd0454c3c119b9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2123,25 +2123,25 @@
"issues": "https://github.com/laravel/framework/issues", "issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework" "source": "https://github.com/laravel/framework"
}, },
"time": "2022-03-29T14:41:02+00:00" "time": "2022-04-12T13:49:56+00:00"
}, },
{ {
"name": "laravel/passport", "name": "laravel/passport",
"version": "v10.3.3", "version": "v10.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/passport.git", "url": "https://github.com/laravel/passport.git",
"reference": "1039d8b4aa71c45dbea2f140b131cae8802237e7" "reference": "5bb6637cb5bf397381be4542719ea3694c808dcd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/passport/zipball/1039d8b4aa71c45dbea2f140b131cae8802237e7", "url": "https://api.github.com/repos/laravel/passport/zipball/5bb6637cb5bf397381be4542719ea3694c808dcd",
"reference": "1039d8b4aa71c45dbea2f140b131cae8802237e7", "reference": "5bb6637cb5bf397381be4542719ea3694c808dcd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"firebase/php-jwt": "^5.0", "firebase/php-jwt": "^6.0",
"illuminate/auth": "^8.37|^9.0", "illuminate/auth": "^8.37|^9.0",
"illuminate/console": "^8.37|^9.0", "illuminate/console": "^8.37|^9.0",
"illuminate/container": "^8.37|^9.0", "illuminate/container": "^8.37|^9.0",
@ -2200,7 +2200,7 @@
"issues": "https://github.com/laravel/passport/issues", "issues": "https://github.com/laravel/passport/issues",
"source": "https://github.com/laravel/passport" "source": "https://github.com/laravel/passport"
}, },
"time": "2022-02-23T15:04:04+00:00" "time": "2022-03-30T14:42:50+00:00"
}, },
{ {
"name": "laravel/serializable-closure", "name": "laravel/serializable-closure",
@ -2526,16 +2526,16 @@
}, },
{ {
"name": "league/commonmark", "name": "league/commonmark",
"version": "2.2.3", "version": "2.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/commonmark.git", "url": "https://github.com/thephpleague/commonmark.git",
"reference": "47b015bc4e50fd4438c1ffef6139a1fb65d2ab71" "reference": "32a49eb2b38fe5e5c417ab748a45d0beaab97955"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/commonmark/zipball/47b015bc4e50fd4438c1ffef6139a1fb65d2ab71", "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/32a49eb2b38fe5e5c417ab748a45d0beaab97955",
"reference": "47b015bc4e50fd4438c1ffef6139a1fb65d2ab71", "reference": "32a49eb2b38fe5e5c417ab748a45d0beaab97955",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2544,17 +2544,19 @@
"php": "^7.4 || ^8.0", "php": "^7.4 || ^8.0",
"psr/event-dispatcher": "^1.0", "psr/event-dispatcher": "^1.0",
"symfony/deprecation-contracts": "^2.1 || ^3.0", "symfony/deprecation-contracts": "^2.1 || ^3.0",
"symfony/polyfill-php80": "^1.15" "symfony/polyfill-php80": "^1.16"
}, },
"require-dev": { "require-dev": {
"cebe/markdown": "^1.0", "cebe/markdown": "^1.0",
"commonmark/cmark": "0.30.0", "commonmark/cmark": "0.30.0",
"commonmark/commonmark.js": "0.30.0", "commonmark/commonmark.js": "0.30.0",
"composer/package-versions-deprecated": "^1.8", "composer/package-versions-deprecated": "^1.8",
"embed/embed": "^4.4",
"erusev/parsedown": "^1.0", "erusev/parsedown": "^1.0",
"ext-json": "*", "ext-json": "*",
"github/gfm": "0.29.0", "github/gfm": "0.29.0",
"michelf/php-markdown": "^1.4", "michelf/php-markdown": "^1.4",
"nyholm/psr7": "^1.5",
"phpstan/phpstan": "^0.12.88 || ^1.0.0", "phpstan/phpstan": "^0.12.88 || ^1.0.0",
"phpunit/phpunit": "^9.5.5", "phpunit/phpunit": "^9.5.5",
"scrutinizer/ocular": "^1.8.1", "scrutinizer/ocular": "^1.8.1",
@ -2569,7 +2571,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "2.3-dev" "dev-main": "2.4-dev"
} }
}, },
"autoload": { "autoload": {
@ -2626,7 +2628,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-02-26T21:24:45+00:00" "time": "2022-04-07T22:37:05+00:00"
}, },
{ {
"name": "league/config", "name": "league/config",
@ -2860,16 +2862,16 @@
}, },
{ {
"name": "league/mime-type-detection", "name": "league/mime-type-detection",
"version": "1.9.0", "version": "1.10.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/mime-type-detection.git", "url": "https://github.com/thephpleague/mime-type-detection.git",
"reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69" "reference": "3e4a35d756eedc67096f30240a68a3149120dae7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/aa70e813a6ad3d1558fc927863d47309b4c23e69", "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/3e4a35d756eedc67096f30240a68a3149120dae7",
"reference": "aa70e813a6ad3d1558fc927863d47309b4c23e69", "reference": "3e4a35d756eedc67096f30240a68a3149120dae7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2900,7 +2902,7 @@
"description": "Mime-type detection for Flysystem", "description": "Mime-type detection for Flysystem",
"support": { "support": {
"issues": "https://github.com/thephpleague/mime-type-detection/issues", "issues": "https://github.com/thephpleague/mime-type-detection/issues",
"source": "https://github.com/thephpleague/mime-type-detection/tree/1.9.0" "source": "https://github.com/thephpleague/mime-type-detection/tree/1.10.0"
}, },
"funding": [ "funding": [
{ {
@ -2912,20 +2914,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-11-21T11:48:40+00:00" "time": "2022-04-11T12:49:04+00:00"
}, },
{ {
"name": "league/oauth2-server", "name": "league/oauth2-server",
"version": "8.3.3", "version": "8.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/oauth2-server.git", "url": "https://github.com/thephpleague/oauth2-server.git",
"reference": "f5698a3893eda9a17bcd48636990281e7ca77b2a" "reference": "0c2f32cd766861f3add4b95c49c5fcef3427e133"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/oauth2-server/zipball/f5698a3893eda9a17bcd48636990281e7ca77b2a", "url": "https://api.github.com/repos/thephpleague/oauth2-server/zipball/0c2f32cd766861f3add4b95c49c5fcef3427e133",
"reference": "f5698a3893eda9a17bcd48636990281e7ca77b2a", "reference": "0c2f32cd766861f3add4b95c49c5fcef3427e133",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -2934,6 +2936,7 @@
"ext-openssl": "*", "ext-openssl": "*",
"lcobucci/jwt": "^3.4.6 || ^4.0.4", "lcobucci/jwt": "^3.4.6 || ^4.0.4",
"league/event": "^2.2", "league/event": "^2.2",
"league/uri": "^6.4",
"php": "^7.2 || ^8.0", "php": "^7.2 || ^8.0",
"psr/http-message": "^1.0.1" "psr/http-message": "^1.0.1"
}, },
@ -2991,7 +2994,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/thephpleague/oauth2-server/issues", "issues": "https://github.com/thephpleague/oauth2-server/issues",
"source": "https://github.com/thephpleague/oauth2-server/tree/8.3.3" "source": "https://github.com/thephpleague/oauth2-server/tree/8.3.4"
}, },
"funding": [ "funding": [
{ {
@ -2999,7 +3002,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2021-10-11T20:41:49+00:00" "time": "2022-04-07T21:33:04+00:00"
}, },
{ {
"name": "league/uri", "name": "league/uri",
@ -3499,16 +3502,16 @@
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "2.4.0", "version": "2.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "d7fd7450628561ba697b7097d86db72662f54aef" "reference": "4192345e260f1d51b365536199744b987e160edc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/d7fd7450628561ba697b7097d86db72662f54aef", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/4192345e260f1d51b365536199744b987e160edc",
"reference": "d7fd7450628561ba697b7097d86db72662f54aef", "reference": "4192345e260f1d51b365536199744b987e160edc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -3582,7 +3585,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/Seldaek/monolog/issues", "issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/2.4.0" "source": "https://github.com/Seldaek/monolog/tree/2.5.0"
}, },
"funding": [ "funding": [
{ {
@ -3594,7 +3597,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-03-14T12:44:37+00:00" "time": "2022-04-08T15:43:54+00:00"
}, },
{ {
"name": "myclabs/php-enum", "name": "myclabs/php-enum",
@ -4536,16 +4539,16 @@
}, },
{ {
"name": "phpseclib/phpseclib", "name": "phpseclib/phpseclib",
"version": "3.0.13", "version": "3.0.14",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/phpseclib/phpseclib.git", "url": "https://github.com/phpseclib/phpseclib.git",
"reference": "1443ab79364eea48665fa8c09ac67f37d1025f7e" "reference": "2f0b7af658cbea265cbb4a791d6c29a6613f98ef"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/1443ab79364eea48665fa8c09ac67f37d1025f7e", "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/2f0b7af658cbea265cbb4a791d6c29a6613f98ef",
"reference": "1443ab79364eea48665fa8c09ac67f37d1025f7e", "reference": "2f0b7af658cbea265cbb4a791d6c29a6613f98ef",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -4554,9 +4557,7 @@
"php": ">=5.6.1" "php": ">=5.6.1"
}, },
"require-dev": { "require-dev": {
"phing/phing": "~2.7", "phpunit/phpunit": "*"
"phpunit/phpunit": "^5.7|^6.0|^9.4",
"squizlabs/php_codesniffer": "~2.0"
}, },
"suggest": { "suggest": {
"ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.", "ext-gmp": "Install the GMP (GNU Multiple Precision) extension in order to speed up arbitrary precision integer arithmetic operations.",
@ -4627,7 +4628,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/phpseclib/phpseclib/issues", "issues": "https://github.com/phpseclib/phpseclib/issues",
"source": "https://github.com/phpseclib/phpseclib/tree/3.0.13" "source": "https://github.com/phpseclib/phpseclib/tree/3.0.14"
}, },
"funding": [ "funding": [
{ {
@ -4643,7 +4644,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-01-30T08:50:05+00:00" "time": "2022-04-04T05:15:45+00:00"
}, },
{ {
"name": "pragmarx/google2fa", "name": "pragmarx/google2fa",
@ -5898,16 +5899,16 @@
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v5.4.5", "version": "v5.4.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
"reference": "d8111acc99876953f52fe16d4c50eb60940d49ad" "reference": "900275254f0a1a2afff1ab0e11abd5587a10e1d6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/d8111acc99876953f52fe16d4c50eb60940d49ad", "url": "https://api.github.com/repos/symfony/console/zipball/900275254f0a1a2afff1ab0e11abd5587a10e1d6",
"reference": "d8111acc99876953f52fe16d4c50eb60940d49ad", "reference": "900275254f0a1a2afff1ab0e11abd5587a10e1d6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -5977,7 +5978,7 @@
"terminal" "terminal"
], ],
"support": { "support": {
"source": "https://github.com/symfony/console/tree/v5.4.5" "source": "https://github.com/symfony/console/tree/v5.4.7"
}, },
"funding": [ "funding": [
{ {
@ -5993,7 +5994,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-02-24T12:45:35+00:00" "time": "2022-03-31T17:09:19+00:00"
}, },
{ {
"name": "symfony/css-selector", "name": "symfony/css-selector",
@ -6062,16 +6063,16 @@
}, },
{ {
"name": "symfony/deprecation-contracts", "name": "symfony/deprecation-contracts",
"version": "v3.0.0", "version": "v3.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git", "url": "https://github.com/symfony/deprecation-contracts.git",
"reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced" "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/26954b3d62a6c5fd0ea8a2a00c0353a14978d05c",
"reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", "reference": "26954b3d62a6c5fd0ea8a2a00c0353a14978d05c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6109,7 +6110,7 @@
"description": "A generic function and convention to trigger deprecation notices", "description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.0" "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.1"
}, },
"funding": [ "funding": [
{ {
@ -6125,20 +6126,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-11-01T23:48:49+00:00" "time": "2022-01-02T09:55:41+00:00"
}, },
{ {
"name": "symfony/error-handler", "name": "symfony/error-handler",
"version": "v5.4.3", "version": "v5.4.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/error-handler.git", "url": "https://github.com/symfony/error-handler.git",
"reference": "c4ffc2cd919950d13c8c9ce32a70c70214c3ffc5" "reference": "060bc01856a1846e3e4385261bc9ed11a1dd7b6a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/error-handler/zipball/c4ffc2cd919950d13c8c9ce32a70c70214c3ffc5", "url": "https://api.github.com/repos/symfony/error-handler/zipball/060bc01856a1846e3e4385261bc9ed11a1dd7b6a",
"reference": "c4ffc2cd919950d13c8c9ce32a70c70214c3ffc5", "reference": "060bc01856a1846e3e4385261bc9ed11a1dd7b6a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6180,7 +6181,7 @@
"description": "Provides tools to manage errors and ease debugging PHP code", "description": "Provides tools to manage errors and ease debugging PHP code",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/error-handler/tree/v5.4.3" "source": "https://github.com/symfony/error-handler/tree/v5.4.7"
}, },
"funding": [ "funding": [
{ {
@ -6196,7 +6197,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-01-02T09:53:40+00:00" "time": "2022-03-18T16:21:29+00:00"
}, },
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
@ -6283,16 +6284,16 @@
}, },
{ {
"name": "symfony/event-dispatcher-contracts", "name": "symfony/event-dispatcher-contracts",
"version": "v3.0.0", "version": "v3.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/event-dispatcher-contracts.git", "url": "https://github.com/symfony/event-dispatcher-contracts.git",
"reference": "aa5422287b75594b90ee9cd807caf8f0df491385" "reference": "7bc61cc2db649b4637d331240c5346dcc7708051"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/aa5422287b75594b90ee9cd807caf8f0df491385", "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/7bc61cc2db649b4637d331240c5346dcc7708051",
"reference": "aa5422287b75594b90ee9cd807caf8f0df491385", "reference": "7bc61cc2db649b4637d331240c5346dcc7708051",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6342,7 +6343,7 @@
"standards" "standards"
], ],
"support": { "support": {
"source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.0" "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.0.1"
}, },
"funding": [ "funding": [
{ {
@ -6358,7 +6359,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-07-15T12:33:35+00:00" "time": "2022-01-02T09:55:41+00:00"
}, },
{ {
"name": "symfony/finder", "name": "symfony/finder",
@ -6498,16 +6499,16 @@
}, },
{ {
"name": "symfony/http-kernel", "name": "symfony/http-kernel",
"version": "v5.4.6", "version": "v5.4.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-kernel.git", "url": "https://github.com/symfony/http-kernel.git",
"reference": "d41f29ae9af1b5f40c7ebcddf09082953229411d" "reference": "509243b9b3656db966284c45dffce9316c1ecc5c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/d41f29ae9af1b5f40c7ebcddf09082953229411d", "url": "https://api.github.com/repos/symfony/http-kernel/zipball/509243b9b3656db966284c45dffce9316c1ecc5c",
"reference": "d41f29ae9af1b5f40c7ebcddf09082953229411d", "reference": "509243b9b3656db966284c45dffce9316c1ecc5c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6590,7 +6591,7 @@
"description": "Provides a structured process for converting a Request into a Response", "description": "Provides a structured process for converting a Request into a Response",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/http-kernel/tree/v5.4.6" "source": "https://github.com/symfony/http-kernel/tree/v5.4.7"
}, },
"funding": [ "funding": [
{ {
@ -6606,20 +6607,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-03-05T21:14:51+00:00" "time": "2022-04-02T06:04:20+00:00"
}, },
{ {
"name": "symfony/mime", "name": "symfony/mime",
"version": "v5.4.3", "version": "v5.4.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/mime.git", "url": "https://github.com/symfony/mime.git",
"reference": "e1503cfb5c9a225350f549d3bb99296f4abfb80f" "reference": "92d27a34dea2e199fa9b687e3fff3a7d169b7b1c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/e1503cfb5c9a225350f549d3bb99296f4abfb80f", "url": "https://api.github.com/repos/symfony/mime/zipball/92d27a34dea2e199fa9b687e3fff3a7d169b7b1c",
"reference": "e1503cfb5c9a225350f549d3bb99296f4abfb80f", "reference": "92d27a34dea2e199fa9b687e3fff3a7d169b7b1c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -6673,7 +6674,7 @@
"mime-type" "mime-type"
], ],
"support": { "support": {
"source": "https://github.com/symfony/mime/tree/v5.4.3" "source": "https://github.com/symfony/mime/tree/v5.4.7"
}, },
"funding": [ "funding": [
{ {
@ -6689,7 +6690,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-01-02T09:53:40+00:00" "time": "2022-03-11T16:08:05+00:00"
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
@ -7510,16 +7511,16 @@
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
"version": "v5.4.5", "version": "v5.4.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
"reference": "95440409896f90a5f85db07a32b517ecec17fa4c" "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/95440409896f90a5f85db07a32b517ecec17fa4c", "url": "https://api.github.com/repos/symfony/process/zipball/38a44b2517b470a436e1c944bf9b9ba3961137fb",
"reference": "95440409896f90a5f85db07a32b517ecec17fa4c", "reference": "38a44b2517b470a436e1c944bf9b9ba3961137fb",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7552,7 +7553,7 @@
"description": "Executes commands in sub-processes", "description": "Executes commands in sub-processes",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/process/tree/v5.4.5" "source": "https://github.com/symfony/process/tree/v5.4.7"
}, },
"funding": [ "funding": [
{ {
@ -7568,7 +7569,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-01-30T18:16:22+00:00" "time": "2022-03-18T16:18:52+00:00"
}, },
{ {
"name": "symfony/psr-http-message-bridge", "name": "symfony/psr-http-message-bridge",
@ -7750,21 +7751,22 @@
}, },
{ {
"name": "symfony/service-contracts", "name": "symfony/service-contracts",
"version": "v2.4.1", "version": "v2.5.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/service-contracts.git", "url": "https://github.com/symfony/service-contracts.git",
"reference": "d664541b99d6fb0247ec5ff32e87238582236204" "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/d664541b99d6fb0247ec5ff32e87238582236204", "url": "https://api.github.com/repos/symfony/service-contracts/zipball/24d9dc654b83e91aa59f9d167b131bc3b5bea24c",
"reference": "d664541b99d6fb0247ec5ff32e87238582236204", "reference": "24d9dc654b83e91aa59f9d167b131bc3b5bea24c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.5", "php": ">=7.2.5",
"psr/container": "^1.1" "psr/container": "^1.1",
"symfony/deprecation-contracts": "^2.1|^3"
}, },
"conflict": { "conflict": {
"ext-psr": "<1.1|>=2" "ext-psr": "<1.1|>=2"
@ -7775,7 +7777,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "2.4-dev" "dev-main": "2.5-dev"
}, },
"thanks": { "thanks": {
"name": "symfony/contracts", "name": "symfony/contracts",
@ -7812,7 +7814,7 @@
"standards" "standards"
], ],
"support": { "support": {
"source": "https://github.com/symfony/service-contracts/tree/v2.4.1" "source": "https://github.com/symfony/service-contracts/tree/v2.5.1"
}, },
"funding": [ "funding": [
{ {
@ -7828,7 +7830,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-11-04T16:37:19+00:00" "time": "2022-03-13T20:07:29+00:00"
}, },
{ {
"name": "symfony/string", "name": "symfony/string",
@ -7917,16 +7919,16 @@
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v6.0.6", "version": "v6.0.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
"reference": "f6639cb9b5e0c57fe31e3263b900a77eedb0c908" "reference": "b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/f6639cb9b5e0c57fe31e3263b900a77eedb0c908", "url": "https://api.github.com/repos/symfony/translation/zipball/b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1",
"reference": "f6639cb9b5e0c57fe31e3263b900a77eedb0c908", "reference": "b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -7992,7 +7994,7 @@
"description": "Provides tools to internationalize your application", "description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/translation/tree/v6.0.6" "source": "https://github.com/symfony/translation/tree/v6.0.7"
}, },
"funding": [ "funding": [
{ {
@ -8008,20 +8010,20 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-03-02T12:58:14+00:00" "time": "2022-03-31T17:18:25+00:00"
}, },
{ {
"name": "symfony/translation-contracts", "name": "symfony/translation-contracts",
"version": "v3.0.0", "version": "v3.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation-contracts.git", "url": "https://github.com/symfony/translation-contracts.git",
"reference": "1b6ea5a7442af5a12dba3dbd6d71034b5b234e77" "reference": "c4183fc3ef0f0510893cbeedc7718fb5cafc9ac9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1b6ea5a7442af5a12dba3dbd6d71034b5b234e77", "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/c4183fc3ef0f0510893cbeedc7718fb5cafc9ac9",
"reference": "1b6ea5a7442af5a12dba3dbd6d71034b5b234e77", "reference": "c4183fc3ef0f0510893cbeedc7718fb5cafc9ac9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -8070,7 +8072,7 @@
"standards" "standards"
], ],
"support": { "support": {
"source": "https://github.com/symfony/translation-contracts/tree/v3.0.0" "source": "https://github.com/symfony/translation-contracts/tree/v3.0.1"
}, },
"funding": [ "funding": [
{ {
@ -8086,7 +8088,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2021-09-07T12:43:40+00:00" "time": "2022-01-02T09:55:41+00:00"
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
@ -9162,16 +9164,16 @@
}, },
{ {
"name": "composer/semver", "name": "composer/semver",
"version": "3.3.1", "version": "3.3.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/semver.git", "url": "https://github.com/composer/semver.git",
"reference": "5d8e574bb0e69188786b8ef77d43341222a41a71" "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/semver/zipball/5d8e574bb0e69188786b8ef77d43341222a41a71", "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9",
"reference": "5d8e574bb0e69188786b8ef77d43341222a41a71", "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -9223,7 +9225,7 @@
"support": { "support": {
"irc": "irc://irc.freenode.org/composer", "irc": "irc://irc.freenode.org/composer",
"issues": "https://github.com/composer/semver/issues", "issues": "https://github.com/composer/semver/issues",
"source": "https://github.com/composer/semver/tree/3.3.1" "source": "https://github.com/composer/semver/tree/3.3.2"
}, },
"funding": [ "funding": [
{ {
@ -9239,7 +9241,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-03-16T11:22:07+00:00" "time": "2022-04-01T19:23:25+00:00"
}, },
{ {
"name": "composer/xdebug-handler", "name": "composer/xdebug-handler",
@ -10851,16 +10853,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "9.5.19", "version": "9.5.20",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "35ea4b7f3acabb26f4bb640f8c30866c401da807" "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/35ea4b7f3acabb26f4bb640f8c30866c401da807", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/12bc8879fb65aef2138b26fc633cb1e3620cffba",
"reference": "35ea4b7f3acabb26f4bb640f8c30866c401da807", "reference": "12bc8879fb65aef2138b26fc633cb1e3620cffba",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -10938,7 +10940,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/phpunit/issues", "issues": "https://github.com/sebastianbergmann/phpunit/issues",
"source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.19" "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.20"
}, },
"funding": [ "funding": [
{ {
@ -10950,7 +10952,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2022-03-15T09:57:31+00:00" "time": "2022-04-01T12:37:26+00:00"
}, },
{ {
"name": "sebastian/cli-parser", "name": "sebastian/cli-parser",
@ -11318,16 +11320,16 @@
}, },
{ {
"name": "sebastian/environment", "name": "sebastian/environment",
"version": "5.1.3", "version": "5.1.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/environment.git", "url": "https://github.com/sebastianbergmann/environment.git",
"reference": "388b6ced16caa751030f6a69e588299fa09200ac" "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7",
"reference": "388b6ced16caa751030f6a69e588299fa09200ac", "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11369,7 +11371,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/sebastianbergmann/environment/issues", "issues": "https://github.com/sebastianbergmann/environment/issues",
"source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4"
}, },
"funding": [ "funding": [
{ {
@ -11377,7 +11379,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2020-09-28T05:52:38+00:00" "time": "2022-04-03T09:37:03+00:00"
}, },
{ {
"name": "sebastian/exporter", "name": "sebastian/exporter",
@ -11918,16 +11920,16 @@
}, },
{ {
"name": "symfony/filesystem", "name": "symfony/filesystem",
"version": "v6.0.6", "version": "v6.0.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/filesystem.git", "url": "https://github.com/symfony/filesystem.git",
"reference": "52b888523545b0b4049ab9ce48766802484d7046" "reference": "6c9e4c41f2c51dfde3db298594ed9cba55dbf5ff"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/52b888523545b0b4049ab9ce48766802484d7046", "url": "https://api.github.com/repos/symfony/filesystem/zipball/6c9e4c41f2c51dfde3db298594ed9cba55dbf5ff",
"reference": "52b888523545b0b4049ab9ce48766802484d7046", "reference": "6c9e4c41f2c51dfde3db298594ed9cba55dbf5ff",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -11961,7 +11963,7 @@
"description": "Provides basic utilities for the filesystem", "description": "Provides basic utilities for the filesystem",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/filesystem/tree/v6.0.6" "source": "https://github.com/symfony/filesystem/tree/v6.0.7"
}, },
"funding": [ "funding": [
{ {
@ -11977,7 +11979,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-03-02T12:58:14+00:00" "time": "2022-04-01T12:54:51+00:00"
}, },
{ {
"name": "symfony/options-resolver", "name": "symfony/options-resolver",

View file

@ -5,9 +5,9 @@ current:
major: 0 major: 0
minor: 11 minor: 11
patch: 1 patch: 1
prerelease: 3-g5dd1742 prerelease: 4-gdf36f7b
buildmetadata: '' buildmetadata: ''
commit: 5dd174 commit: df36f7
timestamp: timestamp:
year: 2020 year: 2020
month: 10 month: 10

View file

@ -25,7 +25,7 @@ class UserFactory extends Factory
public function definition() public function definition()
{ {
return [ return [
'default_username_id' => Username::factory(['username' => $this->faker->userName.$this->faker->randomNumber(3)]), 'default_username_id' => Username::factory(),
'banner_location' => 'top', 'banner_location' => 'top',
'bandwidth' => 0, 'bandwidth' => 0,
'default_recipient_id' => Recipient::factory(), 'default_recipient_id' => Recipient::factory(),

1037
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -22,7 +22,7 @@
"portal-vue": "^2.1.7", "portal-vue": "^2.1.7",
"postcss": "^8.4.5", "postcss": "^8.4.5",
"postcss-import": "^14.0.0", "postcss-import": "^14.0.0",
"resolve-url-loader": "^4.0.0", "resolve-url-loader": "^5.0.0",
"tailwindcss": "^3.0.11", "tailwindcss": "^3.0.11",
"tippy.js": "^6.2.7", "tippy.js": "^6.2.7",
"v-clipboard": "^2.2.3", "v-clipboard": "^2.2.3",