fix some upgrade issue

This commit is contained in:
xiaomlove
2026-01-31 00:08:23 +07:00
parent e12cd0fab9
commit 4e9e4ae143
6 changed files with 93 additions and 79 deletions
@@ -2,11 +2,12 @@
namespace App\Filament\Resources\TorrentCustomFields\Pages; namespace App\Filament\Resources\TorrentCustomFields\Pages;
use App\Filament\PageList;
use App\Filament\Resources\TorrentCustomFields\TorrentCustomFieldResource; use App\Filament\Resources\TorrentCustomFields\TorrentCustomFieldResource;
use Filament\Actions\CreateAction; use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords; use Filament\Resources\Pages\ListRecords;
class ListTorrentCustomFields extends ListRecords class ListTorrentCustomFields extends PageList
{ {
protected static string $resource = TorrentCustomFieldResource::class; protected static string $resource = TorrentCustomFieldResource::class;
+1 -1
View File
@@ -21,7 +21,7 @@ class IpLog extends NexusModel
private function getIpLocation(string $ip) private function getIpLocation(string $ip)
{ {
$result = get_ip_location_from_geoip($ip); $result = get_ip_location_from_geoip($ip);
$out = $result['name']; $out = $result['name'] ?? '';
$suffix = []; $suffix = [];
if (!empty($result['city_en'])) { if (!empty($result['city_en'])) {
$suffix[] = $result['city_en']; $suffix[] = $result['city_en'];
+2 -2
View File
@@ -1,6 +1,6 @@
<?php <?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.14'); defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.10.0');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2026-01-23'); defined('RELEASE_DATE') || define('RELEASE_DATE', '2026-01-31');
defined('IN_TRACKER') || define('IN_TRACKER', false); defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP"); defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org"); defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
+5
View File
@@ -95,6 +95,11 @@ class Update extends Install
public function runExtraQueries() public function runExtraQueries()
{ {
/**
* @since 1.10, must run first
*/
$this->runMigrate('database/migrations/2025_10_05_030400_create_activity_log_table.php');
$toolRep = new ToolRepository(); $toolRep = new ToolRepository();
$redis = NExusDB::redis(); $redis = NExusDB::redis();
/** /**
@@ -1,51 +1,55 @@
<div class="fi-ta-ctn"> <div class="fi-ta-ctn">
<div class="fi-ta-content-ctn"> <div class="fi-ta-main">
<table class="fi-ta-table"> <div class="fi-ta-content-ctn">
<thead> <table class="fi-ta-table">
<tr> <thead>
<th class="fi-ta-header-cell fi-ta-header-cell-id"> <tr>
{{ __('label.exam.index_required_label') }} <th class="fi-ta-header-cell fi-ta-header-cell-id">
</th> {{ __('label.exam.index_required_label') }}
<th class="fi-ta-header-cell fi-ta-header-cell-id"> </th>
{{ __('label.exam.index_required_value') }} <th class="fi-ta-header-cell fi-ta-header-cell-id">
</th> {{ __('label.exam.index_required_value') }}
<th class="fi-ta-header-cell fi-ta-header-cell-id"> </th>
{{ __('label.exam.index_current_value') }} <th class="fi-ta-header-cell fi-ta-header-cell-id">
{{ __('label.exam.index_current_value') }}
</th> </th>
<th class="fi-ta-header-cell fi-ta-header-cell-id"> <th class="fi-ta-header-cell fi-ta-header-cell-id">
{{ __('label.exam.index_result') }} {{ __('label.exam.index_result') }}
</th> </th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
@foreach ($getState() as $index)
<tr class="fi-ta-row">
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['index_formatted'] }}</div>
</div>
</td>
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['require_value_formatted'] }}</div>
</div>
</td>
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['current_value_formatted'] }}</div>
</div>
</td>
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div class="fi-size-sm fi-ta-text-item fi-ta-text">{!! $index['index_result'] !!}</div>
</div>
</td>
</tr> </tr>
@endforeach </thead>
</tbody> <tbody class="divide-y divide-gray-200 whitespace-nowrap dark:divide-white/5">
</table> @foreach ($getState() as $index)
<tr class="fi-ta-row">
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['index_formatted'] }}</div>
</div>
</td>
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['require_value_formatted'] }}</div>
</div>
</td>
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div
class="fi-size-sm fi-ta-text-item fi-ta-text">{{ $index['current_value_formatted'] }}</div>
</div>
</td>
<td class="fi-ta-cell fi-ta-cell-id">
<div class="fi-ta-col">
<div
class="fi-size-sm fi-ta-text-item fi-ta-text">{!! $index['index_result'] !!}</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div> </div>
</div> </div>
@@ -1,33 +1,37 @@
<x-filament-widgets::widget class="fi-ta-ctn fi-ta-ctn-with-header"> <x-filament-widgets::widget class="fi-ta-ctn fi-ta-ctn-with-header">
<!-- Header Section --> <div class="fi-ta-main">
<div class="fi-ta-header"> <!-- Header Section -->
<div> <div class="fi-ta-header-ctn">
<h2 class="fi-ta-header-heading"> <div class="fi-ta-header">
{{$header}} <div>
</h2> <h2 class="fi-ta-header-heading">
{{$header}}
</h2>
</div>
</div>
</div>
<!-- Table Section -->
<div class="fi-ta-content-ctn fi-fixed-positioning-context">
<table class="fi-ta-table">
<tbody>
@foreach(array_chunk($data, 2) as $chunk)
<tr>
@foreach($chunk as $item)
<th class="fi-ta-header-cell fi-ta-header-cell-id">
{{$item['text']}}
</th>
<td class="fi-ta-cell fi-table-cell-id"
@if($loop->count == 1)
colspan="3"
@endif
>
<div class="{{$item['class'] ?? ''}}">{{$item['value']}}</div>
</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
</div> </div>
</div> </div>
<!-- Table Section -->
<div class="fi-ta-content-ctn">
<table class="fi-ta-table">
<tbody>
@foreach(array_chunk($data, 2) as $chunk)
<tr>
@foreach($chunk as $item)
<th class="fi-ta-header-cell fi-ta-header-cell-id">
{{$item['text']}}
</th>
<td class="fi-ta-cell fi-table-cell-id"
@if($loop->count == 1)
colspan="3"
@endif
>
<div class="{{$item['class'] ?? ''}}">{{$item['value']}}</div>
</td>
@endforeach
</tr>
@endforeach
</tbody>
</table>
</div>
</x-filament-widgets::widget> </x-filament-widgets::widget>