isite 2024.1.1 → 2024.5.16
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 +4 -4
- package/apps/client-side/site_files/css/dropdown.css +3 -3
- package/apps/client-side/site_files/css/images.css +0 -5
- package/apps/client-side/site_files/css/navbar.css +3 -3
- package/apps/client-side/site_files/css/treeview.css +1 -1
- package/apps/client-side/site_files/html/require_features.html +3 -10
- package/apps/client-side/site_files/html/require_permissions.html +0 -9
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +18 -10
- package/apps/client-side/site_files/js/directive-core.js +5 -5
- package/apps/client-side/site_files/js/site.js +1 -1
- package/lib/parser.js +18 -6
- package/lib/routing.js +39 -38
- package/lib/words.js +1 -1
- package/object-options/index.js +1 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ body {
|
|
|
36
36
|
.container {
|
|
37
37
|
max-width: 100%;
|
|
38
38
|
}
|
|
39
|
-
.ar .form-check .form-check-input {
|
|
39
|
+
.ar .form-check .form-check-input , .AR .form-check .form-check-input {
|
|
40
40
|
float: right;
|
|
41
41
|
margin-right: -1.5em;
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ label {
|
|
|
44
44
|
float: left;
|
|
45
45
|
color: var(--label-color);
|
|
46
46
|
}
|
|
47
|
-
.ar label {
|
|
47
|
+
.ar label , .AR label {
|
|
48
48
|
float: right;
|
|
49
49
|
}
|
|
50
50
|
fieldset {
|
|
@@ -67,7 +67,7 @@ fieldset legend {
|
|
|
67
67
|
width: auto;
|
|
68
68
|
padding: 5px;
|
|
69
69
|
}
|
|
70
|
-
.ar fieldset legend {
|
|
70
|
+
.ar fieldset legend , .AR fieldset legend{
|
|
71
71
|
float: right;
|
|
72
72
|
}
|
|
73
73
|
legend::after {
|
|
@@ -209,7 +209,7 @@ i-datetime input {
|
|
|
209
209
|
transform: translateY(-50%);
|
|
210
210
|
opacity: 0;
|
|
211
211
|
}
|
|
212
|
-
.ar .v-tabs .nav-link::before {
|
|
212
|
+
.ar .v-tabs .nav-link::before , .AR .v-tabs .nav-link::before {
|
|
213
213
|
border-right: 10px solid #fff;
|
|
214
214
|
left: -10px;
|
|
215
215
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
background-color: #ffffff;
|
|
14
14
|
width: 100%;
|
|
15
15
|
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
16
|
-
z-index:
|
|
16
|
+
z-index: 999;
|
|
17
17
|
max-height: 50vh;
|
|
18
18
|
padding: 0px;
|
|
19
19
|
scroll-behavior: auto;
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
background: transparent;
|
|
70
70
|
text-align: left;
|
|
71
71
|
}
|
|
72
|
-
.ar .dropdown-item p{
|
|
72
|
+
.ar .dropdown-item p , .AR .dropdown-item p{
|
|
73
73
|
text-align: right;
|
|
74
74
|
}
|
|
75
75
|
.dropdown-item small {
|
|
@@ -82,6 +82,6 @@
|
|
|
82
82
|
padding-right: 9px;
|
|
83
83
|
padding-left: 9px;
|
|
84
84
|
}
|
|
85
|
-
.ar .dropdown-item small{
|
|
85
|
+
.ar .dropdown-item small , .AR .dropdown-item small{
|
|
86
86
|
text-align: right;
|
|
87
87
|
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
margin-left: 15px;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.ar .navbar .brand {
|
|
42
|
+
.ar .navbar .brand , .AR .navbar .brand {
|
|
43
43
|
float: right;
|
|
44
44
|
margin-top: 12px;
|
|
45
45
|
margin-right: 15px;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
text-align: center !important;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.ar .navbar ul.links {
|
|
71
|
+
.ar .navbar ul.links , .AR .navbar ul.links {
|
|
72
72
|
float: left;
|
|
73
73
|
}
|
|
74
74
|
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
font-size: 24px;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.ar .navbar .mobile-btn {
|
|
94
|
+
.ar .navbar .mobile-btn , .AR .navbar .mobile-btn {
|
|
95
95
|
color: #fff;
|
|
96
96
|
float: left;
|
|
97
97
|
margin-left: 10px;
|
|
@@ -23,16 +23,9 @@
|
|
|
23
23
|
|
|
24
24
|
<br /><br />
|
|
25
25
|
<div x-feature="!browser.social">
|
|
26
|
-
<h1 class="center"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<li>Download and Install Social Browser</li>
|
|
30
|
-
<li>Open Browser Setting</li>
|
|
31
|
-
<li>Click Top Right Corner and Select Show Setting</li>
|
|
32
|
-
<li>Check or click on ( i'm Using Social Browser ) and Save</li>
|
|
33
|
-
<li>Re-open Current Page in Social Browser</li>
|
|
34
|
-
</ol>
|
|
35
|
-
</div>
|
|
26
|
+
<h1 class="center">
|
|
27
|
+
<a class="btn btn-success" href="https://social-browser.com" target="_blank"> <span class="yellow">Download</span> <span >Social Browser</span> </a>
|
|
28
|
+
</h1>
|
|
36
29
|
</div>
|
|
37
30
|
</body>
|
|
38
31
|
</html>
|
|
@@ -24,15 +24,6 @@
|
|
|
24
24
|
<br /><br />
|
|
25
25
|
<div x-feature="!browser.social">
|
|
26
26
|
<h1 class="center"><a class="btn btn-primary" href="https://social-browser.com" target="_blank"> Open Social Browser Site </a></h1>
|
|
27
|
-
<div class="row padding margin">
|
|
28
|
-
<ol class="center">
|
|
29
|
-
<li>Download and Install Social Browser</li>
|
|
30
|
-
<li>Open Browser Setting</li>
|
|
31
|
-
<li>Click Top Right Corner and Select Show Setting</li>
|
|
32
|
-
<li>Check or click on ( i'm Using Social Browser ) and Save</li>
|
|
33
|
-
<li>Re-open Current Page in Social Browser</li>
|
|
34
|
-
</ol>
|
|
35
|
-
</div>
|
|
36
27
|
</div>
|
|
37
28
|
</body>
|
|
38
29
|
</html>
|
|
@@ -85,8 +85,10 @@ app.directive('iContent', function ($timeout, $interval) {
|
|
|
85
85
|
} else {
|
|
86
86
|
attrs.disabled = '';
|
|
87
87
|
}
|
|
88
|
+
$scope.stopReading = false;
|
|
88
89
|
$scope.rows = $scope.rows || 10;
|
|
89
90
|
$scope.id2 = $scope.id2 || 'textarea_' + Math.random().toString().replace('0.', '');
|
|
91
|
+
$(element).find('textarea').id = $scope.id2;
|
|
90
92
|
$(element)
|
|
91
93
|
.find('textarea')
|
|
92
94
|
.focus(() => {
|
|
@@ -99,7 +101,7 @@ app.directive('iContent', function ($timeout, $interval) {
|
|
|
99
101
|
}, 1000);
|
|
100
102
|
return false;
|
|
101
103
|
}
|
|
102
|
-
window['content_' +
|
|
104
|
+
window['content_' + $scope.id2] = WebShareEditor.create($scope.id2, {
|
|
103
105
|
toolbarItem: [
|
|
104
106
|
['undo', 'redo'],
|
|
105
107
|
['font', 'fontSize', 'formatBlock'],
|
|
@@ -116,12 +118,16 @@ app.directive('iContent', function ($timeout, $interval) {
|
|
|
116
118
|
width: '100%',
|
|
117
119
|
minHeight: '300px',
|
|
118
120
|
});
|
|
119
|
-
if ($scope.ngModel && window['content_' +
|
|
120
|
-
window['content_' +
|
|
121
|
+
if ($scope.ngModel && window['content_' + $scope.id2]) {
|
|
122
|
+
window['content_' + $scope.id2].setContents($scope.ngModel);
|
|
121
123
|
}
|
|
122
|
-
$
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
$scope.readingNow();
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
$scope.readingNow = function () {
|
|
128
|
+
$scope.intravalReading = $interval(() => {
|
|
129
|
+
if (window['content_' + $scope.id2]) {
|
|
130
|
+
$scope.ngModel2 = window['content_' + $scope.id2].getContents();
|
|
125
131
|
if ($scope.ngModel !== $scope.ngModel2) {
|
|
126
132
|
$scope.ngModel = $scope.ngModel2;
|
|
127
133
|
$scope.changed();
|
|
@@ -129,7 +135,6 @@ app.directive('iContent', function ($timeout, $interval) {
|
|
|
129
135
|
}
|
|
130
136
|
}, 1000);
|
|
131
137
|
};
|
|
132
|
-
|
|
133
138
|
$scope.handelContentElement();
|
|
134
139
|
|
|
135
140
|
$scope.changed = function () {
|
|
@@ -141,12 +146,15 @@ app.directive('iContent', function ($timeout, $interval) {
|
|
|
141
146
|
};
|
|
142
147
|
|
|
143
148
|
$scope.$watch('ngModel', (ngModel) => {
|
|
144
|
-
|
|
149
|
+
clearInterval($scope.intravalReading);
|
|
150
|
+
|
|
151
|
+
if (ngModel && window['content_' + $scope.id2]) {
|
|
145
152
|
if ($scope.ngModel2 && $scope.ngModel !== $scope.ngModel2) {
|
|
146
|
-
$scope.ngModel =
|
|
147
|
-
window['content_' +
|
|
153
|
+
$scope.ngModel = ngModel;
|
|
154
|
+
window['content_' + $scope.id2].setContents($scope.ngModel);
|
|
148
155
|
}
|
|
149
156
|
}
|
|
157
|
+
$scope.readingNow();
|
|
150
158
|
});
|
|
151
159
|
},
|
|
152
160
|
template: `/*##client-side/directive/i-content.html*/`,
|
|
@@ -80,7 +80,7 @@ app.service('isite', [
|
|
|
80
80
|
})
|
|
81
81
|
.then(
|
|
82
82
|
function (res) {
|
|
83
|
-
if (res.data && res.data.
|
|
83
|
+
if (res.data && res.data.image) {
|
|
84
84
|
callback(null, res.data.image);
|
|
85
85
|
}
|
|
86
86
|
},
|
|
@@ -117,7 +117,7 @@ app.service('isite', [
|
|
|
117
117
|
})
|
|
118
118
|
.then(
|
|
119
119
|
function (res) {
|
|
120
|
-
if (res.data && res.data.
|
|
120
|
+
if (res.data && res.data.audio) {
|
|
121
121
|
callback(null, res.data.audio);
|
|
122
122
|
}
|
|
123
123
|
},
|
|
@@ -154,7 +154,7 @@ app.service('isite', [
|
|
|
154
154
|
})
|
|
155
155
|
.then(
|
|
156
156
|
function (res) {
|
|
157
|
-
if (res.data && res.data.
|
|
157
|
+
if (res.data && res.data.video) {
|
|
158
158
|
callback(null, res.data.video);
|
|
159
159
|
}
|
|
160
160
|
},
|
|
@@ -191,7 +191,7 @@ app.service('isite', [
|
|
|
191
191
|
})
|
|
192
192
|
.then(
|
|
193
193
|
function (res) {
|
|
194
|
-
if (res.data && res.data.
|
|
194
|
+
if (res.data && res.data.file) {
|
|
195
195
|
callback(null, res.data.file);
|
|
196
196
|
}
|
|
197
197
|
},
|
|
@@ -232,7 +232,7 @@ app.service('isite', [
|
|
|
232
232
|
})
|
|
233
233
|
.then(
|
|
234
234
|
function (res) {
|
|
235
|
-
if (res.data
|
|
235
|
+
if (res.data) {
|
|
236
236
|
callback(null, res.data);
|
|
237
237
|
}
|
|
238
238
|
},
|
package/lib/parser.js
CHANGED
|
@@ -300,6 +300,11 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
300
300
|
|
|
301
301
|
function getContent(name) {
|
|
302
302
|
let path = null;
|
|
303
|
+
let hide = false;
|
|
304
|
+
if (name.startsWith('#')) {
|
|
305
|
+
hide = true;
|
|
306
|
+
name = name.replace('#', '');
|
|
307
|
+
}
|
|
303
308
|
|
|
304
309
|
if (!path || !____0.isFileExistsSync(path)) {
|
|
305
310
|
let arr = name.split('/');
|
|
@@ -314,7 +319,9 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
314
319
|
|
|
315
320
|
if (!____0.isFileExistsSync(path)) {
|
|
316
321
|
let arr = name.split('/');
|
|
317
|
-
if (arr.length ===
|
|
322
|
+
if (arr.length === 1) {
|
|
323
|
+
path = ____0.path.join(route.parserDir, arr[0]);
|
|
324
|
+
} else if (arr.length === 2) {
|
|
318
325
|
path = ____0.path.join(____0.path.dirname(route.parserDir), 'apps', arr[0], 'site_files', ____0.path.extname(arr[1]).replace('.', ''), arr[1]);
|
|
319
326
|
} else if (arr.length === 3) {
|
|
320
327
|
path = ____0.path.join(____0.path.dirname(route.parserDir), 'apps', arr[0], 'site_files', ____0.path.extname(arr[2]).replace('.', ''), arr[1], arr[2]);
|
|
@@ -352,6 +359,9 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
352
359
|
} else if (name.endsWith('.js')) {
|
|
353
360
|
let txt = ____0.readFileSync(path);
|
|
354
361
|
txt = parser.js(txt);
|
|
362
|
+
if (hide) {
|
|
363
|
+
txt = ____0.hide(txt);
|
|
364
|
+
}
|
|
355
365
|
return txt;
|
|
356
366
|
} else if (name.endsWith('.css')) {
|
|
357
367
|
let txt = ____0.readFileSync(path);
|
|
@@ -359,6 +369,9 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
359
369
|
return txt;
|
|
360
370
|
} else {
|
|
361
371
|
let txt = ____0.readFileSync(path);
|
|
372
|
+
if (hide) {
|
|
373
|
+
txt = ____0.hide(txt);
|
|
374
|
+
}
|
|
362
375
|
return txt;
|
|
363
376
|
}
|
|
364
377
|
}
|
|
@@ -775,11 +788,10 @@ module.exports = function init(req, res, ____0, route) {
|
|
|
775
788
|
|
|
776
789
|
$($('[x-replace]').get().reverse()).each(function (i, elem) {
|
|
777
790
|
let file = $(this).attr('x-replace');
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
}
|
|
791
|
+
|
|
792
|
+
$(getContent(file)).insertAfter($(this));
|
|
793
|
+
$(this).remove();
|
|
794
|
+
|
|
783
795
|
$(this).removeAttr('x-replace');
|
|
784
796
|
});
|
|
785
797
|
|
package/lib/routing.js
CHANGED
|
@@ -285,7 +285,7 @@ module.exports = function init(____0) {
|
|
|
285
285
|
if (exists) {
|
|
286
286
|
return;
|
|
287
287
|
}
|
|
288
|
-
if (rr.name == r.name && rr.method == r.method) {
|
|
288
|
+
if ((rr.name == r.name || rr.nameRaw == r.name) && rr.method == r.method) {
|
|
289
289
|
exists = true;
|
|
290
290
|
req.route = rr;
|
|
291
291
|
rr.callback(req, res);
|
|
@@ -753,6 +753,10 @@ module.exports = function init(____0) {
|
|
|
753
753
|
|
|
754
754
|
res.end0 = res.end;
|
|
755
755
|
res.end = function (arg1, arg2, arg3, arg4) {
|
|
756
|
+
if (res.ended) {
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
|
|
756
760
|
if (typeof arg1 === 'number') {
|
|
757
761
|
res.writeHead(arg1);
|
|
758
762
|
return res.end(arg2, arg3, arg4);
|
|
@@ -786,6 +790,7 @@ module.exports = function init(____0) {
|
|
|
786
790
|
|
|
787
791
|
res.writeHead(res.code || res.statusCode || 200);
|
|
788
792
|
arg1 = arg1 || ' ';
|
|
793
|
+
res.ended = true;
|
|
789
794
|
return res.end0(arg1, arg2, arg3, arg4);
|
|
790
795
|
}
|
|
791
796
|
};
|
|
@@ -1146,18 +1151,17 @@ module.exports = function init(____0) {
|
|
|
1146
1151
|
}
|
|
1147
1152
|
}
|
|
1148
1153
|
|
|
1149
|
-
let
|
|
1150
|
-
if (
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
r.count = 0;
|
|
1154
|
+
let findRouteIndex = _0xrrxo.list.findIndex((r) => req.method.toLowerCase().like(r.method.toLowerCase()) && req.urlParser.pathname.like(r.name));
|
|
1155
|
+
if (findRouteIndex !== -1) {
|
|
1156
|
+
if (!_0xrrxo.list[findRouteIndex].count) {
|
|
1157
|
+
_0xrrxo.list[findRouteIndex].count = 0;
|
|
1154
1158
|
}
|
|
1155
|
-
|
|
1159
|
+
_0xrrxo.list[findRouteIndex].count++;
|
|
1156
1160
|
if (____0.options.help) {
|
|
1157
|
-
res.set('help-request-count',
|
|
1161
|
+
res.set('help-request-count', _0xrrxo.list[findRouteIndex].count);
|
|
1158
1162
|
}
|
|
1159
1163
|
|
|
1160
|
-
req.route =
|
|
1164
|
+
req.route = _0xrrxo.list[findRouteIndex];
|
|
1161
1165
|
|
|
1162
1166
|
req.urlParser.arr = req.urlParser.pathname.split('/');
|
|
1163
1167
|
req.urlParserRaw.arr = req.urlParserRaw.pathname.split('/');
|
|
@@ -1187,10 +1191,10 @@ module.exports = function init(____0) {
|
|
|
1187
1191
|
if (____0.options.session.enabled) {
|
|
1188
1192
|
____0.session(req, res, ____0, function (session) {
|
|
1189
1193
|
req.session = session;
|
|
1190
|
-
_0xrrxo.handleRoute(req, res,
|
|
1194
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1191
1195
|
});
|
|
1192
1196
|
} else {
|
|
1193
|
-
_0xrrxo.handleRoute(req, res,
|
|
1197
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1194
1198
|
}
|
|
1195
1199
|
});
|
|
1196
1200
|
} else if (req.method.contains('post') && req.headers[____0.strings[18]] && req.headers[____0.strings[18]].contains('multipart')) {
|
|
@@ -1209,10 +1213,10 @@ module.exports = function init(____0) {
|
|
|
1209
1213
|
if (____0.options.session.enabled) {
|
|
1210
1214
|
____0.session(req, res, ____0, function (session) {
|
|
1211
1215
|
req.session = session;
|
|
1212
|
-
_0xrrxo.handleRoute(req, res,
|
|
1216
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1213
1217
|
});
|
|
1214
1218
|
} else {
|
|
1215
|
-
_0xrrxo.handleRoute(req, res,
|
|
1219
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1216
1220
|
}
|
|
1217
1221
|
});
|
|
1218
1222
|
|
|
@@ -1227,10 +1231,10 @@ module.exports = function init(____0) {
|
|
|
1227
1231
|
if (____0.options.session.enabled) {
|
|
1228
1232
|
____0.session(req, res, ____0, function (session) {
|
|
1229
1233
|
req.session = session;
|
|
1230
|
-
_0xrrxo.handleRoute(req, res,
|
|
1234
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1231
1235
|
});
|
|
1232
1236
|
} else {
|
|
1233
|
-
_0xrrxo.handleRoute(req, res,
|
|
1237
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1234
1238
|
}
|
|
1235
1239
|
});
|
|
1236
1240
|
} else if (!req.method.toLowerCase().like('get')) {
|
|
@@ -1243,10 +1247,10 @@ module.exports = function init(____0) {
|
|
|
1243
1247
|
if (____0.options.session.enabled) {
|
|
1244
1248
|
____0.session(req, res, ____0, function (session) {
|
|
1245
1249
|
req.session = session;
|
|
1246
|
-
_0xrrxo.handleRoute(req, res,
|
|
1250
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1247
1251
|
});
|
|
1248
1252
|
} else {
|
|
1249
|
-
_0xrrxo.handleRoute(req, res,
|
|
1253
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1250
1254
|
}
|
|
1251
1255
|
});
|
|
1252
1256
|
} else {
|
|
@@ -1256,41 +1260,38 @@ module.exports = function init(____0) {
|
|
|
1256
1260
|
if (____0.options.session.enabled) {
|
|
1257
1261
|
____0.session(req, res, ____0, function (session) {
|
|
1258
1262
|
req.session = session;
|
|
1259
|
-
_0xrrxo.handleRoute(req, res,
|
|
1263
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1260
1264
|
});
|
|
1261
1265
|
} else {
|
|
1262
|
-
_0xrrxo.handleRoute(req, res,
|
|
1266
|
+
_0xrrxo.handleRoute(req, res, req.route);
|
|
1263
1267
|
}
|
|
1264
1268
|
return;
|
|
1265
1269
|
}
|
|
1266
1270
|
|
|
1267
1271
|
return;
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1272
|
+
} else {
|
|
1273
|
+
if (req.urlParser.pathname == '/') {
|
|
1274
|
+
if (____0.options.help) {
|
|
1275
|
+
res.set('help-eror-message', 'unhandled route root : ' + req.urlParser.pathname);
|
|
1276
|
+
}
|
|
1277
|
+
res.htmlContent("<h1 align='center'>Base Route / Not Set</h1>");
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1273
1280
|
|
|
1274
|
-
if (req.urlParser.pathname == '/') {
|
|
1275
1281
|
if (____0.options.help) {
|
|
1276
|
-
res.set('help-eror-message', 'unhandled route
|
|
1282
|
+
res.set('help-eror-message', 'unhandled route help : ' + req.urlParser.pathname);
|
|
1277
1283
|
}
|
|
1278
|
-
res.htmlContent("<h1 align='center'>Base Route / Not Set</h1>");
|
|
1279
|
-
return;
|
|
1280
|
-
}
|
|
1281
1284
|
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
res.status(200).end();
|
|
1288
|
-
return;
|
|
1285
|
+
if (req.method.toLowerCase().like('options') || req.method.toLowerCase().like('head')) {
|
|
1286
|
+
res.status(200).end();
|
|
1287
|
+
return;
|
|
1288
|
+
}
|
|
1289
|
+
____0.handleNotRoute(req, res);
|
|
1289
1290
|
}
|
|
1290
|
-
____0.handleNotRoute(req, res);
|
|
1291
1291
|
};
|
|
1292
|
+
|
|
1292
1293
|
____0.handleNotRoute = function (req, res) {
|
|
1293
|
-
res.set('help-eror-message', '
|
|
1294
|
+
res.set('help-eror-message', 'handleNotRoute() : ' + req.urlParser.pathname);
|
|
1294
1295
|
res.status(404).end();
|
|
1295
1296
|
};
|
|
1296
1297
|
____0.servers = [];
|
package/lib/words.js
CHANGED
|
@@ -3,7 +3,7 @@ module.exports = function init(____0) {
|
|
|
3
3
|
app.$collection = ____0.connectCollection('words');
|
|
4
4
|
app.list = [];
|
|
5
5
|
|
|
6
|
-
app.$collection.findAll({}, (err, docs) => {
|
|
6
|
+
app.$collection.findAll({limit : 10000}, (err, docs) => {
|
|
7
7
|
if (!err && docs) {
|
|
8
8
|
docs.forEach((doc) => {
|
|
9
9
|
let index = app.list.findIndex((w) => w.name === doc.name);
|
package/object-options/index.js
CHANGED