|
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64 User : ServerPC ( 0) PHP Version : 8.2.12 Disable Function : NONE Directory : C:/Windows/SystemApps/MicrosoftWindows.Client.CBS_cw5n1h2txyewy/core/js/ |
Upload File : |
//
// Copyright (C) Microsoft. All rights reserved.
//
class RequirePathConfig {
constructor(root) {
// Setup path for requirejs
this.baseUrl = root + '/js';
this.paths = {
legacy: '/js',
lib: '/lib',
winjs: '/Microsoft.WinJS-reduced/js',
jsCommon: this.baseUrl + '/common',
jsTemplates: '/webapps/templates/js',
pageView: root + '/view',
viewTemplates: root + '/view/templates',
inclusiveOobeJsCommon: '/webapps/inclusiveOobe/js/common',
inclusiveOobeViewTemplates: '/webapps/inclusiveOobe/view/templates',
aOobeJsCommon: '/webapps/AOobe/js/common',
aOobeViewTemplates: '/webapps/AOobe/view/templates',
viewCommonTemplates: '/webapps/templates/view',
appLaunchers: this.baseUrl + '/appLaunchers',
optional: '/lib/optional',
sample: '/samples',
data: '/data',
corejs: '/core/js'
};
// Mapping for lib versions
this.map = {
'*': {
'lib/knockout': 'lib/knockout-3.4.0',
'lib/knockout-winjs': 'lib/knockout-winjs-wrapper'
}
};
// Set module/script load timeout to 30s (default is 7s, which is too short on slower platforms).
this.waitSeconds = 30;
}
}