Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / require.config.js
1 //noinspection JSUnresolvedVariable
2 requirejs.config({
3 paths: {
4 enquire: '3rdParty/enquire',
5 favico: '3rdParty/favico',
6 'perfect-scrollbar': '3rdParty/perfect-scrollbar'
7 },
8 shim: {
9 enquire: { exports: 'enquire' },
10 favico: { exports: 'Favico' },
11 'perfect-scrollbar': { exports: 'PerfectScrollbar' }
12 },
13 map: {
14 '*': {
15 'Ajax': 'WoltLabSuite/Core/Ajax',
16 'AjaxJsonp': 'WoltLabSuite/Core/Ajax/Jsonp',
17 'AjaxRequest': 'WoltLabSuite/Core/Ajax/Request',
18 'CallbackList': 'WoltLabSuite/Core/CallbackList',
19 'ColorUtil': 'WoltLabSuite/Core/ColorUtil',
20 'Core': 'WoltLabSuite/Core/Core',
21 'DateUtil': 'WoltLabSuite/Core/Date/Util',
22 'Devtools': 'WoltLabSuite/Core/Devtools',
23 'Dictionary': 'WoltLabSuite/Core/Dictionary',
24 'Dom/ChangeListener': 'WoltLabSuite/Core/Dom/Change/Listener',
25 'Dom/Traverse': 'WoltLabSuite/Core/Dom/Traverse',
26 'Dom/Util': 'WoltLabSuite/Core/Dom/Util',
27 'Environment': 'WoltLabSuite/Core/Environment',
28 'EventHandler': 'WoltLabSuite/Core/Event/Handler',
29 'EventKey': 'WoltLabSuite/Core/Event/Key',
30 'Language': 'WoltLabSuite/Core/Language',
31 'List': 'WoltLabSuite/Core/List',
32 'ObjectMap': 'WoltLabSuite/Core/ObjectMap',
33 'Permission': 'WoltLabSuite/Core/Permission',
34 'StringUtil': 'WoltLabSuite/Core/StringUtil',
35 'Ui/Alignment': 'WoltLabSuite/Core/Ui/Alignment',
36 'Ui/CloseOverlay': 'WoltLabSuite/Core/Ui/CloseOverlay',
37 'Ui/Confirmation': 'WoltLabSuite/Core/Ui/Confirmation',
38 'Ui/Dialog': 'WoltLabSuite/Core/Ui/Dialog',
39 'Ui/Notification': 'WoltLabSuite/Core/Ui/Notification',
40 'Ui/ReusableDropdown': 'WoltLabSuite/Core/Ui/Dropdown/Reusable',
41 'Ui/Screen': 'WoltLabSuite/Core/Ui/Screen',
42 'Ui/Scroll': 'WoltLabSuite/Core/Ui/Scroll',
43 'Ui/SimpleDropdown': 'WoltLabSuite/Core/Ui/Dropdown/Simple',
44 'Ui/TabMenu': 'WoltLabSuite/Core/Ui/TabMenu',
45 'Upload': 'WoltLabSuite/Core/Upload',
46 'User': 'WoltLabSuite/Core/User'
47 }
48 },
49 waitSeconds: 0
50 });
51
52 /* Define jQuery shim. We cannot use the shim object in the configuration above,
53 because it tries to load the file, even if the exported global already exists.
54 This shim is needed for jQuery plugins supporting an AMD loaded jQuery, because
55 we break the AMD support of jQuery for BC reasons.
56 */
57 define('jquery', function() {
58 return window.jQuery;
59 });