Open sbyware opened 1 year ago
Also, maybe we could lean into the lego terminology a bit more for the structure of the codebase? Each 'module' (actions, stores etc) could be called boxes
(like a box of lego!) and each box
has several pieces
. Just an idea haha.
Hi! Came across this package recently and loved the idea. I have a bunch of actions/stores/transitions etc for Svelte I've written over the years and I think this is the perfect place for them!
So, what's the proposal?
I propose we add a new
handlers
andtransitions
module(s) to the codebase. For example, we can provide easy and intuitive handlers for common use cases, such as keyboard shortcuts!Here is an example I've written for a
shortcutHandler
function:and we can consume it like so:
Same thing applies for transitions, for example - here is a "growShrinkTransition":
and so on.
Let me know what everybody thinks! I also have some ideas for refactoring the frontend (for example, we really should be loading the stores, actions etc in the layout's load function instead of subsequently loading them again in a sub-page's load function and only using the loaded directories files to get the length of the total utilities etc)