Function
Static Public Summary | ||
public |
MasterLoading(objectPattern: {"activeLoading": *}) |
|
public |
PrivateRoute(objectPattern: {"component": *, ...rest: Object}): * |
|
public |
PublicRoute(objectPattern: {"component": *, ...rest: Object}): * |
|
public |
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 |
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 |
Add notificaition |
|
public |
addNotifyList(userNotifies: [object]): {"type": *, "payload": *} Add notificaition list |
|
public |
addPeopleInfo(infoList: [object]): {"type": *, "payload": *} Add people information |
|
public |
Add a normal post |
|
public |
Add a list of post |
|
public |
addUserInfo(uid: string, info: object): {"type": *, "payload": *} Add user information |
|
public |
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 |
Add a normal post |
|
public |
Add vote to database |
|
public |
dbDeleteCircle(id: string): * 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 |
dbDeleteImage(id: string): * Delete an image from database |
|
public |
dbDeleteNotify(id: string): * Delete a notificaition from database |
|
public |
dbDeletePost(id: string): * 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 |
dbGetCircles(): * |
|
public |
dbGetCirclesByUserId(uid: *): * |
|
public |
dbGetComments(): * |
|
public |
dbGetNotifies(): * |
|
public |
dbGetPeopleInfo(): * |
|
public |
dbGetPostById(uid: *, postId: *): * |
|
public |
dbGetPosts(): * |
|
public |
dbGetPostsByUserId(uid: *): * |
|
public |
dbGetUserInfo(): * |
|
public |
dbGetUserInfoByUserId(uid: string): * Get user info from database |
|
public |
dbGetVotes(): * |
|
public |
Log in user in server |
|
public |
dbLogout(): * |
|
public |
dbSaveImage(imageURL: string): * Save image URL in the server |
|
public |
dbSeenNotify(id: string): * Make seen a notificaition from database |
|
public |
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 |
isAuthorized(): * |
|
public |
loadDataGuest(): * |
|
public |
login(email: *, pw: *): * |
|
public |
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 |
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 |
User info |
|
public |
userReducer(state: *, action: *): * |
|
public |
voteReducer(state: object, action: object): * Vote actions |
Static Public
public MasterLoading(objectPattern: {"activeLoading": *}) source
import MasterLoading from 'peter-test/app/components/MasterLoading.jsx'
Params:
Name | Type | Attribute | Description |
objectPattern | {"activeLoading": *} |
|
public PrivateRoute(objectPattern: {"component": *, ...rest: Object}): * source
import {PrivateRoute} from 'peter-test/app/api/AuthRouterAPI.jsx'
Params:
Name | Type | Attribute | Description |
objectPattern | {"component": *, ...rest: Object} |
|
Return:
* |
public PublicRoute(objectPattern: {"component": *, ...rest: Object}): * source
import {PublicRoute} from 'peter-test/app/api/AuthRouterAPI.jsx'
Params:
Name | Type | Attribute | Description |
objectPattern | {"component": *, ...rest: Object} |
|
Return:
* |
public addCircle(uid: string, circle: object): {"type": *, "payload": *} source
import {addCircle} from 'peter-test/app/actions/circleActions.jsx'
Add a normal circle
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:
Name | Type | Attribute | Description |
uid | string | ||
circles | [object] |
Return:
{"type": *, "payload": *} |
public addComment(data: object): {"type": *, "payload": *} source
import {addComment} from 'peter-test/app/actions/commentActions.jsx'
Add comment
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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
Return:
{"type": *, "payload": *} |
public addImage(image: object): {"type": *, "image": *} source
import {addImage} from 'peter-test/app/actions/imageGalleryActions.jsx'
Add image to image gallery
Params:
Name | Type | Attribute | Description |
image | object |
Return:
{"type": *, "image": *} |
public addImageList(images: [object]): {"type": *, "images": *} source
import {addImageList} from 'peter-test/app/actions/imageGalleryActions.jsx'
Add image list to image gallery
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
post | object |
Return:
{"type": *, "payload": *} |
public addNotify(data: object): {"type": *} source
import {addNotify} from 'peter-test/app/actions/notifyActions.jsx'
Add notificaition
Params:
Name | Type | Attribute | Description |
data | object |
Return:
{"type": *} |
public addNotifyList(userNotifies: [object]): {"type": *, "payload": *} source
import {addNotifyList} from 'peter-test/app/actions/notifyActions.jsx'
Add notificaition list
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
infoList | [object] | is the lst of information about users |
Return:
{"type": *, "payload": *} |
public addPost(uid: string, post: object): {"type": *, "payload": *} source
import {addPost} from 'peter-test/app/actions/postActions.jsx'
Add a normal post
Return:
{"type": *, "payload": *} |
public addPosts(uid: string, posts: [object]): {"type": *, "payload": *} source
import {addPosts} from 'peter-test/app/actions/postActions.jsx'
Add a list of post
Params:
Name | Type | Attribute | Description |
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
Return:
{"type": *, "payload": *} |
public addVote(data: object): {"type": *, "payload": *} source
import {addVote} from 'peter-test/app/actions/voteActions.jsx'
Add a vote
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
data | object |
Return:
{"type": *, "payload": *} |
public auth(email: *, pw: *, other: *): * source
import {auth} from 'peter-test/app/helpers/index.jsx'
Params:
Name | Type | Attribute | Description |
* | |||
pw | * | ||
other | * |
Return:
* |
public authorizeReducer(state: object, action: object): * source
import {authorizeReducer} from 'peter-test/app/reducers/authorizeReducer.jsx'
Authorize reducer
Return:
* |
public circleReducer(state: object, action: object): * source
import {circleReducer} from 'peter-test/app/reducers/circleReducer.jsx'
Circle reducer
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
import {clearAllData} from 'peter-test/app/actions/imageGalleryActions.jsx'
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:
Name | Type | Attribute | Description |
uid | * | ||
id | * |
Return:
{"type": *, "payload": *} |
public closeCommentEditor(comment: *): {"type": *, "payload": *} source
import {closeCommentEditor} from 'peter-test/app/actions/commentActions.jsx'
Params:
Name | Type | Attribute | Description |
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
Return:
* |
public dbAddCircle(circleName: string): * source
import {dbAddCircle} from 'peter-test/app/actions/circleActions.jsx'
Add a circle
Params:
Name | Type | Attribute | Description |
circleName | string |
Return:
* |
public dbAddComment(newComment: object, callBack: function): * source
import {dbAddComment} from 'peter-test/app/actions/commentActions.jsx'
Add comment to database
Return:
* |
public dbAddFollowingUser(cid: string, userFollowing: object): * source
import {dbAddFollowingUser} from 'peter-test/app/actions/circleActions.jsx'
Add a user in a circle
Return:
* |
public dbAddImagePost(newPost: object, callBack: function): * source
import {dbAddImagePost} from 'peter-test/app/actions/postActions.jsx'
Add a post with image
Return:
* |
public dbAddNotify(newNotify: object): * source
import {dbAddNotify} from 'peter-test/app/actions/notifyActions.jsx'
Add notificaition to database
Params:
Name | Type | Attribute | Description |
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
Return:
* |
public dbAddVote(postId: string): * source
import {dbAddVote} from 'peter-test/app/actions/voteActions.jsx'
Add vote to database
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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
Return:
* |
public dbDeleteFollowingUser(cid: string, followingId: string): * source
import {dbDeleteFollowingUser} from 'peter-test/app/actions/circleActions.jsx'
Delete a user from a circle
Return:
* |
public dbDeleteImage(id: string): * source
import {dbDeleteImage} from 'peter-test/app/actions/imageGalleryActions.jsx'
Delete an image from database
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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
Return:
* |
public dbDownloadImage(fileName: string): * source
import {dbDownloadImage} from 'peter-test/app/actions/imageGalleryActions.jsx'
Download image from server
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
uid | string |
Return:
* |
public dbGetVotes(): * source
import {dbGetVotes} from 'peter-test/app/actions/voteActions.jsx'
Return:
* |
public dbLogin(email: string, password: string): * source
import {dbLogin} from 'peter-test/app/actions/authorizeActions.jsx'
Log in user in server
Return:
* |
public dbLogout(): * source
import {dbLogout} from 'peter-test/app/actions/authorizeActions.jsx'
Return:
* |
public dbSaveImage(imageURL: string): * source
import {dbSaveImage} from 'peter-test/app/actions/imageGalleryActions.jsx'
Save image URL in the server
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
id | string | of notificaition |
Return:
* |
public dbSignup(user: object): * source
import {dbSignup} from 'peter-test/app/actions/authorizeActions.jsx'
Register user in database
Params:
Name | Type | Attribute | Description |
user | object |
Return:
* |
public dbUpdateCircle(newCircle: object): * source
import {dbUpdateCircle} from 'peter-test/app/actions/circleActions.jsx'
Update a circle from database
Params:
Name | Type | Attribute | Description |
newCircle | object |
Return:
* |
public dbUpdateComment(id: string, postId: string): * source
import {dbUpdateComment} from 'peter-test/app/actions/commentActions.jsx'
Update a comment from database
Return:
* |
public dbUpdatePassword(newPassword: string): * source
import {dbUpdatePassword} from 'peter-test/app/actions/authorizeActions.jsx'
Change user's password
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
newInfo | object |
Return:
* |
public dbUploadImage(file: file, fileName: string): * source
import {dbUploadImage} from 'peter-test/app/actions/imageGalleryActions.jsx'
Upload image on the server
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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
Return:
{"type": *, "payload": *} |
public deleteComment(id: string, postId: string): {"type": *, "payload": *} source
import {deleteComment} from 'peter-test/app/actions/commentActions.jsx'
Delete a comment
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
Return:
{"type": *, "payload": *} |
public deleteImage(id: string): {"type": *, "id": *} source
import {deleteImage} from 'peter-test/app/actions/imageGalleryActions.jsx'
Delete an image
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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
Return:
{"type": *, "payload": *} |
public deleteVote(data: object): {"type": *, "payload": *} source
import {deleteVote} from 'peter-test/app/actions/voteActions.jsx'
delete a vote
Params:
Name | Type | Attribute | Description |
data | object |
Return:
{"type": *, "payload": *} |
public detectTags(content: *, character: *): * source
import {detectTags} from 'peter-test/app/api/PostAPI.jsx'
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
content | * |
Return:
* |
public getFollowingUsers(circles: object): * source
import {getFollowingUsers} from 'peter-test/app/api/CircleAPI.jsx'
Get the following users
Params:
Name | Type | Attribute | Description |
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
Return:
* |
public globalReducer(state: object, action: object): * source
import {globalReducer} from 'peter-test/app/reducers/globalReducer.jsx'
Global reducer
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:
Name | Type | Attribute | Description |
state | * |
|
|
action | * |
Return:
* |
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:
Name | Type | Attribute | Description |
* | |||
pw | * |
Return:
* |
public login(uid: string): {"type": *, "authed": boolean, "uid": *} source
import {login} from 'peter-test/app/actions/authorizeActions.jsx'
Loing user
Params:
Name | Type | Attribute | Description |
uid | string |
public logout(): {"type": *} source
import {logout} from 'peter-test/app/actions/authorizeActions.jsx'
Logout user
Return:
{"type": *} |
public notifyReducer(state: object, action: object): * source
import {notifyReducer} from 'peter-test/app/reducers/notifyReducer.jsx'
Notify actions
Return:
* |
public openCircleSettings(uid: *, id: *): {"type": *, "payload": *} source
import {openCircleSettings} from 'peter-test/app/actions/circleActions.jsx'
Open circle settings
Params:
Name | Type | Attribute | Description |
uid | * | ||
id | * |
Return:
{"type": *, "payload": *} |
public openCommentEditor(comment: *): {"type": *, "payload": *} source
import {openCommentEditor} from 'peter-test/app/actions/commentActions.jsx'
Params:
Name | Type | Attribute | Description |
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
Return:
* |
public progressChange(percent: string, visible: boolean): {"type": *, "payload": *} source
import {progressChange} from 'peter-test/app/actions/globalActions.jsx'
Progress change
Return:
{"type": *, "payload": *} |
public resetPassword(email: *): * source
import {resetPassword} from 'peter-test/app/helpers/index.jsx'
Params:
Name | Type | Attribute | Description |
* |
Return:
* |
public saveUser(user: *, other: *): * source
import {saveUser} from 'peter-test/app/helpers/index.jsx'
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
id | string | of notificaition |
Return:
{"type": *, "payload": *} |
public sendImageRequest(name: *): {"type": *, "payload": *} source
import {sendImageRequest} from 'peter-test/app/actions/imageGalleryActions.jsx'
Params:
Name | Type | Attribute | Description |
name | * |
Return:
{"type": *, "payload": *} |
public setHeaderTitle(text: *): {"type": *, "payload": *} source
import {setHeaderTitle} from 'peter-test/app/actions/globalActions.jsx'
Params:
Name | Type | Attribute | Description |
text | * |
Return:
{"type": *, "payload": *} |
public setHeaderTitleOpt(opt: *, payload: *): * source
import {setHeaderTitleOpt} from 'peter-test/app/actions/globalActions.jsx'
Params:
Name | Type | Attribute | Description |
opt | * | ||
payload | * |
Return:
* |
public setImageURL(name: *, url: *): {"type": *, "payload": *} source
import {setImageURL} from 'peter-test/app/actions/imageGalleryActions.jsx'
Params:
Name | Type | Attribute | Description |
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:
Name | Type | Attribute | Description |
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
import {signup} from 'peter-test/app/actions/authorizeActions.jsx'
Register user
Params:
Name | Type | Attribute | Description |
user | object |
public sortObjectsDate(objects: *): * source
import {sortObjectsDate} from 'peter-test/app/api/PostAPI.jsx'
Params:
Name | Type | Attribute | Description |
objects | * |
Return:
* |
public temp(data: *): {"type": *, "payload": *} source
import {temp} from 'peter-test/app/actions/globalActions.jsx'
Params:
Name | Type | Attribute | Description |
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
Return:
{"type": *, "payload": *} |
public updateComment(data: object): {"type": *, "payload": *} source
import {updateComment} from 'peter-test/app/actions/commentActions.jsx'
Update comment
Params:
Name | Type | Attribute | Description |
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
Return:
{"type": *, "payload": *} |
public updateUserInfo(uid: string, info: object): {"type": *, "payload": *} source
import {updateUserInfo} from 'peter-test/app/actions/userActions.jsx'
Update user information
Return:
{"type": *, "payload": *} |
public userInfo(info: object): {"type": *, "info": *} source
import {userInfo} from 'peter-test/app/actions/userActions.jsx'
User info
Params:
Name | Type | Attribute | Description |
info | object |
Return:
{"type": *, "info": *} |
public userReducer(state: *, action: *): * source
import {userReducer} from 'peter-test/app/reducers/userReducer.jsx'
Params:
Name | Type | Attribute | Description |
state | * |
|
|
action | * |
Return:
* |