add tags init + fix shoutbox in login page

This commit is contained in:
xiaomlove
2022-03-10 18:16:10 +08:00
parent 69fc6500a3
commit b8855299cd
9 changed files with 106 additions and 536 deletions

View File

@@ -41,5 +41,6 @@ class DatabaseSeeder extends Seeder
$this->call(TeamsTableSeeder::class);
$this->call(TorrentsStateTableSeeder::class);
$this->call(UploadspeedTableSeeder::class);
$this->call(TagsTableSeeder::class);
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class TagsTableSeeder extends Seeder
{
/**
* Auto generated seed file
*
* @return void
*/
public function run()
{
\DB::table('tags')->delete();
\DB::table('tags')->insert(array (
0 =>
array (
'id' => 1,
'name' => '禁转',
'color' => '#ff0000',
'priority' => 7,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
1 =>
array (
'id' => 2,
'name' => '首发',
'color' => '#8F77B5',
'priority' => 6,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
2 =>
array (
'id' => 3,
'name' => '官方',
'color' => '#0000ff',
'priority' => 5,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
3 =>
array (
'id' => 4,
'name' => 'DIY',
'color' => '#46d5ff',
'priority' => 4,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
4 =>
array (
'id' => 5,
'name' => '国语',
'color' => '#6a3906',
'priority' => 3,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
5 =>
array (
'id' => 6,
'name' => '中字',
'color' => '#006400',
'priority' => 2,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
6 =>
array (
'id' => 7,
'name' => 'HDR',
'color' => '#38b03f',
'priority' => 1,
'created_at' => '2022-03-10 01:46:44',
'updated_at' => '2022-03-10 01:46:44',
),
));
}
}