static files

This commit is contained in:
微凉
2021-10-30 19:26:23 +08:00
parent 2780efaea8
commit eb358e6ede
7 changed files with 29 additions and 9 deletions

View File

@ -135,18 +135,24 @@ func initSettings() {
},
{
Key: "logo",
Value: "",
Value: "https://store.heytapimage.com/cdo-portal/feedback/202110/30/d43c41c5d257c9bc36366e310374fb19.png",
Type: "string",
Description: "logo",
Group: model.PUBLIC,
},
{
Key: "icon_color",
Key: "icon color",
Value: "blue.400",
Type: "string",
Description: "icon's color",
Group: model.PUBLIC,
},
{
Key: "text types",
Value: "txt,htm,html,xml,java,properties,sql,js,md,json,conf,ini,vue,php,py,bat,gitignore,yml,go,sh,c,cpp,h,hpp",
Type: "string",
Description: "text type extensions",
},
},
}
for k, v := range settingsMap {
@ -158,4 +164,8 @@ func initSettings() {
}
}
}
textTypes, err := model.GetSettingByKey("text types")
if err==nil{
conf.ImageTypes = strings.Split(textTypes.Value,",")
}
}