1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 18:26:26 +00:00

revive articledetail

This commit is contained in:
Rokt33r
2015-10-13 16:09:37 +09:00
parent 5356e68b51
commit e5e8032ba1
16 changed files with 354 additions and 135 deletions

View File

@@ -1,6 +1,12 @@
export const USER_UPDATE = 'USER_UPDATE'
export const ARTICLE_UPDATE = 'ARTICLE_UPDATE'
export const SWITCH_USER = 'SWITCH_USER'
export const SWITCH_FOLDER = 'SWITCH_FOLDER'
export const SWITCH_MODE = 'SWITCH_MODE'
export const IDLE_MODE = 'IDLE_MODE'
export const CREATE_MODE = 'CREATE_MODE'
export const EDIT_MODE = 'EDIT_MODE'
export function updateUser (user) {
return {
@@ -9,6 +15,13 @@ export function updateUser (user) {
}
}
export function updateArticles (userId, articles) {
return {
type: ARTICLE_UPDATE,
data: {userId, articles}
}
}
export function switchUser (userId) {
return {
type: SWITCH_USER,
@@ -22,3 +35,10 @@ export function switchFolder (folderId) {
data: folderId
}
}
export function switchMode (mode) {
return {
type: SWITCH_MODE,
data: mode
}
}