Constructor
new Valine()
Example
<Valine
appId="******"
appKey="******"
placeholder="******"
avatar="mm"
avatarForce={false}
meta={['nick', 'mail', 'link']}
pageSize={10}
lang="zh-CN"
visitor={false}
highlight={true}
recordIP={false}
serverURLs="http[s]://[tab/us].avoscloud.com"
emojiCDN=""
emojiMaps={null}
enableQQ={false}
requiredFields={[]}
jsUrl="/path/to/Valine.js" />
Members
(static) Cacheable
Cacheable Valine comment JSX component.
This class is supposed to be used in combination with the locals
hexo filter
(module:hexo/filter/locals).
- Source:
- See:
Example
<Valine.Cacheable
comment={{
app_id: "******"
app_key: "******"
placeholder: "******"
avatar: "mm"
avatar_force: false
meta: ["nick", "mail", "link"]
page_size: 10
lang: "zh-CN"
visitor: false
highlight: true
record_ip: false
server_urls: "http[s]://[tab/us].avoscloud.com"
emoji_cdn: ""
emoji_maps: null
enable_qq: false
required_fields: []
}}
helper={{ cdn: function() {...} }} />