const.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package conf
  2. const (
  3. TypeString = "string"
  4. TypeSelect = "select"
  5. TypeBool = "bool"
  6. TypeText = "text"
  7. TypeNumber = "number"
  8. )
  9. const (
  10. // site
  11. VERSION = "version"
  12. ApiUrl = "api_url"
  13. BasePath = "base_path"
  14. SiteTitle = "site_title"
  15. Announcement = "announcement"
  16. AllowIndexed = "allow_indexed"
  17. Logo = "logo"
  18. Favicon = "favicon"
  19. MainColor = "main_color"
  20. // preview
  21. TextTypes = "text_types"
  22. AudioTypes = "audio_types"
  23. VideoTypes = "video_types"
  24. ImageTypes = "image_types"
  25. ProxyTypes = "proxy_types"
  26. ProxyIgnoreHeaders = "proxy_ignore_headers"
  27. AudioAutoplay = "audio_autoplay"
  28. VideoAutoplay = "video_autoplay"
  29. // global
  30. HideFiles = "hide_files"
  31. CustomizeHead = "customize_head"
  32. CustomizeBody = "customize_body"
  33. LinkExpiration = "link_expiration"
  34. SignAll = "sign_all"
  35. PrivacyRegs = "privacy_regs"
  36. OcrApi = "ocr_api"
  37. FilenameCharMapping = "filename_char_mapping"
  38. // index
  39. SearchIndex = "search_index"
  40. AutoUpdateIndex = "auto_update_index"
  41. IndexPaths = "index_paths"
  42. IgnorePaths = "ignore_paths"
  43. // aria2
  44. Aria2Uri = "aria2_uri"
  45. Aria2Secret = "aria2_secret"
  46. // single
  47. Token = "token"
  48. IndexProgress = "index_progress"
  49. //Github
  50. GithubClientId = "github_client_id"
  51. GithubClientSecrets = "github_client_secrets"
  52. GithubLoginEnabled = "github_login_enabled"
  53. )
  54. const (
  55. UNKNOWN = iota
  56. FOLDER
  57. //OFFICE
  58. VIDEO
  59. AUDIO
  60. TEXT
  61. IMAGE
  62. )