Complate properties default value.

pull/146/head
ruibaby 2019-04-25 15:58:13 +08:00
parent 5f6a8ba790
commit faa2a26e7a
6 changed files with 17 additions and 13 deletions

View File

@ -8,19 +8,19 @@ package run.halo.app.model.properties;
*/
public enum CommentProperties implements PropertyEnum {
GAVATAR_DEFAULT("comment_gavatar_default", String.class, ""),
GAVATAR_DEFAULT("comment_gavatar_default", String.class, "mm"),
NEW_NEED_CHECK("comment_new_need_check", Boolean.class, ""),
NEW_NEED_CHECK("comment_new_need_check", Boolean.class, "true"),
NEW_NOTICE("comment_new_notice", Boolean.class, ""),
NEW_NOTICE("comment_new_notice", Boolean.class, "false"),
PASS_NOTICE("comment_pass_notice", Boolean.class, ""),
PASS_NOTICE("comment_pass_notice", Boolean.class, "false"),
REPLY_NOTICE("comment_reply_notice", Boolean.class, ""),
REPLY_NOTICE("comment_reply_notice", Boolean.class, "false"),
API_ENABLED("comment_api_enabled", Boolean.class, ""),
API_ENABLED("comment_api_enabled", Boolean.class, "false"),
PAGE_SIZE("comment_page_size", Integer.class, ""),
PAGE_SIZE("comment_page_size", Integer.class, "10"),
CONTENT_PLACEHOLDER("comment_content_placeholder", String.class, ""),
@ -29,7 +29,7 @@ public enum CommentProperties implements PropertyEnum {
private final String value;
private final Class<?> type;
private final String defaultValue;
CommentProperties(String value, Class<?> type, String defaultValue) {

View File

@ -20,7 +20,7 @@ public enum EmailProperties implements PropertyEnum {
FROM_NAME("email_from_name", String.class, ""),
ENABLED("email_enabled", Boolean.class, "");
ENABLED("email_enabled", Boolean.class, "false");
private final String value;

View File

@ -8,7 +8,7 @@ package run.halo.app.model.properties;
*/
public enum OtherProperties implements PropertyEnum {
API_ENABLED("api_enabled", Boolean.class, ""),
API_ENABLED("api_enabled", Boolean.class, "false"),
API_TOKEN("api_token", String.class, ""),

View File

@ -8,7 +8,7 @@ package run.halo.app.model.properties;
*/
public enum PostProperties implements PropertyEnum {
SUMMARY_LENGTH("post_summary_length", Integer.class, ""),
SUMMARY_LENGTH("post_summary_length", Integer.class, "150"),
RSS_PAGE_SIZE("rss_page_size", Integer.class, "20"),

View File

@ -8,7 +8,7 @@ package run.halo.app.model.properties;
*/
public enum QnYunProperties implements PropertyEnum {
ZONE("oss_qiniu_zone", String.class, ""),
ZONE("oss_qiniu_zone", String.class, "auto"),
ACCESS_KEY("oss_qiniu_access_key", String.class, ""),
@ -23,7 +23,7 @@ public enum QnYunProperties implements PropertyEnum {
private final String value;
private final Class<?> type;
private final String defaultValue;
QnYunProperties(String value, Class<?> type, String defaultValue) {

File diff suppressed because one or more lines are too long