Refactor Frontend #140
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi, I would be interested into refactoring the frontend. Would you accept pull request for the following things?
Things I would start with:
EDIT:
Here are my first changes,
so far I migrated to vite.
https://github.com/MarcelCoding/alice-lg/commits/vite/
I'll try to split it into many commits to make the review simple.
Considering the usage in sorting of
IpToNumeric
the implementation for shortened ipv6 addresses is wrong?c384a5316e (diff-8ad2792e3f790bed6cc49931033f81d29351fe17ce612b93b2b7410298e530cfR6-R8)
Hej!
Sorry for the late reply. I just saw the issue.
In general I'm open to changes, however I'm a bit reluctant to add dependencies.
I just tried your
vite
branch:I like the removal of sass as a dependency
I like the config being code. Being potentially able to easily set the proxy target in dev via ENV is very intriguing. (I tried this a couple of times with the webpack server and it was always a pain.)
The produced code size does not really make a difference:
Quite a lot of stuff seems to be removed as the build output in total is way smaller which is nice.
Build is faster: 3 seconds instead of 8 on my machine.
However, it's still another dependency to keep track of.
About typescript: So far I'm not especially fond of it, but willing to give it a try. (I do not like the aesthetics.)
But these are now two additional dependencies. :)
The last 10 years of JS have shown, that like a month IRL is like ages in JS, where a project is replaced by another project, which is already deprecated by another new project. This leads to projects just breaking for apparently no reason because some dependency broke or whatever.
This is why I try to keep dependencies to a minimum.
Long story short: I'm willing to try this. :)
About dark mode: would be awesome!
Ok, sound reasonable. I'll continue looking into dark mode. About this https://github.com/alice-lg/alice-lg/issues/140#issuecomment-1950461822 is it "real"?
I just had a look at the ipv6 parsing function. looks wrong.
I guess it should be something along the lines of:
(untested)