Home Reference Source

Function

Static Public Summary
public

MasterLoading(objectPattern: {"activeLoading": *})

public

PrivateRoute(objectPattern: {"component": *, ...rest: Object}): *

public

PublicRoute(objectPattern: {"component": *, ...rest: Object}): *

public

addCircle(uid: string, circle: object): {"type": *, "payload": *}

Add a normal circle

public

addCircles(uid: string, circles: [object]): {"type": *, "payload": *}

Add a list of circle

public

addComment(data: object): {"type": *, "payload": *}

Add comment

public

addCommentList(postComments: [object]): {"type": *, "payload": *}

Add comment list

public

addFollowingUser(uid: string, cid: string, followingId: string, userCircle: object): {"type": *, "payload": *}

Add following user in a circle

public

addImage(image: object): {"type": *, "image": *}

Add image to image gallery

public

addImageList(images: [object]): {"type": *, "images": *}

Add image list to image gallery

public

addImagePost(post: object): {"type": *, "payload": *}

Add a post with image

public

addNotify(data: object): {"type": *}

Add notificaition

public

addNotifyList(userNotifies: [object]): {"type": *, "payload": *}

Add notificaition list

public

addPeopleInfo(infoList: [object]): {"type": *, "payload": *}

Add people information

public

addPost(uid: string, post: object): {"type": *, "payload": *}

Add a normal post

public

addPosts(uid: string, posts: [object]): {"type": *, "payload": *}

Add a list of post

public

addUserInfo(uid: string, info: object): {"type": *, "payload": *}

Add user information

public

addVote(data: object): {"type": *, "payload": *}

Add a vote

public

addVoteList(data: object): {"type": *, "payload": *}

Ad a list of vote

public

auth(email: *, pw: *, other: *): *

public

authorizeReducer(state: object, action: object): *

Authorize reducer

public

circleReducer(state: object, action: object): *

Circle reducer

public

clearAllCircles(): {"type": *}

Clea all data in circle store

public

clearAllData(): {"type": *}

public

clearAllData(): {"type": *}

public

clearAllData(): {"type": *}

Clea all data in post store

public

clearAllData(): {"type": *}

public

clearAllNotifications(): {"type": *}

public

clearAllvotes(): {"type": *}

public

clearSelectData(): {"type": *}

public

closeCircleSettings(uid: *, id: *): {"type": *, "payload": *}

Close open circle settings

public

closeCommentEditor(comment: *): {"type": *, "payload": *}

public

closeEditProfile(): {"type": *}

public

closePostWrite(): {"type": *}

public

commentReducer(state: object, action: object): *

Comment actions

public

dbAddCircle(circleName: string): *

Add a circle

public

dbAddComment(newComment: object, callBack: function): *

Add comment to database

public

dbAddFollowingUser(cid: string, userFollowing: object): *

Add a user in a circle

public

dbAddImagePost(newPost: object, callBack: function): *

Add a post with image

public

dbAddNotify(newNotify: object): *

Add notificaition to database

public

dbAddPost(newPost: object, callBack: function): *

Add a normal post

public

dbAddVote(postId: string): *

Add vote to database

public

Delete a circle from database

public

dbDeleteComment(id: string, postId: string): *

Delete a comment from database

public

dbDeleteFollowingUser(cid: string, followingId: string): *

Delete a user from a circle

public

Delete an image from database

public

Delete a notificaition from database

public

Delete a post from database

public

dbDeleteVote(id: string, postId: string): *

Delete a vote from database

public

dbDownloadImage(fileName: string): *

Download image from server

public
public
public
public
public
public

dbGetPostById(uid: *, postId: *): *

public

dbGetPosts(): *

public

dbGetPostsByUserId(uid: *): *

public
public

Get user info from database

public

dbGetVotes(): *

public

dbLogin(email: string, password: string): *

Log in user in server

public

dbLogout(): *

public

dbSaveImage(imageURL: string): *

Save image URL in the server

public

Make seen a notificaition from database

public

dbSignup(user: object): *

Register user in database

public

dbUpdateCircle(newCircle: object): *

Update a circle from database

public

dbUpdateComment(id: string, postId: string): *

Update a comment from database

public

dbUpdatePassword(newPassword: string): *

Change user's password

public

dbUpdatePost(newPost: object, callBack: func): *

Update a post from database

public

dbUpdateUserInfo(newInfo: object): *

Updata user information

public

dbUploadImage(file: file, fileName: string): *

Upload image on the server

public

defaultDataDisable(status: boolean): {"type": *}

Default data loaded status will be false

public

defaultDataEnable(): {"type": *}

public

deleteCircle(uid: string, id: string): {"type": *, "payload": *}

Delete a circle

public

deleteComment(id: string, postId: string): {"type": *, "payload": *}

Delete a comment

public

deleteFollowingUser(uid: string, cid: string, followingId: string): {"type": *, "payload": *}

Delete following user from a circle

public

deleteImage(id: string): {"type": *, "id": *}

Delete an image

public

deleteNotify(id: string): {"type": *, "payload": *}

Delete a notificaition

public

deletePost(uid: string, id: string): {"type": *, "payload": *}

Delete a post

public

deleteVote(data: object): {"type": *, "payload": *}

delete a vote

public

detectTags(content: *, character: *): *

public
public

getContentTags(content: *): *

public

getFollowingUsers(circles: object): *

Get the following users

public

getUserBelongCircles(circles: object, followingId: string): *

Get the circles which the specify users is in that circle

public

globalReducer(state: object, action: object): *

Global reducer

public

hideMessage(): {"type": *}

public

hideTopLoading(): {"type": *}

public

imageGalleryReducer(state: *, action: *): *

public
public
public
public

login(email: *, pw: *): *

public

login(uid: string): {"type": *, "authed": boolean, "uid": *}

Loing user

public

logout(): *

public

logout(): {"type": *}

Logout user

public

notifyReducer(state: object, action: object): *

Notify actions

public

openCircleSettings(uid: *, id: *): {"type": *, "payload": *}

Open circle settings

public

openCommentEditor(comment: *): {"type": *, "payload": *}

public

openEditProfile(): {"type": *}

public

openPostWrite(): {"type": *}

public

postReducer(state: object, action: object): *

Post reducer

public

progressChange(percent: string, visible: boolean): {"type": *, "payload": *}

Progress change

public

resetPassword(email: *): *

public

saveUser(user: *, other: *): *

public

seenNotify(id: string): {"type": *, "payload": *}

Change notificaition to has seen status

public

sendImageRequest(name: *): {"type": *, "payload": *}

public

setHeaderTitle(text: *): {"type": *, "payload": *}

public

setHeaderTitleOpt(opt: *, payload: *): *

public

setImageURL(name: *, url: *): {"type": *, "payload": *}

public

showErrorMessage(message: string): {"type": *, "payload": *}

Show error message

public

showNotificationRequest(): {"type": *}

public

showNotificationSuccess(): {"type": *}

public

showTopLoading(): {"type": *}

public

signup(user: object): {"type": *, ...user: Object}

Register user

public

sortObjectsDate(objects: *): *

public

temp(data: *): {"type": *, "payload": *}

public

updateCircle(uid: string, circle: object): {"type": *, "payload": *}

Update a circle

public

updateComment(data: object): {"type": *, "payload": *}

Update comment

public

updatePassword(): {"type": *}

Update user's password

public

updatePost(uid: string, post: object): {"type": *, "payload": *}

Update a post

public

updateUserInfo(uid: string, info: object): {"type": *, "payload": *}

Update user information

public

userInfo(info: object): {"type": *, "info": *}

User info

public

userReducer(state: *, action: *): *

public

voteReducer(state: object, action: object): *

Vote actions

Static Public

public MasterLoading(objectPattern: {"activeLoading": *}) source

Params:

NameTypeAttributeDescription
objectPattern {"activeLoading": *}
  • default: {"activeLoading":null}

public PrivateRoute(objectPattern: {"component": *, ...rest: Object}): * source

import {PrivateRoute} from 'peter-test/app/api/AuthRouterAPI.jsx'

Params:

NameTypeAttributeDescription
objectPattern {"component": *, ...rest: Object}
  • default: {"component":null,"rest":{}}

Return:

*

public PublicRoute(objectPattern: {"component": *, ...rest: Object}): * source

import {PublicRoute} from 'peter-test/app/api/AuthRouterAPI.jsx'

Params:

NameTypeAttributeDescription
objectPattern {"component": *, ...rest: Object}
  • default: {"component":null,"rest":{}}

Return:

*

public addCircle(uid: string, circle: object): {"type": *, "payload": *} source

Add a normal circle

Params:

NameTypeAttributeDescription
uid string

is user identifier

circle object

Return:

{"type": *, "payload": *}

public addCircles(uid: string, circles: [object]): {"type": *, "payload": *} source

import {addCircles} from 'peter-test/app/actions/circleActions.jsx'

Add a list of circle

Params:

NameTypeAttributeDescription
uid string
circles [object]

Return:

{"type": *, "payload": *}

public addComment(data: object): {"type": *, "payload": *} source

Add comment

Params:

NameTypeAttributeDescription
data object

Return:

{"type": *, "payload": *}

public addCommentList(postComments: [object]): {"type": *, "payload": *} source

import {addCommentList} from 'peter-test/app/actions/commentActions.jsx'

Add comment list

Params:

NameTypeAttributeDescription
postComments [object]

an array of comments

Return:

{"type": *, "payload": *}

public addFollowingUser(uid: string, cid: string, followingId: string, userCircle: object): {"type": *, "payload": *} source

import {addFollowingUser} from 'peter-test/app/actions/circleActions.jsx'

Add following user in a circle

Params:

NameTypeAttributeDescription
uid string

user identifire who want to follow the following user

cid string

circle identifier that following user should be added in

followingId string

following user identifier

userCircle object

information about following user

Return:

{"type": *, "payload": *}

public addImage(image: object): {"type": *, "image": *} source

Add image to image gallery

Params:

NameTypeAttributeDescription
image object

Return:

{"type": *, "image": *}

public addImageList(images: [object]): {"type": *, "images": *} source

Add image list to image gallery

Params:

NameTypeAttributeDescription
images [object]

is an array of images

Return:

{"type": *, "images": *}

public addImagePost(post: object): {"type": *, "payload": *} source

import {addImagePost} from 'peter-test/app/actions/postActions.jsx'

Add a post with image

Params:

NameTypeAttributeDescription
post object

Return:

{"type": *, "payload": *}

public addNotify(data: object): {"type": *} source

Add notificaition

Params:

NameTypeAttributeDescription
data object

Return:

{"type": *}

public addNotifyList(userNotifies: [object]): {"type": *, "payload": *} source

import {addNotifyList} from 'peter-test/app/actions/notifyActions.jsx'

Add notificaition list

Params:

NameTypeAttributeDescription
userNotifies [object]

an array of notificaitions

Return:

{"type": *, "payload": *}

public addPeopleInfo(infoList: [object]): {"type": *, "payload": *} source

import {addPeopleInfo} from 'peter-test/app/actions/userActions.jsx'

Add people information

Params:

NameTypeAttributeDescription
infoList [object]

is the lst of information about users

Return:

{"type": *, "payload": *}

public addPost(uid: string, post: object): {"type": *, "payload": *} source

Add a normal post

Params:

NameTypeAttributeDescription
uid string

is user identifier

post object

Return:

{"type": *, "payload": *}

public addPosts(uid: string, posts: [object]): {"type": *, "payload": *} source

Add a list of post

Params:

NameTypeAttributeDescription
uid string
posts [object]

Return:

{"type": *, "payload": *}

public addUserInfo(uid: string, info: object): {"type": *, "payload": *} source

import {addUserInfo} from 'peter-test/app/actions/userActions.jsx'

Add user information

Params:

NameTypeAttributeDescription
uid string

is the user identifier

info object

is the information about user

Return:

{"type": *, "payload": *}

public addVote(data: object): {"type": *, "payload": *} source

Add a vote

Params:

NameTypeAttributeDescription
data object

Return:

{"type": *, "payload": *}

public addVoteList(data: object): {"type": *, "payload": *} source

import {addVoteList} from 'peter-test/app/actions/voteActions.jsx'

Ad a list of vote

Params:

NameTypeAttributeDescription
data object

Return:

{"type": *, "payload": *}

public auth(email: *, pw: *, other: *): * source

Params:

NameTypeAttributeDescription
email *
pw *
other *

Return:

*

public authorizeReducer(state: object, action: object): * source

import {authorizeReducer} from 'peter-test/app/reducers/authorizeReducer.jsx'

Authorize reducer

Params:

NameTypeAttributeDescription
state object
action object

Return:

*

public circleReducer(state: object, action: object): * source

import {circleReducer} from 'peter-test/app/reducers/circleReducer.jsx'

Circle reducer

Params:

NameTypeAttributeDescription
state object
action object

Return:

*

public clearAllCircles(): {"type": *} source

import {clearAllCircles} from 'peter-test/app/actions/circleActions.jsx'

Clea all data in circle store

Return:

{"type": *}

public clearAllData(): {"type": *} source

import {clearAllData} from 'peter-test/app/actions/commentActions.jsx'

Return:

{"type": *}

public clearAllData(): {"type": *} source

import {clearAllData} from 'peter-test/app/actions/userActions.jsx'

Return:

{"type": *}

public clearAllData(): {"type": *} source

import {clearAllData} from 'peter-test/app/actions/postActions.jsx'

Clea all data in post store

Return:

{"type": *}

public clearAllData(): {"type": *} source

Return:

{"type": *}

public clearAllNotifications(): {"type": *} source

import {clearAllNotifications} from 'peter-test/app/actions/notifyActions.jsx'

Return:

{"type": *}

public clearAllvotes(): {"type": *} source

import {clearAllvotes} from 'peter-test/app/actions/voteActions.jsx'

Return:

{"type": *}

public clearSelectData(): {"type": *} source

import {clearSelectData} from 'peter-test/app/actions/imageGalleryActions.jsx'

Return:

{"type": *}

public closeCircleSettings(uid: *, id: *): {"type": *, "payload": *} source

import {closeCircleSettings} from 'peter-test/app/actions/circleActions.jsx'

Close open circle settings

Params:

NameTypeAttributeDescription
uid *
id *

Return:

{"type": *, "payload": *}

public closeCommentEditor(comment: *): {"type": *, "payload": *} source

import {closeCommentEditor} from 'peter-test/app/actions/commentActions.jsx'

Params:

NameTypeAttributeDescription
comment *

Return:

{"type": *, "payload": *}

public closeEditProfile(): {"type": *} source

import {closeEditProfile} from 'peter-test/app/actions/userActions.jsx'

Return:

{"type": *}

public closePostWrite(): {"type": *} source

import {closePostWrite} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public commentReducer(state: object, action: object): * source

import {commentReducer} from 'peter-test/app/reducers/commentReducer.jsx'

Comment actions

Params:

NameTypeAttributeDescription
state object
action object

Return:

*

public dbAddCircle(circleName: string): * source

import {dbAddCircle} from 'peter-test/app/actions/circleActions.jsx'

Add a circle

Params:

NameTypeAttributeDescription
circleName string

Return:

*

public dbAddComment(newComment: object, callBack: function): * source

import {dbAddComment} from 'peter-test/app/actions/commentActions.jsx'

Add comment to database

Params:

NameTypeAttributeDescription
newComment object

user comment

callBack function

will be fired when server responsed

Return:

*

public dbAddFollowingUser(cid: string, userFollowing: object): * source

import {dbAddFollowingUser} from 'peter-test/app/actions/circleActions.jsx'

Add a user in a circle

Params:

NameTypeAttributeDescription
cid string

is circle identifier

userFollowing object

is the user for following

Return:

*

public dbAddImagePost(newPost: object, callBack: function): * source

import {dbAddImagePost} from 'peter-test/app/actions/postActions.jsx'

Add a post with image

Params:

NameTypeAttributeDescription
newPost object
callBack function

Return:

*

public dbAddNotify(newNotify: object): * source

import {dbAddNotify} from 'peter-test/app/actions/notifyActions.jsx'

Add notificaition to database

Params:

NameTypeAttributeDescription
newNotify object

user notificaition

Return:

*

public dbAddPost(newPost: object, callBack: function): * source

import {dbAddPost} from 'peter-test/app/actions/postActions.jsx'

Add a normal post

Params:

NameTypeAttributeDescription
newPost object
callBack function

Return:

*

public dbAddVote(postId: string): * source

import {dbAddVote} from 'peter-test/app/actions/voteActions.jsx'

Add vote to database

Params:

NameTypeAttributeDescription
postId string

is the identifier of the post which user vote

Return:

*

public dbDeleteCircle(id: string): * source

import {dbDeleteCircle} from 'peter-test/app/actions/circleActions.jsx'

Delete a circle from database

Params:

NameTypeAttributeDescription
id string

is circle identifier

Return:

*

public dbDeleteComment(id: string, postId: string): * source

import {dbDeleteComment} from 'peter-test/app/actions/commentActions.jsx'

Delete a comment from database

Params:

NameTypeAttributeDescription
id string

of comment

postId string

is the identifier of the post which comment belong to

Return:

*

public dbDeleteFollowingUser(cid: string, followingId: string): * source

import {dbDeleteFollowingUser} from 'peter-test/app/actions/circleActions.jsx'

Delete a user from a circle

Params:

NameTypeAttributeDescription
cid string

is circle identifier

followingId string

following user identifier

Return:

*

public dbDeleteImage(id: string): * source

Delete an image from database

Params:

NameTypeAttributeDescription
id string

of image

Return:

*

public dbDeleteNotify(id: string): * source

import {dbDeleteNotify} from 'peter-test/app/actions/notifyActions.jsx'

Delete a notificaition from database

Params:

NameTypeAttributeDescription
id string

of notificaition

Return:

*

public dbDeletePost(id: string): * source

import {dbDeletePost} from 'peter-test/app/actions/postActions.jsx'

Delete a post from database

Params:

NameTypeAttributeDescription
id string

is post identifier

Return:

*

public dbDeleteVote(id: string, postId: string): * source

import {dbDeleteVote} from 'peter-test/app/actions/voteActions.jsx'

Delete a vote from database

Params:

NameTypeAttributeDescription
id string

of vote

postId string

is the identifier of the post which vote belong to

Return:

*

public dbDownloadImage(fileName: string): * source

import {dbDownloadImage} from 'peter-test/app/actions/imageGalleryActions.jsx'

Download image from server

Params:

NameTypeAttributeDescription
fileName string

Return:

*

public dbGetCircles(): * source

import {dbGetCircles} from 'peter-test/app/actions/circleActions.jsx'

Return:

*

public dbGetCirclesByUserId(uid: *): * source

import {dbGetCirclesByUserId} from 'peter-test/app/actions/circleActions.jsx'

Params:

NameTypeAttributeDescription
uid *

Return:

*

public dbGetComments(): * source

import {dbGetComments} from 'peter-test/app/actions/commentActions.jsx'

Return:

*

public dbGetNotifies(): * source

import {dbGetNotifies} from 'peter-test/app/actions/notifyActions.jsx'

Return:

*

public dbGetPeopleInfo(): * source

import {dbGetPeopleInfo} from 'peter-test/app/actions/userActions.jsx'

Return:

*

public dbGetPostById(uid: *, postId: *): * source

import {dbGetPostById} from 'peter-test/app/actions/postActions.jsx'

Params:

NameTypeAttributeDescription
uid *
postId *

Return:

*

public dbGetPosts(): * source

import {dbGetPosts} from 'peter-test/app/actions/postActions.jsx'

Return:

*

public dbGetPostsByUserId(uid: *): * source

import {dbGetPostsByUserId} from 'peter-test/app/actions/postActions.jsx'

Params:

NameTypeAttributeDescription
uid *

Return:

*

public dbGetUserInfo(): * source

import {dbGetUserInfo} from 'peter-test/app/actions/userActions.jsx'

Return:

*

public dbGetUserInfoByUserId(uid: string): * source

import {dbGetUserInfoByUserId} from 'peter-test/app/actions/userActions.jsx'

Get user info from database

Params:

NameTypeAttributeDescription
uid string

Return:

*

public dbGetVotes(): * source

import {dbGetVotes} from 'peter-test/app/actions/voteActions.jsx'

Return:

*

public dbLogin(email: string, password: string): * source

Log in user in server

Params:

NameTypeAttributeDescription
email string
password string

Return:

*

public dbLogout(): * source

Return:

*

public dbSaveImage(imageURL: string): * source

Save image URL in the server

Params:

NameTypeAttributeDescription
imageURL string

is the URL of image

Return:

*

public dbSeenNotify(id: string): * source

import {dbSeenNotify} from 'peter-test/app/actions/notifyActions.jsx'

Make seen a notificaition from database

Params:

NameTypeAttributeDescription
id string

of notificaition

Return:

*

public dbSignup(user: object): * source

Register user in database

Params:

NameTypeAttributeDescription
user object

Return:

*

public dbUpdateCircle(newCircle: object): * source

import {dbUpdateCircle} from 'peter-test/app/actions/circleActions.jsx'

Update a circle from database

Params:

NameTypeAttributeDescription
newCircle object

Return:

*

public dbUpdateComment(id: string, postId: string): * source

import {dbUpdateComment} from 'peter-test/app/actions/commentActions.jsx'

Update a comment from database

Params:

NameTypeAttributeDescription
id string

of comment

postId string

is the identifier of the post which comment belong to

Return:

*

public dbUpdatePassword(newPassword: string): * source

import {dbUpdatePassword} from 'peter-test/app/actions/authorizeActions.jsx'

Change user's password

Params:

NameTypeAttributeDescription
newPassword string

Return:

*

public dbUpdatePost(newPost: object, callBack: func): * source

import {dbUpdatePost} from 'peter-test/app/actions/postActions.jsx'

Update a post from database

Params:

NameTypeAttributeDescription
newPost object
callBack func

//TODO: anti pattern should change to parent state or move state to redux

Return:

*

public dbUpdateUserInfo(newInfo: object): * source

import {dbUpdateUserInfo} from 'peter-test/app/actions/userActions.jsx'

Updata user information

Params:

NameTypeAttributeDescription
newInfo object

Return:

*

public dbUploadImage(file: file, fileName: string): * source

Upload image on the server

Params:

NameTypeAttributeDescription
file file
fileName string

Return:

*

public defaultDataDisable(status: boolean): {"type": *} source

import {defaultDataDisable} from 'peter-test/app/actions/globalActions.jsx'

Default data loaded status will be false

Params:

NameTypeAttributeDescription
status boolean

Return:

{"type": *}

public defaultDataEnable(): {"type": *} source

import {defaultDataEnable} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public deleteCircle(uid: string, id: string): {"type": *, "payload": *} source

import {deleteCircle} from 'peter-test/app/actions/circleActions.jsx'

Delete a circle

Params:

NameTypeAttributeDescription
uid string

is user identifier

id string

is circle identifier

Return:

{"type": *, "payload": *}

public deleteComment(id: string, postId: string): {"type": *, "payload": *} source

import {deleteComment} from 'peter-test/app/actions/commentActions.jsx'

Delete a comment

Params:

NameTypeAttributeDescription
id string

of comment

postId string

is the identifier of the post which comment belong to

Return:

{"type": *, "payload": *}

public deleteFollowingUser(uid: string, cid: string, followingId: string): {"type": *, "payload": *} source

import {deleteFollowingUser} from 'peter-test/app/actions/circleActions.jsx'

Delete following user from a circle

Params:

NameTypeAttributeDescription
uid string

user identifire who want to follow the following user

cid string

circle identifier that following user should be added in

followingId string

following user identifier

Return:

{"type": *, "payload": *}

public deleteImage(id: string): {"type": *, "id": *} source

Delete an image

Params:

NameTypeAttributeDescription
id string

is an image identifier

Return:

{"type": *, "id": *}

public deleteNotify(id: string): {"type": *, "payload": *} source

import {deleteNotify} from 'peter-test/app/actions/notifyActions.jsx'

Delete a notificaition

Params:

NameTypeAttributeDescription
id string

of notificaition

Return:

{"type": *, "payload": *}

public deletePost(uid: string, id: string): {"type": *, "payload": *} source

import {deletePost} from 'peter-test/app/actions/postActions.jsx'

Delete a post

Params:

NameTypeAttributeDescription
uid string

is user identifier

id string

is post identifier

Return:

{"type": *, "payload": *}

public deleteVote(data: object): {"type": *, "payload": *} source

import {deleteVote} from 'peter-test/app/actions/voteActions.jsx'

delete a vote

Params:

NameTypeAttributeDescription
data object

Return:

{"type": *, "payload": *}

public detectTags(content: *, character: *): * source

import {detectTags} from 'peter-test/app/api/PostAPI.jsx'

Params:

NameTypeAttributeDescription
content *
character *

Return:

*

public downloadForImageGallery(): * source

import {downloadForImageGallery} from 'peter-test/app/actions/imageGalleryActions.jsx'

Return:

*

public getContentTags(content: *): * source

import {getContentTags} from 'peter-test/app/api/PostAPI.jsx'

Params:

NameTypeAttributeDescription
content *

Return:

*

public getFollowingUsers(circles: object): * source

import {getFollowingUsers} from 'peter-test/app/api/CircleAPI.jsx'

Get the following users

Params:

NameTypeAttributeDescription
circles object

Return:

*

public getUserBelongCircles(circles: object, followingId: string): * source

import {getUserBelongCircles} from 'peter-test/app/api/CircleAPI.jsx'

Get the circles which the specify users is in that circle

Params:

NameTypeAttributeDescription
circles object
followingId string

Return:

*

public globalReducer(state: object, action: object): * source

import {globalReducer} from 'peter-test/app/reducers/globalReducer.jsx'

Global reducer

Params:

NameTypeAttributeDescription
state object
action object

Return:

*

public hideMessage(): {"type": *} source

import {hideMessage} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public hideTopLoading(): {"type": *} source

import {hideTopLoading} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public imageGalleryReducer(state: *, action: *): * source

import {imageGalleryReducer} from 'peter-test/app/reducers/imageGalleryReducer.jsx'

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: defaultState
action *

Return:

*

public isAdmin(): boolean source

import {isAdmin} from 'peter-test/app/api/AuthAPI.jsx'

Return:

boolean

public isAuthorized(): * source

import {isAuthorized} from 'peter-test/app/api/AuthAPI.jsx'

Return:

*

public loadDataGuest(): * source

import {loadDataGuest} from 'peter-test/app/actions/globalActions.jsx'

Return:

*

public login(email: *, pw: *): * source

import {login} from 'peter-test/app/helpers/index.jsx'

Params:

NameTypeAttributeDescription
email *
pw *

Return:

*

public login(uid: string): {"type": *, "authed": boolean, "uid": *} source

Loing user

Params:

NameTypeAttributeDescription
uid string

Return:

{"type": *, "authed": boolean, "uid": *}

public logout(): * source

import {logout} from 'peter-test/app/helpers/index.jsx'

Return:

*

public logout(): {"type": *} source

Logout user

Return:

{"type": *}

public notifyReducer(state: object, action: object): * source

import {notifyReducer} from 'peter-test/app/reducers/notifyReducer.jsx'

Notify actions

Params:

NameTypeAttributeDescription
state object
action object

Return:

*

public openCircleSettings(uid: *, id: *): {"type": *, "payload": *} source

import {openCircleSettings} from 'peter-test/app/actions/circleActions.jsx'

Open circle settings

Params:

NameTypeAttributeDescription
uid *
id *

Return:

{"type": *, "payload": *}

public openCommentEditor(comment: *): {"type": *, "payload": *} source

import {openCommentEditor} from 'peter-test/app/actions/commentActions.jsx'

Params:

NameTypeAttributeDescription
comment *

Return:

{"type": *, "payload": *}

public openEditProfile(): {"type": *} source

import {openEditProfile} from 'peter-test/app/actions/userActions.jsx'

Return:

{"type": *}

public openPostWrite(): {"type": *} source

import {openPostWrite} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public postReducer(state: object, action: object): * source

import {postReducer} from 'peter-test/app/reducers/postReducer.jsx'

Post reducer

Params:

NameTypeAttributeDescription
state object
action object

Return:

*

public progressChange(percent: string, visible: boolean): {"type": *, "payload": *} source

import {progressChange} from 'peter-test/app/actions/globalActions.jsx'

Progress change

Params:

NameTypeAttributeDescription
percent string
visible boolean

Return:

{"type": *, "payload": *}

public resetPassword(email: *): * source

import {resetPassword} from 'peter-test/app/helpers/index.jsx'

Params:

NameTypeAttributeDescription
email *

Return:

*

public saveUser(user: *, other: *): * source

import {saveUser} from 'peter-test/app/helpers/index.jsx'

Params:

NameTypeAttributeDescription
user *
other *

Return:

*

public seenNotify(id: string): {"type": *, "payload": *} source

import {seenNotify} from 'peter-test/app/actions/notifyActions.jsx'

Change notificaition to has seen status

Params:

NameTypeAttributeDescription
id string

of notificaition

Return:

{"type": *, "payload": *}

public sendImageRequest(name: *): {"type": *, "payload": *} source

import {sendImageRequest} from 'peter-test/app/actions/imageGalleryActions.jsx'

Params:

NameTypeAttributeDescription
name *

Return:

{"type": *, "payload": *}

public setHeaderTitle(text: *): {"type": *, "payload": *} source

import {setHeaderTitle} from 'peter-test/app/actions/globalActions.jsx'

Params:

NameTypeAttributeDescription
text *

Return:

{"type": *, "payload": *}

public setHeaderTitleOpt(opt: *, payload: *): * source

import {setHeaderTitleOpt} from 'peter-test/app/actions/globalActions.jsx'

Params:

NameTypeAttributeDescription
opt *
payload *

Return:

*

public setImageURL(name: *, url: *): {"type": *, "payload": *} source

Params:

NameTypeAttributeDescription
name *
url *

Return:

{"type": *, "payload": *}

public showErrorMessage(message: string): {"type": *, "payload": *} source

import {showErrorMessage} from 'peter-test/app/actions/globalActions.jsx'

Show error message

Params:

NameTypeAttributeDescription
message string

Return:

{"type": *, "payload": *}

public showNotificationRequest(): {"type": *} source

import {showNotificationRequest} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public showNotificationSuccess(): {"type": *} source

import {showNotificationSuccess} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public showTopLoading(): {"type": *} source

import {showTopLoading} from 'peter-test/app/actions/globalActions.jsx'

Return:

{"type": *}

public signup(user: object): {"type": *, ...user: Object} source

Register user

Params:

NameTypeAttributeDescription
user object

Return:

{"type": *, ...user: Object}

public sortObjectsDate(objects: *): * source

import {sortObjectsDate} from 'peter-test/app/api/PostAPI.jsx'

Params:

NameTypeAttributeDescription
objects *

Return:

*

public temp(data: *): {"type": *, "payload": *} source

Params:

NameTypeAttributeDescription
data *

Return:

{"type": *, "payload": *}

public updateCircle(uid: string, circle: object): {"type": *, "payload": *} source

import {updateCircle} from 'peter-test/app/actions/circleActions.jsx'

Update a circle

Params:

NameTypeAttributeDescription
uid string

is user identifier

circle object

Return:

{"type": *, "payload": *}

public updateComment(data: object): {"type": *, "payload": *} source

import {updateComment} from 'peter-test/app/actions/commentActions.jsx'

Update comment

Params:

NameTypeAttributeDescription
data object

Return:

{"type": *, "payload": *}

public updatePassword(): {"type": *} source

import {updatePassword} from 'peter-test/app/actions/authorizeActions.jsx'

Update user's password

Return:

{"type": *}

public updatePost(uid: string, post: object): {"type": *, "payload": *} source

import {updatePost} from 'peter-test/app/actions/postActions.jsx'

Update a post

Params:

NameTypeAttributeDescription
uid string

is user identifier

post object

Return:

{"type": *, "payload": *}

public updateUserInfo(uid: string, info: object): {"type": *, "payload": *} source

import {updateUserInfo} from 'peter-test/app/actions/userActions.jsx'

Update user information

Params:

NameTypeAttributeDescription
uid string

is the user identifier

info object

is the information about user

Return:

{"type": *, "payload": *}

public userInfo(info: object): {"type": *, "info": *} source

User info

Params:

NameTypeAttributeDescription
info object

Return:

{"type": *, "info": *}

public userReducer(state: *, action: *): * source

import {userReducer} from 'peter-test/app/reducers/userReducer.jsx'

Params:

NameTypeAttributeDescription
state *
  • optional
  • default: defaultState
action *

Return:

*

public voteReducer(state: object, action: object): * source

import {voteReducer} from 'peter-test/app/reducers/voteReducer.jsx'

Vote actions

Params:

NameTypeAttributeDescription
state object
action object

Return:

*