mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix some upgrade issue
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
|
||||
namespace App\Filament\Resources\TorrentCustomFields\Pages;
|
||||
|
||||
use App\Filament\PageList;
|
||||
use App\Filament\Resources\TorrentCustomFields\TorrentCustomFieldResource;
|
||||
use Filament\Actions\CreateAction;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ListTorrentCustomFields extends ListRecords
|
||||
class ListTorrentCustomFields extends PageList
|
||||
{
|
||||
protected static string $resource = TorrentCustomFieldResource::class;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class IpLog extends NexusModel
|
||||
private function getIpLocation(string $ip)
|
||||
{
|
||||
$result = get_ip_location_from_geoip($ip);
|
||||
$out = $result['name'];
|
||||
$out = $result['name'] ?? '';
|
||||
$suffix = [];
|
||||
if (!empty($result['city_en'])) {
|
||||
$suffix[] = $result['city_en'];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.14');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2026-01-23');
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.10.0');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2026-01-31');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -95,6 +95,11 @@ class Update extends Install
|
||||
|
||||
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();
|
||||
$redis = NExusDB::redis();
|
||||
/**
|
||||
|
||||
@@ -1,51 +1,55 @@
|
||||
<div class="fi-ta-ctn">
|
||||
<div class="fi-ta-content-ctn">
|
||||
<table class="fi-ta-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_label') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_value') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_current_value') }}
|
||||
<div class="fi-ta-main">
|
||||
<div class="fi-ta-content-ctn">
|
||||
<table class="fi-ta-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_label') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_required_value') }}
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_current_value') }}
|
||||
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_result') }}
|
||||
</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>
|
||||
</th>
|
||||
<th class="fi-ta-header-cell fi-ta-header-cell-id">
|
||||
{{ __('label.exam.index_result') }}
|
||||
</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</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>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,33 +1,37 @@
|
||||
<x-filament-widgets::widget class="fi-ta-ctn fi-ta-ctn-with-header">
|
||||
<!-- Header Section -->
|
||||
<div class="fi-ta-header">
|
||||
<div>
|
||||
<h2 class="fi-ta-header-heading">
|
||||
{{$header}}
|
||||
</h2>
|
||||
<div class="fi-ta-main">
|
||||
<!-- Header Section -->
|
||||
<div class="fi-ta-header-ctn">
|
||||
<div class="fi-ta-header">
|
||||
<div>
|
||||
<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>
|
||||
<!-- 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>
|
||||
|
||||
Reference in New Issue
Block a user