isite 2025.1.16 → 2025.1.18
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 +23 -5
- package/apps/client-side/site_files/html/require_features.html +1 -1
- package/apps/client-side/site_files/html/require_permissions.html +1 -1
- package/index.js +3 -3
- package/lib/routing.js +11 -11
- package/lib/session.js +10 -0
- package/lib/ws.js +1 -0
- package/package.json +1 -1
|
@@ -44,10 +44,8 @@ body {
|
|
|
44
44
|
margin-bottom: 0.125rem;
|
|
45
45
|
flex-direction: row;
|
|
46
46
|
flex-wrap: nowrap;
|
|
47
|
-
align-content: center;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
align-items: flex-end;
|
|
50
47
|
gap: 5px;
|
|
48
|
+
align-items: flex-end;
|
|
51
49
|
label {
|
|
52
50
|
cursor: pointer;
|
|
53
51
|
}
|
|
@@ -72,6 +70,26 @@ a {
|
|
|
72
70
|
margin-right: 7px;
|
|
73
71
|
border-bottom: 1px solid var(--label-color);
|
|
74
72
|
}
|
|
73
|
+
input,
|
|
74
|
+
select,
|
|
75
|
+
textarea,
|
|
76
|
+
input.form-control {
|
|
77
|
+
text-align: var(--text-align);
|
|
78
|
+
font-family: var(--font-family);
|
|
79
|
+
height: var(--input-height);
|
|
80
|
+
line-height: var(--line-height);
|
|
81
|
+
padding: var(--input-padding);
|
|
82
|
+
font-size: var(--input-font-size);
|
|
83
|
+
font-weight: var(--input-font-wight);
|
|
84
|
+
color: var(--input-color);
|
|
85
|
+
background-color: var(--input-background-color);
|
|
86
|
+
}
|
|
87
|
+
input:focus,
|
|
88
|
+
select:focus,
|
|
89
|
+
textarea:focus,
|
|
90
|
+
input.form-control {
|
|
91
|
+
color: var(--input-color);
|
|
92
|
+
}
|
|
75
93
|
label {
|
|
76
94
|
float: var(--float);
|
|
77
95
|
color: var(--label-color);
|
|
@@ -133,8 +151,8 @@ i-radio {
|
|
|
133
151
|
white-space: nowrap;
|
|
134
152
|
}
|
|
135
153
|
i-checklist i-checkbox {
|
|
136
|
-
|
|
137
|
-
|
|
154
|
+
display: flex !important;
|
|
155
|
+
flex-direction: row !important;
|
|
138
156
|
}
|
|
139
157
|
i-button {
|
|
140
158
|
display: contents;
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
<li>Protected Browser FingerPrint</li>
|
|
75
75
|
<li>Watching Streaming Sites without Ads</li>
|
|
76
76
|
<li>Support Safty Mode For Children</li>
|
|
77
|
-
<li>Create & Custom Virual PC For
|
|
77
|
+
<li>Create & Custom Virual PC For every User</li>
|
|
78
78
|
</ul>
|
|
79
79
|
</div>
|
|
80
80
|
<div class="row padding margin">
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
<li>Protected Browser FingerPrint</li>
|
|
74
74
|
<li>Watching Streaming Sites without Ads</li>
|
|
75
75
|
<li>Support Safty Mode For Children</li>
|
|
76
|
-
<li>Create & Custom Virual PC For
|
|
76
|
+
<li>Create & Custom Virual PC For every User</li>
|
|
77
77
|
</ul>
|
|
78
78
|
</div>
|
|
79
79
|
<div class="row padding margin">
|
package/index.js
CHANGED
|
@@ -329,7 +329,7 @@ module.exports = function init(options) {
|
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
____0.importApp = function (app_path, name2) {
|
|
332
|
-
____0.log('=== Importing App : ' + app_path);
|
|
332
|
+
____0.log('\n=== Importing App : ' + app_path);
|
|
333
333
|
if (____0.isFileExistsSync(app_path + '/site_files/json/words.json')) {
|
|
334
334
|
____0.words.addFile(app_path + '/site_files/json/words.json');
|
|
335
335
|
}
|
|
@@ -372,10 +372,10 @@ module.exports = function init(options) {
|
|
|
372
372
|
|
|
373
373
|
if (____0.options.apps === !0) {
|
|
374
374
|
if (____0.isFileExistsSync(____0.options.apps_dir) && ____0.fs.lstatSync(____0.options.apps_dir).isDirectory()) {
|
|
375
|
-
____0.log('=== Auto Loading Default Apps ===');
|
|
375
|
+
____0.log('\n=== Auto Loading Default Apps ===');
|
|
376
376
|
____0.fs.readdirSync(____0.options.apps_dir).forEach((file) => {
|
|
377
377
|
if (____0.fs.lstatSync(____0.options.apps_dir + '/' + file).isDirectory()) {
|
|
378
|
-
____0.
|
|
378
|
+
____0.loadApp(file);
|
|
379
379
|
}
|
|
380
380
|
});
|
|
381
381
|
}
|
package/lib/routing.js
CHANGED
|
@@ -226,7 +226,6 @@ module.exports = function init(____0) {
|
|
|
226
226
|
res.status(200);
|
|
227
227
|
_0xrrxo.endResponse(req, res);
|
|
228
228
|
}
|
|
229
|
-
|
|
230
229
|
if (typeof route.path == 'string') {
|
|
231
230
|
____0.readFile(route.path, function (err, file) {
|
|
232
231
|
if (!err) {
|
|
@@ -261,7 +260,7 @@ module.exports = function init(____0) {
|
|
|
261
260
|
return;
|
|
262
261
|
}
|
|
263
262
|
});
|
|
264
|
-
} else if (
|
|
263
|
+
} else if (Array.isArray(route.path)) {
|
|
265
264
|
____0.readFiles(route.path, function (err, data) {
|
|
266
265
|
if (!err) {
|
|
267
266
|
if (____0.options.help) {
|
|
@@ -1417,7 +1416,7 @@ module.exports = function init(____0) {
|
|
|
1417
1416
|
};
|
|
1418
1417
|
____0.servers = [];
|
|
1419
1418
|
____0.server = null;
|
|
1420
|
-
|
|
1419
|
+
____0.serverCount = 0;
|
|
1421
1420
|
_0xrrxo.start = function (_ports, callback) {
|
|
1422
1421
|
____0.startTime = Date.now();
|
|
1423
1422
|
____0.ws.wsSupport();
|
|
@@ -1433,14 +1432,15 @@ module.exports = function init(____0) {
|
|
|
1433
1432
|
|
|
1434
1433
|
const ports = [];
|
|
1435
1434
|
|
|
1436
|
-
if (
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1435
|
+
if (ports.length === 0) {
|
|
1436
|
+
if (typeof _ports === 'number') {
|
|
1437
|
+
ports.some((p0) => p0 == _ports) || ports.push(_ports);
|
|
1438
|
+
} else if (Array.isArray(_ports)) {
|
|
1439
|
+
_ports.forEach((p) => {
|
|
1440
|
+
ports.some((p0) => p0 == p) || ports.push(p);
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1442
1443
|
}
|
|
1443
|
-
|
|
1444
1444
|
if (ports.length === 0) {
|
|
1445
1445
|
if (typeof ____0.options.port === 'number') {
|
|
1446
1446
|
ports.some((p0) => p0 == ____0.options.port) || ports.push(____0.options.port);
|
|
@@ -1529,10 +1529,10 @@ module.exports = function init(____0) {
|
|
|
1529
1529
|
____0.readyInterval = setInterval(() => {
|
|
1530
1530
|
if (____0.serverCount == ports.length) {
|
|
1531
1531
|
clearInterval(____0.readyInterval);
|
|
1532
|
+
____0.call(____0.strings[9]);
|
|
1532
1533
|
if (callback) {
|
|
1533
1534
|
callback(____0.servers);
|
|
1534
1535
|
}
|
|
1535
|
-
____0.call(____0.strings[9]);
|
|
1536
1536
|
}
|
|
1537
1537
|
}, 100);
|
|
1538
1538
|
|
package/lib/session.js
CHANGED
|
@@ -138,6 +138,11 @@ module.exports = function init(req, res, ____0, callback) {
|
|
|
138
138
|
session.user = user;
|
|
139
139
|
callback(session);
|
|
140
140
|
session.$save();
|
|
141
|
+
}else{
|
|
142
|
+
session.user = null;
|
|
143
|
+
session.user_id = null;
|
|
144
|
+
callback(session);
|
|
145
|
+
session.$save();
|
|
141
146
|
}
|
|
142
147
|
}
|
|
143
148
|
);
|
|
@@ -155,6 +160,11 @@ module.exports = function init(req, res, ____0, callback) {
|
|
|
155
160
|
session.user = user;
|
|
156
161
|
callback(session);
|
|
157
162
|
session.$save();
|
|
163
|
+
}else{
|
|
164
|
+
session.user = null;
|
|
165
|
+
session.user_id = null;
|
|
166
|
+
callback(session);
|
|
167
|
+
session.$save();
|
|
158
168
|
}
|
|
159
169
|
}
|
|
160
170
|
);
|
package/lib/ws.js
CHANGED
|
@@ -59,6 +59,7 @@ module.exports = function init(____0) {
|
|
|
59
59
|
}, 1000 * 30);
|
|
60
60
|
|
|
61
61
|
____0.on(____0.strings[9], () => {
|
|
62
|
+
console.log('\n Server Ready \n')
|
|
62
63
|
____0.servers.forEach((server) => {
|
|
63
64
|
server.on('upgrade', function upgrade(request, socket, head) {
|
|
64
65
|
let pathname = ____0.url.parse(request.url).pathname;
|