feat: custom hide error message by regexp (close #1468)

This commit is contained in:
Noah Hsu
2022-08-08 12:52:54 +08:00
parent d6437a337f
commit 2b04cf4ac3
8 changed files with 144 additions and 20 deletions

View File

@ -9,6 +9,7 @@ const (
)
const (
// site
VERSION = "version"
ApiUrl = "api_url"
BasePath = "base_path"
@ -18,6 +19,7 @@ const (
Announcement = "announcement"
IconColor = "icon_color"
// preview
TextTypes = "text_types"
AudioTypes = "audio_types"
VideoTypes = "video_types"
@ -28,15 +30,19 @@ const (
AudioAutoplay = "audio_autoplay"
VideoAutoplay = "video_autoplay"
// global
HideFiles = "hide_files"
GlobalReadme = "global_readme"
CustomizeHead = "customize_head"
CustomizeBody = "customize_body"
LinkExpiration = "link_expiration"
PrivacyRegs = "privacy_regs"
// aria2
Aria2Uri = "aria2_uri"
Aria2Secret = "aria2_secret"
// single
Token = "token"
)

View File

@ -1,5 +1,7 @@
package conf
import "regexp"
var (
BuiltAt string
GoVersion string
@ -14,3 +16,4 @@ var (
)
var TypesMap = make(map[string][]string)
var PrivacyReg []*regexp.Regexp