refactor: modify the address of the default comment plugin. (#620)

pull/621/head
Ryan Wang 2020-03-06 14:10:00 +08:00 committed by GitHub
parent 491b8c89e8
commit eb71e98087
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 4 deletions

View File

@ -9,29 +9,50 @@ package run.halo.app.model.properties;
*/ */
public enum CommentProperties implements PropertyEnum { public enum CommentProperties implements PropertyEnum {
/**
* The default gravatar type.
*/
GRAVATAR_DEFAULT("comment_gravatar_default", String.class, "mm"), GRAVATAR_DEFAULT("comment_gravatar_default", String.class, "mm"),
/**
* Does it need to be checked.
*/
NEW_NEED_CHECK("comment_new_need_check", Boolean.class, "true"), NEW_NEED_CHECK("comment_new_need_check", Boolean.class, "true"),
/**
* New mail notification.
*/
NEW_NOTICE("comment_new_notice", Boolean.class, "false"), NEW_NOTICE("comment_new_notice", Boolean.class, "false"),
PASS_NOTICE("comment_pass_notice", Boolean.class, "false"), /**
* Reply to the email to notify the author.
*/
REPLY_NOTICE("comment_reply_notice", Boolean.class, "false"), REPLY_NOTICE("comment_reply_notice", Boolean.class, "false"),
/**
* Whether to enable comment api.
*/
API_ENABLED("comment_api_enabled", Boolean.class, "true"), API_ENABLED("comment_api_enabled", Boolean.class, "true"),
/**
* Comment list page size.
*/
PAGE_SIZE("comment_page_size", Integer.class, "10"), PAGE_SIZE("comment_page_size", Integer.class, "10"),
/**
* Placeholder for comment content input.
*/
CONTENT_PLACEHOLDER("comment_content_placeholder", String.class, ""), CONTENT_PLACEHOLDER("comment_content_placeholder", String.class, ""),
INTERNAL_PLUGIN_JS("comment_internal_plugin_js", String.class, "//cdn.jsdelivr.net/gh/halo-dev/halo-comment@latest/dist/halo-comment.min.js"), /**
* Dependent comment js.
*/
INTERNAL_PLUGIN_JS("comment_internal_plugin_js", String.class, "//cdn.jsdelivr.net/npm/halo-comment@latest/dist/halo-comment.min.js"),
COMMENT_BAN_TIME("comment_ban_time", Integer.class, "10"), COMMENT_BAN_TIME("comment_ban_time", Integer.class, "10"),
COMMENT_RANGE("comment_range", Integer.class, "30"); COMMENT_RANGE("comment_range", Integer.class, "30");
private final String value; private final String value;
private final Class<?> type; private final Class<?> type;