isite 1.14.92 → 2021.11.3-0.1

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.
Files changed (59) hide show
  1. package/README.md +488 -477
  2. package/apps/client-side/app.js +28 -1
  3. package/apps/client-side/site_files/css/btn.css +98 -0
  4. package/apps/client-side/site_files/css/checkbox.css +10 -7
  5. package/apps/client-side/site_files/css/dropdown.css +61 -0
  6. package/apps/client-side/site_files/css/effect.css +283 -280
  7. package/apps/client-side/site_files/css/font-awesome.css +4615 -3
  8. package/apps/client-side/site_files/css/font-awesome.min.css +5 -0
  9. package/apps/client-side/site_files/css/font-cairo.css +14 -0
  10. package/apps/client-side/site_files/css/font-droid.css +19 -0
  11. package/apps/client-side/site_files/css/fonts.css +6 -34
  12. package/apps/client-side/site_files/css/form.css +31 -131
  13. package/apps/client-side/site_files/css/layout.css +27 -13
  14. package/apps/client-side/site_files/css/modal.css +184 -164
  15. package/apps/client-side/site_files/css/tabs.css +3 -3
  16. package/apps/client-side/site_files/css/theme.css +2 -2
  17. package/apps/client-side/site_files/css/theme_dark.css +1 -1
  18. package/apps/client-side/site_files/css/theme_paper.css +175 -151
  19. package/apps/client-side/site_files/html/sub/i-date2.content.html +64 -0
  20. package/apps/client-side/site_files/html/sub/i-list.content.html +31 -0
  21. package/apps/client-side/site_files/html/sub/i-list2.content.html +22 -0
  22. package/apps/client-side/site_files/js/directive.js +1570 -1650
  23. package/apps/client-side/site_files/js/directive.min.js +2 -2
  24. package/apps/client-side/site_files/js/site.js +59 -17
  25. package/apps/client-side/site_files/js/site.min.js +1 -1
  26. package/apps/client-side/site_files/webfonts/fa-brands-400.eot +0 -0
  27. package/apps/client-side/site_files/webfonts/fa-brands-400.svg +3717 -0
  28. package/apps/client-side/site_files/webfonts/fa-brands-400.ttf +0 -0
  29. package/apps/client-side/site_files/webfonts/fa-brands-400.woff +0 -0
  30. package/apps/client-side/site_files/webfonts/fa-brands-400.woff2 +0 -0
  31. package/apps/client-side/site_files/webfonts/fa-regular-400.eot +0 -0
  32. package/apps/client-side/site_files/webfonts/fa-regular-400.svg +801 -0
  33. package/apps/client-side/site_files/webfonts/fa-regular-400.ttf +0 -0
  34. package/apps/client-side/site_files/webfonts/fa-regular-400.woff +0 -0
  35. package/apps/client-side/site_files/webfonts/fa-regular-400.woff2 +0 -0
  36. package/apps/client-side/site_files/webfonts/fa-solid-900.eot +0 -0
  37. package/apps/client-side/site_files/webfonts/fa-solid-900.svg +5034 -0
  38. package/apps/client-side/site_files/webfonts/fa-solid-900.ttf +0 -0
  39. package/apps/client-side/site_files/webfonts/fa-solid-900.woff +0 -0
  40. package/apps/client-side/site_files/webfonts/fa-solid-900.woff2 +0 -0
  41. package/apps/ui-print/site_files/js/index.js +194 -191
  42. package/index.js +2 -2
  43. package/isite_files/html/browser.html +1 -1
  44. package/isite_files/html/installing.html +1 -1
  45. package/lib/collection.js +14 -7
  46. package/lib/fsm.js +389 -346
  47. package/lib/logs.js +1 -1
  48. package/lib/mongodb.js +9 -7
  49. package/lib/parser.js +495 -475
  50. package/lib/routing.js +61 -17
  51. package/lib/security.js +4 -4
  52. package/lib/session.js +8 -22
  53. package/lib/sessions.js +1 -1
  54. package/lib/storage.js +1 -1
  55. package/lib/temp.js +1 -1
  56. package/lib/ws.js +3 -0
  57. package/object-options/index.js +4 -4
  58. package/object-options/lib/fn.js +1 -1
  59. package/package.json +1 -1
package/lib/logs.js CHANGED
@@ -26,7 +26,7 @@ module.exports = function init(____0) {
26
26
 
27
27
  logs.fn = function (key, value) {
28
28
  if (key && value !== undefined) {
29
- value = ____0.copy(value);
29
+ value = value;
30
30
  for (let i = 0; i < logs.list.length; i++) {
31
31
  if (key === logs.list[i].key) {
32
32
  logs.list[i].value = value;
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
  {
@@ -125,14 +126,16 @@ module.exports = function init(____0) {
125
126
 
126
127
  _mongo.connections.push({
127
128
  name: name,
129
+ url : db_url,
128
130
  db: db,
129
131
  client: client,
130
132
  connected: !0,
131
133
  });
132
-
134
+ ____0.log('\n ( Connected DB : ' + db_name + ' ) : ' + db_url + '\n');
133
135
  callback(err, db);
134
136
  } else {
135
137
  err.message += ' , ' + db_url;
138
+ ____0.log('\n ( Connected DB Error: ' + err.message + ' ) \n');
136
139
  callback(err, null);
137
140
  }
138
141
  _mongo.connectDBBusy = !1;
@@ -284,7 +287,7 @@ module.exports = function init(____0) {
284
287
  };
285
288
 
286
289
  _mongo.insert = _mongo.insertMany = function (obj, callback) {
287
- if (obj.docs.length === 0) {
290
+ if (!obj.docs || obj.docs.length === 0) {
288
291
  callback({
289
292
  message: 'docs array length is 0',
290
293
  });
@@ -292,27 +295,26 @@ module.exports = function init(____0) {
292
295
  }
293
296
  _mongo.connectDB(obj.dbName, function (err, db) {
294
297
  if (!err) {
295
- if (obj.collectionName === undefined) {
298
+ if (!obj.collectionName) {
296
299
  obj.collectionName = ____0.options.mongodb.collection;
297
300
  }
298
301
  obj.docs.forEach((doc) => {
299
302
  doc = _mongo.handleDoc(doc);
300
303
  });
301
- db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs , obj.options , function (err, result) {
304
+ db.collection(____0.options.mongodb.prefix.collection + obj.collectionName).insertMany(obj.docs, obj.options, function (err, result) {
302
305
  if (!err) {
303
306
  callback(null, result);
304
-
305
307
  ____0.call('mongodb after insert many', {
306
308
  db: obj.dbName,
307
309
  collection: obj.collectionName,
308
310
  docs: obj.docs,
309
311
  });
310
312
  } else {
311
- callback(err);
313
+ console.log(err.message);
312
314
  }
313
315
  });
314
316
  } else {
315
- callback(err);
317
+ console.log(err.message);
316
318
  }
317
319
  });
318
320
  };