-
Notifications
You must be signed in to change notification settings - Fork 45
chore: re-writing ./web
using RSPack and tailwind
#591
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
} | ||
|
||
const routes: RouteInterface[] = [ | ||
let routes: Array< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let
-> const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are mutating few lines down
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still in javascript an array can be mutable even if it is const, unless you force the TS compiler with as const
at the end so it will not throw a compilation error.
I'd also argue why should we mutate the path? why not having just on immutable path per each page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i see your point, i guess i could loop thorough it using forEach instead of .map, i will fix it in another PR ...
it's down to code styling, i wouldn't be too strict on that
</Helmet> | ||
<Stack direction="vertical" min={{ height: "100vh" }}> | ||
<Navbar | ||
<div className="flex flex-col min-h-screen"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another reason why I don't like tailwind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?? elaborate cuz i don't see an issue here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can foresee even longer class names in the future (even if it does have a cool vs code extension for autocompletion)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These values can be stored as json files.
Why? because it can be useful to leverage other platforms like Localise to handle translation updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go 🚀
PS: we can address later those conversations
web:
@dzcode.io/ui
with tailwind (using daisyui).mobile:
./mobile
from mono repo (from both npm and lerna)api:
Type of change