Enhance API document

This commit is contained in:
Qolzam
2017-07-19 19:26:52 +04:30
parent a0031fdbb8
commit c204e09224
7 changed files with 97 additions and 170 deletions

View File

@@ -90,7 +90,7 @@ export var dbAddFollowingUser = (cid, userFollowing) => {
/**
* Add a user in a circle
* Delete a user from a circle
* @param {string} cid is circle identifier
* @param {string} followingId following user identifier
*/

View File

@@ -1,52 +0,0 @@
// - Import react components
import moment from 'moment'
// - Import image gallery action types
import * as types from 'actionTypes'
// - Import actions
import * as imageGalleryActions from 'imageGalleryActions'
// - Import firebase
import {storageRef,firebaseRef} from 'app/firebase/'
// - Upload file start
export const uploadFile = (file) => {
return (dispatch,getState) => {
}
}
// - Upload file error
export const uploadError = (error) => {
return{
type: types.UPLOAD_FILE_ERROR,
error
}
}
// - Uplaod file complete
export const uploadComplete = (result) => {
return{
type: types.UPLOAD_FILE_COMPLETE,
result
}
}
// - Download file
export const downloadFile = (fileName) => {
return {
type: types.DOWNLOAD_FILE,
fileName
}
}

View File

@@ -1,20 +0,0 @@
// - Import image uploader action types
import * as types from 'actionTypes'
// - Image uploader actions
export const openImageUploader = (status)=> {
return {
type: types.OPEN_IMAGE_UPLOADER,
status
}
}
export const openImageEditor = (editStatus) =>{
return{
type: types.OPEN_IMAGE_EDITOR,
editStatus
}
}