pinia-plugin-persistedstate
sortablejs
pinia-plugin-persistedstate | sortablejs | |
---|---|---|
8 | 25 | |
1,799 | 28,760 | |
- | 0.8% | |
6.9 | 5.7 | |
24 days ago | 7 days ago | |
TypeScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pinia-plugin-persistedstate
-
Any advise when starting jumping in Vuex
If you use a standard Pinia store, you can use plug-ins. For example, you can use pinia-plugin-persistedstate to let the user start each new session where they left off. Or you can use pinia-orm to simplify handling large amounts of tabular data.
-
Is there a way to use $subscribe from Pinia in Nuxt 2 using Options API?
How about this plugin, then?: https://github.com/prazdevs/pinia-plugin-persistedstate.
-
What's your approach for choosing whether to make new child components "smart" or "dumb"? [example scenario inside]
When your application starts, fill your Pinia/Vuex store with data from the user's previous session. This is done automatically by pinia-plugin-persistedstate or the Vuex equivalent.
-
What are some of the best/most useful Vue libraries you've used?
pinia-plugin-persistedstate: keeps your Pinia store synced with the user's browser localStorage. In other words, if your user closes their browser and then returns to your Vue app later, they will have the same state as when they left.
-
Drag and drop
You also mentioned that the positions should be stored in localStorage. I would store the positions in Pinia, and then add the pinia-plugin-persistedstate plug-in. It's one import statement and one line of code to add that plugin, and then your Pinia state is automatically persisted in localStorage. It beats having to write and troubleshoot the storage logic yourself.
-
How do you persist Pinia state across reloads
I've used the pinia-plugin-persistedstate package and has worked fine for me.
-
Why won't my Vue 3 Pinia store persist state even with the Pinia Persisted State plugin?
I have a Vue 3 / TypeScript app that uses a combination of Firebase, Pinia, Vue Concurrency, and the Pinia Persisted State Plugin.
sortablejs
-
A feature-rich front-end drag-and-drop component library
We've been using SortableJS for years for similar functionality.
https://sortablejs.github.io/Sortable/
-
Multi-column drag and drop with SortableJS and Stimulus
Well, it worked. But only for one case: dragging stuff within only one column. You see, stimulus-sortable uses SortableJS under the hood, which is powerful.
-
Suggestions for a library that can resize/move panels on a grid-like basis? Like the AWS dashboard widgets.
Maybe: https://github.com/SortableJS/Sortable Can do this not sure.
-
Show HN: An open source visual editor for React
Well, there are obvious leading contenders like `https://sortablejs.github.io/Sortable/` and, within the `vue` space, `https://sortablejs.github.io/vue.draggable.next/`. Most of the stuff I looked at was unmaintained (lots not updated for vue3).
I really disliked the vuedraggable was handling nesting, and it's just a wrapper around a sortable. At the end of the day, my problem was simple enough that I didn't want a 500kb dependency. If you're wanting to do something like the OP but with nesting, I'd definitely start by looking at Sortable, though (maybe wrapping it the way you want).
- SortableJS: Library for reorderable drag-and-drop lists
-
Ruby on Rails #119 Trello Clone. Advanced Drag and Drop Sortable Lists with Hotwire
Have you looked into alternatives to SortableJS btw? It's a good library but it's also pretty big (43kb) based on https://github.com/SortableJS/Sortable/blob/master/Sortable.min.js.
- react sortable-js, two types of items and nested items
-
How to use Nodemailer with Cypress 10?
after(() => { cy.task('sendMail', 'This will be output to email address') .then(result => console.log(result)); }) //zadanie A it("navstiv stranku a vyhladaj a elementy v casti Framework Support", ()=>{ cy.visit('https://sortablejs.github.io/Sortable/#cloning')
-
Can anyone share an example of drag and drop content
Check out https://sortablejs.github.io/Sortable/
- How to create a Drag and Drop quiz like this?
What are some alternatives?
quasar-pinia-persistedstate
react-sortable-hoc - A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable listโ๏ธ
localForage - ๐พ Offline storage, improved. Wraps IndexedDB, WebSQL, or localStorage using a simple but powerful API.
HTML5Sortable - VanillaJS sortable lists and grids using native HTML5 drag and drop API.
pinia-shared-state - ๐ Sync your Pinia state across browser tabs.
dropzone - Dropzone is an easy to use drag'n'drop library. It supports image previews and shows nice progress bars.
vue-supabase-tpa-demo - Third-Party Authentication (Github) demo Vue 3 + TypeScript + Pinia app using Supabase
react-beautiful-dnd - Beautiful and accessible drag and drop for lists with React
vue-good-table - An easy to use powerful data table for vuejs with advanced customizations including sorting, column filtering, pagination, grouping etc
bootstrap-select - :rocket: The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more.
pinia-plugin-persistedstate-2 - [no longer maintained] Please use https://github.com/prazdevs/pinia-plugin-persistedstate instead.
Vue.Draggable - Vue drag-and-drop component based on Sortable.js