David Adalberth

@adalberth

Snippets

Vuex template

Boilerplate vuex store template

Copy to clipboard
Copy to clipboard

LocalValetDriver for spa nuxt sites

A LocalValetDriver to serve nuxt spa sites for testing e.g. Lighthouse

Copy to clipboard

Flavourful Gradient Button

Bring some fun and flavourful gradient animation to any important cta-button.

Copy to clipboard
Copy to clipboard

Prettier

Prettier setup file

Copy to clipboard

TransitionMove.vue

TransitionMove component for vue transitions

Copy to clipboard

Error message

Error handling for nuxt with pm2 sites

Copy to clipboard

v-intersect

Nuxt pluging for a vue intersect directive

Copy to clipboard

Tick

A wrapper for RAF

Copy to clipboard

Get Absolute Offset Top

Get the absolute offset pixel value from the top of the window

Copy to clipboard

ValueSync

To-way binding between components

Copy to clipboard

Set, add, remove vuex mutations

Helper mutations to make "mutating" a bit easier. This snippet creates a set of generic mutations to set, add and remove states.

Copy to clipboard
Copy to clipboard
Copy to clipboard

Physics world

Small physics snippet from p5

Copy to clipboard