Last active
July 5, 2021 18:21
-
-
Save jsmpros/5702515a4d7759bc25a7b85309fd3fa8 to your computer and use it in GitHub Desktop.
PeopleTools 8.58 Oracle JET Configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * jsmpros.com | |
| * for demonstration purposes only | |
| * use at your own risk | |
| */ | |
| (function () { | |
| var oJetRootUrl = (function (scriptId) { | |
| var mainUrl = /*window.strCurrUrl ||*/ window.location.href; | |
| var parts = | |
| mainUrl.match(/ps[pc]\/(.+?)(?:_)*?(?:\d)*?\/(.+?)\/(.+?)\/[chs]\//); | |
| return '/' + parts[1] + '/oraclejet/'; | |
| }()); | |
| window.require = ({ | |
| // Path mappings for the logical module names | |
| paths: { | |
| 'knockout': oJetRootUrl + 'js/libs/knockout/knockout-3.5.0', | |
| 'jquery': oJetRootUrl + 'js/libs/jquery/jquery-3.5.1.min', | |
| 'jqueryui': oJetRootUrl + 'js/libs/jquery/jquery-ui-1.12.1.custom.min', | |
| 'jqueryui-amd': oJetRootUrl + 'js/libs/jquery/jqueryui-amd-1.12.1.min', | |
| 'promise': oJetRootUrl + 'js/libs/es6-promise/es6-promise.min', | |
| 'hammerjs': oJetRootUrl + 'js/libs/hammer.js/hammer-2.0.8.min', | |
| 'ojdnd': oJetRootUrl + 'js/libs/dnd-polyfill/dnd-polyfill-1.0.0.min', | |
| 'ojs': oJetRootUrl + 'js/libs/oj/v7.0.1/min', | |
| 'ojL10n': oJetRootUrl + 'js/libs/oj/v7.0.1/ojL10n', | |
| 'ojtranslations': oJetRootUrl + 'js/libs/oj/v7.0.1/resources', | |
| 'text': oJetRootUrl + 'js/libs/requirejs/text', | |
| 'signals': oJetRootUrl + 'js/libs/js-signals/js-signals.min', | |
| 'customElements': oJetRootUrl + 'js/libs/webcomponents/custom-elements.min', | |
| 'proj4': oJetRootUrl + 'js/libs/proj4js/dist/proj4-src', | |
| 'css': oJetRootUrl + 'js/libs/require-css/css.min' | |
| }, | |
| // Shim configurations for modules that do not expose AMD | |
| shim: { | |
| 'jqueryui-amd': { | |
| exports: "$", | |
| deps: ['jquery'] | |
| }, | |
| 'jquery': { | |
| exports: ['jQuery', '$'] | |
| } | |
| }, | |
| config: { | |
| ojL10n: { | |
| merge: { | |
| //'ojtranslations/nls/ojtranslations': 'resources/nls/menu' | |
| // The following addes en-US to the r.js bundle | |
| //'ojtranslations/nls/ojtranslations': '../../oj/resources/nls/en-US/localeElements' | |
| } | |
| } | |
| } | |
| }); | |
| }()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment