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.
sonic/model/property/comment.go

62 lines
1.5 KiB
Go

2 years ago
package property
import "reflect"
var (
CommentGravatarDefault = Property{
KeyValue: "comment_gravatar_default",
DefaultValue: "mm",
Kind: reflect.String,
}
CommentNewNeedCheck = Property{
KeyValue: "comment_new_need_check",
DefaultValue: true,
Kind: reflect.Bool,
}
CommentNewNotice = Property{
KeyValue: "comment_new_notice",
DefaultValue: true,
Kind: reflect.Bool,
}
CommentReplyNotice = Property{
KeyValue: "comment_reply_notice",
DefaultValue: false,
Kind: reflect.Bool,
}
CommentApiEnabled = Property{
KeyValue: "comment_api_enabled",
DefaultValue: true,
Kind: reflect.Bool,
}
CommentPageSize = Property{
KeyValue: "comment_page_size",
DefaultValue: 10,
Kind: reflect.Int,
}
CommentContentPlaceholder = Property{
KeyValue: "comment_content_placeholder",
DefaultValue: "",
Kind: reflect.String,
}
CommentInternalPluginJs = Property{
KeyValue: "comment_internal_plugin_js",
2 years ago
DefaultValue: "//cdn.jsdelivr.net/npm/halo-comment@latest/dist/halo-comment.min.js",
2 years ago
Kind: reflect.String,
}
CommentGravatarSource = Property{
KeyValue: "gravatar_source",
DefaultValue: "//gravatar.com/avatar/",
Kind: reflect.String,
}
CommentBanTime = Property{
KeyValue: "comment_ban_time",
DefaultValue: 10,
Kind: reflect.Int,
}
CommentRange = Property{
KeyValue: "comment_range",
DefaultValue: 30,
Kind: reflect.Int,
}
)