isite 2021.11.23 → 2021.11.24
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 +1 -1
- package/apps/client-side/site_files/css/layout.css +27 -13
- package/index.js +2 -2
- package/lib/mongodb.js +3 -4
- package/lib/security.js +2 -2
- package/lib/session.js +2 -8
- package/lib/sessions.js +4 -4
- package/lib/ws.js +3 -0
- package/object-options/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,7 +82,21 @@ h5 {
|
|
|
82
82
|
.col7,
|
|
83
83
|
.col8,
|
|
84
84
|
.col9,
|
|
85
|
-
.col10
|
|
85
|
+
.col10,
|
|
86
|
+
.col11,
|
|
87
|
+
.col12,
|
|
88
|
+
.col-1,
|
|
89
|
+
.col-2,
|
|
90
|
+
.col-3,
|
|
91
|
+
.col-4,
|
|
92
|
+
.col-5,
|
|
93
|
+
.col-6,
|
|
94
|
+
.col-7,
|
|
95
|
+
.col-8,
|
|
96
|
+
.col-9,
|
|
97
|
+
.col-10,
|
|
98
|
+
.col-11,
|
|
99
|
+
.col-12 {
|
|
86
100
|
vertical-align: top;
|
|
87
101
|
margin: 0px;
|
|
88
102
|
padding: 0px;
|
|
@@ -90,51 +104,51 @@ h5 {
|
|
|
90
104
|
display: inline;
|
|
91
105
|
}
|
|
92
106
|
|
|
93
|
-
.row .col1 {
|
|
107
|
+
.row .col1 , .col-1 {
|
|
94
108
|
width: calc(1 / 12 * 100%);
|
|
95
109
|
}
|
|
96
110
|
|
|
97
|
-
.row .col2 {
|
|
111
|
+
.row .col2 , .col-2 {
|
|
98
112
|
width: calc(2 / 12 * 100%);
|
|
99
113
|
}
|
|
100
114
|
|
|
101
|
-
.row .col3 {
|
|
115
|
+
.row .col3 , .col-3 {
|
|
102
116
|
width: calc(3 / 12 * 100%);
|
|
103
117
|
}
|
|
104
118
|
|
|
105
|
-
.row .col4 {
|
|
119
|
+
.row .col4 , .col-4{
|
|
106
120
|
width: calc(4 / 12 * 100%);
|
|
107
121
|
}
|
|
108
122
|
|
|
109
|
-
.row .col5 {
|
|
123
|
+
.row .col5 , .col-5 {
|
|
110
124
|
width: calc(5 / 12 * 100%);
|
|
111
125
|
}
|
|
112
126
|
|
|
113
|
-
.row .col6 {
|
|
127
|
+
.row .col6 , .col-6 {
|
|
114
128
|
width: calc(6 / 12 * 100%);
|
|
115
129
|
}
|
|
116
130
|
|
|
117
|
-
.row .col7 {
|
|
131
|
+
.row .col7 , .col-7 {
|
|
118
132
|
width: calc(7 / 12 * 100%);
|
|
119
133
|
}
|
|
120
134
|
|
|
121
|
-
.row .col8 {
|
|
135
|
+
.row .col8 , .col-8{
|
|
122
136
|
width: calc(8 / 12 * 100%);
|
|
123
137
|
}
|
|
124
138
|
|
|
125
|
-
.row .col9 {
|
|
139
|
+
.row .col9 , .col-9{
|
|
126
140
|
width: calc(9 / 12 * 100%);
|
|
127
141
|
}
|
|
128
142
|
|
|
129
|
-
.row .col10 {
|
|
143
|
+
.row .col10 , .col-10 {
|
|
130
144
|
width: calc(10 / 12 * 100%);
|
|
131
145
|
}
|
|
132
146
|
|
|
133
|
-
.row .col11 {
|
|
147
|
+
.row .col11 , .col-11 {
|
|
134
148
|
width: calc(11 / 12 * 100%);
|
|
135
149
|
}
|
|
136
150
|
|
|
137
|
-
.row .col12 {
|
|
151
|
+
.row .col12 , .col-12 {
|
|
138
152
|
width: calc(12 / 12 * 100%);
|
|
139
153
|
}
|
|
140
154
|
|
package/index.js
CHANGED
|
@@ -237,12 +237,12 @@ module.exports = function init(options) {
|
|
|
237
237
|
};
|
|
238
238
|
|
|
239
239
|
____0.on('[any][saving data]', function () {
|
|
240
|
-
____0.log('Saving Data :: ' + ____0.options.
|
|
240
|
+
____0.log('Saving Data :: ' + ____0.options.savingTime + ' Minute ');
|
|
241
241
|
});
|
|
242
242
|
|
|
243
243
|
setInterval(function () {
|
|
244
244
|
____0.call('[any][saving data]');
|
|
245
|
-
}, ____0.options.
|
|
245
|
+
}, ____0.options.savingTime * 1000 * 60);
|
|
246
246
|
|
|
247
247
|
____0.dashboard = require(__dirname + '/lib/dashboard.js');
|
|
248
248
|
____0.dashboard(____0);
|
package/lib/mongodb.js
CHANGED
|
@@ -284,7 +284,7 @@ module.exports = function init(____0) {
|
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
_mongo.insert = _mongo.insertMany = function (obj, callback) {
|
|
287
|
-
if (obj.docs.length === 0) {
|
|
287
|
+
if (!obj.docs || obj.docs.length === 0) {
|
|
288
288
|
callback({
|
|
289
289
|
message: 'docs array length is 0',
|
|
290
290
|
});
|
|
@@ -292,16 +292,15 @@ module.exports = function init(____0) {
|
|
|
292
292
|
}
|
|
293
293
|
_mongo.connectDB(obj.dbName, function (err, db) {
|
|
294
294
|
if (!err) {
|
|
295
|
-
if (obj.collectionName
|
|
295
|
+
if (!obj.collectionName) {
|
|
296
296
|
obj.collectionName = ____0.options.mongodb.collection;
|
|
297
297
|
}
|
|
298
298
|
obj.docs.forEach((doc) => {
|
|
299
299
|
doc = _mongo.handleDoc(doc);
|
|
300
300
|
});
|
|
301
|
-
db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs
|
|
301
|
+
db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs, obj.options, function (err, result) {
|
|
302
302
|
if (!err) {
|
|
303
303
|
callback(null, result);
|
|
304
|
-
|
|
305
304
|
____0.call('mongodb after insert many', {
|
|
306
305
|
db: obj.dbName,
|
|
307
306
|
collection: obj.collectionName,
|
package/lib/security.js
CHANGED
|
@@ -443,7 +443,7 @@ module.exports = function init(____0) {
|
|
|
443
443
|
) {
|
|
444
444
|
if ($req) {
|
|
445
445
|
$req.session.user = _user;
|
|
446
|
-
$req.session('user_id', _user.id);
|
|
446
|
+
$req.session.set('user_id', _user.id);
|
|
447
447
|
}
|
|
448
448
|
callback(null, _user);
|
|
449
449
|
____0.call('user login', {
|
|
@@ -485,7 +485,7 @@ module.exports = function init(____0) {
|
|
|
485
485
|
|
|
486
486
|
if ($req) {
|
|
487
487
|
$req.session.user = doc;
|
|
488
|
-
$req.session('user_id', doc.id);
|
|
488
|
+
$req.session.set('user_id', doc.id);
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
callback(null, doc);
|
package/lib/session.js
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
module.exports = function init(req, res, ____0, callback) {
|
|
2
|
-
let session =
|
|
3
|
-
if (value === undefined) {
|
|
4
|
-
return session.get(key);
|
|
5
|
-
} else {
|
|
6
|
-
session.set(key, value);
|
|
7
|
-
}
|
|
8
|
-
};
|
|
2
|
+
let session = {};
|
|
9
3
|
|
|
10
4
|
session.save = function () {
|
|
11
5
|
session = ____0.sessions.save(session);
|
|
@@ -214,7 +208,7 @@ module.exports = function init(req, res, ____0, callback) {
|
|
|
214
208
|
|
|
215
209
|
|
|
216
210
|
|
|
217
|
-
session.user_id = session('user_id');
|
|
211
|
+
session.user_id = session.get('user_id');
|
|
218
212
|
|
|
219
213
|
if (____0.security && session.user_id) {
|
|
220
214
|
____0.security.getUser(
|
package/lib/sessions.js
CHANGED
|
@@ -151,7 +151,7 @@ module.exports = function init(____0) {
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
____0.on('[any][saving data]', function () {
|
|
154
|
-
|
|
154
|
+
sessions.saveAll();
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
sessions.busy = !1;
|
|
@@ -230,7 +230,6 @@ module.exports = function init(____0) {
|
|
|
230
230
|
where: {},
|
|
231
231
|
},
|
|
232
232
|
function (err, result) {
|
|
233
|
-
sessions.busy = !1;
|
|
234
233
|
if (sessions.list.length === 0) {
|
|
235
234
|
callback(
|
|
236
235
|
{
|
|
@@ -238,13 +237,14 @@ module.exports = function init(____0) {
|
|
|
238
237
|
},
|
|
239
238
|
null,
|
|
240
239
|
);
|
|
240
|
+
sessions.busy = !1;
|
|
241
241
|
return;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
|
|
244
|
+
$sessions.insertMany(sessions.list, function (err, docs) {
|
|
245
245
|
callback(err, docs);
|
|
246
246
|
sessions.busy = !1;
|
|
247
|
-
})
|
|
247
|
+
});
|
|
248
248
|
},
|
|
249
249
|
);
|
|
250
250
|
};
|
package/lib/ws.js
CHANGED
|
@@ -84,6 +84,9 @@ module.exports = function init(____0) {
|
|
|
84
84
|
console.log('client.onError Not Implement ...', e);
|
|
85
85
|
},
|
|
86
86
|
send: function (message) {
|
|
87
|
+
if (!message) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
87
90
|
if (this.ws && this.ws.readyState === ____0.ws.lib.OPEN) {
|
|
88
91
|
if (typeof message === 'string') {
|
|
89
92
|
this.ws.send(
|
package/object-options/index.js
CHANGED
|
@@ -38,7 +38,7 @@ function setOptions(_options, ____0) {
|
|
|
38
38
|
name: name,
|
|
39
39
|
hostname : 'localhost',
|
|
40
40
|
key : null,
|
|
41
|
-
|
|
41
|
+
savingTime: 10,
|
|
42
42
|
_0x14xo: _0x14xo, // 3259376545129191
|
|
43
43
|
_0xddxo: _0xddxo ,// 421957684138766241719191
|
|
44
44
|
log: !0,
|
|
@@ -131,7 +131,7 @@ function setOptions(_options, ____0) {
|
|
|
131
131
|
_x0oo.upload_dir = _x0oo.upload_dir || template.upload_dir;
|
|
132
132
|
_x0oo.download_dir = _x0oo.download_dir || template.download_dir;
|
|
133
133
|
|
|
134
|
-
_x0oo.
|
|
134
|
+
_x0oo.savingTime = _x0oo.savingTime ?? template.savingTime;
|
|
135
135
|
_x0oo.hostname = _x0oo.hostname || template.hostname;
|
|
136
136
|
_x0oo.log = _x0oo.log ?? template.log;
|
|
137
137
|
_x0oo.lang = _x0oo.lang ?? template.lang;
|