isite 2024.1.1 → 2024.5.15

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.
@@ -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: 1;
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
  }
@@ -26,11 +26,6 @@ i-image.logo {
26
26
  height: 48px !important;
27
27
  border-radius: 5px;
28
28
  }
29
- .logo img {
30
- width: 44px !important;
31
- height: 44px !important;
32
- }
33
-
34
29
 
35
30
  i-image img {
36
31
  width: 100%;
@@ -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;
@@ -55,7 +55,7 @@
55
55
  padding: 3px;
56
56
  cursor: pointer;
57
57
  }
58
- .ar .treenode li {
58
+ .ar .treenode li , .AR .treenode li {
59
59
  border-right: 1px solid var(--treeview-border-color);
60
60
  }
61
61
  .en .treenode li {
@@ -23,16 +23,9 @@
23
23
 
24
24
  <br /><br />
25
25
  <div x-feature="!browser.social">
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>
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_' + attrs.id] = WebShareEditor.create($scope.id2, {
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_' + attrs.id]) {
120
- window['content_' + attrs.id].setContents($scope.ngModel);
121
+ if ($scope.ngModel && window['content_' + $scope.id2]) {
122
+ window['content_' + $scope.id2].setContents($scope.ngModel);
121
123
  }
122
- $interval(() => {
123
- if (window['content_' + attrs.id]) {
124
- $scope.ngModel2 = window['content_' + attrs.id].getContents();
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
- if (ngModel && window['content_' + attrs.id]) {
149
+ clearInterval($scope.intravalReading);
150
+
151
+ if (ngModel && window['content_' + $scope.id2]) {
145
152
  if ($scope.ngModel2 && $scope.ngModel !== $scope.ngModel2) {
146
- $scope.ngModel = $scope.ngModel2;
147
- window['content_' + attrs.id].setContents($scope.ngModel);
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.done) {
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.done) {
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.done) {
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.done && res.data.file) {
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 && res.data.done && res.data.file) {
235
+ if (res.data) {
236
236
  callback(null, res.data);
237
237
  }
238
238
  },
package/lib/parser.js CHANGED
@@ -775,11 +775,10 @@ module.exports = function init(req, res, ____0, route) {
775
775
 
776
776
  $($('[x-replace]').get().reverse()).each(function (i, elem) {
777
777
  let file = $(this).attr('x-replace');
778
- if (file.endsWith('.html')) {
779
- $(this).html(getContent(file));
780
- } else {
781
- $(this).text(getContent(file));
782
- }
778
+
779
+ $(getContent(file)).insertAfter($(this));
780
+ $(this).remove();
781
+
783
782
  $(this).removeAttr('x-replace');
784
783
  });
785
784
 
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 matched_routes = _0xrrxo.list.filter((r) => req.method.toLowerCase().like(r.method.toLowerCase()) && req.urlParser.pathname.like(r.name));
1150
- if (matched_routes.length > 0) {
1151
- let r = matched_routes[0];
1152
- if (!r.count) {
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
- r.count++;
1159
+ _0xrrxo.list[findRouteIndex].count++;
1156
1160
  if (____0.options.help) {
1157
- res.set('help-request-count', r.count);
1161
+ res.set('help-request-count', _0xrrxo.list[findRouteIndex].count);
1158
1162
  }
1159
1163
 
1160
- req.route = r;
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, r);
1194
+ _0xrrxo.handleRoute(req, res, req.route);
1191
1195
  });
1192
1196
  } else {
1193
- _0xrrxo.handleRoute(req, res, r);
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, r);
1216
+ _0xrrxo.handleRoute(req, res, req.route);
1213
1217
  });
1214
1218
  } else {
1215
- _0xrrxo.handleRoute(req, res, r);
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, r);
1234
+ _0xrrxo.handleRoute(req, res, req.route);
1231
1235
  });
1232
1236
  } else {
1233
- _0xrrxo.handleRoute(req, res, r);
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, r);
1250
+ _0xrrxo.handleRoute(req, res, req.route);
1247
1251
  });
1248
1252
  } else {
1249
- _0xrrxo.handleRoute(req, res, r);
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, r);
1263
+ _0xrrxo.handleRoute(req, res, req.route);
1260
1264
  });
1261
1265
  } else {
1262
- _0xrrxo.handleRoute(req, res, r);
1266
+ _0xrrxo.handleRoute(req, res, req.route);
1263
1267
  }
1264
1268
  return;
1265
1269
  }
1266
1270
 
1267
1271
  return;
1268
- }
1269
-
1270
- if (matched_routes.length > 0) {
1271
- return;
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 root : ' + req.urlParser.pathname);
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
- if (____0.options.help) {
1283
- res.set('help-eror-message', 'unhandled route help : ' + req.urlParser.pathname);
1284
- }
1285
-
1286
- if (req.method.toLowerCase().like('options') || req.method.toLowerCase().like('head')) {
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', 'unhandled route fn : ' + req.urlParser.pathname);
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);
@@ -44,7 +44,7 @@ function setOptions(_options, ____0) {
44
44
  help: !1,
45
45
  stdin: !0,
46
46
  _0xmmxo: '26319191',
47
- _0xyyxo: '2654127327129191',
47
+ _0xyyxo: '2654127327319191',
48
48
  ipLookup: false,
49
49
  www: true,
50
50
  https: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2024.01.01",
3
+ "version": "2024.05.15",
4
4
  "description": "Create High Level Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {