isite 2022.9.20 → 2022.9.23
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/README.md +19 -0
- package/apps/client-side/app.js +2 -0
- package/apps/client-side/site_files/css/bootstrap5-addon.css +9 -1
- package/apps/client-side/site_files/css/checkbox.css +80 -76
- package/apps/client-side/site_files/css/form.css +2 -2
- package/apps/client-side/site_files/css/images.css +32 -15
- package/apps/client-side/site_files/css/modal.css +153 -155
- package/apps/client-side/site_files/css/scrollbar.css +4 -3
- package/apps/client-side/site_files/css/table.css +1 -0
- package/apps/client-side/site_files/css/theme.css +4 -2
- package/apps/client-side/site_files/css/theme_paper.css +4 -2
- package/apps/client-side/site_files/css/treeview.css +17 -4
- package/apps/client-side/site_files/html/directive/i-button.html +1 -1
- package/apps/client-side/site_files/html/directive/i-treenode.html +3 -3
- package/apps/client-side/site_files/html/directive/i-treeview.html +6 -11
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +6 -2
- package/apps/client-side/site_files/js/site.js +5 -3
- package/index.js +3 -0
- package/lib/data.js +118 -0
- package/lib/helper.js +43 -0
- package/lib/routing.js +10 -3
- package/lib/security.js +39 -3
- package/lib/session.js +34 -6
- package/object-options/index.js +244 -234
- package/object-options/lib/fn.js +2 -1
- package/object-options/lib/fsm.js +24 -31
- package/object-options/lib/safty.js +3 -0
- package/package.json +1 -1
package/object-options/index.js
CHANGED
|
@@ -1,259 +1,269 @@
|
|
|
1
1
|
exports = module.exports = setOptions;
|
|
2
2
|
|
|
3
3
|
function setOptions(_options, ____0) {
|
|
4
|
-
|
|
4
|
+
____0.require(__dirname + '/lib/fn');
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
let port = process.env.port || 80;
|
|
7
|
+
let name = 'Your Site';
|
|
8
|
+
let _0xddxo = !1;
|
|
9
|
+
let _0x14xo = !1;
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
let dir_arr = ____0.cwd.split('/').pop().split('\\').pop().split('-');
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (____0.cwd.endsWith(____0._x0f1xo('2538177146129191'))) {
|
|
24
|
-
defaults = {
|
|
25
|
-
features: [____0._x0f1xo('4159236947792757465382744578276241387191')],
|
|
26
|
-
permissions: [],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
13
|
+
if (dir_arr.length > 2 && dir_arr[0] == ____0._x0f1xo('4678765246593191') && !isNaN(dir_arr[2])) {
|
|
14
|
+
_0xddxo = !0;
|
|
15
|
+
_0x14xo = !0;
|
|
16
|
+
name = dir_arr[1];
|
|
17
|
+
port = parseInt(dir_arr[2]);
|
|
18
|
+
}
|
|
19
|
+
let defaults = {
|
|
20
|
+
features: [],
|
|
21
|
+
permissions: [],
|
|
22
|
+
};
|
|
29
23
|
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
24
|
+
const template = {
|
|
25
|
+
port: port,
|
|
26
|
+
cwd: ____0.cwd,
|
|
27
|
+
dir: ____0.cwd + '/site_files',
|
|
28
|
+
apps: !0,
|
|
29
|
+
apps_dir: ____0.cwd + '/apps',
|
|
30
|
+
upload_dir: ____0.cwd + '/../uploads',
|
|
31
|
+
download_dir: ____0.cwd + '/../downloads',
|
|
32
|
+
backup_dir: ____0.cwd + '/../backup',
|
|
33
|
+
name: name,
|
|
34
|
+
hostname: 'localhost',
|
|
35
|
+
key: null,
|
|
36
|
+
savingTime: 10,
|
|
37
|
+
_0x14xo: _0x14xo, // 3259376545129191
|
|
38
|
+
_0xddxo: _0xddxo, // 421957684138766241719191
|
|
39
|
+
log: !0,
|
|
40
|
+
lang: 'ar',
|
|
41
|
+
theme: 'default',
|
|
42
|
+
help: !1,
|
|
43
|
+
stdin: !0,
|
|
44
|
+
_0xmmxo: '26719191',
|
|
45
|
+
_0xyyxo: '2654127326719191',
|
|
46
|
+
ipLookup: false,
|
|
47
|
+
subDomainIntegration: false,
|
|
48
|
+
domainIntegration: false,
|
|
49
|
+
portIntegration: false,
|
|
50
|
+
https: {
|
|
51
|
+
enabled: !1,
|
|
52
|
+
port: null,
|
|
53
|
+
ports: [],
|
|
54
|
+
key: null,
|
|
55
|
+
cert: null,
|
|
56
|
+
},
|
|
57
|
+
mail: {
|
|
58
|
+
enabled: !0,
|
|
59
|
+
type: 'free',
|
|
60
|
+
host: '',
|
|
61
|
+
port: 587,
|
|
62
|
+
secure: false,
|
|
63
|
+
username: '',
|
|
64
|
+
password: '',
|
|
65
|
+
},
|
|
66
|
+
mongodb: {
|
|
67
|
+
enabled: !0,
|
|
68
|
+
events: false,
|
|
69
|
+
config: {},
|
|
70
|
+
protocal: 'mongodb://',
|
|
71
|
+
host: '127.0.0.1',
|
|
72
|
+
port: '27017',
|
|
73
|
+
userName: null,
|
|
74
|
+
password: null,
|
|
75
|
+
db: 'db_' + name,
|
|
76
|
+
collection: 'default_collection',
|
|
77
|
+
limit: 10,
|
|
78
|
+
prefix: {
|
|
79
|
+
db: '',
|
|
80
|
+
collection: '',
|
|
81
|
+
},
|
|
82
|
+
identity: {
|
|
83
|
+
enabled: !1,
|
|
84
|
+
start: 1,
|
|
85
|
+
step: 1,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
session: {
|
|
89
|
+
timeout: 60 * 24 * 30,
|
|
90
|
+
enabled: !0,
|
|
91
|
+
storage: 'mongodb',
|
|
92
|
+
db: null,
|
|
93
|
+
collection: 'users_sessions',
|
|
94
|
+
},
|
|
95
|
+
security: {
|
|
96
|
+
enabled: !0,
|
|
97
|
+
login_url: '/login',
|
|
98
|
+
db: null,
|
|
99
|
+
users_collection: 'users_info',
|
|
100
|
+
roles_collection: 'users_roles',
|
|
101
|
+
_: ['4acb00841a735653fd0b19c1c7db6ee7', 'edf8d0bf6981b5774df01a67955148a0', 'd755e293ec060d97d77c39fdb329305d'],
|
|
102
|
+
keys: [],
|
|
103
|
+
users: [],
|
|
104
|
+
},
|
|
105
|
+
cache: {
|
|
106
|
+
enabled: !0,
|
|
107
|
+
html: 0,
|
|
108
|
+
txt: 60 * 24 * 30,
|
|
109
|
+
js: 60 * 24 * 30,
|
|
110
|
+
css: 60 * 24 * 30,
|
|
111
|
+
fonts: 60 * 24 * 30,
|
|
112
|
+
images: 60 * 24 * 30,
|
|
113
|
+
json: 60 * 24 * 30,
|
|
114
|
+
xml: 60 * 24 * 30,
|
|
115
|
+
},
|
|
116
|
+
proto: {
|
|
117
|
+
object: !1,
|
|
118
|
+
array: !0,
|
|
119
|
+
},
|
|
120
|
+
require: {
|
|
121
|
+
features: [____0._x0f1xo('4159236947792757465382744578276241387191')],
|
|
122
|
+
permissions: [],
|
|
123
|
+
},
|
|
124
|
+
defaults: defaults,
|
|
125
|
+
};
|
|
128
126
|
|
|
129
|
-
|
|
127
|
+
if (____0.cwd.endsWith(____0._x0f1xo('2538177146129191'))) {
|
|
128
|
+
template.require.features.forEach((f, i) => {
|
|
129
|
+
if (f == ____0._x0f1xo('4159236947792757465382744578276241387191')) {
|
|
130
|
+
template.require.features.splice(i);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
130
134
|
|
|
131
|
-
|
|
132
|
-
_x0oo.port = port;
|
|
133
|
-
_x0oo.name = name;
|
|
134
|
-
} else {
|
|
135
|
-
_x0oo.port = _x0oo.port || template.port;
|
|
136
|
-
_x0oo.name = _x0oo.name || template.name;
|
|
137
|
-
}
|
|
135
|
+
let _x0oo = { ...template, ..._options };
|
|
138
136
|
|
|
139
|
-
|
|
140
|
-
_x0oo.
|
|
141
|
-
_x0oo.
|
|
142
|
-
|
|
143
|
-
_x0oo.
|
|
137
|
+
if (_0xddxo) {
|
|
138
|
+
_x0oo.port = port;
|
|
139
|
+
_x0oo.name = name;
|
|
140
|
+
} else {
|
|
141
|
+
_x0oo.port = _x0oo.port || template.port;
|
|
142
|
+
_x0oo.name = _x0oo.name || template.name;
|
|
143
|
+
}
|
|
144
144
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
_x0oo.stdin = _x0oo.stdin ?? template.stdin;
|
|
152
|
-
_x0oo.apps = _x0oo.apps ?? template.apps;
|
|
153
|
-
_x0oo.apps_dir = _x0oo.apps_dir || template.apps_dir;
|
|
154
|
-
_x0oo._0x14xo = _x0oo._0x14xo ?? !1;
|
|
155
|
-
_x0oo.ipLookup = _x0oo.ipLookup ?? !1;
|
|
145
|
+
_x0oo[____0._x0f1xo('4815136426151271')] = _x0oo.key || template.key;
|
|
146
|
+
_x0oo.cwd = _x0oo.cwd || template.cwd;
|
|
147
|
+
_x0oo.dir = _x0oo.dir || template.dir;
|
|
148
|
+
_x0oo.upload_dir = _x0oo.upload_dir || template.upload_dir;
|
|
149
|
+
_x0oo.download_dir = _x0oo.download_dir || template.download_dir;
|
|
150
|
+
_x0oo.backup_dir = _x0oo.backup_dir || template.backup_dir;
|
|
156
151
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
152
|
+
_x0oo.savingTime = _x0oo.savingTime ?? template.savingTime;
|
|
153
|
+
_x0oo.hostname = _x0oo.hostname || template.hostname;
|
|
154
|
+
_x0oo.log = _x0oo.log ?? template.log;
|
|
155
|
+
_x0oo.lang = _x0oo.lang ?? template.lang;
|
|
156
|
+
_x0oo.theme = _x0oo.theme ?? template.theme;
|
|
157
|
+
_x0oo.help = _x0oo.help ?? template.help;
|
|
158
|
+
_x0oo.stdin = _x0oo.stdin ?? template.stdin;
|
|
159
|
+
_x0oo.apps = _x0oo.apps ?? template.apps;
|
|
160
|
+
_x0oo.apps_dir = _x0oo.apps_dir || template.apps_dir;
|
|
161
|
+
_x0oo._0x14xo = _x0oo._0x14xo ?? !1;
|
|
162
|
+
_x0oo.ipLookup = _x0oo.ipLookup ?? !1;
|
|
163
|
+
_x0oo.subDomainIntegration = _x0oo.subDomainIntegration ?? !1;
|
|
164
|
+
_x0oo.domainIntegration = _x0oo.domainIntegration ?? !1;
|
|
165
|
+
_x0oo.portIntegration = _x0oo.portIntegration ?? !1;
|
|
166
166
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
_x0oo.
|
|
167
|
+
_x0oo.https = _x0oo.https || template.https;
|
|
168
|
+
_x0oo.https.enabled = _x0oo.https.enabled ?? template.https.enabled;
|
|
169
|
+
_x0oo.https.port = _x0oo.https.port || template.https.port;
|
|
170
|
+
_x0oo.https.key = _x0oo.https.key || template.https.key;
|
|
171
|
+
_x0oo.https.cert = _x0oo.https.cert || template.https.cert;
|
|
172
|
+
_x0oo.https.ports = _x0oo.https.ports || template.https.ports;
|
|
173
|
+
if (_x0oo.https.port) {
|
|
174
|
+
_x0oo.https.ports.push(_x0oo.https.port);
|
|
175
|
+
}
|
|
175
176
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
_x0oo.mongodb.password = _x0oo.mongodb.password || template.mongodb.password;
|
|
185
|
-
_x0oo.mongodb.db = _0xddxo ? 'smart_db_' + name : _x0oo.mongodb.db || template.mongodb.db;
|
|
186
|
-
_x0oo.mongodb.collection = _x0oo.mongodb.collection || template.mongodb.collection;
|
|
187
|
-
_x0oo.mongodb.limit = _x0oo.mongodb.limit || template.mongodb.limit;
|
|
188
|
-
_x0oo.mongodb.prefix = _x0oo.mongodb.prefix || template.mongodb.prefix;
|
|
189
|
-
_x0oo.mongodb.prefix.db = _x0oo.mongodb.prefix.db || template.mongodb.prefix.db;
|
|
190
|
-
_x0oo.mongodb.prefix.collection = _x0oo.mongodb.prefix.collection || template.mongodb.prefix.collection;
|
|
177
|
+
_x0oo.mail = _x0oo.mail || template.mail;
|
|
178
|
+
_x0oo.mail.enabled = _x0oo.mail.enabled ?? template.mail.enabled;
|
|
179
|
+
_x0oo.mail.type = _x0oo.mail.type || template.mail.type;
|
|
180
|
+
_x0oo.mail.host = _x0oo.mail.host || template.mail.host;
|
|
181
|
+
_x0oo.mail.port = _x0oo.mail.port || template.mail.port;
|
|
182
|
+
_x0oo.mail.secure = _x0oo.mail.secure || template.mail.secure;
|
|
183
|
+
_x0oo.mail.username = _x0oo.mail.username || template.mail.username;
|
|
184
|
+
_x0oo.mail.password = _x0oo.mail.password || template.mail.password;
|
|
191
185
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
186
|
+
_x0oo.mongodb = _x0oo.mongodb || template.mongodb;
|
|
187
|
+
_x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
|
|
188
|
+
_x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
|
|
189
|
+
_x0oo.mongodb.config = _x0oo.mongodb.config || template.mongodb.config;
|
|
190
|
+
_x0oo.mongodb.protocal = _x0oo.mongodb.protocal || template.mongodb.protocal;
|
|
191
|
+
_x0oo.mongodb.host = _x0oo.mongodb.host || template.mongodb.host;
|
|
192
|
+
_x0oo.mongodb.port = _x0oo.mongodb.port || template.mongodb.port;
|
|
193
|
+
_x0oo.mongodb.userName = _x0oo.mongodb.userName || template.mongodb.userName;
|
|
194
|
+
_x0oo.mongodb.password = _x0oo.mongodb.password || template.mongodb.password;
|
|
195
|
+
_x0oo.mongodb.db = _0xddxo ? 'smart_db_' + name : _x0oo.mongodb.db || template.mongodb.db;
|
|
196
|
+
_x0oo.mongodb.collection = _x0oo.mongodb.collection || template.mongodb.collection;
|
|
197
|
+
_x0oo.mongodb.limit = _x0oo.mongodb.limit || template.mongodb.limit;
|
|
198
|
+
_x0oo.mongodb.prefix = _x0oo.mongodb.prefix || template.mongodb.prefix;
|
|
199
|
+
_x0oo.mongodb.prefix.db = _x0oo.mongodb.prefix.db || template.mongodb.prefix.db;
|
|
200
|
+
_x0oo.mongodb.prefix.collection = _x0oo.mongodb.prefix.collection || template.mongodb.prefix.collection;
|
|
196
201
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
_x0oo.session.db = _x0oo.session.db || _x0oo.mongodb.db;
|
|
202
|
-
_x0oo.session.collection = _x0oo.session.collection || template.session.collection;
|
|
202
|
+
_x0oo.mongodb.identity = _x0oo.mongodb.identity || template.mongodb.identity;
|
|
203
|
+
_x0oo.mongodb.identity.enabled = _x0oo.mongodb.identity.enabled ?? template.mongodb.identity.enabled;
|
|
204
|
+
_x0oo.mongodb.identity.start = _x0oo.mongodb.identity.start || template.mongodb.identity.start;
|
|
205
|
+
_x0oo.mongodb.identity.step = _x0oo.mongodb.identity.step || template.mongodb.identity.step;
|
|
203
206
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
_x0oo.security.users = _x0oo.security.users || template.security.users;
|
|
211
|
-
_x0oo.security.keys = _x0oo.security.keys || template.security.keys;
|
|
207
|
+
_x0oo.session = _x0oo.session || template.session;
|
|
208
|
+
_x0oo.session.enabled = _x0oo.session.enabled ?? template.session.enabled;
|
|
209
|
+
_x0oo.session.timeout = _x0oo.session.timeout ?? template.session.timeout;
|
|
210
|
+
_x0oo.session.storage = _x0oo.session.storage || template.session.storage;
|
|
211
|
+
_x0oo.session.db = _x0oo.session.db || _x0oo.mongodb.db;
|
|
212
|
+
_x0oo.session.collection = _x0oo.session.collection || template.session.collection;
|
|
212
213
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
214
|
+
_x0oo.security = _x0oo.security || template.security;
|
|
215
|
+
_x0oo.security.enabled = _x0oo.security.enabled ?? template.security.enabled;
|
|
216
|
+
_x0oo.security.login_url = _x0oo.security.login_url || template.security.login_url;
|
|
217
|
+
_x0oo.security.db = _x0oo.security.db || _x0oo.mongodb.db;
|
|
218
|
+
_x0oo.security.users_collection = _x0oo.security.users_collection || template.security.users_collection;
|
|
219
|
+
_x0oo.security.roles_collection = _x0oo.security.roles_collection || template.security.roles_collection;
|
|
220
|
+
_x0oo.security.users = _x0oo.security.users || template.security.users;
|
|
221
|
+
_x0oo.security.keys = _x0oo.security.keys || template.security.keys;
|
|
218
222
|
|
|
219
|
-
|
|
220
|
-
_x0oo.
|
|
221
|
-
|
|
222
|
-
_x0oo.
|
|
223
|
-
|
|
224
|
-
_x0oo.cache.xml = _x0oo.cache.xml ?? template.cache.xml;
|
|
225
|
-
_x0oo.cache.fonts = _x0oo.cache.fonts ?? template.cache.fonts;
|
|
226
|
-
_x0oo.cache.html = _x0oo.cache.html ?? template.cache.html;
|
|
227
|
-
_x0oo.cache.images = _x0oo.cache.images ?? template.cache.images;
|
|
228
|
-
_x0oo.cache.txt = _x0oo.cache.txt ?? template.cache.txt;
|
|
223
|
+
if (_0xddxo) {
|
|
224
|
+
_x0oo.security.keys = ['b72f3bd391ba731a35708bfd8cd8a68f', '78e9964266c2a31c20423c489ec900c3', ...template.security._];
|
|
225
|
+
} else {
|
|
226
|
+
_x0oo.security.keys = [..._x0oo.security.keys, ...template.security._];
|
|
227
|
+
}
|
|
229
228
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
229
|
+
_x0oo.cache = _x0oo.cache || template.cache;
|
|
230
|
+
_x0oo.cache.enabled = _x0oo.cache.enabled ?? template.cache.enabled;
|
|
231
|
+
_x0oo.cache.js = _x0oo.cache.js ?? template.cache.js;
|
|
232
|
+
_x0oo.cache.css = _x0oo.cache.css ?? template.cache.css;
|
|
233
|
+
_x0oo.cache.json = _x0oo.cache.json ?? template.cache.json;
|
|
234
|
+
_x0oo.cache.xml = _x0oo.cache.xml ?? template.cache.xml;
|
|
235
|
+
_x0oo.cache.fonts = _x0oo.cache.fonts ?? template.cache.fonts;
|
|
236
|
+
_x0oo.cache.html = _x0oo.cache.html ?? template.cache.html;
|
|
237
|
+
_x0oo.cache.images = _x0oo.cache.images ?? template.cache.images;
|
|
238
|
+
_x0oo.cache.txt = _x0oo.cache.txt ?? template.cache.txt;
|
|
233
239
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
240
|
+
_x0oo.require = _x0oo.require || template.require;
|
|
241
|
+
_x0oo.require.features = _x0oo.require.features ?? template.require.features;
|
|
242
|
+
_x0oo.require.permissions = _x0oo.require.permissions ?? template.require.permissions;
|
|
237
243
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
____0._0x14xo = _x0oo._0x14xo;
|
|
242
|
-
____0._0_ar2_0_ = !0;
|
|
244
|
+
_x0oo.defaults = _x0oo.defaults || template.defaults;
|
|
245
|
+
_x0oo.defaults.features = _x0oo.defaults.features ?? template.defaults.features;
|
|
246
|
+
_x0oo.defaults.permissions = _x0oo.defaults.permissions ?? template.defaults.permissions;
|
|
243
247
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
248
|
+
____0.options = _x0oo;
|
|
249
|
+
____0.port = _x0oo.port;
|
|
250
|
+
____0.dir = _x0oo.dir;
|
|
251
|
+
____0._0x14xo = _x0oo._0x14xo;
|
|
252
|
+
____0._0_ar2_0_ = !0;
|
|
253
|
+
|
|
254
|
+
____0.require(__dirname + ____0._x0f1xo('25787262415386744719236245584774'));
|
|
255
|
+
____0.require(__dirname + ____0._x0f1xo('25787262415386544578827447129191'));
|
|
256
|
+
____0.require(__dirname + ____0._x0f1xo('25787262415386574758376847129191'));
|
|
257
|
+
____0.require(__dirname + ____0._x0f1xo('2578726241538671465886754579328246183691'));
|
|
258
|
+
____0.require(__dirname + ____0._x0f1xo('25787262415386744138427548319191'));
|
|
259
|
+
____0.require(__dirname + ____0._x0f1xo('25787262415386684738765342392374'));
|
|
260
|
+
____0.require(__dirname + ____0._x0f1xo('2578726241538658423817754739235746719191'));
|
|
261
|
+
dir_arr.forEach((f) => {
|
|
262
|
+
____0.addFeature(f);
|
|
263
|
+
});
|
|
264
|
+
____0.on(____0._x0f1xo('46785775423476744718177347183756'), () => {
|
|
265
|
+
____0.importApp(__dirname + ____0._x0f1xo('25791365473847624559266942585765423476674138825242783773'));
|
|
266
|
+
});
|
|
257
267
|
|
|
258
|
-
|
|
268
|
+
return _x0oo;
|
|
259
269
|
}
|
package/object-options/lib/fn.js
CHANGED
|
@@ -137,6 +137,7 @@ exports = module.exports = function init(____0) {
|
|
|
137
137
|
|
|
138
138
|
fn.getContentType = function (path) {
|
|
139
139
|
if (typeof path === undefined) return null;
|
|
140
|
+
return ____0.mimeTypes[____0.path.extname(path)] || 'application/' + ____0.path.extname(path);
|
|
140
141
|
if (path.endsWith('.exe')) {
|
|
141
142
|
return 'application/octet-stream';
|
|
142
143
|
} else if (path.endsWith('.txt')) {
|
|
@@ -153,7 +154,7 @@ exports = module.exports = function init(____0) {
|
|
|
153
154
|
return 'image/jpeg';
|
|
154
155
|
} else if (path.endsWith('.jpeg')) {
|
|
155
156
|
return 'image/jpeg';
|
|
156
|
-
}
|
|
157
|
+
} else if (path.endsWith('.webp')) {
|
|
157
158
|
return 'image/webp';
|
|
158
159
|
} else if (path.endsWith('.ico')) {
|
|
159
160
|
return 'image/ico';
|
|
@@ -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
|
+
};
|