Merge branch '3.0'
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / js / require.config.js
CommitLineData
a623cd24 1//noinspection JSUnresolvedVariable
5ea13aa3
TD
2requirejs.config({
3 paths: {
4 enquire: '3rdParty/enquire',
b7f79b30
TD
5 favico: '3rdParty/favico',
6 'perfect-scrollbar': '3rdParty/perfect-scrollbar'
5ea13aa3 7 },
7efb5f7c
TD
8 shim: {
9 enquire: { exports: 'enquire' },
10 favico: { exports: 'Favico' },
11 'perfect-scrollbar': { exports: 'PerfectScrollbar' }
12 },
5ea13aa3
TD
13 map: {
14 '*': {
58d7e8f8
MS
15 'Ajax': 'WoltLabSuite/Core/Ajax',
16 'AjaxJsonp': 'WoltLabSuite/Core/Ajax/Jsonp',
17 'AjaxRequest': 'WoltLabSuite/Core/Ajax/Request',
18 'CallbackList': 'WoltLabSuite/Core/CallbackList',
abdba8a9 19 'ColorUtil': 'WoltLabSuite/Core/ColorUtil',
58d7e8f8
MS
20 'Core': 'WoltLabSuite/Core/Core',
21 'DateUtil': 'WoltLabSuite/Core/Date/Util',
32669648 22 'Devtools': 'WoltLabSuite/Core/Devtools',
58d7e8f8
MS
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',
70318665 42 'Ui/Scroll': 'WoltLabSuite/Core/Ui/Scroll',
58d7e8f8
MS
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'
5ea13aa3 47 }
a623cd24 48 },
a623cd24 49 waitSeconds: 0
5ea13aa3 50});
b8c254e8
TD
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*/
57define('jquery', function() {
58 return window.jQuery;
59});