mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
use pinia-plugin-persistedstate to persist pinia state
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
"markdown-it-regexp": "^0.4.0",
|
||||
"object-hash": "^3.0.0",
|
||||
"pinia": "^2.0.23",
|
||||
"pinia-plugin-persistedstate": "^2.4.0",
|
||||
"popper.js": "^1.16.1",
|
||||
"pretty-bytes": "^6.0.0",
|
||||
"pyre-to-regexp": "^0.0.5",
|
||||
|
||||
@@ -5,9 +5,11 @@ import App from "./App.vue";
|
||||
import store from "store";
|
||||
import { getRouter } from "./router";
|
||||
import { createPinia, PiniaVuePlugin } from "pinia";
|
||||
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
|
||||
|
||||
Vue.use(PiniaVuePlugin);
|
||||
const pinia = createPinia();
|
||||
pinia.use(piniaPluginPersistedstate);
|
||||
|
||||
addInitialization((Galaxy) => {
|
||||
console.log("App setup");
|
||||
|
||||
@@ -8078,6 +8078,11 @@ pikaday@1.5.1:
|
||||
optionalDependencies:
|
||||
moment "2.x"
|
||||
|
||||
pinia-plugin-persistedstate@^2.4.0:
|
||||
version "2.4.0"
|
||||
resolved "https://registry.yarnpkg.com/pinia-plugin-persistedstate/-/pinia-plugin-persistedstate-2.4.0.tgz#fda569b3c397517a0cf8aba83a628283767da620"
|
||||
integrity sha512-bQcpv47jk3ISl+InuJWsFaS/K7pRZ97kfoD2WCf/suhnlLy48k3BnFM2tI6YZ1xMsDaPv4yOsaPuPAUuSmEO2Q==
|
||||
|
||||
pinia@^2.0.23:
|
||||
version "2.0.23"
|
||||
resolved "https://registry.yarnpkg.com/pinia/-/pinia-2.0.23.tgz#570f5f82160b656b412602789683faa95502d227"
|
||||
|
||||
Reference in New Issue
Block a user