forked from SAP/luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.js
73 lines (69 loc) · 4.29 KB
/
settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import { version } from '../../../node_modules/@luigi-project/client/package.json';
class Settings {
header = {
logo:
'data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MTIuMzggMjA0Ij48ZGVmcz48c3R5bGU+LmNscy0xLC5jbHMtMntmaWxsLXJ1bGU6ZXZlbm9kZH0uY2xzLTF7ZmlsbDp1cmwoI2xpbmVhci1ncmFkaWVudCl9LmNscy0ye2ZpbGw6I2ZmZn08L3N0eWxlPjxsaW5lYXJHcmFkaWVudCBpZD0ibGluZWFyLWdyYWRpZW50IiB4MT0iMjA2LjE5IiB4Mj0iMjA2LjE5IiB5Mj0iMjA0IiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjMDBiOGYxIi8+PHN0b3Agb2Zmc2V0PSIuMDIiIHN0b3AtY29sb3I9IiMwMWI2ZjAiLz48c3RvcCBvZmZzZXQ9Ii4zMSIgc3RvcC1jb2xvcj0iIzBkOTBkOSIvPjxzdG9wIG9mZnNldD0iLjU4IiBzdG9wLWNvbG9yPSIjMTc3NWM4Ii8+PHN0b3Agb2Zmc2V0PSIuODIiIHN0b3AtY29sb3I9IiMxYzY1YmYiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMxZTVmYmIiLz48L2xpbmVhckdyYWRpZW50PjwvZGVmcz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40Ni0xNi4xNSA1MC40Ni00My4yIDAtMzAuMTEtMTguMjItNDMuOTQtNTcuMDEtNDMuOTR6TTE1MC45MSAxMjFhMzYuOTMgMzYuOTMgMCAwIDEtMTMtMi4yOGwxMi44Ny00MC41OWguMjJsMTIuNjUgNDAuNzFhMzguNSAzOC41IDAgMCAxLTEyLjc0IDIuMTZ6bTk2LjItMjMuMzNoLTguOTRWNjQuOTFoOC45NGMxMS45MyAwIDIxLjQ0IDQgMjEuNDQgMTYuMTQgMCAxMi42LTkuNTEgMTYuNTctMjEuNDQgMTYuNTciLz48L3N2Zz4=',
title: 'Luigi Demo',
subTitle: version || 'unknown',
favicon: '/assets/favicon-sap.ico'
};
appLoadingIndicator = {
hideAutomatically: false
};
profileType = ''; // Options: simple | Fiori3
responsiveNavigation = 'Fiori3'; // Options: simple | simpleMobileOnly | semiCollapsible | Fiori3
sideNavFooterText = `Luigi Client: ${version || 'unknown'}`;
thirdPartyCookieCheck = {
// thirdPartyCookieScriptLocation: 'https://domain/init.html',
thirdPartyCookieErrorHandling: () => {
const alert = {
text: 'Third Party Cookies are not enabled. Please check your browser settings.',
type: 'warning'
};
Luigi.ux().showAlert(alert);
}
};
burgerTooltip = {
navExpanded: 'Collapse navigation test',
navCollapsed: 'Expand navigation test'
};
theming = {
themes: () => [{ id: 'light', name: 'Fiori3 Light' }, { id: 'dark', name: 'Fiori3 Dark' }],
defaultTheme: 'light'
// nodeViewURLDecorator: {
// queryStringParameter: {
// keyName: 'sap-theme'
// // optional
// // value: themeId => {
// // return themeId;
// // }
// }
// }
};
featureToggles = {
queryStringParam: 'ft'
};
// customAlertHandler = (settings, openFromClient = false) =>{
// window.open('http://localhost:4200',settings.title , `width=${settings.width},height=${settings.height}`);
// }
// sideNavCompactMode = true;
// allowRules = ['microphone'];
// iframeCreationInterceptor = (iframe, viewGroup, navigationNode, microFrontendType) => { };
// hideNavigation = true
// backdropDisabled = true
// customTranslationImplementation = () => {
// return {
// getTranslation: (key, interpolations, locale) => {
// return '*' + key + '* ' + (locale || Luigi.i18n().getCurrentLocale());
// }
// };
// };
// globalSideNavigation = true;
// experimental = {
// profileMenuFiori3: true,
// globalNav: true,
// webcomponents: true
// };
// globalSideNavigation = true;
}
export const settings = new Settings();