jedifocus.navigations
Version:
Columns of JediFocus.
106 lines (88 loc) • 2.41 kB
JavaScript
/* __.-._
* '-._"7' JediFocus
* /'.-c
* | /T Do. Or do not.
* _)_/LI There is no try.
*
* This project is a part of the “Byte-Sized JavaScript” videocasts.
* You can watch “Byte-Sized JavaScript” at: https://bytesized.tv/
*
* MIT Licensed — See LICENSE.md
*
* Send your comments, suggestions, and feedback to me@volkan.io
*/
import type { List, Map } from 'immutable';
declare module 'jedifocus-store-types' {
declare type AppState = {
loggedIn: boolean,
appStateFetched: boolean,
appRandomQuote: string,
context: string,
bestIntentions: Map<string, string>,
done: Map<string, string>,
inProgress: Map<string, string>,
toDo: Map<string, string>,
modalVisible: boolean,
modalRevealed: boolean,
modalMoveOptionsShown: boolean,
modalColumn: string,
modalId: string,
modalDescription: string,
modalContext: string,
cardContextMenuVisible: boolean,
cardContextMenuCardId: string,
cardContextMenuCardColumn: string,
cardContextMenuCardContext: string,
modalContextVisible: boolean,
quotes: List<string>
};
declare type ReceiveAppStateAction = {
payload: {
bestIntentions: [{ [string]: string }],
inProgress: [{ [string]: string }],
toDo: [{ [string]: string }]
}
};
declare type UpdateContextAction = {
payload: { context: string }
};
declare type CopyCardAction = {
payload: { column: string, id: string }
};
declare type EditCardAction = {
payload: { column: string, id: string }
};
declare type MoveCardAction = {
payload: { column: string, oldId: string, newId: string }
};
declare type SaveCardAction = {
payload: {
cardContext: string,
cardColumn: string,
cardId: string,
newId: string
}
};
declare type ShowCardContextMenuAction = {
payload: { id: string, column: string, context: string }
};
declare type UpdateColumnAction = {
payload: { currentColumn: string, cardId: string, nextColumn: string }
};
declare type UpdateCardContextAction = {
payload: {
column: string,
cardId: string,
cardDescription: string,
cardContext: string
}
};
declare type UpdateCardDescriptionAction = {
payload: {
column: string,
cardId: string,
cardDescription: string,
cardContext: string
}
};
}