Comments (32)
@leeyeh @sli1989 因为valine和counter的冲突 我建议重构counter部分并且使用rest api
from hexo-leancloud-counter-security.
I got the reason. It should start with https rather than http. Sorry for the trouble. @LEAFERx
from hexo-leancloud-counter-security.
有根据文档一步一步地配置吗https://github.com/theme-next/hexo-theme-next/blob/master/docs/zh-CN/LEANCLOUD-COUNTER-SECURITY.md
from hexo-leancloud-counter-security.
@LEAFERx 就是一步一步来的。
from hexo-leancloud-counter-security.
@LEAFERx 就是按照步骤来的,而且除了我的博客,很多人的博客都不显示这个阅读人数了。。
from hexo-leancloud-counter-security.
可能是leancloud那边的api调整了 尝试关闭security试试?
from hexo-leancloud-counter-security.
因为我的博客是正常的所以我没法确定是哪里出了问题 需要更多的信息 或者你把你的博客地址给出来我看一下后台?
from hexo-leancloud-counter-security.
https://surpassrabbit.github.io/ @LEAFERx
from hexo-leancloud-counter-security.
from hexo-leancloud-counter-security.
我注意到这个博客使用的主题中引用的 LeanCloud SDK 的版本是 0.6.4,这个版本中使用的是一个共享的 API 域名(api.leancloud.cn),这个域名在某些地区存在被 DNS 污染的问题因此不再推荐使用(这个问题在 SDK 的 3.0.0 版本中通过隔离每个应用的域名解决)。
事实上我看到这个主题的最新版本的 valine 插件已经将 SDK 更新到了 3.0.4。我试一下将 lean-analytics 也升级到新的版本。
from hexo-leancloud-counter-security.
@leeyeh There seems a conflict about the sdk version (reinitiating problem with two version, don't how to solve) when using internal leancoud_visitors and valine comment at the same time. So we maybe suggest users turn off the internal leancoud_visitors when using valine comment.
Update valine comment system version
from hexo-leancloud-counter-security.
I'll see what I can do.
from hexo-leancloud-counter-security.
我没有在博客中开启valine插件, 我在谷歌浏览器中打开博客还是没有显示阅读数。
from hexo-leancloud-counter-security.
@SurpassRabbit But it looks like leancloud server access has a problem.
from hexo-leancloud-counter-security.
@sli1989 please help me
from hexo-leancloud-counter-security.
@SurpassRabbit i mean it's the access problem of leancloud server. waiting for their announcement.
from hexo-leancloud-counter-security.
@sli1989 OK, thanks。 it occasionally available
from hexo-leancloud-counter-security.
@leeyeh 请问你是怎么升级 这个库的
from hexo-leancloud-counter-security.
因为一些用法上的 breaking changes,并不是简单升级版本号就可以。我稍后会发一个 pr,以及后续的一些想法。
from hexo-leancloud-counter-security.
@leeyeh 好的 谢谢
from hexo-leancloud-counter-security.
目前我已经完成lean-analystic.swig的重构 马上发起pr
from hexo-leancloud-counter-security.
theme-next/hexo-theme-next#381 已重构
from hexo-leancloud-counter-security.
@SurpassRabbit 请尝试使用最新的master构建博客 看看问题是否还存在
如果仍存在该问题 reopen this issue
from hexo-leancloud-counter-security.
I tried with the newest version but it is still not working. Is it working for you now @SurpassRabbit ?
from hexo-leancloud-counter-security.
@wuliuxiansheng try newest master branch please?
from hexo-leancloud-counter-security.
This is what I did but it is not working. @LEAFERx
from hexo-leancloud-counter-security.
@wuliuxiansheng Did you set up the web security domain name?
from hexo-leancloud-counter-security.
Because my site is in a subdirectory, I set it to be http://www.seas.upenn.edu/~chaoliu/. I also tried http://www.seas.upenn.edu/ but it didn't work. @LEAFERx
from hexo-leancloud-counter-security.
I have another problem that the url of the object generating on LeanCloud is not starting with /~chaoliu/ and the number of viewer is always 0. How to configure this if the site is in a subdirectory? @LEAFERx
from hexo-leancloud-counter-security.
@wuliuxiansheng could you give me more detailed info about ur problem?(I'm not really understand what u r saying. I see counter of ur site works.
Url is not starting with /../ , I guess maybe it is because when generating files, hexo's API automatically remove subdirectory name u set in config. Then the plugin can only get the URL without subdirectory. That maybe a problem that need to be fixed.
from hexo-leancloud-counter-security.
@wuliuxiansheng but what do u mean by always 0?
from hexo-leancloud-counter-security.
The current posts are still linked to those old objects I generated before so the number of viewers are OK on both my site and LeanCloud. After I update next theme, it generated some new objects on LeanCloud and their url are not correct so the number of viewers are always 0 on LeanCloud. @LEAFERx
from hexo-leancloud-counter-security.
Related Issues (18)
- 忘记密码? HOT 1
- Got problems when using Gitlab+Hexo HOT 3
- 文章标题中出现 "" 时 JSON 解析会出现错误 HOT 3
- 无法添加除帖子外的文件 HOT 2
- Cannot find module 'babel-runtime/regenerator' HOT 4
- Somethings Wrong HOT 9
- hexo lc-counter r HOT 1
- how to add serverURL ?? HOT 5
- 博客迁移到另一设备后无法同步
- Deploying: leancloud_counter_security_sync ERROR HOT 1
- Error in log output HOT 1
- ETIMEOUT when deploying leancloud_counter_security_sync
- INFO Deploying: leancloud_counter_security_sync卡住 HOT 6
- [feature] help update leancloud rest api HOT 2
- Counter not initialized! See more at console err msg HOT 4
- Generate wrong url for each post for leancloud counter when running site in a subdirectory HOT 9
- Known low severity security vulnerability detected in randomatic < 3.0.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-leancloud-counter-security.