5.0.4 • Published 8 years ago
@mycure/doctors v5.0.4
Mycure Vue Doctors module
Installation and Usage
$ yarn add @mycure/doctors
- use as a vue plugin
import Vue from 'vue';
import McDoctors from '@mycure/doctors';
Vue.use(McDoctors, opts: ServiceOpts)
- above will do the ff:
- describe side effects here
- sample side effects:
- attach a global method/attribute
- attach an instance method/attribute
- add components
- sync a single and multi vuex store modules
interface StoreOpts {
moduleName: string = 'doctors',
multi: boolean = true // ataches a multi item vuex store module
single: boolean = true // ataches a single item vuex store module
}
interface ServiceOpts {
// will be used to auto-generate query functions
firebaseApp?: firebase.App
URL_DOCTOR_DIRECTORY: string = '/v3/doctors-directory'
URL_DOCTOR_WEBSITES: string = '/v3/doctor-websites'
// for registering built-in store modules
store: VuexStore
storeOpts?: StoreOpts
// and other valid SingleItemSyncService and MultiItemSyncService configs, see @topsi/services docus
}
VuexStoreModules
SingleItemStoreModule
vuexModuleName = 'doctors-single'
interface RegisteredVuexModule extends RegisteredSingleItemStoreModule { // see @topsi/services docus for its RegisteredSingleItemStoreModule
}
MultiItemStoreModule
vuexModuleName = 'doctors-multi'
interface RegeisteredVuexModuleActions {
// plus this
loadWithURL: (url: string) => void
}
interface RegisteredVuexModule extends RegisteredMultiItemStoreModule { // see @topsi/services docus for its RegisteredMultiItemStoreModule
actions: RegeisteredVuexModuleActions
}
5.0.4
8 years ago
5.0.3
8 years ago
5.0.2
8 years ago
5.0.1
8 years ago
5.0.0
8 years ago
4.1.0
8 years ago
4.0.0
8 years ago
3.3.2
8 years ago
3.3.1
8 years ago
3.3.0
8 years ago
0.2.12
8 years ago
0.2.13
8 years ago
0.2.11
8 years ago
0.2.10
8 years ago
0.2.9
8 years ago
0.2.8
8 years ago
0.2.7
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.0
8 years ago
0.1.1
8 years ago
0.1.0
8 years ago
0.0.0
8 years ago