1.6.2 • Published 4 years ago
@valtrem/sync v1.6.2
@valtrem/sync
Installation
npm install @valtrem/sync
Usage
In vuex store.ts register modules as you would for any other modules. Then, pass store and configuration options to sync package.
For exemple :
#store.ts
import { Clients } from '@/store/modules/Client';
import { Projects } from '@/store/modules/Project';
import { Authentication } from '@valtrem/sync/src/store/Authentication';
import { Connectivity } from '@valtrem/sync/src/store/Connectivity';
Vue.use(Vuex);
const store = new Vuex.Store({
modules: {
authentication: new Authentication(),
connectivity: new Connectivity(),
projects: new Projects(),
clients: new Clients(),
}
});
const config = {
apiUrl: process.env.VUE_APP_API_URL,
storeNames: ['projects', 'clients']
};
sync(store, config);
export default store;
Credits
valerie@cliento.ca
1.6.2
4 years ago
1.6.1
4 years ago
1.6.0
4 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.3.10
4 years ago
1.3.9
4 years ago
1.3.8
4 years ago
1.3.7
4 years ago
1.3.6
4 years ago
1.3.5
4 years ago
1.3.4
4 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.0
4 years ago
1.2.1
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago