extract Echo into separate script

This commit is contained in:
Dan Harrin
2022-09-10 13:33:36 +03:00
parent 5dc3de6a4d
commit f82bf0d689
14 changed files with 463 additions and 464 deletions
Generated
+110 -109
View File
@@ -127,16 +127,16 @@
},
{
"name": "aws/aws-sdk-php",
"version": "3.235.0",
"version": "3.235.5",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
"reference": "03294ecd13463d4ac46ac866ed918b4aad186bd4"
"reference": "3b002b92369dbcb8d86f32546cb324eabcd19a4e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/03294ecd13463d4ac46ac866ed918b4aad186bd4",
"reference": "03294ecd13463d4ac46ac866ed918b4aad186bd4",
"url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/3b002b92369dbcb8d86f32546cb324eabcd19a4e",
"reference": "3b002b92369dbcb8d86f32546cb324eabcd19a4e",
"shasum": ""
},
"require": {
@@ -213,9 +213,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
"source": "https://github.com/aws/aws-sdk-php/tree/3.235.0"
"source": "https://github.com/aws/aws-sdk-php/tree/3.235.5"
},
"time": "2022-09-01T18:19:51+00:00"
"time": "2022-09-09T18:19:38+00:00"
},
{
"name": "blade-ui-kit/blade-heroicons",
@@ -1439,16 +1439,16 @@
},
{
"name": "doctrine/dbal",
"version": "3.4.3",
"version": "3.4.4",
"source": {
"type": "git",
"url": "https://github.com/doctrine/dbal.git",
"reference": "a24b89d663d8f261199bc0a91c48016042ebda85"
"reference": "4cbbe6e4b9ef6c69d5f4c968c637476f47bb54f5"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/a24b89d663d8f261199bc0a91c48016042ebda85",
"reference": "a24b89d663d8f261199bc0a91c48016042ebda85",
"url": "https://api.github.com/repos/doctrine/dbal/zipball/4cbbe6e4b9ef6c69d5f4c968c637476f47bb54f5",
"reference": "4cbbe6e4b9ef6c69d5f4c968c637476f47bb54f5",
"shasum": ""
},
"require": {
@@ -1463,14 +1463,14 @@
"require-dev": {
"doctrine/coding-standard": "10.0.0",
"jetbrains/phpstorm-stubs": "2022.2",
"phpstan/phpstan": "1.8.2",
"phpstan/phpstan": "1.8.3",
"phpstan/phpstan-strict-rules": "^1.3",
"phpunit/phpunit": "9.5.21",
"phpunit/phpunit": "9.5.24",
"psalm/plugin-phpunit": "0.17.0",
"squizlabs/php_codesniffer": "3.7.1",
"symfony/cache": "^5.4|^6.0",
"symfony/console": "^4.4|^5.4|^6.0",
"vimeo/psalm": "4.24.0"
"vimeo/psalm": "4.27.0"
},
"suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files."
@@ -1530,7 +1530,7 @@
],
"support": {
"issues": "https://github.com/doctrine/dbal/issues",
"source": "https://github.com/doctrine/dbal/tree/3.4.3"
"source": "https://github.com/doctrine/dbal/tree/3.4.4"
},
"funding": [
{
@@ -1546,7 +1546,7 @@
"type": "tidelift"
}
],
"time": "2022-08-28T17:26:36+00:00"
"time": "2022-09-01T21:26:42+00:00"
},
{
"name": "doctrine/deprecations",
@@ -1684,28 +1684,28 @@
},
{
"name": "doctrine/inflector",
"version": "2.0.4",
"version": "2.0.5",
"source": {
"type": "git",
"url": "https://github.com/doctrine/inflector.git",
"reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89"
"reference": "ade2b3bbfb776f27f0558e26eed43b5d9fe1b392"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89",
"reference": "8b7ff3e4b7de6b2c84da85637b59fd2880ecaa89",
"url": "https://api.github.com/repos/doctrine/inflector/zipball/ade2b3bbfb776f27f0558e26eed43b5d9fe1b392",
"reference": "ade2b3bbfb776f27f0558e26eed43b5d9fe1b392",
"shasum": ""
},
"require": {
"php": "^7.2 || ^8.0"
},
"require-dev": {
"doctrine/coding-standard": "^8.2",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan-strict-rules": "^0.12",
"phpunit/phpunit": "^7.0 || ^8.0 || ^9.0",
"vimeo/psalm": "^4.10"
"doctrine/coding-standard": "^9",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan-phpunit": "^1.1",
"phpstan/phpstan-strict-rules": "^1.3",
"phpunit/phpunit": "^8.5 || ^9.5",
"vimeo/psalm": "^4.25"
},
"type": "library",
"autoload": {
@@ -1755,7 +1755,7 @@
],
"support": {
"issues": "https://github.com/doctrine/inflector/issues",
"source": "https://github.com/doctrine/inflector/tree/2.0.4"
"source": "https://github.com/doctrine/inflector/tree/2.0.5"
},
"funding": [
{
@@ -1771,7 +1771,7 @@
"type": "tidelift"
}
],
"time": "2021-10-22T20:16:43+00:00"
"time": "2022-09-07T09:01:28+00:00"
},
{
"name": "doctrine/instantiator",
@@ -2961,16 +2961,16 @@
},
{
"name": "laravel/framework",
"version": "v9.27.0",
"version": "v9.29.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/framework.git",
"reference": "27572f45120fd3977d92651a71d8c711a9aaa790"
"reference": "585da0913e907fd54941260860ae3d7d4be8e8cb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/framework/zipball/27572f45120fd3977d92651a71d8c711a9aaa790",
"reference": "27572f45120fd3977d92651a71d8c711a9aaa790",
"url": "https://api.github.com/repos/laravel/framework/zipball/585da0913e907fd54941260860ae3d7d4be8e8cb",
"reference": "585da0913e907fd54941260860ae3d7d4be8e8cb",
"shasum": ""
},
"require": {
@@ -3137,20 +3137,20 @@
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2022-08-30T13:34:43+00:00"
"time": "2022-09-09T18:21:21+00:00"
},
{
"name": "laravel/pint",
"version": "v1.1.2",
"version": "v1.1.3",
"source": {
"type": "git",
"url": "https://github.com/laravel/pint.git",
"reference": "ebfe95b446e4395eba1eefb8615214fb55163165"
"reference": "9fb8e93074de3c04a0975beb90dcb38562afbdaa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/pint/zipball/ebfe95b446e4395eba1eefb8615214fb55163165",
"reference": "ebfe95b446e4395eba1eefb8615214fb55163165",
"url": "https://api.github.com/repos/laravel/pint/zipball/9fb8e93074de3c04a0975beb90dcb38562afbdaa",
"reference": "9fb8e93074de3c04a0975beb90dcb38562afbdaa",
"shasum": ""
},
"require": {
@@ -3161,13 +3161,13 @@
"php": "^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.10.0",
"illuminate/view": "^9.26.0",
"friendsofphp/php-cs-fixer": "^3.11.0",
"illuminate/view": "^9.27",
"laravel-zero/framework": "^9.1.3",
"mockery/mockery": "^1.5.0",
"nunomaduro/larastan": "^2.1.12",
"nunomaduro/larastan": "^2.2",
"nunomaduro/termwind": "^1.14.0",
"pestphp/pest": "^1.22.0"
"pestphp/pest": "^1.22.1"
},
"bin": [
"builds/pint"
@@ -3203,20 +3203,20 @@
"issues": "https://github.com/laravel/pint/issues",
"source": "https://github.com/laravel/pint"
},
"time": "2022-08-30T15:28:20+00:00"
"time": "2022-09-06T16:01:44+00:00"
},
{
"name": "laravel/serializable-closure",
"version": "v1.2.1",
"version": "v1.2.2",
"source": {
"type": "git",
"url": "https://github.com/laravel/serializable-closure.git",
"reference": "d78fd36ba031a1a695ea5a406f29996948d7011b"
"reference": "47afb7fae28ed29057fdca37e16a84f90cc62fae"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/d78fd36ba031a1a695ea5a406f29996948d7011b",
"reference": "d78fd36ba031a1a695ea5a406f29996948d7011b",
"url": "https://api.github.com/repos/laravel/serializable-closure/zipball/47afb7fae28ed29057fdca37e16a84f90cc62fae",
"reference": "47afb7fae28ed29057fdca37e16a84f90cc62fae",
"shasum": ""
},
"require": {
@@ -3263,7 +3263,7 @@
"issues": "https://github.com/laravel/serializable-closure/issues",
"source": "https://github.com/laravel/serializable-closure"
},
"time": "2022-08-26T15:25:27+00:00"
"time": "2022-09-08T13:45:54+00:00"
},
{
"name": "league/commonmark",
@@ -3455,16 +3455,16 @@
},
{
"name": "league/flysystem",
"version": "3.2.1",
"version": "3.3.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem.git",
"reference": "81aea9e5217084c7850cd36e1587ee4aad721c6b"
"reference": "d8295793b3e2f91aa39e1feb2d5bfce772891ae2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/81aea9e5217084c7850cd36e1587ee4aad721c6b",
"reference": "81aea9e5217084c7850cd36e1587ee4aad721c6b",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/d8295793b3e2f91aa39e1feb2d5bfce772891ae2",
"reference": "d8295793b3e2f91aa39e1feb2d5bfce772891ae2",
"shasum": ""
},
"require": {
@@ -3475,6 +3475,7 @@
"aws/aws-sdk-php": "3.209.31 || 3.210.0",
"guzzlehttp/guzzle": "<7.0",
"guzzlehttp/ringphp": "<1.1.1",
"phpseclib/phpseclib": "3.0.15",
"symfony/http-client": "<5.2"
},
"require-dev": {
@@ -3488,7 +3489,7 @@
"friendsofphp/php-cs-fixer": "^3.5",
"google/cloud-storage": "^1.23",
"microsoft/azure-storage-blob": "^1.1",
"phpseclib/phpseclib": "^2.0",
"phpseclib/phpseclib": "^3.0.14",
"phpstan/phpstan": "^0.12.26",
"phpunit/phpunit": "^9.5.11",
"sabre/dav": "^4.3.1"
@@ -3525,11 +3526,11 @@
],
"support": {
"issues": "https://github.com/thephpleague/flysystem/issues",
"source": "https://github.com/thephpleague/flysystem/tree/3.2.1"
"source": "https://github.com/thephpleague/flysystem/tree/3.3.0"
},
"funding": [
{
"url": "https://offset.earth/frankdejonge",
"url": "https://ecologi.com/frankdejonge",
"type": "custom"
},
{
@@ -3541,20 +3542,20 @@
"type": "tidelift"
}
],
"time": "2022-08-14T20:48:34+00:00"
"time": "2022-09-09T11:11:42+00:00"
},
{
"name": "league/flysystem-aws-s3-v3",
"version": "3.2.0",
"version": "3.3.0",
"source": {
"type": "git",
"url": "https://github.com/thephpleague/flysystem-aws-s3-v3.git",
"reference": "257893ef7398b3c9255b26dff8b0118bb93fc5ff"
"reference": "c9402e0b8d89d36b1b88ecf88c2a80b6d61fd114"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/257893ef7398b3c9255b26dff8b0118bb93fc5ff",
"reference": "257893ef7398b3c9255b26dff8b0118bb93fc5ff",
"url": "https://api.github.com/repos/thephpleague/flysystem-aws-s3-v3/zipball/c9402e0b8d89d36b1b88ecf88c2a80b6d61fd114",
"reference": "c9402e0b8d89d36b1b88ecf88c2a80b6d61fd114",
"shasum": ""
},
"require": {
@@ -3595,11 +3596,11 @@
],
"support": {
"issues": "https://github.com/thephpleague/flysystem-aws-s3-v3/issues",
"source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.2.0"
"source": "https://github.com/thephpleague/flysystem-aws-s3-v3/tree/3.3.0"
},
"funding": [
{
"url": "https://offset.earth/frankdejonge",
"url": "https://ecologi.com/frankdejonge",
"type": "custom"
},
{
@@ -3611,7 +3612,7 @@
"type": "tidelift"
}
],
"time": "2022-07-26T07:22:40+00:00"
"time": "2022-09-09T10:03:42+00:00"
},
{
"name": "league/glide",
@@ -4020,16 +4021,16 @@
},
{
"name": "mockery/mockery",
"version": "1.5.0",
"version": "1.5.1",
"source": {
"type": "git",
"url": "https://github.com/mockery/mockery.git",
"reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac"
"reference": "e92dcc83d5a51851baf5f5591d32cb2b16e3684e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/mockery/mockery/zipball/c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac",
"reference": "c10a5f6e06fc2470ab1822fa13fa2a7380f8fbac",
"url": "https://api.github.com/repos/mockery/mockery/zipball/e92dcc83d5a51851baf5f5591d32cb2b16e3684e",
"reference": "e92dcc83d5a51851baf5f5591d32cb2b16e3684e",
"shasum": ""
},
"require": {
@@ -4086,9 +4087,9 @@
],
"support": {
"issues": "https://github.com/mockery/mockery/issues",
"source": "https://github.com/mockery/mockery/tree/1.5.0"
"source": "https://github.com/mockery/mockery/tree/1.5.1"
},
"time": "2022-01-20T13:18:17+00:00"
"time": "2022-09-07T15:32:08+00:00"
},
{
"name": "monolog/monolog",
@@ -4626,16 +4627,16 @@
},
{
"name": "nikic/php-parser",
"version": "v4.14.0",
"version": "v4.15.1",
"source": {
"type": "git",
"url": "https://github.com/nikic/PHP-Parser.git",
"reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1"
"reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/34bea19b6e03d8153165d8f30bba4c3be86184c1",
"reference": "34bea19b6e03d8153165d8f30bba4c3be86184c1",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ef6c55a3f47f89d7a374e6f835197a0b5fcf900",
"reference": "0ef6c55a3f47f89d7a374e6f835197a0b5fcf900",
"shasum": ""
},
"require": {
@@ -4676,9 +4677,9 @@
],
"support": {
"issues": "https://github.com/nikic/PHP-Parser/issues",
"source": "https://github.com/nikic/PHP-Parser/tree/v4.14.0"
"source": "https://github.com/nikic/PHP-Parser/tree/v4.15.1"
},
"time": "2022-05-31T20:59:12+00:00"
"time": "2022-09-04T07:30:47+00:00"
},
{
"name": "nunomaduro/collision",
@@ -5778,16 +5779,16 @@
},
{
"name": "phpstan/phpdoc-parser",
"version": "1.7.0",
"version": "1.8.0",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpdoc-parser.git",
"reference": "367a8d9d5f7da2a0136422d27ce8840583926955"
"reference": "8dd908dd6156e974b9a0f8bb4cd5ad0707830f04"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/367a8d9d5f7da2a0136422d27ce8840583926955",
"reference": "367a8d9d5f7da2a0136422d27ce8840583926955",
"url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/8dd908dd6156e974b9a0f8bb4cd5ad0707830f04",
"reference": "8dd908dd6156e974b9a0f8bb4cd5ad0707830f04",
"shasum": ""
},
"require": {
@@ -5817,22 +5818,22 @@
"description": "PHPDoc parser with support for nullable, intersection and generic types",
"support": {
"issues": "https://github.com/phpstan/phpdoc-parser/issues",
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.7.0"
"source": "https://github.com/phpstan/phpdoc-parser/tree/1.8.0"
},
"time": "2022-08-09T12:23:23+00:00"
"time": "2022-09-04T18:59:06+00:00"
},
{
"name": "phpstan/phpstan",
"version": "1.8.3",
"version": "1.8.5",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "5583623b61caafebd62bc78a99533aa9d769d097"
"reference": "f6598a5ff12ca4499a836815e08b4d77a2ddeb20"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/5583623b61caafebd62bc78a99533aa9d769d097",
"reference": "5583623b61caafebd62bc78a99533aa9d769d097",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/f6598a5ff12ca4499a836815e08b4d77a2ddeb20",
"reference": "f6598a5ff12ca4499a836815e08b4d77a2ddeb20",
"shasum": ""
},
"require": {
@@ -5862,7 +5863,7 @@
],
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.8.3"
"source": "https://github.com/phpstan/phpstan/tree/1.8.5"
},
"funding": [
{
@@ -5878,7 +5879,7 @@
"type": "tidelift"
}
],
"time": "2022-09-01T15:27:34+00:00"
"time": "2022-09-07T16:05:32+00:00"
},
{
"name": "phpunit/php-code-coverage",
@@ -8594,16 +8595,16 @@
},
{
"name": "spatie/laravel-medialibrary",
"version": "10.4.4",
"version": "10.4.5",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-medialibrary.git",
"reference": "e66c599717e96e692c3abc506a7a2a3760c952ab"
"reference": "1704b4de4d8d1f83a84e9f660b78b93301984daa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/e66c599717e96e692c3abc506a7a2a3760c952ab",
"reference": "e66c599717e96e692c3abc506a7a2a3760c952ab",
"url": "https://api.github.com/repos/spatie/laravel-medialibrary/zipball/1704b4de4d8d1f83a84e9f660b78b93301984daa",
"reference": "1704b4de4d8d1f83a84e9f660b78b93301984daa",
"shasum": ""
},
"require": {
@@ -8686,7 +8687,7 @@
],
"support": {
"issues": "https://github.com/spatie/laravel-medialibrary/issues",
"source": "https://github.com/spatie/laravel-medialibrary/tree/10.4.4"
"source": "https://github.com/spatie/laravel-medialibrary/tree/10.4.5"
},
"funding": [
{
@@ -8698,31 +8699,31 @@
"type": "github"
}
],
"time": "2022-08-22T09:17:01+00:00"
"time": "2022-09-02T17:15:27+00:00"
},
{
"name": "spatie/laravel-package-tools",
"version": "1.12.1",
"version": "1.13.5",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-package-tools.git",
"reference": "09f80fa240d44fafb1c70657c74ee44ffa929357"
"reference": "163ee3bc6c0a987535d8a99722a7dbcc5471a140"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/09f80fa240d44fafb1c70657c74ee44ffa929357",
"reference": "09f80fa240d44fafb1c70657c74ee44ffa929357",
"url": "https://api.github.com/repos/spatie/laravel-package-tools/zipball/163ee3bc6c0a987535d8a99722a7dbcc5471a140",
"reference": "163ee3bc6c0a987535d8a99722a7dbcc5471a140",
"shasum": ""
},
"require": {
"illuminate/contracts": "^7.0|^8.0|^9.0",
"php": "^7.4|^8.0"
"illuminate/contracts": "^9.28",
"php": "^8.0"
},
"require-dev": {
"mockery/mockery": "^1.4",
"orchestra/testbench": "^5.0|^6.23|^7.0",
"phpunit/phpunit": "^9.4",
"spatie/test-time": "^1.2"
"mockery/mockery": "^1.5",
"orchestra/testbench": "^7.7",
"phpunit/phpunit": "^9.5.24",
"spatie/test-time": "^1.3"
},
"type": "library",
"autoload": {
@@ -8749,7 +8750,7 @@
],
"support": {
"issues": "https://github.com/spatie/laravel-package-tools/issues",
"source": "https://github.com/spatie/laravel-package-tools/tree/1.12.1"
"source": "https://github.com/spatie/laravel-package-tools/tree/1.13.5"
},
"funding": [
{
@@ -8757,7 +8758,7 @@
"type": "github"
}
],
"time": "2022-06-28T14:29:26+00:00"
"time": "2022-09-07T14:31:31+00:00"
},
{
"name": "spatie/laravel-ray",
@@ -12992,16 +12993,16 @@
},
{
"name": "zbateson/stream-decorators",
"version": "1.0.6",
"version": "1.0.7",
"source": {
"type": "git",
"url": "https://github.com/zbateson/stream-decorators.git",
"reference": "3403c4323bd1cd15fe54348b031b26b064c706af"
"reference": "8f8ca208572963258b7e6d91106181706deacd10"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/zbateson/stream-decorators/zipball/3403c4323bd1cd15fe54348b031b26b064c706af",
"reference": "3403c4323bd1cd15fe54348b031b26b064c706af",
"url": "https://api.github.com/repos/zbateson/stream-decorators/zipball/8f8ca208572963258b7e6d91106181706deacd10",
"reference": "8f8ca208572963258b7e6d91106181706deacd10",
"shasum": ""
},
"require": {
@@ -13041,7 +13042,7 @@
],
"support": {
"issues": "https://github.com/zbateson/stream-decorators/issues",
"source": "https://github.com/zbateson/stream-decorators/tree/1.0.6"
"source": "https://github.com/zbateson/stream-decorators/tree/1.0.7"
},
"funding": [
{
@@ -13049,7 +13050,7 @@
"type": "github"
}
],
"time": "2021-07-08T19:01:59+00:00"
"time": "2022-09-08T15:44:55+00:00"
}
],
"aliases": [],
+294 -311
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+16 -24
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+10
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -1,4 +1,5 @@
{
"/app.js": "/app.js?id=3873a5998440bec09db9ee2a5c7d3a2a",
"/app.css": "/app.css?id=e1c3b682f82f76931065e62973d311f3"
"/app.js": "/app.js?id=cab44c7d62947545d89720d530ac0348",
"/echo.js": "/echo.js?id=77a99c0e4c69337c7910facf3da252aa",
"/app.css": "/app.css?id=549923247153ff9bdbef0285598b5886"
}
-4
View File
@@ -1,13 +1,11 @@
import Alpine from 'alpinejs'
import Chart from 'chart.js/auto'
import Collapse from '@alpinejs/collapse'
import Echo from 'laravel-echo'
import Focus from '@alpinejs/focus'
import FormsAlpinePlugin from '../../../forms/dist/module.esm'
import Mousetrap from '@danharrin/alpine-mousetrap'
import NotificationsAlpinePlugin from '../../../notifications/dist/module.esm'
import Persist from '@alpinejs/persist'
import Pusher from 'pusher-js'
import Tooltip from '@ryangjchandler/alpine-tooltip'
Alpine.plugin(Collapse)
@@ -74,7 +72,5 @@ Chart.defaults.color = '#6b7280'
window.Alpine = Alpine
window.Chart = Chart
window.EchoFactory = Echo
window.Pusher = Pusher
Alpine.start()
+5
View File
@@ -0,0 +1,5 @@
import Echo from 'laravel-echo'
import Pusher from 'pusher-js'
window.EchoFactory = Echo
window.Pusher = Pusher
@@ -106,6 +106,21 @@
'file' => 'app.js',
]) }}"></script>
@if (config('filament.broadcasting.echo'))
<script defer src="{{ route('filament.asset', [
'id' => Filament\get_asset_id('echo.js'),
'file' => 'echo.js',
]) }}"></script>
<script>
window.addEventListener('DOMContentLoaded', () => {
window.Echo = new window.EchoFactory(@js(config('filament.broadcasting.echo')))
window.dispatchEvent(new CustomEvent('EchoLoaded'))
})
</script>
@endif
@foreach (\Filament\Facades\Filament::getScripts() as $name => $path)
@if (\Illuminate\Support\Str::of($path)->startsWith(['http://', 'https://']))
<script defer src="{{ $path }}"></script>
@@ -120,16 +135,6 @@
@stack('scripts')
@if (config('filament.broadcasting.echo'))
<script>
window.addEventListener('DOMContentLoaded', () => {
window.Echo = new window.EchoFactory(@js(config('filament.broadcasting.echo')))
window.dispatchEvent(new CustomEvent('EchoLoaded'))
})
</script>
@endif
{{ \Filament\Facades\Filament::renderHook('scripts.end') }}
{{ \Filament\Facades\Filament::renderHook('body.end') }}
@@ -18,6 +18,10 @@ class AssetController
return $this->pretendResponseIsFile(__DIR__ . '/../../../dist/app.js', 'application/javascript; charset=utf-8');
case 'app.js.map':
return $this->pretendResponseIsFile(__DIR__ . '/../../../dist/app.js.map', 'application/json; charset=utf-8');
case 'echo.js':
return $this->pretendResponseIsFile(__DIR__ . '/../../../dist/echo.js', 'application/javascript; charset=utf-8');
case 'echo.js.map':
return $this->pretendResponseIsFile(__DIR__ . '/../../../dist/echo.js.map', 'application/json; charset=utf-8');
}
if (Str::endsWith($file, '.js')) {
+1
View File
@@ -13,6 +13,7 @@ mix.sourceMaps()
mix.version()
mix.js('packages/admin/resources/js/app.js', 'packages/admin/dist')
mix.js('packages/admin/resources/js/echo.js', 'packages/admin/dist')
mix.postCss('packages/admin/resources/css/app.css', 'packages/admin/dist', [
tailwindcss('packages/admin/tailwind.config.js'),