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 (
|
2022-08-08 04:52:54 +00:00
|
|
|
// site
|
2022-06-29 09:31:37 +00:00
|
|
|
VERSION = "version"
|
2022-07-02 08:43:07 +00:00
|
|
|
ApiUrl = "api_url"
|
|
|
|
BasePath = "base_path"
|
2022-06-29 09:31:37 +00:00
|
|
|
SiteTitle = "site_title"
|
|
|
|
Announcement = "announcement"
|
2022-08-13 07:11:46 +00:00
|
|
|
|
|
|
|
Logo = "logo"
|
|
|
|
Favicon = "favicon"
|
|
|
|
MainColor = "main_color"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// preview
|
2022-08-23 08:50:54 +00:00
|
|
|
TextTypes = "text_types"
|
|
|
|
AudioTypes = "audio_types"
|
|
|
|
VideoTypes = "video_types"
|
|
|
|
ImageTypes = "image_types"
|
2022-12-05 05:28:39 +00:00
|
|
|
// OfficeTypes = "office_types"
|
2022-06-29 09:31:37 +00:00
|
|
|
ProxyTypes = "proxy_types"
|
2022-08-08 05:03:34 +00:00
|
|
|
OfficeViewers = "office_viewers"
|
|
|
|
PdfViewers = "pdf_viewers"
|
2022-06-29 09:31:37 +00:00
|
|
|
AudioAutoplay = "audio_autoplay"
|
|
|
|
VideoAutoplay = "video_autoplay"
|
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// global
|
2022-11-22 07:54:18 +00:00
|
|
|
HideFiles = "hide_files"
|
|
|
|
CustomizeHead = "customize_head"
|
|
|
|
CustomizeBody = "customize_body"
|
|
|
|
LinkExpiration = "link_expiration"
|
2022-12-02 09:42:42 +00:00
|
|
|
SignAll = "sign_all"
|
2022-11-22 07:54:18 +00:00
|
|
|
PrivacyRegs = "privacy_regs"
|
|
|
|
OcrApi = "ocr_api"
|
|
|
|
FilenameCharMapping = "filename_char_mapping"
|
2022-11-28 05:45:25 +00:00
|
|
|
SearchIndex = "search_index"
|
2022-06-29 09:31:37 +00:00
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// aria2
|
2022-06-29 09:31:37 +00:00
|
|
|
Aria2Uri = "aria2_uri"
|
|
|
|
Aria2Secret = "aria2_secret"
|
|
|
|
|
2022-08-08 04:52:54 +00:00
|
|
|
// single
|
2022-11-28 05:45:25 +00:00
|
|
|
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
|
|
|
|
)
|