UNPKG

nakedobjects.spa

Version:

Single Page Application client for a Naked Objects application.

45 lines 1.81 kB
// code constants - not for config var path = null; // path local server (ie ~) only needed if you want to hard code paths for some reason var svrPath = ""; export function getSvrPath() { if (!path) { var trimmedPath = svrPath.trim(); if (trimmedPath.length === 0 || trimmedPath.charAt(svrPath.length - 1) === "/") { path = trimmedPath; } else { path = trimmedPath + "/"; } } return path; } export var fixedDateFormat = "YYYY-MM-DD"; // routing constants export var geminiPath = "gemini"; export var ciceroPath = "cicero"; export var homePath = "home"; export var objectPath = "object"; export var listPath = "list"; export var errorPath = "error"; export var recentPath = "recent"; export var attachmentPath = "attachment"; export var applicationPropertiesPath = "applicationProperties"; export var multiLineDialogPath = "multiLineDialog"; export var logoffPath = "logoff"; //Restful Objects constants export var roDomainType = "x-ro-domain-type"; export var roInvalidReason = "x-ro-invalidReason"; export var roSearchTerm = "x-ro-searchTerm"; export var roPage = "x-ro-page"; export var roPageSize = "x-ro-pageSize"; export var roInlinePropertyDetails = "x-ro-inline-property-details"; export var roValidateOnly = "x-ro-validate-only"; export var roInlineCollectionItems = "x-ro-inline-collection-items"; //NOF custom RO constants export var nofWarnings = "x-ro-nof-warnings"; export var nofMessages = "x-ro-nof-messages"; export var supportedDateFormats = ["D/M/YYYY", "D/M/YY", "D MMM YYYY", "D MMMM YYYY", "D MMM YY", "D MMMM YY"]; // updated by build do not update manually or change name or regex may not match export var clientVersion = '9.0.6'; //# sourceMappingURL=constants.js.map