@valtrem/sync
@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
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.6.2 | ^2.6.11 | ISC | |
| 1.6.1 | ^2.6.11 | ISC | |
| 1.6.0 | ^2.6.11 | ISC | |
| 1.5.1 | ^2.6.11 | ISC | |
| 1.5.0 | ^2.6.11 | ISC | |
| 1.4.0 | ^2.6.11 | ISC | |
| 1.3.10 | ^2.6.11 | ISC | |
| 1.3.9 | ^2.6.11 | ISC | |
| 1.3.8 | ^2.6.11 | ISC | |
| 1.3.7 | ^2.6.11 | ISC | |
| 1.3.6 | ^2.6.11 | ISC | |
| 1.3.5 | ^2.6.11 | ISC | |
| 1.3.4 | ^2.6.11 | ISC | |
| 1.3.3 | ^2.6.11 | ISC | |
| 1.3.2 | ^2.6.11 | ISC | |
| 1.3.1 | ^2.6.11 | ISC | |
| 1.3.0 | ^2.6.11 | ISC | |
| 1.2.7 | ^2.6.11 | ISC | |
| 1.2.6 | ^2.6.11 | ISC | |
| 1.2.5 | ^2.6.11 | ISC | |
| 1.2.4 | ^2.6.11 | ISC | |
| 1.2.3 | ^2.6.11 | ISC | |
| 1.2.2 | ^2.6.11 | ISC | |
| 1.2.1 | ^2.6.11 | ISC | |
| 1.2.0 | ^2.6.11 | ISC | |
| 1.1.2 | ^2.6.11 | ISC | |
| 1.1.1 | ^2.6.11 | ISC |