defaultSortOrder

This commit is contained in:
微凉
2021-09-27 19:35:22 +08:00
parent fb529eb380
commit c8cd77b265
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ info:
check_update: true #前端是否显示更新
script: #自定义脚本,可以是脚本的链接,也可以直接是脚本内容,如document.querySelector('body').style="background-image:url('https://api.mtyqx.cn/api/random.php');background-attachment:fixed"
autoplay: true #视频是否自动播放
sort: name-descend #列名-排序方向(descend|ascend)
preview:
text: [txt,htm,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,yml,go,sh,c,cpp,h,hpp] #要预览的文本文件的后缀,可以自行添加
server:

View File

@@ -22,6 +22,7 @@ type Config struct {
CheckUpdate bool `yaml:"check_update" json:"check_update"`
Script string `yaml:"script" json:"script"`
Autoplay bool `yaml:"autoplay" json:"autoplay"`
Sort string `yaml:"sort" json:"sort"`
Preview struct {
Url string `yaml:"url" json:"url"`
PreProcess []string `yaml:"pre_process" json:"pre_process"`