alist/internal/conf/const.go

64 lines
1.2 KiB
Go
Raw Normal View History

2022-06-06 13:48:53 +00:00
package conf
2022-06-27 06:32:21 +00:00
const (
TypeString = "string"
TypeSelect = "select"
TypeBool = "bool"
TypeText = "text"
TypeNumber = "number"
)
2022-06-29 08:08:55 +00:00
const (
// site
VERSION = "version"
2022-07-02 08:43:07 +00:00
ApiUrl = "api_url"
BasePath = "base_path"
SiteTitle = "site_title"
Announcement = "announcement"
Logo = "logo"
Favicon = "favicon"
MainColor = "main_color"
// preview
2022-08-23 08:50:54 +00:00
TextTypes = "text_types"
AudioTypes = "audio_types"
VideoTypes = "video_types"
ImageTypes = "image_types"
// OfficeTypes = "office_types"
ProxyTypes = "proxy_types"
2022-08-08 05:03:34 +00:00
OfficeViewers = "office_viewers"
PdfViewers = "pdf_viewers"
AudioAutoplay = "audio_autoplay"
VideoAutoplay = "video_autoplay"
// global
HideFiles = "hide_files"
CustomizeHead = "customize_head"
CustomizeBody = "customize_body"
LinkExpiration = "link_expiration"
2022-12-02 09:42:42 +00:00
SignAll = "sign_all"
PrivacyRegs = "privacy_regs"
OcrApi = "ocr_api"
FilenameCharMapping = "filename_char_mapping"
SearchIndex = "search_index"
// aria2
Aria2Uri = "aria2_uri"
Aria2Secret = "aria2_secret"
// single
Token = "token"
IndexProgress = "index_progress"
2022-06-29 08:08:55 +00:00
)
2022-08-07 16:51:05 +00:00
const (
UNKNOWN = iota
FOLDER
2022-08-23 08:50:54 +00:00
//OFFICE
2022-08-07 16:51:05 +00:00
VIDEO
AUDIO
TEXT
IMAGE
)