-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminFiles.js
More file actions
executable file
·115 lines (106 loc) · 2.76 KB
/
adminFiles.js
File metadata and controls
executable file
·115 lines (106 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
'use strict';
var adminFiles = {
'modules': {
'kernel': [
'js/kernel/kernel.js',
'js/kernel/directives/**/*.js',
'js/kernel/config/**/*.js',
'js/kernel/controllers/**/*.js',
'js/kernel/services/**/*.js',
],
'product': [
'js/product/product.js',
'js/product/config/**/*.js',
'js/product/controllers/**/*.js',
'js/product/resources/**/*.js',
'js/product/services/**/*.js',
],
'auth': [
'js/auth/auth.js',
'js/auth/config/**/*.js',
'js/auth/controllers/**/*.js',
'js/auth/resources/**/*.js',
'js/auth/services/**/*.js',
],
'shop': [
'js/shop/shop.js',
'js/shop/config/**/*.js',
'js/shop/controllers/**/*.js',
'js/shop/resources/**/*.js',
'js/shop/services/**/*.js',
],
'section': [
'js/section/section.js',
'js/section/config/**/*.js',
'js/section/resources/**/*.js',
'js/section/controllers/**/*.js',
'js/section/services/**/*.js',
],
'order': [
'js/order/order.js',
'js/order/config/**/*.js',
'js/order/resources/**/*.js',
'js/order/controllers/**/*.js',
'js/order/services/**/*.js',
],
'reports': [
'js/reports/reports.js',
'js/reports/config/**/*.js',
'js/reports/resources/**/*.js',
'js/reports/controllers/**/*.js',
'js/reports/services/**/*.js',
],
'settings': [
'js/settings/settings.js',
'js/settings/config/**/*.js',
'js/settings/resources/**/*.js',
'js/settings/controllers/**/*.js',
'js/settings/services/**/*.js',
],
'dashboard': [
'js/dashboard/dashboard.js',
'js/dashboard/config/**/*.js',
'js/dashboard/resources/**/*.js',
'js/dashboard/controllers/**/*.js',
'js/dashboard/services/**/*.js',
],
'media': [
'js/media/media.js',
'js/media/config/**/*.js',
'js/media/resources/**/*.js',
'js/media/controllers/**/*.js',
'js/media/services/**/*.js',
],
'base': [
'js/base/base.js'
],
'crud': [
'js/crud/crud.js',
'js/crud/directives/**/*.js',
'js/crud/services/**/*.js',
],
'category': [
'js/category/category.js',
'js/category/config/**/*.js',
'js/category/resources/**/*.js',
],
},
};
if (exports) {
exports.files = adminFiles;
exports.mergeFilesFor = function() {
var files = [];
Array.prototype.slice.call(arguments, 0).forEach(function(filegroup) {
adminFiles[filegroup].forEach(function(file) {
// replace @ref
var match = file.match(/^\@(.*)/);
if (match) {
files = files.concat(adminFiles[match[1]]);
} else {
files.push(file);
}
});
});
return files;
};
}