change new install category sort

This commit is contained in:
xiaomlove
2025-05-18 16:28:40 +07:00
parent 702d37c12f
commit 273fa3e1b8
4 changed files with 29 additions and 27 deletions

View File

@@ -118,11 +118,13 @@ class NexusUpdate extends Command
return 0;
}
if (!$mysqlInfo['match']) {
$this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$mysqlInfo['minVersion']} or above.", 'error');
$minVersion = $mysqlInfo['minVersion'] ?? '5.7.8';
$this->doLog("Error: MySQL version: {$mysqlInfo['version']} is too low, please use the newest version of {$minVersion} or above.", 'error');
return 0;
}
if (!$redisInfo['match']) {
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$mysqlInfo['minVersion']} or above.", 'error');
$minVersion = $redisInfo['minVersion'] ?? '2.6.12';
$this->doLog("Error: Redis version: {$mysqlInfo['version']} is too low, please use {$minVersion} or above.", 'error');
return 0;
}
if ($includeComposer) {

View File

@@ -95,7 +95,7 @@ class CategoryResource extends Resource
Tables\Columns\TextColumn::make('icon.name')->label(__('label.search_box.taxonomy.icon_id')),
Tables\Columns\TextColumn::make('image')->label(__('label.search_box.taxonomy.image')),
Tables\Columns\TextColumn::make('class_name')->label(__('label.search_box.taxonomy.class_name')),
Tables\Columns\TextColumn::make('sort_index')->label(__('label.search_box.taxonomy.sort_index'))->sortable(),
Tables\Columns\TextColumn::make('sort_index')->label(__('label.priority'))->sortable(),
])
->defaultSort('sort_index', 'desc')
->filters([