Skip to content
2 changes: 1 addition & 1 deletion webapp/Component.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

220 changes: 110 additions & 110 deletions webapp/config.js
Original file line number Diff line number Diff line change
@@ -1,110 +1,110 @@
(function() {
var version = "4.7.11";
var sNamespace = "shortpoint-widget-beta";
var versionBuster = version.replace(/\./g, "00");
var prefix = jQuery.sap.getModulePath( sNamespace );
if (prefix === ".") {
prefix = "";
}
var webapp = "";
if(!sap.ushell || !sap.ushell.Container){
// required only in Web IDE testing
webapp = "webapp";
}
// Placeholder for SharePoint _spPageContextInfo object with default values so our build won't fail on SAP
window._spPageContextInfo = {
"webServerRelativeUrl": "/",
"webAbsoluteUrl": location.origin,
"siteAbsoluteUrl": location.origin,
"serverRequestPath": "",
"layoutsUrl": "",
"webTitle": "",
"webTemplate": "",
"tenantAppVersion": "",
"isAppWeb": false,
"webLogoUrl": "",
"webLanguage": 0,
"currentLanguage": 0,
"currentUICultureName": "en-US",
"currentCultureName": "en-US",
"clientServerTimeDelta": 0,
"siteClientTag": "",
"crossDomainPhotosEnabled": false,
"webUIVersion": 0,
"webPermMasks": {
"High": 0,
"Low": 0
},
"pageListId": "",
"pageItemId": 0,
"pagePersonalizationScope": 0,
"userId": 0,
"systemUserKey": "",
"alertsEnabled": false,
"siteServerRelativeUrl": "/",
"allowSilverlightPrompt": ""
};
var root = prefix + "/~" + versionBuster + "~/" + webapp;
jQuery.sap.registerModulePath("shortpoint-root", root);
jQuery.sap.registerModulePath("shortpoint-libs", "https://d2zzvnmppezkx.cloudfront.net/sap/4.7.11" + "/libs");
sap.ui.define(["./connections"], function (connections) {
"use strict";
// map connections
var oConnectionTypes = connections.map(function (item) {
return {
name: item.name,
adapter: "rest",
data: { url: prefix + item.url },
id: item.id
};
});
// add rest api connection
oConnectionTypes.push({
name: 'REST API',
adapter: 'rest',
id: 'dynamic_rest',
data: {
url: '',
editableUrl: true
}
}, {
name: 'RSS Feeds',
adapter: 'rss',
id: 'dynamic_rss',
data: {
url: '',
editableUrl: true
}
});
/**
* ShortPoint configuration
*/
var oShortpointPreConfig = {
autoInit: false,
scrollWrapperSelector: ".shortpoint-scroll-container",
platform: "sap",
version: version,
connectionTypes: oConnectionTypes,
rerenderOnThemeChange: false,
};
window.shortpoint_pre_config = oShortpointPreConfig; // eslint-disable-line camelcase
/**
* expose all configurations
*/
return {
namespace: sNamespace,
shortpointPreConfig: oShortpointPreConfig,
appVersion: version
};
});
})();
(function() {
var version = "4.8.1";
var sNamespace = "shortpoint-widget-beta";

var versionBuster = version.replace(/\./g, "00");
var prefix = jQuery.sap.getModulePath( sNamespace );
if (prefix === ".") {
prefix = "";
}

var webapp = "";
if(!sap.ushell || !sap.ushell.Container){
// required only in Web IDE testing
webapp = "webapp";
}

// Placeholder for SharePoint _spPageContextInfo object with default values so our build won't fail on SAP
window._spPageContextInfo = {
"webServerRelativeUrl": "/",
"webAbsoluteUrl": location.origin,
"siteAbsoluteUrl": location.origin,
"serverRequestPath": "",
"layoutsUrl": "",
"webTitle": "",
"webTemplate": "",
"tenantAppVersion": "",
"isAppWeb": false,
"webLogoUrl": "",
"webLanguage": 0,
"currentLanguage": 0,
"currentUICultureName": "en-US",
"currentCultureName": "en-US",
"clientServerTimeDelta": 0,
"siteClientTag": "",
"crossDomainPhotosEnabled": false,
"webUIVersion": 0,
"webPermMasks": {
"High": 0,
"Low": 0
},
"pageListId": "",
"pageItemId": 0,
"pagePersonalizationScope": 0,
"userId": 0,
"systemUserKey": "",
"alertsEnabled": false,
"siteServerRelativeUrl": "/",
"allowSilverlightPrompt": ""
};

var root = prefix + "/~" + versionBuster + "~/" + webapp;
jQuery.sap.registerModulePath("shortpoint-root", root);
jQuery.sap.registerModulePath("shortpoint-libs", "https://d2zzvnmppezkx.cloudfront.net/sap/4.8.1" + "/libs");

sap.ui.define(["./connections"], function (connections) {
"use strict";

// map connections
var oConnectionTypes = connections.map(function (item) {
return {
name: item.name,
adapter: "rest",
data: { url: prefix + item.url },
id: item.id
};
});

// add rest api connection
oConnectionTypes.push({
name: 'REST API',
adapter: 'rest',
id: 'dynamic_rest',
data: {
url: '',
editableUrl: true
}
}, {
name: 'RSS Feeds',
adapter: 'rss',
id: 'dynamic_rss',
data: {
url: '',
editableUrl: true
}
});

/**
* ShortPoint configuration
*/
var oShortpointPreConfig = {
autoInit: false,
scrollWrapperSelector: ".shortpoint-scroll-container",
platform: "sap",
version: version,
connectionTypes: oConnectionTypes,
rerenderOnThemeChange: false,
};

window.shortpoint_pre_config = oShortpointPreConfig; // eslint-disable-line camelcase

/**
* expose all configurations
*/
return {
namespace: sNamespace,
shortpointPreConfig: oShortpointPreConfig,
appVersion: version
};
});
})();
7 changes: 3 additions & 4 deletions webapp/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@

/* Support 5500 */
/* Hide preloaders until we figure out what is causing them to sometimes not go away */
.shortpoint-sk-root, .shortpoint-sk-wrap, .shrotpoint-sk-circle {
display: none !important;
}

.shortpoint-sk-root {
display: none !important;
}

Loading