isite 2021.11.23 → 2021.11.29
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/checkbox.css +0 -2
- package/apps/client-side/site_files/css/form.css +27 -32
- package/apps/client-side/site_files/css/layout.css +27 -13
- package/apps/client-side/site_files/css/theme.css +1 -1
- package/apps/client-side/site_files/css/theme_paper.css +1 -1
- package/index.js +2 -2
- package/lib/mongodb.js +8 -7
- 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
|
@@ -114,11 +114,9 @@ i-checkbox .selector.un-selected .fa{
|
|
|
114
114
|
i-checkbox .selector.selected {
|
|
115
115
|
background: #ffffff;
|
|
116
116
|
color: #ffffff;
|
|
117
|
-
border: 4px solid #000000;
|
|
118
117
|
background: #118011;
|
|
119
118
|
}
|
|
120
119
|
i-checkbox .selector.un-selected {
|
|
121
120
|
background: #aaa;
|
|
122
121
|
color: #fff;
|
|
123
|
-
border: 5px solid #bbb;
|
|
124
122
|
}
|
|
@@ -4,7 +4,7 @@ form {
|
|
|
4
4
|
margin: 0 auto;
|
|
5
5
|
padding: 5px;
|
|
6
6
|
color: var(--form-color);
|
|
7
|
-
background-color: var(--form-background-color)
|
|
7
|
+
background-color: var(--form-background-color);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.control {
|
|
@@ -18,23 +18,24 @@ form {
|
|
|
18
18
|
form label,
|
|
19
19
|
form span,
|
|
20
20
|
form p {
|
|
21
|
-
color: var(--form-color)
|
|
21
|
+
color: var(--form-color);
|
|
22
|
+
}
|
|
23
|
+
p {
|
|
24
|
+
word-break: break-all;
|
|
22
25
|
}
|
|
23
|
-
|
|
24
26
|
label {
|
|
25
27
|
font-weight: var(--label-font-weight);
|
|
26
28
|
color: var(--label-color);
|
|
27
29
|
font-size: var(--label-font-size);
|
|
28
30
|
margin: 5px;
|
|
29
31
|
margin-bottom: 10px !important;
|
|
32
|
+
word-break: break-all;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
|
-
|
|
33
35
|
label span {
|
|
34
36
|
color: var(--form-color);
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
|
|
38
39
|
textarea {
|
|
39
40
|
overflow-x: hidden;
|
|
40
41
|
}
|
|
@@ -54,9 +55,9 @@ textarea {
|
|
|
54
55
|
color: var(--input-color);
|
|
55
56
|
background-color: var(--input-background-color);
|
|
56
57
|
background-image: none;
|
|
57
|
-
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
|
|
58
|
-
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
|
59
|
-
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
|
58
|
+
-webkit-transition: border-color ease-in-out 0.15s, -webkit-box-shadow ease-in-out 0.15s;
|
|
59
|
+
-o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
|
60
|
+
transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
|
|
60
61
|
border-radius: var(--input-border-radius);
|
|
61
62
|
border-width: var(--input-border-width);
|
|
62
63
|
border-color: var(--input-border-color);
|
|
@@ -66,7 +67,6 @@ textarea {
|
|
|
66
67
|
-ms-scrollbar-arrow-color: var(--input-color);
|
|
67
68
|
}
|
|
68
69
|
|
|
69
|
-
|
|
70
70
|
select {
|
|
71
71
|
font-size: var(--select-font-size);
|
|
72
72
|
height: var(--select-height);
|
|
@@ -78,30 +78,28 @@ select {
|
|
|
78
78
|
-ms-progress-appearance: var(--select-appearance);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
|
|
82
81
|
textarea {
|
|
83
82
|
border-width: var(--textarea-border-width);
|
|
84
83
|
}
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
input[type=
|
|
88
|
-
input[type=radio] {
|
|
85
|
+
input[type='checkbox'],
|
|
86
|
+
input[type='radio'] {
|
|
89
87
|
-webkit-box-shadow: none;
|
|
90
88
|
box-shadow: none;
|
|
91
89
|
}
|
|
92
90
|
|
|
93
|
-
input[type=file] {
|
|
91
|
+
input[type='file'] {
|
|
94
92
|
padding: 3px;
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
input[type=date],
|
|
98
|
-
input[type=datetime],
|
|
99
|
-
input[type=datetime-local] {
|
|
95
|
+
input[type='date'],
|
|
96
|
+
input[type='datetime'],
|
|
97
|
+
input[type='datetime-local'] {
|
|
100
98
|
padding: 5px;
|
|
101
99
|
}
|
|
102
100
|
|
|
103
|
-
input[type=number],
|
|
104
|
-
input[type=date] {
|
|
101
|
+
input[type='number'],
|
|
102
|
+
input[type='date'] {
|
|
105
103
|
text-align: center;
|
|
106
104
|
}
|
|
107
105
|
|
|
@@ -115,14 +113,14 @@ input[type=date] {
|
|
|
115
113
|
text-align: var(--label-text-align);
|
|
116
114
|
}
|
|
117
115
|
|
|
118
|
-
.control input[type=text],
|
|
119
|
-
.control input[type=email],
|
|
120
|
-
.control input[type=number],
|
|
121
|
-
.control input[type=password],
|
|
122
|
-
.control input[type=file],
|
|
123
|
-
.control input[type=date],
|
|
124
|
-
.control input[type=datetime],
|
|
125
|
-
.control input[type=datetime-local],
|
|
116
|
+
.control input[type='text'],
|
|
117
|
+
.control input[type='email'],
|
|
118
|
+
.control input[type='number'],
|
|
119
|
+
.control input[type='password'],
|
|
120
|
+
.control input[type='file'],
|
|
121
|
+
.control input[type='date'],
|
|
122
|
+
.control input[type='datetime'],
|
|
123
|
+
.control input[type='datetime-local'],
|
|
126
124
|
.control textarea,
|
|
127
125
|
.control label,
|
|
128
126
|
.control select {
|
|
@@ -137,8 +135,6 @@ textarea:focus {
|
|
|
137
135
|
border-color: var(--input-focus-border-color);
|
|
138
136
|
}
|
|
139
137
|
|
|
140
|
-
|
|
141
|
-
|
|
142
138
|
fieldset {
|
|
143
139
|
padding: 4px;
|
|
144
140
|
margin: 0px;
|
|
@@ -156,7 +152,6 @@ fieldset legend {
|
|
|
156
152
|
border: var(--legend-border);
|
|
157
153
|
}
|
|
158
154
|
|
|
159
|
-
|
|
160
155
|
.files {
|
|
161
156
|
border: 2px dashed var(--modal-header-background-color);
|
|
162
157
|
padding: 5px;
|
|
@@ -185,7 +180,7 @@ fieldset legend {
|
|
|
185
180
|
font-size: 16px;
|
|
186
181
|
color: #000;
|
|
187
182
|
}
|
|
188
|
-
.i-date2 .fa{
|
|
183
|
+
.i-date2 .fa {
|
|
189
184
|
font-size: 18px;
|
|
190
185
|
cursor: pointer;
|
|
191
|
-
}
|
|
186
|
+
}
|
|
@@ -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
|
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
--modal-background : rgba(0,0,0,0.6);
|
|
114
114
|
--modal-content-background: #607D8B;
|
|
115
115
|
--modal-content-border: none;
|
|
116
|
-
--modal-color: #
|
|
116
|
+
--modal-color: #000;
|
|
117
117
|
--modal-animation-name: animatetop;
|
|
118
118
|
--modal-animation-duration: 0.4s;
|
|
119
119
|
--modal-header-color: #000000;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
--modal-background: var(--theme-color);
|
|
143
143
|
--modal-content-background: #ffffff;
|
|
144
144
|
--modal-content-border: 3px solid var(--theme-color);
|
|
145
|
-
--modal-color: #
|
|
145
|
+
--modal-color: #000;
|
|
146
146
|
--modal-animation-name: animateleft;
|
|
147
147
|
--modal-animation-duration: 0.4s;
|
|
148
148
|
--modal-header-color: #fff;
|
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
|
@@ -110,6 +110,7 @@ module.exports = function init(____0) {
|
|
|
110
110
|
|
|
111
111
|
let db_name = ____0.options.mongodb.prefix.db + name;
|
|
112
112
|
let db_url = _mongo.connection;
|
|
113
|
+
____0.log('\n ( Connecting DB : ' + db_url + ' ) \n');
|
|
113
114
|
_mongo.client.connect(
|
|
114
115
|
db_url,
|
|
115
116
|
{
|
|
@@ -129,10 +130,11 @@ module.exports = function init(____0) {
|
|
|
129
130
|
client: client,
|
|
130
131
|
connected: !0,
|
|
131
132
|
});
|
|
132
|
-
|
|
133
|
+
____0.log('\n ( Connected DB : ' + db_name + ' ) \n');
|
|
133
134
|
callback(err, db);
|
|
134
135
|
} else {
|
|
135
136
|
err.message += ' , ' + db_url;
|
|
137
|
+
____0.log('\n ( Connected DB Error: ' + err.message + ' ) \n');
|
|
136
138
|
callback(err, null);
|
|
137
139
|
}
|
|
138
140
|
_mongo.connectDBBusy = !1;
|
|
@@ -284,7 +286,7 @@ module.exports = function init(____0) {
|
|
|
284
286
|
};
|
|
285
287
|
|
|
286
288
|
_mongo.insert = _mongo.insertMany = function (obj, callback) {
|
|
287
|
-
if (obj.docs.length === 0) {
|
|
289
|
+
if (!obj.docs || obj.docs.length === 0) {
|
|
288
290
|
callback({
|
|
289
291
|
message: 'docs array length is 0',
|
|
290
292
|
});
|
|
@@ -292,27 +294,26 @@ module.exports = function init(____0) {
|
|
|
292
294
|
}
|
|
293
295
|
_mongo.connectDB(obj.dbName, function (err, db) {
|
|
294
296
|
if (!err) {
|
|
295
|
-
if (obj.collectionName
|
|
297
|
+
if (!obj.collectionName) {
|
|
296
298
|
obj.collectionName = ____0.options.mongodb.collection;
|
|
297
299
|
}
|
|
298
300
|
obj.docs.forEach((doc) => {
|
|
299
301
|
doc = _mongo.handleDoc(doc);
|
|
300
302
|
});
|
|
301
|
-
db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs
|
|
303
|
+
db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs, obj.options, function (err, result) {
|
|
302
304
|
if (!err) {
|
|
303
305
|
callback(null, result);
|
|
304
|
-
|
|
305
306
|
____0.call('mongodb after insert many', {
|
|
306
307
|
db: obj.dbName,
|
|
307
308
|
collection: obj.collectionName,
|
|
308
309
|
docs: obj.docs,
|
|
309
310
|
});
|
|
310
311
|
} else {
|
|
311
|
-
|
|
312
|
+
console.log(err.message);
|
|
312
313
|
}
|
|
313
314
|
});
|
|
314
315
|
} else {
|
|
315
|
-
|
|
316
|
+
console.log(err.message);
|
|
316
317
|
}
|
|
317
318
|
});
|
|
318
319
|
};
|
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;
|