mirror of https://github.com/go-sonic/sonic.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
Go
49 lines
1.2 KiB
Go
package consts
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
AccessTokenExpiredSeconds = 24 * 3600
|
|
RefreshTokenExpiredDays = 30
|
|
TokenAccessCachePrefix = "admin_access_token_"
|
|
TokenRefreshCachePrefix = "admin_refresh_token_"
|
|
AdminTokenHeaderName = "Admin-Authorization"
|
|
AuthorizedUser = "authorized_user"
|
|
CodePrefix = "code_"
|
|
CodeValidDuration = time.Second
|
|
OneTimeTokenQueryName = "ott"
|
|
SessionID = "session_id"
|
|
AccessPermissionKeyPrefix = "access_permission_"
|
|
)
|
|
|
|
const (
|
|
SonicBackupPrefix = "sonic-backup-"
|
|
SonicDataExportPrefix = "sonic-data-export-"
|
|
SonicBackupMarkdownPrefix = "sonic-backup-markdown-"
|
|
SonicDefaultTagColor = "#cfd3d7"
|
|
SonicUploadDir = "upload"
|
|
SonicDefaultThemeDirName = "default-theme-anatole"
|
|
)
|
|
|
|
var (
|
|
ThemePropertyFilenames = [2]string{"theme.yaml", "theme.yml"}
|
|
ThemeSettingFilenames = [2]string{"settings.yaml", "settings.yml"}
|
|
)
|
|
|
|
const (
|
|
DefaultThemeID = "caicai_anatole"
|
|
ThemeScreenshotsName = "screenshot"
|
|
ThemeCustomSheetPrefix = "sheet_"
|
|
ThemeCustomPostPrefix = "post_"
|
|
)
|
|
|
|
var (
|
|
StartTime time.Time = time.Now()
|
|
DatabaseVersion string
|
|
SonicVersion = "v1.0.0"
|
|
BuildTime string
|
|
BuildCommit string
|
|
)
|