mobx#decorate JavaScript Examples

The following examples show how to use mobx#decorate. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: routing-store.js    From content-components with Apache License 2.0 6 votes vote down vote up
decorate(RoutingStore, {
	// props
	page: observable,
	queryParams: observable,
	subView: observable,
	// actions
	setRouteCtx: action,
	setPage: action,
	setSubView: action
});
Example #2
Source File: uploader.js    From content-components with Apache License 2.0 6 votes vote down vote up
decorate(Uploader, {
	uploads: observable,
	uploadsInProgress: observable,
	statusWindowVisible: observable,
	successfulUpload: observable,
	getUploads: action,
	uploadFile: action,
	uploadFiles: action,
	clearCompletedUploads: action
});
Example #3
Source File: routing-store.js    From content-components with Apache License 2.0 6 votes vote down vote up
decorate(RoutingStore, {
	// props
	page: observable,
	queryParams: observable,
	subView: observable,
	// actions
	setRouteCtx: action,
	setPage: action,
	setSubView: action
});
Example #4
Source File: uploader.js    From content-components with Apache License 2.0 6 votes vote down vote up
decorate(Uploader, {
	uploads: observable,
	uploadsInProgress: observable,
	statusWindowVisible: observable,
	successfulUpload: observable,
	getUploads: action,
	showStatusWindow: action,
	uploadFile: action,
	uploadFiles: action,
	clearCompletedUploads: action
});
Example #5
Source File: LanguageStore.js    From surveillance-forms with MIT License 5 votes vote down vote up
decorate(LanguageStore, {
  lang: observable,
  langCode: observable,
  setLanguage: action,
});
Example #6
Source File: NotificationStore.js    From surveillance-forms with MIT License 5 votes vote down vote up
decorate(NotificationStore, {
  open: observable,
  message: observable,
  durationMs: observable,
  onClose: observable,
  showMessage: action
});
Example #7
Source File: QueryStore.jsx    From graphql-sample-apps with Apache License 2.0 5 votes vote down vote up
decorate(QueryStore, {
    query: observable,
    setQuery: action,
});
Example #8
Source File: app.js    From react-native-iaphub with MIT License 5 votes vote down vote up
decorate(AppStore, {
  isLogged: observable
})
Example #9
Source File: iap.js    From react-native-iaphub with MIT License 5 votes vote down vote up
decorate(IAPStore, {
	isInitialized: observable,
	skuProcessing: observable,
	productsForSale: observable,
	activeProducts: observable
})
Example #10
Source File: permission-store.js    From content-components with Apache License 2.0 5 votes vote down vote up
decorate(PermissionStore, {
	// props
	permissions: observable,
	// actions
	setPermissions: action,
});
Example #11
Source File: uploader.js    From content-components with Apache License 2.0 5 votes vote down vote up
decorate(Uploader, {
	uploadProgress: observable,
	uploadFile: action,
	reset: action
});