1.6.2 • Published 5 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
5 years ago
1.6.1
5 years ago
1.6.0
5 years ago
1.5.1
5 years ago
1.5.0
5 years ago
1.4.0
5 years ago
1.3.10
5 years ago
1.3.9
5 years ago
1.3.8
5 years ago
1.3.7
5 years ago
1.3.6
5 years ago
1.3.5
5 years ago
1.3.4
5 years ago
1.3.3
5 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.7
5 years ago
1.2.6
5 years ago
1.2.5
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.0
5 years ago
1.2.1
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago