ciqulover / disqus-proxy Goto Github PK
View Code? Open in Web Editor NEWHexo插件 解决国内不能访问 Disqus 的代理
License: MIT License
Hexo插件 解决国内不能访问 Disqus 的代理
License: MIT License
你的博客评论貌似出问题了?
似乎整合了一个弹出框模块,是否能将其剥离出来?
因为这个问题,我暂时将里面的代码改了一下
case 9:
i = e.sent, this.setState({
isFetchingComment: !1
}), 0 === i.code ? this.setState({
comments: i.response
}) : this.setState({
notificationTitle: "评论获取错误",
notificationBody: i.response,
showNotification: !1
}), e.next = 17;
break;
case 14:
e.prev = 14, e.t0 = e.catch(3), this.setState({
isFetchingComment: !1,
notificationTitle: "评论获取错误",
notificationBody: e.t0,
showNotification: !1
});
我把里面的showNotification都改成了!1,这样在没有评论的时候它就不会弹框了,想问下正规的办法是啥?
Bug reproduce:
npm install hexo-disqus-proxy --save
hexo s
undefined window.disqusProxy={ shortname: 'xxx', username: 'xxx', server: 'disqus-proxy.ycwalker.com', port: 443, adm
如题。。。
以上几点如果能够完善的话,disqus-proxy将会更加完美,不过无论如何还是感谢您提供这么好的工具!
我觉得应该是hexo插件的问题,因为如果直接访问对应的URL能够获取评论信息的。你给的例子网页也是这样的,在没有代理的情况下会失败
想把这个程序docker化。这样部署就会简单很多。
我自己写了从环境变量读配置,请问pr到哪个分支?
好像新版本在comment.swig中做判断,然后调用 layout/_third-party/comments/下面的swig.
我不想改comment.swig,然后改了layout/_third-party/comments/disqus.swig
按照说明中的语句改,能翻墙的时候正常,不能翻墙的时候直接不显示评论框,能帮我看看怎么改么?
https://blog.diamondyuan.com/scripts/hexo-disqus-proxy.js?timestamp=1507642101124
这个js文件有700多k。1m的服务器因为这个文件,需要7秒才可以加载。
暗色主题文字看不清楚
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.