f75de86c6d
Let the whole compiled admin bundle export a variable 'Admin' and attach various classes to this global variable, similar to how we have in Leaflet having a global L variable and other things attached to this variable.
36 lines
768 B
JavaScript
36 lines
768 B
JavaScript
var adminDeps = {
|
|
AdminCore: {
|
|
src: ['admin/Base.js',
|
|
'admin/Admin.js',
|
|
'admin/AdminSocketBase.js'],
|
|
desc: 'Core admin scripts infrastructure'
|
|
},
|
|
|
|
Util: {
|
|
src: ['admin/Util.js'],
|
|
desc: 'Utility class',
|
|
deps: ['AdminCore']
|
|
},
|
|
|
|
AdminSocketOverview: {
|
|
src: ['admin/AdminSocketOverview.js'],
|
|
desc: 'Socket to handle messages in overview page.',
|
|
deps: ['AdminCore']
|
|
},
|
|
|
|
AdminSocketAnalytics: {
|
|
src: ['admin/AdminSocketAnalytics.js'],
|
|
desc: 'Socket to handle messages in analytics page.',
|
|
deps: ['AdminCore']
|
|
},
|
|
|
|
AdminSocketSettings: {
|
|
src: ['admin/AdminSocketSettings.js'],
|
|
desc: 'Socket to handle settings from server',
|
|
deps: ['AdminCore']
|
|
}
|
|
};
|
|
|
|
if (typeof exports !== 'undefined') {
|
|
exports.adminDeps = adminDeps;
|
|
}
|