tag add mode

This commit is contained in:
xiaomlove
2022-10-30 17:30:24 +08:00
parent 0fe7b2f76f
commit 87a079b392
39 changed files with 164 additions and 76 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ class AudioCodec extends NexusModel
{
protected $table = 'audiocodecs';
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{
+1 -1
View File
@@ -7,7 +7,7 @@ class Codec extends NexusModel
{
protected $table = 'codecs';
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{
+1 -1
View File
@@ -7,7 +7,7 @@ class Media extends NexusModel
{
protected $table = 'media';
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{
+1 -1
View File
@@ -7,7 +7,7 @@ class Processing extends NexusModel
{
protected $table = 'processings';
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{
+1 -1
View File
@@ -5,7 +5,7 @@ namespace App\Models;
class Source extends NexusModel
{
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{
+1 -1
View File
@@ -5,7 +5,7 @@ namespace App\Models;
class Standard extends NexusModel
{
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{
+8 -1
View File
@@ -7,7 +7,9 @@ class Tag extends NexusModel
public $timestamps = true;
protected $fillable = [
'id', 'name', 'color', 'priority', 'created_at', 'updated_at', 'font_size', 'font_color', 'padding', 'margin', 'border_radius'
'id', 'name', 'color', 'priority', 'created_at', 'updated_at',
'font_size', 'font_color', 'padding', 'margin', 'border_radius',
'mode',
];
const DEFAULTS = [
@@ -66,6 +68,11 @@ class Tag extends NexusModel
return $this->hasMany(TorrentTag::class, 'tag_id');
}
public function search_box(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(SearchBox::class, 'mode', 'id');
}
}
+1 -1
View File
@@ -5,7 +5,7 @@ namespace App\Models;
class Team extends NexusModel
{
protected $fillable = ['name', 'sort_index'];
protected $fillable = ['name', 'sort_index', 'mode',];
public static function getLabelName()
{