-
Notifications
You must be signed in to change notification settings - Fork 2k
Extract leancloud-counter to plugins (Reopening #677) #707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
How you create draft pull? oO |
Hey guys. Here's a little thing: Also, I think this pr could catch up v7.1.0 milestone as long as we decide now |
Breaking change?✔ |
It sounds exciting! However, there is not much time left in this month... you can open a PR, and let's discuss the future of NexT together |
@stevenjoezhang oops, I guess you misunderstand me. I mean refactored the leancloud counter script. Here is what i want to discuss: Are we going to use the legacy script for now (this pr) or just use the new script in this pr (cause DOM will change a little) |
Ahh... I think both is OK If refactoring theme-next DOM could make things clearer, it would be better to do make the changes I'm not sure if one day NexT will fully gets rid of jQuery... it will take even longer time to do the refactoring |
I'm not sure about this too, but it may be in future. @LEAFERx make a decision by yourself for the best variant. Better, if module (or scripts) will not depends on other libraries. |
Finally it's tested and ready I think. Guys, please review it. Also, Next pr for next may be the live hot post feature. |
I mean full docs on NexT website. Like as Algolia search. We need to remove all excess docs from this NexT repo, so, they must be on website only. |
Note that this is an independent plugin. So all docs that the theme need to do is already in the pr. But i don't think it's a good choice to move https://theme-next.github.io/hexo-leancloud-counter/ to https://theme-next.org |
And if u think about languages switcher, don't worry about it, I'll add it soon. |
Ok, I can suggest to use subdomain for that docs: leancloud-counter.theme-next.org or something like that. How about this? But I now think it's bad idea. |
Maybe not all the docs, just part of it that related to NexT. Because this plugin can be used in other themes. |
Of course just part to the NexT. |
Also, IMHO this new plugin too complicated, than was before. It's just security for counter, it's not comment system or search service... |
Well I have to explain something. Why I make this plugin?First of all, it's a hexo plugin, not a NexT plugin. And I make this plugin not for security.
Is this bunch of thing complicated?Yes, it's complicated for me. I spend times to figure out architectures, I read a lot of existed hexo plugin code and read hexo code. About place of docsWell I still think it's the best way to put docs. It's a completely independent hexo plugin that can be easily by themes, not only NexT. But your words make some sense, so if you insist, let's pause this merging and have more discussion. In conclusion, my thoughts are: fully extract things out of NexT -> make it universal -> let NexT integrate it. I hope this can be a little exploring example for modulize NexT. (too long.... and repitition in words... sorry for that((( |
Yeah, many words for say same things: independent hexo plugin. I'll try to rephrase all this discussion in shorter words:
Actually, we can just replace all swig code with js code, but who care about it? If simple user will not see the difference in hes production. |
Thank you for your patient reading and response. I understand you. Now I think this plugin may be too complicated for NexT and users. So I guess the best way is to leave it what it is now. |
@ivan-nginx Please, transfer theme-next/hexo-leancloud-counter and theme-next/hexo-leancloud-counter-hookguard to me. Thanks |
I just requested to add readme for the NexT usage on NexT website. And u write above:
So, did you want to continue the discussion? U got. If my words have some sense and u see what I insist on this, why I should to repeat twice? If docs needed, it means they are needed. I waste more time for writing answer to you, than I spend time when I fixed last bug. And if my words and my vision grieved you, then probably exists some reason, and this reason, from my point of view, does not apply to me.
No problem, dude. As I right understand, u want to exit from NexT maintenance? |
@ivan-nginx I don't think @LEAFERx wants to quit. All of you have discussed enough and I agree with LEAFERx. Let's make things simpler, an independent & universal Hexo plugin is great, all we have to do is provide the necessary doc (on NexT) to the user, if no more conf then no more doc. It seems that I am repeating nonsense 😂 |
My understanding is that hexo-leancloud-counter-security is more suitable than hexo-leancloud-counter for NexT. So there's no need to change a lot. I will continue to maintain hexo-leancloud-counter-security. You may be right, there's no need to waste time to change soo many stuff and bother users. I shall work on hexo-leancloud-counter-security and make users fell no change. Let leave leancloud counter what it is looks like now. Transfer hexo-leancloud-counter back to me means it is not suitable for NexT now but I still want to continue developing it. Maybe someday it will fit NexT? Who knows. I'm not quitting. As for the docs... I still think hexo is more likely a blogging platform than a documentation platform. Yes I can simply write everything in README but I just want to try new thing (smile). |
Yeah, I repeated it several times, but Leaf want to discussion about this (or I don't understand, what). He closed pull here, closed pull in docs site and want to transfer repos...
From my point of view it means you didn't want to add documentation to the NexT website, and, as we talking with MiMi above, there is no need to add all documentation. But documentation with links only on 3rd-party theme-next.github.io site – also unacceptable: users will confuse and don't understand why 2 theme-next sites exists. If Leaf don't understand it from first explanation, it's mean he pursues personal gain or / and does not take the NexT seriously. Moreover, I still don't understand why need to make so big work for support all Hexo themes. Are the NexT not enough? What themes u see under the Hexo which can have on at least for 50% functionality vis-a-vis NexT? Not exists themes like this. Or if exists, please, write directly here, I would like to see on it. That's the point because of which I was disappointing about. And u know I love NexT, and seems not only I. 1 min. and repos will be transferred. |
Maybe u can try to check your e-mail and accept repo. |
I was focusing on the necessary replacing hexo-leancloud-counter-security you pointed out in preivious discussion and miss about docs.... So I am sorry for any misunderstandings... As for pursing something... Wow I am surprised. All I want to do is improve leancloud counter and contribute to NexT cause I love it. What benefit can I have? I can't understand. |
Just add basic docs related to the NexT usage. No need to delete options from config (in docs), for example, and give instaed this link to theme-next.github.io. U can add it something like do with previous deprecated plugin: shorter and important config – to the NexT; all other additions docs – to any you want. For example:
This will not confuse users, and, who will need it – he will follow the link. I don't understand why transfer not working, but when I trying to specify full github path (https://github.com/LEAFERx) – GitHub said what user wasn't find: |
OK sure. Next time I will be careful about it. Maybe you can simply type |
When I type this. |
@ivan-nginx Have you seen deleting-and-transferring-repositories? |
All done. Thank you @ivan-nginx @1v9 |
@ivan-nginx The operator and receiver must be one person, then transfer is free. |
Previous discussion is at #677