Skip to content
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

refactor: Update dependencies #369

Merged
merged 12 commits into from
Sep 15, 2024
Merged

refactor: Update dependencies #369

merged 12 commits into from
Sep 15, 2024

Conversation

Hanziness
Copy link
Owner

This PR updates Nuxt and Vue to their latest versions. It also replaces vue-tabler-icons with the official @tabler/icons-vue package. Unfortunately, as it was my experience with every minor Nuxt (Vue) upgrade, some stuff broke this time, too. Some optimizations were also enabled in vue-i18n, which should hopefully reduce the bundle size a bit.

The progress bar now had an edge case due to Vue's <TransitionGroup> resetting the transform CSS style binding on the topmost components in the v-for list. This only happened when there was a transition running on the progress bar - the transform binding simply disappeared when the timer was paused during the transition. I came across no relevant breaking changes, and the setup function was also not re-run. The hack was to wrap the progress bar's moving div with another div, where the transform reset had no effect.

@Hanziness Hanziness merged commit 9f04d1b into develop Sep 15, 2024
1 check passed
@Hanziness Hanziness deleted the update-deps-240914 branch September 15, 2024 12:45
Hanziness added a commit that referenced this pull request Sep 15, 2024
* refactor(deps): Update dependencies

* refactor(modules): Rewrite icon generator and PWA modules into Nuxt Modules

* refactor(i18n): Remove dynamic imports as all messages are compiled

* refactor(components): Replace vue-tabler-icons with official package

* fix(stores): Fix active schedule preset type

* fix(modules): Move module output to separate .build folder

* fix(settingsPanel): Fix hydration error due to class on Transition component

* fix(icons): Fix icon sizes

* refactor(timerProgress): Resort to different progress handling due to Vue 3 bug
For some unknown reason, `<TransitionGroup>` has started resetting the CSS transform on the moving progress bar if it the timer was paused while the progress bar was still transitioning. This caused the progress bar to suddenly jump to 100%. This is some weird regression when updating Vue, and I am tired of further debugging it :(

* refactor(i18n): Enable further i18n optimizations

* chore(index): Remove debug print

* fix(timerProgress): Fix Vue 3 `TransitionGroup` deleting CSS `transform`
This is done by wrapping the progress bar with another div, which is unaffected by the CSS transform
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant