Skip to content

Commit 4e9e4ae

Browse files
committed
fix some upgrade issue
1 parent e12cd0f commit 4e9e4ae

File tree

6 files changed

+93
-79
lines changed

6 files changed

+93
-79
lines changed

app/Filament/Resources/TorrentCustomFields/Pages/ListTorrentCustomFields.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
namespace App\Filament\Resources\TorrentCustomFields\Pages;
44

5+
use App\Filament\PageList;
56
use App\Filament\Resources\TorrentCustomFields\TorrentCustomFieldResource;
67
use Filament\Actions\CreateAction;
78
use Filament\Resources\Pages\ListRecords;
89

9-
class ListTorrentCustomFields extends ListRecords
10+
class ListTorrentCustomFields extends PageList
1011
{
1112
protected static string $resource = TorrentCustomFieldResource::class;
1213

app/Models/IpLog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ protected function ipLocation(): Attribute
2121
private function getIpLocation(string $ip)
2222
{
2323
$result = get_ip_location_from_geoip($ip);
24-
$out = $result['name'];
24+
$out = $result['name'] ?? '';
2525
$suffix = [];
2626
if (!empty($result['city_en'])) {
2727
$suffix[] = $result['city_en'];

include/constants.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.14');
3-
defined('RELEASE_DATE') || define('RELEASE_DATE', '2026-01-23');
2+
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.10.0');
3+
defined('RELEASE_DATE') || define('RELEASE_DATE', '2026-01-31');
44
defined('IN_TRACKER') || define('IN_TRACKER', false);
55
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
66
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");

nexus/Install/Update.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ private function addSetting($name, $value)
9595

9696
public function runExtraQueries()
9797
{
98+
/**
99+
* @since 1.10, must run first
100+
*/
101+
$this->runMigrate('database/migrations/2025_10_05_030400_create_activity_log_table.php');
102+
98103
$toolRep = new ToolRepository();
99104
$redis = NExusDB::redis();
100105
/**
Lines changed: 50 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,55 @@
11
<div class="fi-ta-ctn">
2-
<div class="fi-ta-content-ctn">
3-
<table class="fi-ta-table">
4-
<thead>
5-
<tr>
6-
<th class="fi-ta-header-cell fi-ta-header-cell-id">
7-
{{ __('label.exam.index_required_label') }}
8-
</th>
9-
<th class="fi-ta-header-cell fi-ta-header-cell-id">
10-
{{ __('label.exam.index_required_value') }}
11-
</th>
12-
<th class="fi-ta-header-cell fi-ta-header-cell-id">
13-
{{ __('label.exam.index_current_value') }}
2+
<div class="fi-ta-main">
3+
<div class="fi-ta-content-ctn">
4+
<table class="fi-ta-table">
5+
<thead>
6+
<tr>
7+
<th class="fi-ta-header-cell fi-ta-header-cell-id">
8+
{{ __('label.exam.index_required_label') }}
9+
</th>
10+
<th class="fi-ta-header-cell fi-ta-header-cell-id">
11+
{{ __('label.exam.index_required_value') }}
12+
</th>
13+
<th class="fi-ta-header-cell fi-ta-header-cell-id">
14+
{{ __('label.exam.index_current_value') }}
1415

15-
</th>
16-
<th class="fi-ta-header-cell fi-ta-header-cell-id">
17-
{{ __('label.exam.index_result') }}
18-
</th>
19-
</tr>
20-
</thead>
21-
<tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
22-
@foreach ($getState() as $index)
23-
<tr class="fi-ta-row">
24-
<td class="fi-ta-cell fi-ta-cell-id">
25-
<div class="fi-ta-col">
26-
<div class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['index_formatted'] }}</div>
27-
</div>
28-
</td>
29-
<td class="fi-ta-cell fi-ta-cell-id">
30-
<div class="fi-ta-col">
31-
<div
32-
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['require_value_formatted'] }}</div>
33-
</div>
34-
</td>
35-
<td class="fi-ta-cell fi-ta-cell-id">
36-
<div class="fi-ta-col">
37-
<div
38-
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['current_value_formatted'] }}</div>
39-
</div>
40-
</td>
41-
<td class="fi-ta-cell fi-ta-cell-id">
42-
<div class="fi-ta-col">
43-
<div class="fi-size-sm fi-ta-text-item fi-ta-text">{!! $index['index_result'] !!}</div>
44-
</div>
45-
</td>
16+
</th>
17+
<th class="fi-ta-header-cell fi-ta-header-cell-id">
18+
{{ __('label.exam.index_result') }}
19+
</th>
4620
</tr>
47-
@endforeach
48-
</tbody>
49-
</table>
21+
</thead>
22+
<tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
23+
@foreach ($getState() as $index)
24+
<tr class="fi-ta-row">
25+
<td class="fi-ta-cell fi-ta-cell-id">
26+
<div class="fi-ta-col">
27+
<div
28+
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['index_formatted'] }}</div>
29+
</div>
30+
</td>
31+
<td class="fi-ta-cell fi-ta-cell-id">
32+
<div class="fi-ta-col">
33+
<div
34+
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['require_value_formatted'] }}</div>
35+
</div>
36+
</td>
37+
<td class="fi-ta-cell fi-ta-cell-id">
38+
<div class="fi-ta-col">
39+
<div
40+
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['current_value_formatted'] }}</div>
41+
</div>
42+
</td>
43+
<td class="fi-ta-cell fi-ta-cell-id">
44+
<div class="fi-ta-col">
45+
<div
46+
class="fi-size-sm fi-ta-text-item fi-ta-text">{!! $index['index_result'] !!}</div>
47+
</div>
48+
</td>
49+
</tr>
50+
@endforeach
51+
</tbody>
52+
</table>
53+
</div>
5054
</div>
5155
</div>
Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
11
<x-filament-widgets::widget class="fi-ta-ctn fi-ta-ctn-with-header">
2-
<!-- Header Section -->
3-
<div class="fi-ta-header">
4-
<div>
5-
<h2 class="fi-ta-header-heading">
6-
{{$header}}
7-
</h2>
2+
<div class="fi-ta-main">
3+
<!-- Header Section -->
4+
<div class="fi-ta-header-ctn">
5+
<div class="fi-ta-header">
6+
<div>
7+
<h2 class="fi-ta-header-heading">
8+
{{$header}}
9+
</h2>
10+
</div>
11+
</div>
12+
</div>
13+
<!-- Table Section -->
14+
<div class="fi-ta-content-ctn fi-fixed-positioning-context">
15+
<table class="fi-ta-table">
16+
<tbody>
17+
@foreach(array_chunk($data, 2) as $chunk)
18+
<tr>
19+
@foreach($chunk as $item)
20+
<th class="fi-ta-header-cell fi-ta-header-cell-id">
21+
{{$item['text']}}
22+
</th>
23+
<td class="fi-ta-cell fi-table-cell-id"
24+
@if($loop->count == 1)
25+
colspan="3"
26+
@endif
27+
>
28+
<div class="{{$item['class'] ?? ''}}">{{$item['value']}}</div>
29+
</td>
30+
@endforeach
31+
</tr>
32+
@endforeach
33+
</tbody>
34+
</table>
835
</div>
9-
</div>
10-
<!-- Table Section -->
11-
<div class="fi-ta-content-ctn">
12-
<table class="fi-ta-table">
13-
<tbody>
14-
@foreach(array_chunk($data, 2) as $chunk)
15-
<tr>
16-
@foreach($chunk as $item)
17-
<th class="fi-ta-header-cell fi-ta-header-cell-id">
18-
{{$item['text']}}
19-
</th>
20-
<td class="fi-ta-cell fi-table-cell-id"
21-
@if($loop->count == 1)
22-
colspan="3"
23-
@endif
24-
>
25-
<div class="{{$item['class'] ?? ''}}">{{$item['value']}}</div>
26-
</td>
27-
@endforeach
28-
</tr>
29-
@endforeach
30-
</tbody>
31-
</table>
3236
</div>
3337
</x-filament-widgets::widget>

0 commit comments

Comments
 (0)