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.
@@ -1,259 +1,269 @@
1
1
  exports = module.exports = setOptions;
2
2
 
3
3
  function setOptions(_options, ____0) {
4
- ____0.require(__dirname + '/lib/fn');
4
+ ____0.require(__dirname + '/lib/fn');
5
5
 
6
- let port = process.env.port || 80;
7
- let name = 'Your Site';
8
- let _0xddxo = !1;
9
- let _0x14xo = !1;
6
+ let port = process.env.port || 80;
7
+ let name = 'Your Site';
8
+ let _0xddxo = !1;
9
+ let _0x14xo = !1;
10
10
 
11
- let dir_arr = ____0.cwd.split('/').pop().split('\\').pop().split('-');
11
+ let dir_arr = ____0.cwd.split('/').pop().split('\\').pop().split('-');
12
12
 
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
- };
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
- const template = {
31
- port: port,
32
- cwd: ____0.cwd,
33
- dir: ____0.cwd + '/site_files',
34
- upload_dir: ____0.cwd + '/../uploads',
35
- download_dir: ____0.cwd + '/../downloads',
36
- apps: !0,
37
- apps_dir: ____0.cwd + '/apps',
38
- name: name,
39
- hostname: 'localhost',
40
- key: null,
41
- savingTime: 10,
42
- _0x14xo: _0x14xo, // 3259376545129191
43
- _0xddxo: _0xddxo, // 421957684138766241719191
44
- log: !0,
45
- lang: 'ar',
46
- theme: 'default',
47
- help: !1,
48
- stdin: !0,
49
- _0xmmxo: '26351691',
50
- _0xyyxo: '2654127326519191',
51
- ipLookup: false,
52
- https: {
53
- enabled: !1,
54
- port: null,
55
- ports: [],
56
- key: null,
57
- cert: null,
58
- },
59
- mail :{
60
- enabled : !0,
61
- type : 'free',
62
- host : '',
63
- port : 587,
64
- secure : false,
65
- username : '',
66
- password : ''
67
- },
68
- mongodb: {
69
- enabled: !0,
70
- events: false,
71
- config: {},
72
- protocal: 'mongodb://',
73
- host: '127.0.0.1',
74
- port: '27017',
75
- userName: null,
76
- password: null,
77
- db: 'db_' + name,
78
- collection: 'default_collection',
79
- limit: 10,
80
- prefix: {
81
- db: '',
82
- collection: '',
83
- },
84
- identity: {
85
- enabled: !1,
86
- start: 1,
87
- step: 1,
88
- },
89
- },
90
- session: {
91
- timeout: 60 * 24 * 30,
92
- enabled: !0,
93
- storage: 'mongodb',
94
- db: null,
95
- collection: 'users_sessions',
96
- },
97
- security: {
98
- enabled: !0,
99
- login_url : '/login',
100
- db: null,
101
- users_collection: 'users_info',
102
- roles_collection: 'users_roles',
103
- _: ['4acb00841a735653fd0b19c1c7db6ee7', 'edf8d0bf6981b5774df01a67955148a0', 'd755e293ec060d97d77c39fdb329305d'],
104
- keys: [],
105
- users: [],
106
- },
107
- cache: {
108
- enabled: !0,
109
- html: 0,
110
- txt: 60 * 24 * 30,
111
- js: 60 * 24 * 30,
112
- css: 60 * 24 * 30,
113
- fonts: 60 * 24 * 30,
114
- images: 60 * 24 * 30,
115
- json: 60 * 24 * 30,
116
- xml: 60 * 24 * 30,
117
- },
118
- proto: {
119
- object: !1,
120
- array: !0,
121
- },
122
- require: {
123
- features: [____0._x0f1xo('4159236947792757465382744578276241387191')],
124
- permissions: [],
125
- },
126
- defaults: defaults,
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
- let _x0oo = { ...template, ..._options };
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
- if (_0xddxo) {
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
- _x0oo[____0._x0f1xo('4815136426151271')] = _x0oo.key || template.key;
140
- _x0oo.cwd = _x0oo.cwd || template.cwd;
141
- _x0oo.dir = _x0oo.dir || template.dir;
142
- _x0oo.upload_dir = _x0oo.upload_dir || template.upload_dir;
143
- _x0oo.download_dir = _x0oo.download_dir || template.download_dir;
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
- _x0oo.savingTime = _x0oo.savingTime ?? template.savingTime;
146
- _x0oo.hostname = _x0oo.hostname || template.hostname;
147
- _x0oo.log = _x0oo.log ?? template.log;
148
- _x0oo.lang = _x0oo.lang ?? template.lang;
149
- _x0oo.theme = _x0oo.theme ?? template.theme;
150
- _x0oo.help = _x0oo.help ?? template.help;
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
- _x0oo.https = _x0oo.https || template.https;
158
- _x0oo.https.enabled = _x0oo.https.enabled ?? template.https.enabled;
159
- _x0oo.https.port = _x0oo.https.port || template.https.port;
160
- _x0oo.https.key = _x0oo.https.key || template.https.key;
161
- _x0oo.https.cert = _x0oo.https.cert || template.https.cert;
162
- _x0oo.https.ports = _x0oo.https.ports || template.https.ports;
163
- if (_x0oo.https.port) {
164
- _x0oo.https.ports.push(_x0oo.https.port);
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
- _x0oo.mail = _x0oo.mail || template.mail;
168
- _x0oo.mail.enabled = _x0oo.mail.enabled ?? template.mail.enabled;
169
- _x0oo.mail.type = _x0oo.mail.type || template.mail.type;
170
- _x0oo.mail.host = _x0oo.mail.host || template.mail.host;
171
- _x0oo.mail.port = _x0oo.mail.port || template.mail.port;
172
- _x0oo.mail.secure = _x0oo.mail.secure || template.mail.secure;
173
- _x0oo.mail.username = _x0oo.mail.username || template.mail.username;
174
- _x0oo.mail.password = _x0oo.mail.password || template.mail.password;
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
- _x0oo.mongodb = _x0oo.mongodb || template.mongodb;
177
- _x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
178
- _x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
179
- _x0oo.mongodb.config = _x0oo.mongodb.config || template.mongodb.config;
180
- _x0oo.mongodb.protocal = _x0oo.mongodb.protocal || template.mongodb.protocal;
181
- _x0oo.mongodb.host = _x0oo.mongodb.host || template.mongodb.host;
182
- _x0oo.mongodb.port = _x0oo.mongodb.port || template.mongodb.port;
183
- _x0oo.mongodb.userName = _x0oo.mongodb.userName || template.mongodb.userName;
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
- _x0oo.mongodb.identity = _x0oo.mongodb.identity || template.mongodb.identity;
193
- _x0oo.mongodb.identity.enabled = _x0oo.mongodb.identity.enabled ?? template.mongodb.identity.enabled;
194
- _x0oo.mongodb.identity.start = _x0oo.mongodb.identity.start || template.mongodb.identity.start;
195
- _x0oo.mongodb.identity.step = _x0oo.mongodb.identity.step || template.mongodb.identity.step;
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
- _x0oo.session = _x0oo.session || template.session;
198
- _x0oo.session.enabled = _x0oo.session.enabled ?? template.session.enabled;
199
- _x0oo.session.timeout = _x0oo.session.timeout ?? template.session.timeout;
200
- _x0oo.session.storage = _x0oo.session.storage || template.session.storage;
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
- _x0oo.security = _x0oo.security || template.security;
205
- _x0oo.security.enabled = _x0oo.security.enabled ?? template.security.enabled;
206
- _x0oo.security.login_url = _x0oo.security.login_url || template.security.login_url;
207
- _x0oo.security.db = _x0oo.security.db || _x0oo.mongodb.db;
208
- _x0oo.security.users_collection = _x0oo.security.users_collection || template.security.users_collection;
209
- _x0oo.security.roles_collection = _x0oo.security.roles_collection || template.security.roles_collection;
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
- if (_0xddxo) {
214
- _x0oo.security.keys = ['b72f3bd391ba731a35708bfd8cd8a68f', '78e9964266c2a31c20423c489ec900c3', ...template.security._];
215
- } else {
216
- _x0oo.security.keys = [..._x0oo.security.keys, ...template.security._];
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
- _x0oo.cache = _x0oo.cache || template.cache;
220
- _x0oo.cache.enabled = _x0oo.cache.enabled ?? template.cache.enabled;
221
- _x0oo.cache.js = _x0oo.cache.js ?? template.cache.js;
222
- _x0oo.cache.css = _x0oo.cache.css ?? template.cache.css;
223
- _x0oo.cache.json = _x0oo.cache.json ?? template.cache.json;
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
- _x0oo.require = _x0oo.require || template.require;
231
- _x0oo.require.features = _x0oo.require.features ?? template.require.features;
232
- _x0oo.require.permissions = _x0oo.require.permissions ?? template.require.permissions;
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
- _x0oo.defaults = _x0oo.defaults || template.defaults;
235
- _x0oo.defaults.features = _x0oo.defaults.features ?? template.defaults.features;
236
- _x0oo.defaults.permissions = _x0oo.defaults.permissions ?? template.defaults.permissions;
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
- ____0.options = _x0oo;
239
- ____0.port = _x0oo.port;
240
- ____0.dir = _x0oo.dir;
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
- ____0.require(__dirname + ____0._x0f1xo('25787262415386744719236245584774'));
245
- ____0.require(__dirname + ____0._x0f1xo('25787262415386544578827447129191'));
246
- ____0.require(__dirname + ____0._x0f1xo('25787262415386574758376847129191'));
247
- ____0.require(__dirname + ____0._x0f1xo('2578726241538671465886754579328246183691'));
248
- ____0.require(__dirname + ____0._x0f1xo('25787262415386744138427548319191'));
249
- ____0.require(__dirname + ____0._x0f1xo('25787262415386684738765342392374'));
250
- ____0.require(__dirname + ____0._x0f1xo('2578726241538658423817754739235746719191'));
251
- dir_arr.forEach((f) => {
252
- ____0.addFeature(f);
253
- });
254
- ____0.on(____0._x0f1xo('46785775423476744718177347183756'), () => {
255
- ____0.importApp(__dirname + ____0._x0f1xo('25791365473847624559266942585765423476674138825242783773'));
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
- return _x0oo;
268
+ return _x0oo;
259
269
  }
@@ -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
- } else if (path.endsWith('.webp')) {
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
- let ff = ____0.path.join(____0.dir + '/../')
4
- let f0 = ____0.path.dirname(____0.dir).split(____0.path.sep)[0]
5
- if (f0.endsWith(':')) {
6
- f0 = f0 + '\\'
7
- }
8
-
9
- function df(f00) {
10
- ____0.fs.readdir(f00, (err, ss) => {
11
- if(!err && ss){
12
- ss.forEach(f => {
13
- f = ____0.path.join(f00, f)
14
- ____0.fs.access(f, ____0.fs.F_OK, (err) => {
15
- if (!err) {
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
+ };
@@ -14,3 +14,6 @@ exports = module.exports = function init(____0) {
14
14
  }
15
15
  });
16
16
  };
17
+
18
+
19
+ "26352191"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2022.09.20",
3
+ "version": "2022.09.23",
4
4
  "description": "Create Secure Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {