-
Notifications
You must be signed in to change notification settings - Fork 802
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
Preact rewrite #1156
Preact rewrite #1156
Conversation
Just curious, but do you plan on using redux (or something similar) to manage global state/data? |
@walshyb Nope, we're using It's defined here: (will be easier to read if you click instead of reading inline) |
d4a82b2
to
38434d2
Compare
98a9ebb
to
d70951d
Compare
f5d0265
to
e82e25a
Compare
@Zarel |
I'll upload it when it gets closer to done. As it is, it's very easy to test. Just check it out, run |
d481b4e
to
84fed0d
Compare
84fed0d
to
edbdbd3
Compare
HIGHLY UNFINISHED CODE
This is kind of a break of purity, because it reads `window.offsetWidth`, but this is the lowest-overhead way to automatically recalculate the leftRoom width whenever PS updates (i.e. whenever leftRoom or rightRoom change).
Considering all the individual panels start with `panel-`, this should make it easier to find and in general be a more intuitive name. All other tsx files will start with `panel-`, putting them together in one place when sorting alphabetically.
Room layout code is now better commented and more readable.
There's still a lot more to do, but this is a start
Unlike the old router, this one has no dependencies, and also tracks left/right panel state, for more accurate back/forward button support. It also sets the URL to the last selected panel, instead of always using the left panel.
The actual connect function is commented out, because there's no reason for it to do anything. But it can actually connect to a server now.
This at least lets me test some router features without pushing it to the live server.
edbdbd3
to
bdf1d79
Compare
Superseded by #1229 |
HIGHLY UNFINISHED CODE