case 4310 plus misc cleanup of ay-report as it's actually visible to users if they go into the file system
This commit is contained in:
@@ -147,8 +147,6 @@ Handlebars.registerHelper("ayConcat", function () {
|
||||
///////////////////////////////////////////
|
||||
// Turn a utc date into a displayable
|
||||
// short date and time
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
//
|
||||
function utcDateToShortDateAndTimeLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
@@ -177,7 +175,6 @@ function utcDateToShortDateAndTimeLocalized(ayValue) {
|
||||
///////////////////////////////////////////
|
||||
// Turn a utc date into a displayable
|
||||
// short date
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
function utcDateToShortDateLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
return "";
|
||||
@@ -203,7 +200,6 @@ function utcDateToShortDateLocalized(ayValue) {
|
||||
///////////////////////////////////////////
|
||||
// Turn a utc date into a displayable
|
||||
// short time
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
function utcDateToShortTimeLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
return "";
|
||||
@@ -230,7 +226,6 @@ function utcDateToShortTimeLocalized(ayValue) {
|
||||
|
||||
///////////////////////////////////////////
|
||||
// CURRENCY LOCALIZATION
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
//
|
||||
function currencyLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
@@ -247,7 +242,6 @@ function currencyLocalized(ayValue) {
|
||||
|
||||
///////////////////////////////////////////
|
||||
// DECIMAL LOCALIZATION
|
||||
//(PRIVATE NOT DOCUMENTED, FOR HELPER USE)
|
||||
//
|
||||
function decimalLocalized(ayValue) {
|
||||
if (!ayValue) {
|
||||
@@ -278,9 +272,6 @@ async function ayGetTranslations(keys) {
|
||||
ayTranslationKeyCache[item.key] = item.value;
|
||||
});
|
||||
} catch (error) {
|
||||
//fundamental error, can't proceed with this call
|
||||
// handleError("GET", error, route);
|
||||
//todo: deal with this properly
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
@@ -307,9 +298,6 @@ async function ayGetFromAPI(route, token) {
|
||||
});
|
||||
return await extractBodyEx(r);
|
||||
} catch (error) {
|
||||
//fundamental error, can't proceed with this call
|
||||
// handleError("GET", error, route);
|
||||
//todo: deal with this properly
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
@@ -377,12 +365,8 @@ async function ayPutToAPI(route, data, token) {
|
||||
|
||||
/////////////////////////////
|
||||
// attachment download URL
|
||||
// (PRIVATE NOT DOCUMENTED FOR HELPER USE)
|
||||
// (INTERNAL USE NOT DOCUMENTED FOR HELPER USE)
|
||||
function attachmentDownloadUrl(fileId, ctype) {
|
||||
//http://localhost:7575/api/v8/attachment/download/100?t=sssss
|
||||
//Ctype is optional and is the MIME content type, used to detect image urls at client for drag and drop ops
|
||||
//in wiki but ignored by server
|
||||
|
||||
let url =
|
||||
"attachment/download/" +
|
||||
fileId +
|
||||
@@ -459,10 +443,3 @@ function ayGroupByKey(reportDataArray, groupByKeyName) {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// //Utils
|
||||
// function ayPad(n, width, z) {
|
||||
// z = z || "0";
|
||||
// n = n + "";
|
||||
// return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user