forked from projects/fipamo
ro
1e37580869
dropped in js from the old site to begin the process of wiring up the API, but this time around, scripts will be served directly in browswer rather than being transpiled through NPM/Babel, eliminating the need for NPM. also scripting will new modularized and served specifically for the requirements of the page loading it. no more front loading everything. only script that is needed for that page will be retrieved. if no scripting is needed, none will be loaded. The only casualty so far has been syntax highlighting due to prismjs still being a common js module, but either this will be replaced with another library or a custom syntax enginge will be created at a later date
52 lines
2.2 KiB
JavaScript
52 lines
2.2 KiB
JavaScript
export const AUTH_STATUS = "getAuthStatus";
|
|
export const REQUEST_GOOD = "requestGood";
|
|
export const REQUEST_LAME = "requestLame";
|
|
export const API_REQUEST_GOOD = "apiUseAuthorized";
|
|
export const API_REQUEST_LAME = "apiUseNotAuthorized";
|
|
export const IMG_REQUEST_GOOD = "imgRequestGood";
|
|
export const IMG_REQUEST_LAME = "imgRequestLame";
|
|
export const SETTINGS_LOADED = "settingsLoaded";
|
|
export const POST_IMAGE_ADDED = "postImageAdded";
|
|
export const FEATURE_IMAGE_ADDED = "featureImageAdded";
|
|
export const PAGE_ERROR = "postError";
|
|
export const PAGE_ADDED = "postAdded";
|
|
export const PAGE_UPDATED = "postUpdated";
|
|
export const PAGE_DELETED = "postImageAdded";
|
|
export const PAGES_RENDERED = "pagesRendered";
|
|
export const PAGES_NOT_RENDERED = "pagesNotRendered";
|
|
export const TAG_PAGES_RENDERED = "tagPagesRendered";
|
|
export const TAG_PAGES_NOT_RENDERED = "tagPagesNotRendered";
|
|
export const SETTINGS_UPDATED = "settingsUpdated";
|
|
export const SETTINGS_NOT_UPDATED = "settingsNotUpdated";
|
|
export const MENU_ADD_ITEM = "menuAddItem";
|
|
export const MENU_DELETE_ITEM = "menuDeleteItem";
|
|
export const MENU_UPDATED = "menuUpdated";
|
|
export const AVATAR_UPLOADED = "avatarUploaded";
|
|
export const SITE_BACKGROUND_UPLOADED = "siteBackgroundUploaded";
|
|
export const UPLOAD_PROGRESS = "uploadProgress";
|
|
export const API_PAGE_WRITE = "writingItDown";
|
|
export const API_PAGE_CREATE = "writingNewEntry";
|
|
export const API_PAGE_DELETE = "erasingPage";
|
|
export const API_SETTINGS_WRITE = "savingSettings";
|
|
export const API_BACKUP_CREATE = "createBackup";
|
|
export const API_BACKUP_DOWNLOAD = "downloadBackup";
|
|
export const API_BACKUP_RESTORE = "downloadBackup";
|
|
export const API_IMAGES_UPLOAD = "uploadProfileImages";
|
|
export const API_RENDER_PAGES = "renderPages";
|
|
export const API_REINDEX_PAGES = "reindexPages";
|
|
export const API_INIT = "blogInit";
|
|
export const API_INIT_GOOD = "blogInitGood";
|
|
export const API_INIT_LAME = "blogInitLame";
|
|
export const API_GET_SECRET = "retrieveSecret";
|
|
export const API_RESET_PASS = "resetPassword";
|
|
export const SEND_MAIL = "sendMail";
|
|
class DataEvent {
|
|
//--------------------------
|
|
// methods
|
|
//--------------------------
|
|
//--------------------------
|
|
// event handlers
|
|
//--------------------------
|
|
}
|
|
export default new DataEvent();
|