mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
change new install category sort
This commit is contained in:
@@ -118,11 +118,13 @@ class NexusUpdate extends Command
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!$mysqlInfo['match']) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
if (!$redisInfo['match']) {
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
if ($includeComposer) {
|
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('icon.name')->label(__('label.search_box.taxonomy.icon_id')),
|
||||||
Tables\Columns\TextColumn::make('image')->label(__('label.search_box.taxonomy.image')),
|
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('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')
|
->defaultSort('sort_index', 'desc')
|
||||||
->filters([
|
->filters([
|
||||||
|
|||||||
@@ -14,103 +14,103 @@ class CategoriesTableSeeder extends Seeder
|
|||||||
*/
|
*/
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
\DB::table('categories')->delete();
|
\DB::table('categories')->delete();
|
||||||
|
|
||||||
\DB::table('categories')->insert(array (
|
\DB::table('categories')->insert(array (
|
||||||
0 =>
|
0 =>
|
||||||
array (
|
array (
|
||||||
'id' => 401,
|
'id' => 401,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_movies',
|
'class_name' => 'c_movies',
|
||||||
'name' => 'Movies',
|
'name' => 'Movies',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 0,
|
'sort_index' => 8,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
1 =>
|
1 =>
|
||||||
array (
|
array (
|
||||||
'id' => 402,
|
'id' => 402,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_tvseries',
|
'class_name' => 'c_tvseries',
|
||||||
'name' => 'TV Series',
|
'name' => 'TV Series',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 3,
|
'sort_index' => 7,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
2 =>
|
2 =>
|
||||||
array (
|
array (
|
||||||
'id' => 403,
|
'id' => 403,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_tvshows',
|
'class_name' => 'c_tvshows',
|
||||||
'name' => 'TV Shows',
|
'name' => 'TV Shows',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 4,
|
'sort_index' => 6,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
3 =>
|
3 =>
|
||||||
array (
|
array (
|
||||||
'id' => 404,
|
'id' => 404,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_doc',
|
'class_name' => 'c_doc',
|
||||||
'name' => 'Documentaries',
|
'name' => 'Documentaries',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 1,
|
'sort_index' => 5,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
4 =>
|
4 =>
|
||||||
array (
|
array (
|
||||||
'id' => 405,
|
'id' => 405,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_anime',
|
'class_name' => 'c_anime',
|
||||||
'name' => 'Animations',
|
'name' => 'Animations',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 2,
|
'sort_index' => 4,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
5 =>
|
5 =>
|
||||||
array (
|
array (
|
||||||
'id' => 406,
|
'id' => 406,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_mv',
|
'class_name' => 'c_mv',
|
||||||
'name' => 'Music Videos',
|
'name' => 'Music Videos',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 5,
|
'sort_index' => 3,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
6 =>
|
6 =>
|
||||||
array (
|
array (
|
||||||
'id' => 407,
|
'id' => 407,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_sports',
|
'class_name' => 'c_sports',
|
||||||
'name' => 'Sports',
|
'name' => 'Sports',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 6,
|
'sort_index' => 2,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
7 =>
|
7 =>
|
||||||
array (
|
array (
|
||||||
'id' => 408,
|
'id' => 408,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_hqaudio',
|
'class_name' => 'c_hqaudio',
|
||||||
'name' => 'HQ Audio',
|
'name' => 'HQ Audio',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 8,
|
'sort_index' => 1,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
8 =>
|
8 =>
|
||||||
array (
|
array (
|
||||||
'id' => 409,
|
'id' => 409,
|
||||||
'mode' => 4,
|
'mode' => 4,
|
||||||
'class_name' => 'c_misc',
|
'class_name' => 'c_misc',
|
||||||
'name' => 'Misc',
|
'name' => 'Misc',
|
||||||
'image' => 'catsprites.png',
|
'image' => 'catsprites.png',
|
||||||
'sort_index' => 7,
|
'sort_index' => 0,
|
||||||
'icon_id' => 1,
|
'icon_id' => 1,
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.9.0');
|
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('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");
|
||||||
|
|||||||
Reference in New Issue
Block a user