257 private links
One project to unify them all
A cool project for migrating a lot of mixins
The documentation tool build with Nuxt on top of vue is here
How they solved the challenges that comes with this feature.
computedEager utility has optimizations over computed in some cases.
when you have a simple operation, with a rarely changing return value – often a boolean.
Stick to computed
when you have a complex calculation going on, which can actually profit from caching and lazy evaluation and should only be (re-)calculated if really necessary.
Nice!
A state of the art library for vue components
Detect websites built with Vue or Nuxt and it displays related informations (plugins, modules, ...).
The way to generate types from vue 3 components.
After some hours searching about how to generate types for the vue library components, this plugin for vite solved my problem.
As Vue 3 classes are contained in attrs
, we sometimes want to pass every prop attribute to the child, except the class
attribute:
v-bind="{ ...attrs, class: undefined }"
Comparing common concepts of web frameworks daily usage.
For each concept, an example in the framework is provided.
Especially what I was looking for :)
const currentSection = ref()
onMounted(() => {
const observer = new IntersectionObserver((entries) => {
entries.forEach((entry) => {
if(entry.intersectionRatio > 0) {
currentSection.value = entry.target.getAttribute('id')
}
})
document.querySelectorAll('article h2').forEach((section) => {
observer.observe(section)
})
})
then add a class to the active currentSection.
May be useful someday
I will give it a try instead of using Storybook for the new projects. Especially with Vue and Vite.