gitea源码

123456789101112131415161718192021222324252627282930
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package user
  4. const (
  5. // SettingsKeyHiddenCommentTypes is the setting key for hidden comment types
  6. SettingsKeyHiddenCommentTypes = "issue.hidden_comment_types"
  7. // SettingsKeyDiffWhitespaceBehavior is the setting key for whitespace behavior of diff
  8. SettingsKeyDiffWhitespaceBehavior = "diff.whitespace_behaviour"
  9. // SettingsKeyShowOutdatedComments is the setting key whether or not to show outdated comments in PRs
  10. SettingsKeyShowOutdatedComments = "comment_code.show_outdated"
  11. // UserActivityPubPrivPem is user's private key
  12. UserActivityPubPrivPem = "activitypub.priv_pem"
  13. // UserActivityPubPubPem is user's public key
  14. UserActivityPubPubPem = "activitypub.pub_pem"
  15. // SignupIP is the IP address that the user signed up with
  16. SignupIP = "signup.ip"
  17. // SignupUserAgent is the user agent that the user signed up with
  18. SignupUserAgent = "signup.user_agent"
  19. SettingsKeyCodeViewShowFileTree = "code_view.show_file_tree"
  20. SettingsKeyEmailNotificationGiteaActions = "email_notification.gitea_actions"
  21. SettingEmailNotificationGiteaActionsAll = "all"
  22. SettingEmailNotificationGiteaActionsFailureOnly = "failure-only" // Default for actions email preference
  23. SettingEmailNotificationGiteaActionsDisabled = "disabled"
  24. )