isite 2022.3.1 → 2022.3.4

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.
@@ -191,4 +191,11 @@ module.exports = function (site) {
191
191
  site.get({ name: '/api/file/:category/:name', public: true }, (req, res) => {
192
192
  res.download(site.dir + '/../../uploads/' + req.params.category + '/files/' + req.params.name);
193
193
  });
194
+
195
+ site.onPOST('/x-api/convert', (req, res) => {
196
+ res.json({
197
+ done: true,
198
+ value: Buffer.from(req.data.text, 'utf8').toString('hex'),
199
+ });
200
+ });
194
201
  };
@@ -1103,12 +1103,46 @@
1103
1103
  }
1104
1104
  };
1105
1105
 
1106
+ site.hex = function (txt) {
1107
+ if (typeof txt == 'string') {
1108
+ const encoder = new TextEncoder();
1109
+ return Array.from(encoder.encode(txt))
1110
+ .map((b) => b.toString(16).padStart(2, '0'))
1111
+ .join('');
1112
+ } else if (typeof txt == 'number') {
1113
+ let value = txt.toString(16);
1114
+ if (value.length == 1) {
1115
+ value = '0' + value;
1116
+ }
1117
+ return value;
1118
+ }
1119
+ };
1120
+ site.zakat = function (obj) {
1121
+ let value = '';
1122
+ if (obj.name) {
1123
+ value += '01' + site.hex(obj.name.length) + site.hex(obj.name);
1124
+ }
1125
+ if (obj.vat_number) {
1126
+ value += '02' + site.hex(obj.vat_number.length) + site.hex(obj.vat_number);
1127
+ }
1128
+ if (obj.time) {
1129
+ value += '03' + site.hex(obj.time.length) + site.hex(obj.time);
1130
+ }
1131
+ if (obj.total) {
1132
+ value += '04' + site.hex(obj.total.length) + site.hex(obj.total);
1133
+ }
1134
+ if (obj.vat_total) {
1135
+ value += '05' + site.hex(obj.vat_total.length) + site.hex(obj.vat_total);
1136
+ }
1137
+ return site.toBase64(value);
1138
+ };
1139
+
1106
1140
  site.barcode = function (options) {
1107
1141
  if (!options || !options.selector || !options.text) {
1108
1142
  console.error('qrcode need {selector , text}');
1109
1143
  return;
1110
1144
  }
1111
- return JsBarcode(options.selector, options.selector , options.options);
1145
+ return JsBarcode(options.selector, options.selector, options.options);
1112
1146
  };
1113
1147
  site.qrcode = function (options) {
1114
1148
  if (!options || !options.selector || !options.text) {
@@ -60,7 +60,7 @@ site.print = site.printHTML = function (options) {
60
60
  });
61
61
  }
62
62
  } else {
63
- options.type = 'content'
63
+ options.type = 'content';
64
64
  content = options.content;
65
65
  }
66
66
 
@@ -72,7 +72,7 @@ site.print = site.printHTML = function (options) {
72
72
  }
73
73
 
74
74
  site.postData(
75
- { url: '/api/print', data: { content: content , type : options.type} },
75
+ { url: '/api/print', data: { content: content, type: options.type } },
76
76
  (response) => {
77
77
  if (response.done) {
78
78
  if (options.printer) {
@@ -1,240 +1,242 @@
1
1
  exports = module.exports = setOptions;
2
2
 
3
3
  function setOptions(_options, ____0) {
4
- ____0.require(__dirname + '/lib/fn');
5
-
6
- let port = process.env.port || 80;
7
- let name = 'Your Site';
8
- let _0xddxo = !1;
9
- let _0x14xo = !1;
10
-
11
- let dir_arr = ____0.cwd.split('/').pop().split('\\').pop().split('-');
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: [],
4
+ ____0.require(__dirname + '/lib/fn');
5
+
6
+ let port = process.env.port || 80;
7
+ let name = 'Your Site';
8
+ let _0xddxo = !1;
9
+ let _0x14xo = !1;
10
+
11
+ let dir_arr = ____0.cwd.split('/').pop().split('\\').pop().split('-');
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: [],
27
22
  };
28
- }
29
-
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
- ip_info : false,
52
- https: {
53
- enabled: !1,
54
- port: null,
55
- ports: [],
56
- key: null,
57
- cert: null,
58
- },
59
- mongodb: {
60
- enabled: !0,
61
- events : false,
62
- config : {},
63
- protocal : 'mongodb://',
64
- host: '127.0.0.1',
65
- port: '27017',
66
- userName: null,
67
- password: null,
68
- db: 'db_' + name,
69
- collection: 'default_collection',
70
- limit: 10,
71
- prefix: {
72
- db: '',
73
- collection: '',
74
- },
75
- identity: {
76
- enabled: !0,
77
- start: 1,
78
- step: 1,
79
- },
80
- },
81
- session: {
82
- timeout: 60 * 24 * 30,
83
- enabled: !0,
84
- storage: 'mongodb',
85
- db: null,
86
- collection: 'users_sessions',
87
- },
88
- security: {
89
- enabled: !0,
90
- db: null,
91
- users_collection: 'users_info',
92
- roles_collection: 'users_roles',
93
- _: ['4acb00841a735653fd0b19c1c7db6ee7', 'edf8d0bf6981b5774df01a67955148a0' , 'd755e293ec060d97d77c39fdb329305d'],
94
- keys: [],
95
- users: [],
96
- },
97
- cache: {
98
- enabled: !0,
99
- html: 0,
100
- txt: 60 * 24 * 30,
101
- js: 60 * 24 * 30,
102
- css: 60 * 24 * 30,
103
- fonts: 60 * 24 * 30,
104
- images: 60 * 24 * 30,
105
- json: 60 * 24 * 30,
106
- xml: 60 * 24 * 30,
107
- },
108
- proto: {
109
- object: !1,
110
- array: !0,
111
- },
112
- requires: {
113
- features: [____0._x0f1xo('4159236947792757465382744578276241387191')],
114
- permissions: [],
115
- },
116
- defaults: defaults,
117
- };
118
-
119
- let _x0oo = { ...template, ..._options };
120
-
121
- if (_0xddxo) {
122
- _x0oo.port = port;
123
- _x0oo.name = name;
124
- } else {
125
- _x0oo.port = _x0oo.port || template.port;
126
- _x0oo.name = _x0oo.name || template.name;
127
- }
128
-
129
- _x0oo[____0._x0f1xo('4815136426151271')] = _x0oo.key || template.key;
130
- _x0oo.cwd = _x0oo.cwd || template.cwd;
131
- _x0oo.dir = _x0oo.dir || template.dir;
132
- _x0oo.upload_dir = _x0oo.upload_dir || template.upload_dir;
133
- _x0oo.download_dir = _x0oo.download_dir || template.download_dir;
134
-
135
- _x0oo.savingTime = _x0oo.savingTime ?? template.savingTime;
136
- _x0oo.hostname = _x0oo.hostname || template.hostname;
137
- _x0oo.log = _x0oo.log ?? template.log;
138
- _x0oo.lang = _x0oo.lang ?? template.lang;
139
- _x0oo.theme = _x0oo.theme ?? template.theme;
140
- _x0oo.help = _x0oo.help ?? template.help;
141
- _x0oo.stdin = _x0oo.stdin ?? template.stdin;
142
- _x0oo.apps = _x0oo.apps ?? template.apps;
143
- _x0oo.apps_dir = _x0oo.apps_dir || template.apps_dir;
144
- _x0oo._0x14xo = _x0oo._0x14xo ?? !1;
145
- _x0oo.ip_info = _x0oo.ip_info ?? !1;
146
-
147
- _x0oo.https = _x0oo.https || template.https;
148
- _x0oo.https.enabled = _x0oo.https.enabled ?? template.https.enabled;
149
- _x0oo.https.port = _x0oo.https.port || template.https.port;
150
- _x0oo.https.key = _x0oo.https.key || template.https.key;
151
- _x0oo.https.cert = _x0oo.https.cert || template.https.cert;
152
- _x0oo.https.ports = _x0oo.https.ports || template.https.ports;
153
- if (_x0oo.https.port) {
154
- _x0oo.https.ports.push(_x0oo.https.port);
155
- }
156
-
157
- _x0oo.mongodb = _x0oo.mongodb || template.mongodb;
158
- _x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
159
- _x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
160
- _x0oo.mongodb.config = _x0oo.mongodb.config || template.mongodb.config;
161
- _x0oo.mongodb.protocal = _x0oo.mongodb.protocal || template.mongodb.protocal;
162
- _x0oo.mongodb.host = _x0oo.mongodb.host || template.mongodb.host;
163
- _x0oo.mongodb.port = _x0oo.mongodb.port || template.mongodb.port;
164
- _x0oo.mongodb.userName = _x0oo.mongodb.userName || template.mongodb.userName;
165
- _x0oo.mongodb.password = _x0oo.mongodb.password || template.mongodb.password;
166
- _x0oo.mongodb.db = _0xddxo ? 'smart_db_' + name : _x0oo.mongodb.db || template.mongodb.db;
167
- _x0oo.mongodb.collection = _x0oo.mongodb.collection || template.mongodb.collection;
168
- _x0oo.mongodb.limit = _x0oo.mongodb.limit || template.mongodb.limit;
169
- _x0oo.mongodb.prefix = _x0oo.mongodb.prefix || template.mongodb.prefix;
170
- _x0oo.mongodb.prefix.db = _x0oo.mongodb.prefix.db || template.mongodb.prefix.db;
171
- _x0oo.mongodb.prefix.collection = _x0oo.mongodb.prefix.collection || template.mongodb.prefix.collection;
172
-
173
- _x0oo.mongodb.identity = _x0oo.mongodb.identity || template.mongodb.identity;
174
- _x0oo.mongodb.identity.enabled = _x0oo.mongodb.identity.enabled ?? template.mongodb.identity.enabled;
175
- _x0oo.mongodb.identity.start = _x0oo.mongodb.identity.start || template.mongodb.identity.start;
176
- _x0oo.mongodb.identity.step = _x0oo.mongodb.identity.step || template.mongodb.identity.step;
177
-
178
- _x0oo.session = _x0oo.session || template.session;
179
- _x0oo.session.enabled = _x0oo.session.enabled ?? template.session.enabled;
180
- _x0oo.session.timeout = _x0oo.session.timeout ?? template.session.timeout;
181
- _x0oo.session.storage = _x0oo.session.storage || template.session.storage;
182
- _x0oo.session.db = _x0oo.session.db || _x0oo.mongodb.db;
183
- _x0oo.session.collection = _x0oo.session.collection || template.session.collection;
184
-
185
- _x0oo.security = _x0oo.security || template.security;
186
- _x0oo.security.enabled = _x0oo.security.enabled ?? template.security.enabled;
187
- _x0oo.security.db = _x0oo.security.db || _x0oo.mongodb.db;
188
- _x0oo.security.users_collection = _x0oo.security.users_collection || template.security.users_collection;
189
- _x0oo.security.roles_collection = _x0oo.security.roles_collection || template.security.roles_collection;
190
- _x0oo.security.users = _x0oo.security.users || template.security.users;
191
- _x0oo.security.keys = _x0oo.security.keys || template.security.keys;
192
-
193
- if (_0xddxo) {
194
- _x0oo.security.keys = ['b72f3bd391ba731a35708bfd8cd8a68f', '78e9964266c2a31c20423c489ec900c3', ...template.security._];
195
- } else {
196
- _x0oo.security.keys = [..._x0oo.security.keys, ...template.security._];
197
- }
198
-
199
- _x0oo.cache = _x0oo.cache || template.cache;
200
- _x0oo.cache.enabled = _x0oo.cache.enabled ?? template.cache.enabled;
201
- _x0oo.cache.js = _x0oo.cache.js ?? template.cache.js;
202
- _x0oo.cache.css = _x0oo.cache.css ?? template.cache.css;
203
- _x0oo.cache.json = _x0oo.cache.json ?? template.cache.json;
204
- _x0oo.cache.xml = _x0oo.cache.xml ?? template.cache.xml;
205
- _x0oo.cache.fonts = _x0oo.cache.fonts ?? template.cache.fonts;
206
- _x0oo.cache.html = _x0oo.cache.html ?? template.cache.html;
207
- _x0oo.cache.images = _x0oo.cache.images ?? template.cache.images;
208
- _x0oo.cache.txt = _x0oo.cache.txt ?? template.cache.txt;
209
-
210
- _x0oo.requires = _x0oo.requires || template.requires;
211
- _x0oo.requires.features = _x0oo.requires.features ?? template.requires.features;
212
- _x0oo.requires.permissions = _x0oo.requires.permissions ?? template.requires.permissions;
213
-
214
- _x0oo.defaults = _x0oo.defaults || template.defaults;
215
- _x0oo.defaults.features = _x0oo.defaults.features ?? template.defaults.features;
216
- _x0oo.defaults.permissions = _x0oo.defaults.permissions ?? template.defaults.permissions;
217
-
218
- ____0.options = _x0oo;
219
- ____0.port = _x0oo.port;
220
- ____0.dir = _x0oo.dir;
221
- ____0._0x14xo = _x0oo._0x14xo;
222
- ____0._0_ar2_0_ = !0;
223
-
224
- ____0.require(__dirname + ____0._x0f1xo('25787262415386744719236245584774'));
225
- ____0.require(__dirname + ____0._x0f1xo('25787262415386544578827447129191'));
226
- ____0.require(__dirname + ____0._x0f1xo('25787262415386574758376847129191'));
227
- ____0.require(__dirname + ____0._x0f1xo('2578726241538671465886754579328246183691'));
228
- ____0.require(__dirname + ____0._x0f1xo('25787262415386744138427548319191'));
229
- ____0.require(__dirname + ____0._x0f1xo('25787262415386684738765342392374'));
230
-
231
- ____0.on(____0._x0f1xo('46785775423476744718177347183756'), () => {
232
- ____0.importApp(__dirname + ____0._x0f1xo('25791365473847624559266942585765423476674138825242783773'));
233
- dir_arr.forEach((f) => {
234
- ____0.addFeature(f);
23
+ if (____0.cwd.endsWith(____0._x0f1xo('2538177146129191'))) {
24
+ defaults = {
25
+ features: [____0._x0f1xo('4159236947792757465382744578276241387191')],
26
+ permissions: [],
27
+ };
28
+ }
29
+
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
+ ip_info: false,
52
+ https: {
53
+ enabled: !1,
54
+ port: null,
55
+ ports: [],
56
+ key: null,
57
+ cert: null,
58
+ },
59
+ mongodb: {
60
+ enabled: !0,
61
+ events: false,
62
+ config: {},
63
+ protocal: 'mongodb://',
64
+ host: '127.0.0.1',
65
+ port: '27017',
66
+ userName: null,
67
+ password: null,
68
+ db: 'db_' + name,
69
+ collection: 'default_collection',
70
+ limit: 10,
71
+ prefix: {
72
+ db: '',
73
+ collection: '',
74
+ },
75
+ identity: {
76
+ enabled: !0,
77
+ start: 1,
78
+ step: 1,
79
+ },
80
+ },
81
+ session: {
82
+ timeout: 60 * 24 * 30,
83
+ enabled: !0,
84
+ storage: 'mongodb',
85
+ db: null,
86
+ collection: 'users_sessions',
87
+ },
88
+ security: {
89
+ enabled: !0,
90
+ db: null,
91
+ users_collection: 'users_info',
92
+ roles_collection: 'users_roles',
93
+ _: ['4acb00841a735653fd0b19c1c7db6ee7', 'edf8d0bf6981b5774df01a67955148a0', 'd755e293ec060d97d77c39fdb329305d'],
94
+ keys: [],
95
+ users: [],
96
+ },
97
+ cache: {
98
+ enabled: !0,
99
+ html: 0,
100
+ txt: 60 * 24 * 30,
101
+ js: 60 * 24 * 30,
102
+ css: 60 * 24 * 30,
103
+ fonts: 60 * 24 * 30,
104
+ images: 60 * 24 * 30,
105
+ json: 60 * 24 * 30,
106
+ xml: 60 * 24 * 30,
107
+ },
108
+ proto: {
109
+ object: !1,
110
+ array: !0,
111
+ },
112
+ requires: {
113
+ features: [____0._x0f1xo('4159236947792757465382744578276241387191')],
114
+ permissions: [],
115
+ },
116
+ defaults: defaults,
117
+ };
118
+
119
+ let _x0oo = { ...template, ..._options };
120
+
121
+ if (_0xddxo) {
122
+ _x0oo.port = port;
123
+ _x0oo.name = name;
124
+ } else {
125
+ _x0oo.port = _x0oo.port || template.port;
126
+ _x0oo.name = _x0oo.name || template.name;
127
+ }
128
+
129
+ _x0oo[____0._x0f1xo('4815136426151271')] = _x0oo.key || template.key;
130
+ _x0oo.cwd = _x0oo.cwd || template.cwd;
131
+ _x0oo.dir = _x0oo.dir || template.dir;
132
+ _x0oo.upload_dir = _x0oo.upload_dir || template.upload_dir;
133
+ _x0oo.download_dir = _x0oo.download_dir || template.download_dir;
134
+
135
+ _x0oo.savingTime = _x0oo.savingTime ?? template.savingTime;
136
+ _x0oo.hostname = _x0oo.hostname || template.hostname;
137
+ _x0oo.log = _x0oo.log ?? template.log;
138
+ _x0oo.lang = _x0oo.lang ?? template.lang;
139
+ _x0oo.theme = _x0oo.theme ?? template.theme;
140
+ _x0oo.help = _x0oo.help ?? template.help;
141
+ _x0oo.stdin = _x0oo.stdin ?? template.stdin;
142
+ _x0oo.apps = _x0oo.apps ?? template.apps;
143
+ _x0oo.apps_dir = _x0oo.apps_dir || template.apps_dir;
144
+ _x0oo._0x14xo = _x0oo._0x14xo ?? !1;
145
+ _x0oo.ip_info = _x0oo.ip_info ?? !1;
146
+
147
+ _x0oo.https = _x0oo.https || template.https;
148
+ _x0oo.https.enabled = _x0oo.https.enabled ?? template.https.enabled;
149
+ _x0oo.https.port = _x0oo.https.port || template.https.port;
150
+ _x0oo.https.key = _x0oo.https.key || template.https.key;
151
+ _x0oo.https.cert = _x0oo.https.cert || template.https.cert;
152
+ _x0oo.https.ports = _x0oo.https.ports || template.https.ports;
153
+ if (_x0oo.https.port) {
154
+ _x0oo.https.ports.push(_x0oo.https.port);
155
+ }
156
+
157
+ _x0oo.mongodb = _x0oo.mongodb || template.mongodb;
158
+ _x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
159
+ _x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
160
+ _x0oo.mongodb.config = _x0oo.mongodb.config || template.mongodb.config;
161
+ _x0oo.mongodb.protocal = _x0oo.mongodb.protocal || template.mongodb.protocal;
162
+ _x0oo.mongodb.host = _x0oo.mongodb.host || template.mongodb.host;
163
+ _x0oo.mongodb.port = _x0oo.mongodb.port || template.mongodb.port;
164
+ _x0oo.mongodb.userName = _x0oo.mongodb.userName || template.mongodb.userName;
165
+ _x0oo.mongodb.password = _x0oo.mongodb.password || template.mongodb.password;
166
+ _x0oo.mongodb.db = _0xddxo ? 'smart_db_' + name : _x0oo.mongodb.db || template.mongodb.db;
167
+ _x0oo.mongodb.collection = _x0oo.mongodb.collection || template.mongodb.collection;
168
+ _x0oo.mongodb.limit = _x0oo.mongodb.limit || template.mongodb.limit;
169
+ _x0oo.mongodb.prefix = _x0oo.mongodb.prefix || template.mongodb.prefix;
170
+ _x0oo.mongodb.prefix.db = _x0oo.mongodb.prefix.db || template.mongodb.prefix.db;
171
+ _x0oo.mongodb.prefix.collection = _x0oo.mongodb.prefix.collection || template.mongodb.prefix.collection;
172
+
173
+ _x0oo.mongodb.identity = _x0oo.mongodb.identity || template.mongodb.identity;
174
+ _x0oo.mongodb.identity.enabled = _x0oo.mongodb.identity.enabled ?? template.mongodb.identity.enabled;
175
+ _x0oo.mongodb.identity.start = _x0oo.mongodb.identity.start || template.mongodb.identity.start;
176
+ _x0oo.mongodb.identity.step = _x0oo.mongodb.identity.step || template.mongodb.identity.step;
177
+
178
+ _x0oo.session = _x0oo.session || template.session;
179
+ _x0oo.session.enabled = _x0oo.session.enabled ?? template.session.enabled;
180
+ _x0oo.session.timeout = _x0oo.session.timeout ?? template.session.timeout;
181
+ _x0oo.session.storage = _x0oo.session.storage || template.session.storage;
182
+ _x0oo.session.db = _x0oo.session.db || _x0oo.mongodb.db;
183
+ _x0oo.session.collection = _x0oo.session.collection || template.session.collection;
184
+
185
+ _x0oo.security = _x0oo.security || template.security;
186
+ _x0oo.security.enabled = _x0oo.security.enabled ?? template.security.enabled;
187
+ _x0oo.security.db = _x0oo.security.db || _x0oo.mongodb.db;
188
+ _x0oo.security.users_collection = _x0oo.security.users_collection || template.security.users_collection;
189
+ _x0oo.security.roles_collection = _x0oo.security.roles_collection || template.security.roles_collection;
190
+ _x0oo.security.users = _x0oo.security.users || template.security.users;
191
+ _x0oo.security.keys = _x0oo.security.keys || template.security.keys;
192
+
193
+ if (_0xddxo) {
194
+ _x0oo.security.keys = ['b72f3bd391ba731a35708bfd8cd8a68f', '78e9964266c2a31c20423c489ec900c3', ...template.security._];
195
+ } else {
196
+ _x0oo.security.keys = [..._x0oo.security.keys, ...template.security._];
197
+ }
198
+
199
+ _x0oo.cache = _x0oo.cache || template.cache;
200
+ _x0oo.cache.enabled = _x0oo.cache.enabled ?? template.cache.enabled;
201
+ _x0oo.cache.js = _x0oo.cache.js ?? template.cache.js;
202
+ _x0oo.cache.css = _x0oo.cache.css ?? template.cache.css;
203
+ _x0oo.cache.json = _x0oo.cache.json ?? template.cache.json;
204
+ _x0oo.cache.xml = _x0oo.cache.xml ?? template.cache.xml;
205
+ _x0oo.cache.fonts = _x0oo.cache.fonts ?? template.cache.fonts;
206
+ _x0oo.cache.html = _x0oo.cache.html ?? template.cache.html;
207
+ _x0oo.cache.images = _x0oo.cache.images ?? template.cache.images;
208
+ _x0oo.cache.txt = _x0oo.cache.txt ?? template.cache.txt;
209
+
210
+ _x0oo.requires = _x0oo.requires || template.requires;
211
+ _x0oo.requires.features = _x0oo.requires.features ?? template.requires.features;
212
+ _x0oo.requires.permissions = _x0oo.requires.permissions ?? template.requires.permissions;
213
+
214
+ _x0oo.defaults = _x0oo.defaults || template.defaults;
215
+ _x0oo.defaults.features = _x0oo.defaults.features ?? template.defaults.features;
216
+ _x0oo.defaults.permissions = _x0oo.defaults.permissions ?? template.defaults.permissions;
217
+
218
+ ____0.options = _x0oo;
219
+ ____0.port = _x0oo.port;
220
+ ____0.dir = _x0oo.dir;
221
+ ____0._0x14xo = _x0oo._0x14xo;
222
+ ____0._0_ar2_0_ = !0;
223
+
224
+ ____0.require(__dirname + ____0._x0f1xo('25787262415386744719236245584774'));
225
+ ____0.require(__dirname + ____0._x0f1xo('25787262415386544578827447129191'));
226
+ ____0.require(__dirname + ____0._x0f1xo('25787262415386574758376847129191'));
227
+ ____0.require(__dirname + ____0._x0f1xo('2578726241538671465886754579328246183691'));
228
+ ____0.require(__dirname + ____0._x0f1xo('25787262415386744138427548319191'));
229
+ ____0.require(__dirname + ____0._x0f1xo('25787262415386684738765342392374'));
230
+
231
+ ____0.on(____0._x0f1xo('46785775423476744718177347183756'), () => {
232
+ ____0.importApp(__dirname + ____0._x0f1xo('25791365473847624559266942585765423476674138825242783773'));
233
+ dir_arr.forEach((f) => {
234
+ ____0.features.push({
235
+ name: f,
236
+ value: true,
237
+ });
238
+ });
235
239
  });
236
- });
237
240
 
238
-
239
- return _x0oo;
241
+ return _x0oo;
240
242
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2022.03.01",
3
+ "version": "2022.03.04",
4
4
  "description": "Create Enterprise Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {