Open danimesq opened 6 years ago
I saw some about "router" on ZeroMe's scripts, does it haves something that replaces this router?
Nofish uses his own router that he's made in coffee-script, which he uses for all of his zites. This router I created after he's already made ZeroMe, ZeroTalk, etc.
You can use whatever one you want, but I think Nofish's is more dependent on the libraries he uses, idk. I have never read through any of nofish's code. Perhaps @imachug would know more.
All of my zites use this router. I think @imachug has also made his own router with his ZeroNetDev Libraries (or is it ZeroDev Lib... something like that).
@krixano I've just copied yours and made it more-ES6. :) There isn't any repo for it, I just use it in all my VueJS-based projects.
@imachug Ah, I see.
Btw, There's one small usability fix that you should change. Whenever someone goes to the root of the zite, I have it do a pushState to add on the /?
part automatically. That should really be a replaceState so that you don't get duplicate of /
and /?
in the history. I've made this change for Important Zites I think, and KxoNetwork, but not the other zites or this repo.
Huh. Thank you!
@imachug Do you have a repo for ZeroLib with this router?
No, the router doesn't have its own repo.
I suggest you to create a repo with all libs, including your router
Have you even looked at the example-usage or the example-html-file yet? .. If that's even your question..