1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

article CRUD with socket

This commit is contained in:
Rokt33r
2015-10-16 22:12:49 +09:00
parent a1810e6023
commit 2a339a2935
12 changed files with 176 additions and 99 deletions

View File

@@ -30,21 +30,21 @@ export function updateUser (user) {
export function refreshArticles (userId, articles) {
return {
type: ARTICLE_REFRESH,
data: {userId, articles}
data: { userId, articles }
}
}
export function updateArticle (userId, article) {
return {
type: ARTICLE_UPDATE,
data: {userId, article}
data: { userId, article }
}
}
export function destroyArticle (userId, articleId) {
export function destroyArticle (userId, articleKey) {
return {
type: ARTICLE_DESTROY,
data: { userId, articleId }
data: { userId, articleKey }
}
}
@@ -70,9 +70,9 @@ export function switchMode (mode) {
}
}
export function switchArticle (articleId) {
export function switchArticle (articleKey) {
return {
type: SWITCH_ARTICLE,
data: articleId
data: articleKey
}
}