浏览代码

Merge pull request #118 from andrewdwallo/development-3.x

Development 3.x
3.x
Andrew Wallo 7 个月前
父节点
当前提交
749582ed12
没有帐户链接到提交者的电子邮件

+ 5
- 2
app/Filament/Company/Resources/Purchases/BillResource/Pages/EditBill.php 查看文件

3
 namespace App\Filament\Company\Resources\Purchases\BillResource\Pages;
3
 namespace App\Filament\Company\Resources\Purchases\BillResource\Pages;
4
 
4
 
5
 use App\Concerns\ManagesLineItems;
5
 use App\Concerns\ManagesLineItems;
6
-use App\Concerns\RedirectToListPage;
7
 use App\Filament\Company\Resources\Purchases\BillResource;
6
 use App\Filament\Company\Resources\Purchases\BillResource;
8
 use App\Models\Accounting\Bill;
7
 use App\Models\Accounting\Bill;
9
 use Filament\Actions;
8
 use Filament\Actions;
14
 class EditBill extends EditRecord
13
 class EditBill extends EditRecord
15
 {
14
 {
16
     use ManagesLineItems;
15
     use ManagesLineItems;
17
-    use RedirectToListPage;
18
 
16
 
19
     protected static string $resource = BillResource::class;
17
     protected static string $resource = BillResource::class;
20
 
18
 
30
         return MaxWidth::Full;
28
         return MaxWidth::Full;
31
     }
29
     }
32
 
30
 
31
+    protected function getRedirectUrl(): string
32
+    {
33
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
34
+    }
35
+
33
     protected function handleRecordUpdate(Model $record, array $data): Model
36
     protected function handleRecordUpdate(Model $record, array $data): Model
34
     {
37
     {
35
         /** @var Bill $record */
38
         /** @var Bill $record */

+ 5
- 2
app/Filament/Company/Resources/Sales/EstimateResource/Pages/EditEstimate.php 查看文件

3
 namespace App\Filament\Company\Resources\Sales\EstimateResource\Pages;
3
 namespace App\Filament\Company\Resources\Sales\EstimateResource\Pages;
4
 
4
 
5
 use App\Concerns\ManagesLineItems;
5
 use App\Concerns\ManagesLineItems;
6
-use App\Concerns\RedirectToListPage;
7
 use App\Filament\Company\Resources\Sales\EstimateResource;
6
 use App\Filament\Company\Resources\Sales\EstimateResource;
8
 use App\Models\Accounting\Estimate;
7
 use App\Models\Accounting\Estimate;
9
 use Filament\Actions;
8
 use Filament\Actions;
14
 class EditEstimate extends EditRecord
13
 class EditEstimate extends EditRecord
15
 {
14
 {
16
     use ManagesLineItems;
15
     use ManagesLineItems;
17
-    use RedirectToListPage;
18
 
16
 
19
     protected static string $resource = EstimateResource::class;
17
     protected static string $resource = EstimateResource::class;
20
 
18
 
30
         return MaxWidth::Full;
28
         return MaxWidth::Full;
31
     }
29
     }
32
 
30
 
31
+    protected function getRedirectUrl(): string
32
+    {
33
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
34
+    }
35
+
33
     protected function handleRecordUpdate(Model $record, array $data): Model
36
     protected function handleRecordUpdate(Model $record, array $data): Model
34
     {
37
     {
35
         /** @var Estimate $record */
38
         /** @var Estimate $record */

+ 1
- 1
app/Filament/Company/Resources/Sales/EstimateResource/Pages/ViewEstimate.php 查看文件

76
                                     ->label('Client')
76
                                     ->label('Client')
77
                                     ->color('primary')
77
                                     ->color('primary')
78
                                     ->weight(FontWeight::SemiBold)
78
                                     ->weight(FontWeight::SemiBold)
79
-                                    ->url(static fn (Estimate $record) => ClientResource::getUrl('edit', ['record' => $record->client_id])),
79
+                                    ->url(static fn (Estimate $record) => ClientResource::getUrl('view', ['record' => $record->client_id])),
80
                                 TextEntry::make('expiration_date')
80
                                 TextEntry::make('expiration_date')
81
                                     ->label('Expiration date')
81
                                     ->label('Expiration date')
82
                                     ->asRelativeDay(),
82
                                     ->asRelativeDay(),

+ 5
- 0
app/Filament/Company/Resources/Sales/InvoiceResource/Pages/EditInvoice.php 查看文件

30
         return MaxWidth::Full;
30
         return MaxWidth::Full;
31
     }
31
     }
32
 
32
 
33
+    protected function getRedirectUrl(): string
34
+    {
35
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
36
+    }
37
+
33
     protected function handleRecordUpdate(Model $record, array $data): Model
38
     protected function handleRecordUpdate(Model $record, array $data): Model
34
     {
39
     {
35
         /** @var Invoice $record */
40
         /** @var Invoice $record */

+ 1
- 1
app/Filament/Company/Resources/Sales/InvoiceResource/Pages/ViewInvoice.php 查看文件

73
                                     ->label('Client')
73
                                     ->label('Client')
74
                                     ->color('primary')
74
                                     ->color('primary')
75
                                     ->weight(FontWeight::SemiBold)
75
                                     ->weight(FontWeight::SemiBold)
76
-                                    ->url(static fn (Invoice $record) => ClientResource::getUrl('edit', ['record' => $record->client_id])),
76
+                                    ->url(static fn (Invoice $record) => ClientResource::getUrl('view', ['record' => $record->client_id])),
77
                                 TextEntry::make('amount_due')
77
                                 TextEntry::make('amount_due')
78
                                     ->label('Amount due')
78
                                     ->label('Amount due')
79
                                     ->currency(static fn (Invoice $record) => $record->currency_code),
79
                                     ->currency(static fn (Invoice $record) => $record->currency_code),

+ 5
- 0
app/Filament/Company/Resources/Sales/RecurringInvoiceResource/Pages/EditRecurringInvoice.php 查看文件

28
         return MaxWidth::Full;
28
         return MaxWidth::Full;
29
     }
29
     }
30
 
30
 
31
+    protected function getRedirectUrl(): string
32
+    {
33
+        return $this->getResource()::getUrl('view', ['record' => $this->record]);
34
+    }
35
+
31
     protected function handleRecordUpdate(Model $record, array $data): Model
36
     protected function handleRecordUpdate(Model $record, array $data): Model
32
     {
37
     {
33
         /** @var Estimate $record */
38
         /** @var Estimate $record */

+ 1
- 1
app/Filament/Company/Resources/Sales/RecurringInvoiceResource/Pages/ViewRecurringInvoice.php 查看文件

90
                                     ->label('Client')
90
                                     ->label('Client')
91
                                     ->color('primary')
91
                                     ->color('primary')
92
                                     ->weight(FontWeight::SemiBold)
92
                                     ->weight(FontWeight::SemiBold)
93
-                                    ->url(static fn (RecurringInvoice $record) => ClientResource::getUrl('edit', ['record' => $record->client_id])),
93
+                                    ->url(static fn (RecurringInvoice $record) => ClientResource::getUrl('view', ['record' => $record->client_id])),
94
                                 TextEntry::make('last_date')
94
                                 TextEntry::make('last_date')
95
                                     ->label('Last invoice')
95
                                     ->label('Last invoice')
96
                                     ->date()
96
                                     ->date()

+ 51
- 51
composer.lock 查看文件

497
         },
497
         },
498
         {
498
         {
499
             "name": "aws/aws-sdk-php",
499
             "name": "aws/aws-sdk-php",
500
-            "version": "3.342.4",
500
+            "version": "3.342.6",
501
             "source": {
501
             "source": {
502
                 "type": "git",
502
                 "type": "git",
503
                 "url": "https://github.com/aws/aws-sdk-php.git",
503
                 "url": "https://github.com/aws/aws-sdk-php.git",
504
-                "reference": "65cc842b9998d415b05d635b6146d0728934ff4a"
504
+                "reference": "2ad93ef447289da27892707efa683c1ae7ced85f"
505
             },
505
             },
506
             "dist": {
506
             "dist": {
507
                 "type": "zip",
507
                 "type": "zip",
508
-                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/65cc842b9998d415b05d635b6146d0728934ff4a",
509
-                "reference": "65cc842b9998d415b05d635b6146d0728934ff4a",
508
+                "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/2ad93ef447289da27892707efa683c1ae7ced85f",
509
+                "reference": "2ad93ef447289da27892707efa683c1ae7ced85f",
510
                 "shasum": ""
510
                 "shasum": ""
511
             },
511
             },
512
             "require": {
512
             "require": {
588
             "support": {
588
             "support": {
589
                 "forum": "https://github.com/aws/aws-sdk-php/discussions",
589
                 "forum": "https://github.com/aws/aws-sdk-php/discussions",
590
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
590
                 "issues": "https://github.com/aws/aws-sdk-php/issues",
591
-                "source": "https://github.com/aws/aws-sdk-php/tree/3.342.4"
591
+                "source": "https://github.com/aws/aws-sdk-php/tree/3.342.6"
592
             },
592
             },
593
-            "time": "2025-03-11T18:27:07+00:00"
593
+            "time": "2025-03-14T18:01:18+00:00"
594
         },
594
         },
595
         {
595
         {
596
             "name": "aws/aws-sdk-php-laravel",
596
             "name": "aws/aws-sdk-php-laravel",
3051
         },
3051
         },
3052
         {
3052
         {
3053
             "name": "laravel/framework",
3053
             "name": "laravel/framework",
3054
-            "version": "v11.44.1",
3054
+            "version": "v11.44.2",
3055
             "source": {
3055
             "source": {
3056
                 "type": "git",
3056
                 "type": "git",
3057
                 "url": "https://github.com/laravel/framework.git",
3057
                 "url": "https://github.com/laravel/framework.git",
3058
-                "reference": "0883d4175f4e2b5c299e7087ad3c74f2ce195c6d"
3058
+                "reference": "f85216c82cbd38b66d67ebd20ea762cb3751a4b4"
3059
             },
3059
             },
3060
             "dist": {
3060
             "dist": {
3061
                 "type": "zip",
3061
                 "type": "zip",
3062
-                "url": "https://api.github.com/repos/laravel/framework/zipball/0883d4175f4e2b5c299e7087ad3c74f2ce195c6d",
3063
-                "reference": "0883d4175f4e2b5c299e7087ad3c74f2ce195c6d",
3062
+                "url": "https://api.github.com/repos/laravel/framework/zipball/f85216c82cbd38b66d67ebd20ea762cb3751a4b4",
3063
+                "reference": "f85216c82cbd38b66d67ebd20ea762cb3751a4b4",
3064
                 "shasum": ""
3064
                 "shasum": ""
3065
             },
3065
             },
3066
             "require": {
3066
             "require": {
3262
                 "issues": "https://github.com/laravel/framework/issues",
3262
                 "issues": "https://github.com/laravel/framework/issues",
3263
                 "source": "https://github.com/laravel/framework"
3263
                 "source": "https://github.com/laravel/framework"
3264
             },
3264
             },
3265
-            "time": "2025-03-05T15:34:10+00:00"
3265
+            "time": "2025-03-12T14:34:30+00:00"
3266
         },
3266
         },
3267
         {
3267
         {
3268
             "name": "laravel/prompts",
3268
             "name": "laravel/prompts",
4306
         },
4306
         },
4307
         {
4307
         {
4308
             "name": "livewire/livewire",
4308
             "name": "livewire/livewire",
4309
-            "version": "v3.6.1",
4309
+            "version": "v3.6.2",
4310
             "source": {
4310
             "source": {
4311
                 "type": "git",
4311
                 "type": "git",
4312
                 "url": "https://github.com/livewire/livewire.git",
4312
                 "url": "https://github.com/livewire/livewire.git",
4313
-                "reference": "0df0a762698176d714e42e2dfed92b6b9e24b8e4"
4313
+                "reference": "8f8914731f5eb43b6bb145d87c8d5a9edfc89313"
4314
             },
4314
             },
4315
             "dist": {
4315
             "dist": {
4316
                 "type": "zip",
4316
                 "type": "zip",
4317
-                "url": "https://api.github.com/repos/livewire/livewire/zipball/0df0a762698176d714e42e2dfed92b6b9e24b8e4",
4318
-                "reference": "0df0a762698176d714e42e2dfed92b6b9e24b8e4",
4317
+                "url": "https://api.github.com/repos/livewire/livewire/zipball/8f8914731f5eb43b6bb145d87c8d5a9edfc89313",
4318
+                "reference": "8f8914731f5eb43b6bb145d87c8d5a9edfc89313",
4319
                 "shasum": ""
4319
                 "shasum": ""
4320
             },
4320
             },
4321
             "require": {
4321
             "require": {
4370
             "description": "A front-end framework for Laravel.",
4370
             "description": "A front-end framework for Laravel.",
4371
             "support": {
4371
             "support": {
4372
                 "issues": "https://github.com/livewire/livewire/issues",
4372
                 "issues": "https://github.com/livewire/livewire/issues",
4373
-                "source": "https://github.com/livewire/livewire/tree/v3.6.1"
4373
+                "source": "https://github.com/livewire/livewire/tree/v3.6.2"
4374
             },
4374
             },
4375
             "funding": [
4375
             "funding": [
4376
                 {
4376
                 {
4378
                     "type": "github"
4378
                     "type": "github"
4379
                 }
4379
                 }
4380
             ],
4380
             ],
4381
-            "time": "2025-03-04T21:48:52+00:00"
4381
+            "time": "2025-03-12T20:24:15+00:00"
4382
         },
4382
         },
4383
         {
4383
         {
4384
             "name": "masterminds/html5",
4384
             "name": "masterminds/html5",
9523
         },
9523
         },
9524
         {
9524
         {
9525
             "name": "filp/whoops",
9525
             "name": "filp/whoops",
9526
-            "version": "2.17.0",
9526
+            "version": "2.18.0",
9527
             "source": {
9527
             "source": {
9528
                 "type": "git",
9528
                 "type": "git",
9529
                 "url": "https://github.com/filp/whoops.git",
9529
                 "url": "https://github.com/filp/whoops.git",
9530
-                "reference": "075bc0c26631110584175de6523ab3f1652eb28e"
9530
+                "reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e"
9531
             },
9531
             },
9532
             "dist": {
9532
             "dist": {
9533
                 "type": "zip",
9533
                 "type": "zip",
9534
-                "url": "https://api.github.com/repos/filp/whoops/zipball/075bc0c26631110584175de6523ab3f1652eb28e",
9535
-                "reference": "075bc0c26631110584175de6523ab3f1652eb28e",
9534
+                "url": "https://api.github.com/repos/filp/whoops/zipball/a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e",
9535
+                "reference": "a7de6c3c6c3c022f5cfc337f8ede6a14460cf77e",
9536
                 "shasum": ""
9536
                 "shasum": ""
9537
             },
9537
             },
9538
             "require": {
9538
             "require": {
9582
             ],
9582
             ],
9583
             "support": {
9583
             "support": {
9584
                 "issues": "https://github.com/filp/whoops/issues",
9584
                 "issues": "https://github.com/filp/whoops/issues",
9585
-                "source": "https://github.com/filp/whoops/tree/2.17.0"
9585
+                "source": "https://github.com/filp/whoops/tree/2.18.0"
9586
             },
9586
             },
9587
             "funding": [
9587
             "funding": [
9588
                 {
9588
                 {
9590
                     "type": "github"
9590
                     "type": "github"
9591
                 }
9591
                 }
9592
             ],
9592
             ],
9593
-            "time": "2025-01-25T12:00:00+00:00"
9593
+            "time": "2025-03-15T12:00:00+00:00"
9594
         },
9594
         },
9595
         {
9595
         {
9596
             "name": "hamcrest/hamcrest-php",
9596
             "name": "hamcrest/hamcrest-php",
9704
         },
9704
         },
9705
         {
9705
         {
9706
             "name": "laravel/pint",
9706
             "name": "laravel/pint",
9707
-            "version": "v1.21.1",
9707
+            "version": "v1.21.2",
9708
             "source": {
9708
             "source": {
9709
                 "type": "git",
9709
                 "type": "git",
9710
                 "url": "https://github.com/laravel/pint.git",
9710
                 "url": "https://github.com/laravel/pint.git",
9711
-                "reference": "c44bffbb2334e90fba560933c45948fa4a3f3e86"
9711
+                "reference": "370772e7d9e9da087678a0edf2b11b6960e40558"
9712
             },
9712
             },
9713
             "dist": {
9713
             "dist": {
9714
                 "type": "zip",
9714
                 "type": "zip",
9715
-                "url": "https://api.github.com/repos/laravel/pint/zipball/c44bffbb2334e90fba560933c45948fa4a3f3e86",
9716
-                "reference": "c44bffbb2334e90fba560933c45948fa4a3f3e86",
9715
+                "url": "https://api.github.com/repos/laravel/pint/zipball/370772e7d9e9da087678a0edf2b11b6960e40558",
9716
+                "reference": "370772e7d9e9da087678a0edf2b11b6960e40558",
9717
                 "shasum": ""
9717
                 "shasum": ""
9718
             },
9718
             },
9719
             "require": {
9719
             "require": {
9724
                 "php": "^8.2.0"
9724
                 "php": "^8.2.0"
9725
             },
9725
             },
9726
             "require-dev": {
9726
             "require-dev": {
9727
-                "friendsofphp/php-cs-fixer": "^3.70.2",
9728
-                "illuminate/view": "^11.44.1",
9729
-                "larastan/larastan": "^3.1.0",
9727
+                "friendsofphp/php-cs-fixer": "^3.72.0",
9728
+                "illuminate/view": "^11.44.2",
9729
+                "larastan/larastan": "^3.2.0",
9730
                 "laravel-zero/framework": "^11.36.1",
9730
                 "laravel-zero/framework": "^11.36.1",
9731
                 "mockery/mockery": "^1.6.12",
9731
                 "mockery/mockery": "^1.6.12",
9732
                 "nunomaduro/termwind": "^2.3",
9732
                 "nunomaduro/termwind": "^2.3",
9766
                 "issues": "https://github.com/laravel/pint/issues",
9766
                 "issues": "https://github.com/laravel/pint/issues",
9767
                 "source": "https://github.com/laravel/pint"
9767
                 "source": "https://github.com/laravel/pint"
9768
             },
9768
             },
9769
-            "time": "2025-03-11T03:22:21+00:00"
9769
+            "time": "2025-03-14T22:31:42+00:00"
9770
         },
9770
         },
9771
         {
9771
         {
9772
             "name": "laravel/sail",
9772
             "name": "laravel/sail",
9976
         },
9976
         },
9977
         {
9977
         {
9978
             "name": "nunomaduro/collision",
9978
             "name": "nunomaduro/collision",
9979
-            "version": "v8.6.1",
9979
+            "version": "v8.7.0",
9980
             "source": {
9980
             "source": {
9981
                 "type": "git",
9981
                 "type": "git",
9982
                 "url": "https://github.com/nunomaduro/collision.git",
9982
                 "url": "https://github.com/nunomaduro/collision.git",
9983
-                "reference": "86f003c132143d5a2ab214e19933946409e0cae7"
9983
+                "reference": "586cb8181a257a2152b6a855ca8d9598878a1a26"
9984
             },
9984
             },
9985
             "dist": {
9985
             "dist": {
9986
                 "type": "zip",
9986
                 "type": "zip",
9987
-                "url": "https://api.github.com/repos/nunomaduro/collision/zipball/86f003c132143d5a2ab214e19933946409e0cae7",
9988
-                "reference": "86f003c132143d5a2ab214e19933946409e0cae7",
9987
+                "url": "https://api.github.com/repos/nunomaduro/collision/zipball/586cb8181a257a2152b6a855ca8d9598878a1a26",
9988
+                "reference": "586cb8181a257a2152b6a855ca8d9598878a1a26",
9989
                 "shasum": ""
9989
                 "shasum": ""
9990
             },
9990
             },
9991
             "require": {
9991
             "require": {
9992
-                "filp/whoops": "^2.16.0",
9992
+                "filp/whoops": "^2.17.0",
9993
                 "nunomaduro/termwind": "^2.3.0",
9993
                 "nunomaduro/termwind": "^2.3.0",
9994
                 "php": "^8.2.0",
9994
                 "php": "^8.2.0",
9995
                 "symfony/console": "^7.2.1"
9995
                 "symfony/console": "^7.2.1"
9999
                 "phpunit/phpunit": "<11.5.3 || >=12.0.0"
9999
                 "phpunit/phpunit": "<11.5.3 || >=12.0.0"
10000
             },
10000
             },
10001
             "require-dev": {
10001
             "require-dev": {
10002
-                "larastan/larastan": "^2.9.12",
10003
-                "laravel/framework": "^11.39.1",
10004
-                "laravel/pint": "^1.20.0",
10005
-                "laravel/sail": "^1.40.0",
10006
-                "laravel/sanctum": "^4.0.7",
10007
-                "laravel/tinker": "^2.10.0",
10008
-                "orchestra/testbench-core": "^9.9.2",
10009
-                "pestphp/pest": "^3.7.3",
10002
+                "larastan/larastan": "^2.10.0",
10003
+                "laravel/framework": "^11.44.2",
10004
+                "laravel/pint": "^1.21.2",
10005
+                "laravel/sail": "^1.41.0",
10006
+                "laravel/sanctum": "^4.0.8",
10007
+                "laravel/tinker": "^2.10.1",
10008
+                "orchestra/testbench-core": "^9.12.0",
10009
+                "pestphp/pest": "^3.7.4",
10010
                 "sebastian/environment": "^6.1.0 || ^7.2.0"
10010
                 "sebastian/environment": "^6.1.0 || ^7.2.0"
10011
             },
10011
             },
10012
             "type": "library",
10012
             "type": "library",
10070
                     "type": "patreon"
10070
                     "type": "patreon"
10071
                 }
10071
                 }
10072
             ],
10072
             ],
10073
-            "time": "2025-01-23T13:41:43+00:00"
10073
+            "time": "2025-03-14T22:37:40+00:00"
10074
         },
10074
         },
10075
         {
10075
         {
10076
             "name": "pestphp/pest",
10076
             "name": "pestphp/pest",
12662
         },
12662
         },
12663
         {
12663
         {
12664
             "name": "spatie/laravel-ray",
12664
             "name": "spatie/laravel-ray",
12665
-            "version": "1.40.0",
12665
+            "version": "1.40.1",
12666
             "source": {
12666
             "source": {
12667
                 "type": "git",
12667
                 "type": "git",
12668
                 "url": "https://github.com/spatie/laravel-ray.git",
12668
                 "url": "https://github.com/spatie/laravel-ray.git",
12669
-                "reference": "3bcca8c64cd6d45c903f20cb0a548e2143ffdf84"
12669
+                "reference": "2d01295c5a1306935450b01ff950955479096f5f"
12670
             },
12670
             },
12671
             "dist": {
12671
             "dist": {
12672
                 "type": "zip",
12672
                 "type": "zip",
12673
-                "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/3bcca8c64cd6d45c903f20cb0a548e2143ffdf84",
12674
-                "reference": "3bcca8c64cd6d45c903f20cb0a548e2143ffdf84",
12673
+                "url": "https://api.github.com/repos/spatie/laravel-ray/zipball/2d01295c5a1306935450b01ff950955479096f5f",
12674
+                "reference": "2d01295c5a1306935450b01ff950955479096f5f",
12675
                 "shasum": ""
12675
                 "shasum": ""
12676
             },
12676
             },
12677
             "require": {
12677
             "require": {
12734
             ],
12734
             ],
12735
             "support": {
12735
             "support": {
12736
                 "issues": "https://github.com/spatie/laravel-ray/issues",
12736
                 "issues": "https://github.com/spatie/laravel-ray/issues",
12737
-                "source": "https://github.com/spatie/laravel-ray/tree/1.40.0"
12737
+                "source": "https://github.com/spatie/laravel-ray/tree/1.40.1"
12738
             },
12738
             },
12739
             "funding": [
12739
             "funding": [
12740
                 {
12740
                 {
12746
                     "type": "other"
12746
                     "type": "other"
12747
                 }
12747
                 }
12748
             ],
12748
             ],
12749
-            "time": "2025-03-08T10:58:11+00:00"
12749
+            "time": "2025-03-14T13:11:12+00:00"
12750
         },
12750
         },
12751
         {
12751
         {
12752
             "name": "spatie/macroable",
12752
             "name": "spatie/macroable",

+ 12
- 12
package-lock.json 查看文件

976
             }
976
             }
977
         },
977
         },
978
         "node_modules/axios": {
978
         "node_modules/axios": {
979
-            "version": "1.8.2",
980
-            "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz",
981
-            "integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==",
979
+            "version": "1.8.3",
980
+            "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz",
981
+            "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==",
982
             "dev": true,
982
             "dev": true,
983
             "license": "MIT",
983
             "license": "MIT",
984
             "dependencies": {
984
             "dependencies": {
1088
             }
1088
             }
1089
         },
1089
         },
1090
         "node_modules/caniuse-lite": {
1090
         "node_modules/caniuse-lite": {
1091
-            "version": "1.0.30001703",
1092
-            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001703.tgz",
1093
-            "integrity": "sha512-kRlAGTRWgPsOj7oARC9m1okJEXdL/8fekFVcxA8Hl7GH4r/sN4OJn/i6Flde373T50KS7Y37oFbMwlE8+F42kQ==",
1091
+            "version": "1.0.30001704",
1092
+            "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001704.tgz",
1093
+            "integrity": "sha512-+L2IgBbV6gXB4ETf0keSvLr7JUrRVbIaB/lrQ1+z8mRcQiisG5k+lG6O4n6Y5q6f5EuNfaYXKgymucphlEXQew==",
1094
             "dev": true,
1094
             "dev": true,
1095
             "funding": [
1095
             "funding": [
1096
                 {
1096
                 {
1264
             "license": "MIT"
1264
             "license": "MIT"
1265
         },
1265
         },
1266
         "node_modules/electron-to-chromium": {
1266
         "node_modules/electron-to-chromium": {
1267
-            "version": "1.5.114",
1268
-            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.114.tgz",
1269
-            "integrity": "sha512-DFptFef3iktoKlFQK/afbo274/XNWD00Am0xa7M8FZUepHlHT8PEuiNBoRfFHbH1okqN58AlhbJ4QTkcnXorjA==",
1267
+            "version": "1.5.119",
1268
+            "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.119.tgz",
1269
+            "integrity": "sha512-Ku4NMzUjz3e3Vweh7PhApPrZSS4fyiCIbcIrG9eKrriYVLmbMepETR/v6SU7xPm98QTqMSYiCwfO89QNjXLkbQ==",
1270
             "dev": true,
1270
             "dev": true,
1271
             "license": "ISC"
1271
             "license": "ISC"
1272
         },
1272
         },
2794
             "license": "MIT"
2794
             "license": "MIT"
2795
         },
2795
         },
2796
         "node_modules/vite": {
2796
         "node_modules/vite": {
2797
-            "version": "6.2.1",
2798
-            "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.1.tgz",
2799
-            "integrity": "sha512-n2GnqDb6XPhlt9B8olZPrgMD/es/Nd1RdChF6CBD/fHW6pUyUTt2sQW2fPRX5GiD9XEa6+8A6A4f2vT6pSsE7Q==",
2797
+            "version": "6.2.2",
2798
+            "resolved": "https://registry.npmjs.org/vite/-/vite-6.2.2.tgz",
2799
+            "integrity": "sha512-yW7PeMM+LkDzc7CgJuRLMW2Jz0FxMOsVJ8Lv3gpgW9WLcb9cTW+121UEr1hvmfR7w3SegR5ItvYyzVz1vxNJgQ==",
2800
             "dev": true,
2800
             "dev": true,
2801
             "license": "MIT",
2801
             "license": "MIT",
2802
             "dependencies": {
2802
             "dependencies": {

+ 1
- 1
resources/views/components/panel-shift-dropdown.blade.php 查看文件

50
         </button>
50
         </button>
51
     </div>
51
     </div>
52
     <div x-show="open"
52
     <div x-show="open"
53
-         class="flex flex-col transition duration-200 ease-in-out grow shrink mt-4 absolute z-10 w-screen max-w-[360px] end-8 rounded-lg bg-white shadow-lg ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10 overflow-hidden">
53
+         class="flex flex-col transition duration-200 ease-in-out grow shrink mt-4 fixed z-10 w-screen max-w-[360px] end-4 sm:end-8 rounded-lg bg-white shadow-lg ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10 overflow-hidden">
54
         @foreach($panels as $panelId => $panel)
54
         @foreach($panels as $panelId => $panel)
55
             <x-panel-shift-dropdown.panel :panel-id="$panelId">
55
             <x-panel-shift-dropdown.panel :panel-id="$panelId">
56
                 @if($panelId !== 'main' && isset($panel['label']))
56
                 @if($panelId !== 'main' && isset($panel['label']))

正在加载...
取消
保存