Valine Config

Mr.Hope ... 2020-5-7 Less than 1 minute

# appId

  • Type: string
  • Required: true

Fill in the application appId in LeanCloud

# appKey

  • Type: string
  • Required: true

Fill in the application appKey in LeanCloud

# comment

  • 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']

    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)

Last update: May 16, 2021 15:14
Contributors: Mr.Hope