2018-10-31 17:00:31 +01:00
|
|
|
export const REQUEST_GOOD = 'requestGood';
|
|
|
|
export const REQUEST_LAME = 'requestLame';
|
|
|
|
export const IMG_REQUEST_GOOD = 'imgRequestGood';
|
|
|
|
export const IMG_REQUEST_LAME = 'imgRequestLame';
|
|
|
|
export const SETTINGS_LOADED = 'dataLoaded';
|
|
|
|
export const HTML_LOADED = 'htmlLoaded';
|
|
|
|
export const ARCHIVES_JSON_LOADED = 'archivesJSONLoaded';
|
|
|
|
export const ARCHIVES_PAGE_LOADED = 'archivesPAGELoaded';
|
|
|
|
export const ARCHIVES_ENTRY_LOADED = 'archivesEntryLoaded';
|
|
|
|
export const PROJECT_UPDATED = 'projectUpdated';
|
|
|
|
export const PROJECT_ADDED = 'projectAdded';
|
|
|
|
export const PROJECTS_SORTED = 'projectsSorted';
|
|
|
|
export const POST_IMAGE_ADDED = 'postImageAdded';
|
2018-11-26 23:14:13 +01:00
|
|
|
export const FEATURE_IMAGE_ADDED = 'featureImageAdded';
|
2018-11-05 23:32:33 +01:00
|
|
|
export const POST_ERROR = 'postError';
|
|
|
|
export const POST_ADDED = 'postAdded';
|
|
|
|
export const POST_UPDATED = 'postUpdated';
|
|
|
|
export const POST_DELETED = 'postImageAdded';
|
2018-11-21 01:42:52 +01:00
|
|
|
export const POSTS_SYNCED = 'postsSynced';
|
2018-12-03 01:47:28 +01:00
|
|
|
export const LOCAL_DB_READY = 'localDBReady';
|
2018-12-19 18:56:18 +01:00
|
|
|
export const SETTINGS_UPDATED = 'settingsUpdated';
|
2018-10-31 17:00:31 +01:00
|
|
|
class DataEvent
|
|
|
|
{
|
|
|
|
|
|
|
|
//--------------------------
|
|
|
|
// methods
|
|
|
|
//--------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//--------------------------
|
|
|
|
// event handlers
|
|
|
|
//--------------------------
|
|
|
|
}
|
|
|
|
export default new DataEvent
|