ppoffice / hexo-component-inferno

A collection of Inferno.js layout components and utility scripts for Hexo
https://ppoffice.github.io/hexo-component-inferno/
24 stars 30 forks source link

使用旧版Waline的js #52

Closed sofpixaol closed 2 years ago

sofpixaol commented 2 years ago

Waline已经更新到2.6.3了,而这里仍然一直使用旧版1.5.4的js,为什么不改成用最新版?

https://github.com/ppoffice/hexo-component-inferno/blob/6f135981fbaa0fc11f9db2bd7f91626e259e9372/src/view/comment/waline.jsx#L139

sofpixaol commented 2 years ago

请问作者有什么方案可以解决吗..?

我参照Waline的文档,现在在尝试修改 ./node_modules/hexo-component-inferno/lib/view/comment/waline.js 这个文件,把jsUrl那里改成了('@waline/client', '2.6.3', 'dist/waline.js') ,并且把文件第113行的Waline({改成了Waline.init({,基本上好了,但是css样式文件没有加载..没学过这些东西的语法不知道怎么让它加上css