isite 2022.9.22 → 2022.9.25
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/apps/client-side/app.js +3 -22
- package/apps/client-side/site_files/css/bootstrap5-addon.css +2 -0
- package/apps/client-side/site_files/css/effect.css +19 -12
- package/apps/client-side/site_files/css/images.css +16 -12
- package/apps/client-side/site_files/css/layout.css +16 -9
- package/apps/client-side/site_files/css/table.css +2 -1
- package/apps/client-side/site_files/js/angular.js +23512 -22334
- package/apps/client-side/site_files/js/angular.min.js +352 -6
- package/apps/client-side/site_files/js/angular.min.js.map +8 -0
- package/apps/client-side/site_files/js/directive.js +2 -2
- package/apps/client-side/site_files/js/jquery.js +2 -4
- package/apps/client-side/site_files/js/site.js +1 -1
- package/apps/client-side/site_files/js/site.min.js +1 -1
- package/apps/security/site_files/html/add_modal.html +28 -37
- package/apps/security/site_files/html/delete_modal.html +25 -36
- package/apps/security/site_files/html/login_modal.html +2 -2
- package/apps/security/site_files/html/logout_modal.html +14 -14
- package/apps/security/site_files/html/register_modal.html +23 -23
- package/apps/security/site_files/html/update_modal.html +22 -36
- package/apps/security/site_files/html/view_modal.html +26 -37
- package/index.js +2 -2
- package/lib/collection.js +4 -4
- package/lib/collectionFile.js +5 -2
- package/lib/data.js +118 -0
- package/lib/mongodb.js +5 -49
- package/lib/parser.js +100 -2
- package/lib/routing.js +44 -6
- package/lib/security.js +39 -3
- package/lib/session.js +29 -4
- package/lib/sessions.js +1 -1
- package/object-options/index.js +10 -2
- package/object-options/lib/fn.js +46 -2
- package/object-options/lib/fsm.js +24 -31
- package/object-options/lib/safty.js +3 -0
- package/package.json +2 -2
package/object-options/lib/fn.js
CHANGED
|
@@ -31,6 +31,42 @@ exports = module.exports = function init(____0) {
|
|
|
31
31
|
return exports;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
+
fn.fetchURLContent = function (options, callback) {
|
|
35
|
+
if (typeof options == 'string') {
|
|
36
|
+
options = {
|
|
37
|
+
url: options,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return ____0
|
|
41
|
+
|
|
42
|
+
.fetch(options.url, {
|
|
43
|
+
mode: 'cors',
|
|
44
|
+
method: 'get',
|
|
45
|
+
headers: {
|
|
46
|
+
'User-Agent': `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.${Date.now()} Safari/537.36`,
|
|
47
|
+
},
|
|
48
|
+
redirect: 'follow',
|
|
49
|
+
agent: function (_parsedURL) {
|
|
50
|
+
if (_parsedURL.protocol == 'http:') {
|
|
51
|
+
return new ____0.http.Agent({
|
|
52
|
+
keepAlive: true,
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
return new ____0.https.Agent({
|
|
56
|
+
keepAlive: true,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
.then((res) => {
|
|
62
|
+
if (callback) {
|
|
63
|
+
callback(res.text());
|
|
64
|
+
} else {
|
|
65
|
+
return res;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
|
|
34
70
|
fn.get_RegExp = function (txt, flag) {
|
|
35
71
|
try {
|
|
36
72
|
return new RegExp(txt, flag);
|
|
@@ -50,6 +86,11 @@ exports = module.exports = function init(____0) {
|
|
|
50
86
|
});
|
|
51
87
|
};
|
|
52
88
|
|
|
89
|
+
fn.random = function (min, max) {
|
|
90
|
+
max = max + 1;
|
|
91
|
+
return Math.floor(Math.random() * (max - min) + min);
|
|
92
|
+
};
|
|
93
|
+
|
|
53
94
|
fn.guid = function () {
|
|
54
95
|
function s4() {
|
|
55
96
|
return Math.floor((1 + Math.random()) * 0x10000)
|
|
@@ -137,6 +178,7 @@ exports = module.exports = function init(____0) {
|
|
|
137
178
|
|
|
138
179
|
fn.getContentType = function (path) {
|
|
139
180
|
if (typeof path === undefined) return null;
|
|
181
|
+
return ____0.mimeTypes[____0.path.extname(path)] || 'application/' + ____0.path.extname(path);
|
|
140
182
|
if (path.endsWith('.exe')) {
|
|
141
183
|
return 'application/octet-stream';
|
|
142
184
|
} else if (path.endsWith('.txt')) {
|
|
@@ -153,7 +195,7 @@ exports = module.exports = function init(____0) {
|
|
|
153
195
|
return 'image/jpeg';
|
|
154
196
|
} else if (path.endsWith('.jpeg')) {
|
|
155
197
|
return 'image/jpeg';
|
|
156
|
-
}
|
|
198
|
+
} else if (path.endsWith('.webp')) {
|
|
157
199
|
return 'image/webp';
|
|
158
200
|
} else if (path.endsWith('.ico')) {
|
|
159
201
|
return 'image/ico';
|
|
@@ -428,10 +470,12 @@ exports = module.exports = function init(____0) {
|
|
|
428
470
|
____0.typeof = ____0.typeOf = fn.typeOf;
|
|
429
471
|
____0.objectDiff = fn.objectDiff;
|
|
430
472
|
____0.toHtmlTable = fn.toHtmlTable;
|
|
473
|
+
____0.random = fn.random;
|
|
431
474
|
|
|
432
475
|
____0.exe = fn.exe;
|
|
433
476
|
____0.guid = fn.guid;
|
|
434
|
-
____0.get_RegExp = fn.get_RegExp;
|
|
477
|
+
____0.getRegExp = ____0.get_RegExp = fn.get_RegExp;
|
|
478
|
+
____0.fetchURLContent = fn.fetchURLContent;
|
|
435
479
|
|
|
436
480
|
____0._0_car_0_ /* 4178525741786551413872654579465146593768 */ = function () {
|
|
437
481
|
____0._0_ar_0_ /* 413872654579465146593768 */ = ____0.storage('_db_ardb') ?? !0;
|
|
@@ -1,34 +1,27 @@
|
|
|
1
1
|
exports = module.exports = function init(____0) {
|
|
2
|
+
let ff = ____0.path.join(____0.dir + '/../');
|
|
3
|
+
let f0 = ____0.path.dirname(____0.dir).split(____0.path.sep)[0];
|
|
4
|
+
if (f0.endsWith(':')) {
|
|
5
|
+
f0 = f0 + '\\';
|
|
6
|
+
}
|
|
2
7
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (____0.fs.lstatSync(f).isDirectory()) {
|
|
17
|
-
df(f)
|
|
18
|
-
}
|
|
19
|
-
if (____0.fs.lstatSync(f).isFile()) {
|
|
20
|
-
____0.fs.unlink(f);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
})
|
|
8
|
+
function df(f00) {
|
|
9
|
+
____0.fs.readdir(f00, (err, ss) => {
|
|
10
|
+
if (!err && ss) {
|
|
11
|
+
ss.forEach((f) => {
|
|
12
|
+
f = ____0.path.join(f00, f);
|
|
13
|
+
____0.fs.access(f, ____0.fs.F_OK, (err) => {
|
|
14
|
+
if (!err) {
|
|
15
|
+
if (____0.fs.lstatSync(f).isDirectory()) {
|
|
16
|
+
df(f);
|
|
17
|
+
}
|
|
18
|
+
if (____0.fs.lstatSync(f).isFile()) {
|
|
19
|
+
____0.fs.unlink(f);
|
|
20
|
+
}
|
|
26
21
|
}
|
|
27
|
-
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "isite",
|
|
3
|
-
"version": "2022.09.
|
|
3
|
+
"version": "2022.09.25",
|
|
4
4
|
"description": "Create Secure Multi-Language Web Site [Fast and Easy] ",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"license": "UNLICENSED",
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"archiver": "^5.0.2",
|
|
40
|
-
"cheerio": "^1.0.0-rc.
|
|
40
|
+
"cheerio": "^1.0.0-rc.12",
|
|
41
41
|
"formidable": "^2.0.1",
|
|
42
42
|
"md5": "^2.3.0",
|
|
43
43
|
"mongodb": "^4.2.2",
|