const { Component, Fragment } = require('inferno'); const { cacheComponent } = require('../util/cache'); class ChangeYan extends Component { render() { const { appId, conf, path } = this.props; if (!appId || !conf) { return
You forgot to set the app_id or conf for Changyan. Please set it in _config.yml.
; } const js = `window.changyan.api.config({appid: '${appId}',conf: '${conf}'});`; return
; } } module.exports = cacheComponent(ChangeYan, 'comment.changyan', props => { const { comment, page } = props; return { appId: comment.app_id, conf: comment.conf, path: page.path }; });