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

增加 Twikoo 评论系统支持 #40

Closed Nofated095 closed 2 years ago

Nofated095 commented 2 years ago

如题,增加Twikoo支持

基于https://www.anzifan.com/post/icarus_to_candy_2/中的文章

基于腾讯云函数,在主题中需要的更改也提交了PR

Nofated095 commented 2 years ago

https://github.com/ppoffice/hexo-theme-icarus/pull/1065

Nofated095 commented 2 years ago

目前 Twikoo 已经支持更加轻便的 Vercel 部署和 MondoDB。vercel domains即为环境id

https://twikoo.js.org/quick-start.html#云函数部署

ppoffice commented 2 years ago

@Nofated095

  1. 请把schema中的envIdcomment.envId改为env_id以保持和其他配置项命名规则一致;
  2. 可以注释一下组件么?像下面这样: https://github.com/ppoffice/hexo-component-inferno/blob/master/src/view/comment/waline.jsx
Nofated095 commented 2 years ago

不确定这样子改是否合理

@MannyCooper

ppoffice commented 2 years ago

@Nofated095 你的代码格式不正确,请用npm run formatnpm run lint修复你的代码并重新开一个PR

https://github.com/ppoffice/hexo-component-inferno/runs/6086590190?check_suite_focus=true#step:6:13