Enhance API document
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user