clseibold / ZeroFrame-Router

A very simple ZeroFrame Router for the ZeroNet.
http://127.0.0.1:43110/1K2myjtjoEVpRC2JMieRL73ES4V4iLP2Ev
BSD 2-Clause "Simplified" License
1 stars 1 forks source link

Simply, how this works? #7

Open danimesq opened 6 years ago

AnthyG commented 6 years ago

Have you even looked at the example-usage or the example-html-file yet? .. If that's even your question..

danimesq commented 6 years ago

I saw some about "router" on ZeroMe's scripts, does it haves something that replaces this router?

ghost commented 6 years ago

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).

purplesyringa commented 6 years ago

@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.

ghost commented 6 years ago

@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.

purplesyringa commented 6 years ago

Huh. Thank you!

danimesq commented 6 years ago

@imachug Do you have a repo for ZeroLib with this router?

purplesyringa commented 6 years ago

No, the router doesn't have its own repo.

danimesq commented 6 years ago

I suggest you to create a repo with all libs, including your router