mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
prepare alpha.5 (remain work: MD preview, keybind)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
export const ARTICLE_UPDATE = 'ARTICLE_UPDATE'
|
||||
export const ARTICLE_DESTROY = 'ARTICLE_DESTROY'
|
||||
export const FOLDER_CREATE = 'FOLDER_CREATE'
|
||||
export const FOLDER_UPDATE = 'FOLDER_UPDATE'
|
||||
export const FOLDER_DESTROY = 'FOLDER_DESTROY'
|
||||
|
||||
export const SWITCH_FOLDER = 'SWITCH_FOLDER'
|
||||
@@ -28,10 +29,10 @@ export function updateArticle (article) {
|
||||
}
|
||||
}
|
||||
|
||||
export function destroyArticle (articleKey) {
|
||||
export function destroyArticle (key) {
|
||||
return {
|
||||
type: ARTICLE_DESTROY,
|
||||
data: { articleKey }
|
||||
data: { key }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +43,13 @@ export function createFolder (folder) {
|
||||
}
|
||||
}
|
||||
|
||||
export function updateFolder (folder) {
|
||||
return {
|
||||
type: FOLDER_UPDATE,
|
||||
data: { folder }
|
||||
}
|
||||
}
|
||||
|
||||
export function destroyFolder (key) {
|
||||
return {
|
||||
type: FOLDER_DESTROY,
|
||||
|
||||
Reference in New Issue
Block a user