mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
change new install category sort
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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([
|
||||
|
||||
@@ -14,103 +14,103 @@ class CategoriesTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
|
||||
\DB::table('categories')->delete();
|
||||
|
||||
|
||||
\DB::table('categories')->insert(array (
|
||||
0 =>
|
||||
0 =>
|
||||
array (
|
||||
'id' => 401,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_movies',
|
||||
'name' => 'Movies',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 0,
|
||||
'sort_index' => 8,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
1 =>
|
||||
1 =>
|
||||
array (
|
||||
'id' => 402,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_tvseries',
|
||||
'name' => 'TV Series',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 3,
|
||||
'sort_index' => 7,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
2 =>
|
||||
2 =>
|
||||
array (
|
||||
'id' => 403,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_tvshows',
|
||||
'name' => 'TV Shows',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 4,
|
||||
'sort_index' => 6,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
3 =>
|
||||
3 =>
|
||||
array (
|
||||
'id' => 404,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_doc',
|
||||
'name' => 'Documentaries',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 1,
|
||||
'sort_index' => 5,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
4 =>
|
||||
4 =>
|
||||
array (
|
||||
'id' => 405,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_anime',
|
||||
'name' => 'Animations',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 2,
|
||||
'sort_index' => 4,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
5 =>
|
||||
5 =>
|
||||
array (
|
||||
'id' => 406,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_mv',
|
||||
'name' => 'Music Videos',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 5,
|
||||
'sort_index' => 3,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
6 =>
|
||||
6 =>
|
||||
array (
|
||||
'id' => 407,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_sports',
|
||||
'name' => 'Sports',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 6,
|
||||
'sort_index' => 2,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
7 =>
|
||||
7 =>
|
||||
array (
|
||||
'id' => 408,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_hqaudio',
|
||||
'name' => 'HQ Audio',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 8,
|
||||
'sort_index' => 1,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
8 =>
|
||||
8 =>
|
||||
array (
|
||||
'id' => 409,
|
||||
'mode' => 4,
|
||||
'class_name' => 'c_misc',
|
||||
'name' => 'Misc',
|
||||
'image' => 'catsprites.png',
|
||||
'sort_index' => 7,
|
||||
'sort_index' => 0,
|
||||
'icon_id' => 1,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.0');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-05-17');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2025-05-18');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', false);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
Reference in New Issue
Block a user