mirror of https://github.com/Xhofe/alist
🔧 #523 add some default setting
parent
4f81735af6
commit
435bdea8f7
|
@ -57,6 +57,7 @@ func (driver Pan123) Items() []base.Item {
|
||||||
Type: base.TypeSelect,
|
Type: base.TypeSelect,
|
||||||
Values: "name,fileId,updateAt,createAt",
|
Values: "name,fileId,updateAt,createAt",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
Default: "name",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "order_direction",
|
Name: "order_direction",
|
||||||
|
@ -64,6 +65,7 @@ func (driver Pan123) Items() []base.Item {
|
||||||
Type: base.TypeSelect,
|
Type: base.TypeSelect,
|
||||||
Values: "asc,desc",
|
Values: "asc,desc",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
Default: "asc",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,11 +45,12 @@ func (driver MediaTrack) Items() []base.Item {
|
||||||
Required: true,
|
Required: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "order_by",
|
Name: "order_by",
|
||||||
Label: "order_by",
|
Label: "order_by",
|
||||||
Type: base.TypeSelect,
|
Type: base.TypeSelect,
|
||||||
Values: "updated_at,title,size",
|
Values: "updated_at,title,size",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
Description: "title",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "order_direction",
|
Name: "order_direction",
|
||||||
|
@ -57,6 +58,7 @@ func (driver MediaTrack) Items() []base.Item {
|
||||||
Type: base.TypeSelect,
|
Type: base.TypeSelect,
|
||||||
Values: "true,false",
|
Values: "true,false",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
Default: "false",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ func (driver Teambition) Items() []base.Item {
|
||||||
Type: base.TypeSelect,
|
Type: base.TypeSelect,
|
||||||
Values: "fileName,fileSize,updated,created",
|
Values: "fileName,fileSize,updated,created",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
Default: "fileName",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "order_direction",
|
Name: "order_direction",
|
||||||
|
@ -58,6 +59,7 @@ func (driver Teambition) Items() []base.Item {
|
||||||
Type: base.TypeSelect,
|
Type: base.TypeSelect,
|
||||||
Values: "Asc,Desc",
|
Values: "Asc,Desc",
|
||||||
Required: true,
|
Required: true,
|
||||||
|
Default: "Asc",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue