Waline

view/comment/waline~ Waline

Waline comment JSX component.

Constructor

new Waline()

Source:
See:
Example
<Waline
    serverURL="https://path/to/waline/server"
    path="window.location.pathname"
    lang="zh-CN"
    locale={{placeholder: "", ...}}
    emoji={["https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo"]}
    dark="auto"
    meta={["nick", "mail", "link"]}
    requiredMeta={[]}
    login="enable"
    wordLimit={0},
    pageSize={10}
    imageUploader={true}
    highlighter={true}
    texRenderer={false}
    search={true}
    visitor={false}
    pageview={false}
    comment={false}
    copyright={true}
    jsUrl="/path/to/Waline.js" />

Members

(static) Cacheable

Cacheable Waline comment JSX component.

This class is supposed to be used in combination with the locals hexo filter (module:hexo/filter/locals).

Source:
See:
Example
<Waline.Cacheable
    comment={{
        server_url: "https://path/to/waline/server",
        path: "window.location.pathname",
        lang: "zh-CN",
        locale: {placeholder: "", ...},
        emoji: "https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo",
        dark: "",
        meta: ["nick", "mail", "link"],
        required_meta: [],
        login: false,
        word_limit: 0,
        page_size: 10,
        image_uploader: true,
        highlighter: true,
        tex_renderer: false,
        search: true,
        pageview: false,
        comment: false,
        copyright: true,
    }}
    helper={{ cdn: function() {...} }} />