-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Server webui: Upgrade daisyui, tailwindcss. #12735
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
examples/server/webui/src/index.scss
Outdated
@tailwind components; | ||
@tailwind utilities; | ||
@plugin 'daisyui' { | ||
themes: 'light', 'dark', 'cupcake', 'bumblebee', 'emerald', 'corporate', 'synthwave', 'retro', 'cyberpunk', 'valentine', 'halloween', 'garden', 'forest', 'aqua', 'lofi', 'pastel', 'fantasy', 'wireframe', 'black', 'luxury', 'dracula', 'cmyk', 'autumn', 'business', 'acid', 'lemonade', 'night', 'coffee', 'winter', 'dim', 'nord', 'sunset', |
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.
You can use all themes by: https://daisyui.com/docs/themes/?lang=en#enable-all-themes
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.
Done
@@ -194,7 +194,12 @@ const StorageUtils = { | |||
localStorage.setItem('config', JSON.stringify(config)); | |||
}, | |||
getTheme(): string { | |||
return localStorage.getItem('theme') || 'auto'; | |||
const theme = localStorage.getItem('theme') || 'auto'; | |||
const activeTheme = (theme === 'auto') ? |
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.
why do we need this?
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.
The themes list didn't include auto on the website. Switching to themes: all
added auto back, removed this.
.github/workflows/server.yml
Outdated
@@ -111,6 +111,7 @@ jobs: | |||
cd examples/server/webui | |||
git status | |||
|
|||
npm install |
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.
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 am able to build and run locally. The server had a compile error where it was looking for objects in the previous version of daisyui. Didn't realize index.html.gz is part of the git repo, reverting and adding the new index.html.gz.
This reverts commit 336c514.
Seems like the gzip on windows produces different result than on linux and mac, this will need to be fixed |
* Upgrade daisyui, tailwindcss. * Switch to all themes. * Revert a change. * Update formatting. * Install packages before npm build. * Revert "Install packages before npm build." This reverts commit 336c514. * Add index.html.gz * run build --------- Co-authored-by: Xuan Son Nguyen <[email protected]>
This PR upgrades packages for daisyui and tailwindcss with code fixes as needed.