92 lines
2.4 KiB
JSON
92 lines
2.4 KiB
JSON
|
{
|
||
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||
|
"$id": "/comment/valine.json",
|
||
|
"description": "Valine comment plugin configurations",
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"type": {
|
||
|
"type": "string",
|
||
|
"const": "valine"
|
||
|
},
|
||
|
"appId": {
|
||
|
"type": "string",
|
||
|
"description": "Application <APP_ID> from Leancloud"
|
||
|
},
|
||
|
"appKey": {
|
||
|
"type": "string",
|
||
|
"description": "Application <APP_KEY> from Leancloud"
|
||
|
},
|
||
|
"placeholder": {
|
||
|
"type": "string",
|
||
|
"description": "Comment box placeholders"
|
||
|
},
|
||
|
"notify": {
|
||
|
"type": "boolean",
|
||
|
"description": "Enable email notification when someone comments",
|
||
|
"default": false
|
||
|
},
|
||
|
"verify": {
|
||
|
"type": "boolean",
|
||
|
"description": "Enable verification code service",
|
||
|
"default": false
|
||
|
},
|
||
|
"avatar": {
|
||
|
"type": "string",
|
||
|
"description": "Gravatar type",
|
||
|
"enum": [
|
||
|
"",
|
||
|
"mp",
|
||
|
"identicon",
|
||
|
"monsterid",
|
||
|
"wavatar",
|
||
|
"robohash",
|
||
|
"retro",
|
||
|
"hide",
|
||
|
"mm"
|
||
|
],
|
||
|
"default": "mm"
|
||
|
},
|
||
|
"avatarForce": {
|
||
|
"type": "boolean",
|
||
|
"description": "Pull the latest avatar upon page visit",
|
||
|
"default": false
|
||
|
},
|
||
|
"meta": {
|
||
|
"type": "array",
|
||
|
"description": "Reviewer attributes",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
},
|
||
|
"default": [
|
||
|
"nick",
|
||
|
"mail",
|
||
|
"link"
|
||
|
]
|
||
|
},
|
||
|
"pageSize": {
|
||
|
"type": "integer",
|
||
|
"description": "Number of comments per page",
|
||
|
"default": 10
|
||
|
},
|
||
|
"visitor": {
|
||
|
"type": "boolean",
|
||
|
"description": "Show visitor count",
|
||
|
"default": false
|
||
|
},
|
||
|
"highlight": {
|
||
|
"type": "boolean",
|
||
|
"description": "Enable code highlighting",
|
||
|
"default": true
|
||
|
},
|
||
|
"recordIP": {
|
||
|
"type": "boolean",
|
||
|
"description": "Record reviewer IP address",
|
||
|
"default": false
|
||
|
}
|
||
|
},
|
||
|
"required": [
|
||
|
"type",
|
||
|
"appId",
|
||
|
"appKey"
|
||
|
]
|
||
|
}
|