This commit is contained in:
2021-04-27 18:58:04 +00:00
parent 689e22a260
commit 14cd300413
2 changed files with 16 additions and 5 deletions

View File

@@ -1,3 +1,13 @@
# ADM-IMPORT Placeholder
NOTE: AyaNova 8's native data interchange format is JSON as JSON supports hiearchical structured data of the type AyaNova uses for nearly all it's object types.
For this reason, import ONLY supports JSON format files. Importing CSV files is *not* supported.
A 3rd party tool can be used to convert CSV files to JSON if necessary.
https://duckduckgo.com/?t=ffab&q=csv+to+json&ia=web
TODO: How to use the IMPORT feature, limitations, auto tag, etc

View File

@@ -66,27 +66,28 @@ function ayRegisterHelpers() {
});
Handlebars.registerHelper("ayLogo", function (size) {
if (this.ayServerMetaData) {
if (AYMETA.ayServerMetaData) {
switch (size) {
case "small":
if (!this.ayServerMetaData.HasSmallLogo) {
if (!AYMETA.ayServerMetaData.HasSmallLogo) {
return "";
}
break;
case "medium":
if (!this.ayServerMetaData.HasMediumLogo) {
if (!AYMETA.ayServerMetaData.HasMediumLogo) {
return "";
}
break;
case "large":
if (!this.ayServerMetaData.HasLargeLogo) {
if (!AYMETA.ayServerMetaData.HasLargeLogo) {
return "";
}
break;
}
}
var url = `${Handlebars.escapeExpression(
this.ayServerMetaData.ayApiUrl
AYMETA.ayServerMetaData.ayApiUrl
)}logo/${size}`;
return new Handlebars.SafeString("<img src='" + url + "'/>");
});