Valine Config

Mr.Hope ... Less than 1 minute

# Valine Config

# appId

  • Type: string
  • Required: true

Fill in the application appId in LeanCloud

# appKey

  • Type: string
  • Required: true

Fill in the application appKey in LeanCloud

# commet

  • Type: boolean
  • Default: true

Comment Function

# visitor

  • Type: boolean
  • Default: true

Pageviews Function

# pageSize

  • Type: Number
  • Default: 10

Number of comment per page

# recordIP

  • Type: boolean
  • Default: false

Whether to record the commenter IP

# More Config about valine

  • placeholder

    • Type: string
    • Default: '请留言'

    Comment placeholder

  • meta

    • Type: string[]
    • Default: ['nick','mail','link']

    Commenter’s info

  • requiredFields

    • Type: string []
    • Default value: ['nick']

    Set required fields

  • enableQQ

    • Type: boolean
    • Default value: true

    Whether automatically get QQ nickname and QQ avatar when detecting QQ number in nickname box

  • avatar

    • Type: string
    • Default: 'retro'

    Gravatar avatar display method.

    Optional Values

    • ''(Empty String): Gravatar Official Pic
    • mp: Mystery
    • identicon
    • monsterid
    • wavatar
    • retro
    • robohash
    • hide

    See Valine Avator Config (opens new window) for details.

    You can tell users to set their Gravatar (opens new window).

  • emojiCDN

    • Type: string
    • Required: No

    To set the emoji package CDN, please see Valine Custom Emoticon Package (opens new window)

  • emojiMaps

    • Type: sbject
    • Default value: null

    To set the emoticon package mapping, please see Valine Custom Emoticon Package (opens new window)