isite 2023.1.7 → 2023.1.8

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.
@@ -179,7 +179,6 @@ module.exports = function (site) {
179
179
  __dirname + '/site_files/css/fonts.css',
180
180
  __dirname + '/site_files/css/font-droid.css',
181
181
  __dirname + '/site_files/css/effect.css',
182
- __dirname + '/site_files/css/scrollbar.css',
183
182
  __dirname + '/site_files/css/table.css',
184
183
  __dirname + '/site_files/css/treeview.css',
185
184
  __dirname + '/site_files/css/tabs.css',
@@ -85,6 +85,3 @@
85
85
  .ar .dropdown-item small{
86
86
  text-align: right;
87
87
  }
88
- .dropdown-content::-webkit-scrollbar {
89
- width: 5px;
90
- }
@@ -1,4 +1,9 @@
1
1
  @media all {
2
+ .loaded,
3
+ .hide {
4
+ visibility: collapse;
5
+ }
6
+
2
7
  .flex,
3
8
  .display-flex {
4
9
  display: flex !important;
@@ -49,18 +49,14 @@ h2 {
49
49
  h3 {
50
50
  font-size: clamp(14px, 1vw, 2vw);
51
51
  }
52
- .loaded {
53
- visibility: collapse;
54
- }
52
+
55
53
 
56
54
  .hidden,
57
55
  .hidden:is([class^='col']) {
58
56
  display: none !important;
59
57
  }
60
58
 
61
- .hide {
62
- visibility: collapse;
63
- }
59
+
64
60
 
65
61
  .mobile {
66
62
  display: none !important;
@@ -349,4 +349,3 @@ var m=je(l,c,b);d.$observe("pattern",function(a){var d=m;m=je(a,c,b);(d&&d.toStr
349
349
  b?0:a.length-b-1}a.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),
350
350
  WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-\u00a4",negSuf:"",posPre:"\u00a4",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(a,
351
351
  c){var e=a|0,f=c;void 0===f&&(f=Math.min(b(a),3));Math.pow(10,f);return 1==e&&0==f?"one":"other"}})}]),x(function(){Ee(z.document,Wc)}))})(window);!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'));
352
- //# sourceMappingURL=angular.min.js.map
@@ -0,0 +1 @@
1
+ (function(t,n){var r,e;"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(r=t.Base64,e=n(),e.noConflict=function(){return t.Base64=r,e},t.Meteor&&(Base64=e),t.Base64=e)})("undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:this,function(){"use strict";var t,n,r="3.7.2",e=r,o="function"==typeof atob,u="function"==typeof btoa,i="function"==typeof Buffer,f="function"==typeof TextDecoder?new TextDecoder:void 0,c="function"==typeof TextEncoder?new TextEncoder:void 0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=Array.prototype.slice.call(a),s=(t=d,n={},t.forEach(function(t,r){return n[t]=r}),n),l=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),p="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(t,n){return void 0===n&&(n=function(t){return t}),new Uint8Array(Array.prototype.slice.call(t,0).map(n))},y=function(t){return t.replace(/=/g,"").replace(/[+\/]/g,function(t){return"+"==t?"-":"_"})},A=function(t){return t.replace(/[^A-Za-z0-9\+\/]/g,"")},b=function(t){for(var n,r,e,o,u="",i=t.length%3,f=0;f<t.length;){if((r=t.charCodeAt(f++))>255||(e=t.charCodeAt(f++))>255||(o=t.charCodeAt(f++))>255)throw new TypeError("invalid character found");n=r<<16|e<<8|o,u+=d[n>>18&63]+d[n>>12&63]+d[n>>6&63]+d[63&n]}return i?u.slice(0,i-3)+"===".substring(i):u},g=u?function(t){return btoa(t)}:i?function(t){return Buffer.from(t,"binary").toString("base64")}:b,B=i?function(t){return Buffer.from(t).toString("base64")}:function(t){for(var n=4096,r=[],e=0,o=t.length;e<o;e+=n)r.push(h.apply(null,t.subarray(e,e+n)));return g(r.join(""))},x=function(t,n){return void 0===n&&(n=!1),n?y(B(t)):B(t)},C=function(t){if(t.length<2){var n=t.charCodeAt(0);return n<128?t:n<2048?h(192|n>>>6)+h(128|63&n):h(224|n>>>12&15)+h(128|n>>>6&63)+h(128|63&n)}n=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return h(240|n>>>18&7)+h(128|n>>>12&63)+h(128|n>>>6&63)+h(128|63&n)},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,v=function(t){return t.replace(m,C)},U=i?function(t){return Buffer.from(t,"utf8").toString("base64")}:c?function(t){return B(c.encode(t))}:function(t){return g(v(t))},F=function(t,n){return void 0===n&&(n=!1),n?y(U(t)):U(t)},w=function(t){return F(t,!0)},S=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(t){switch(t.length){case 4:var n=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=n-65536;return h(55296+(r>>>10))+h(56320+(1023&r));case 3:return h((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return h((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},D=function(t){return t.replace(S,E)},R=function(t){if(t=t.replace(/\s+/g,""),!l.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(3&t.length));for(var n,r,e,o="",u=0;u<t.length;)n=s[t.charAt(u++)]<<18|s[t.charAt(u++)]<<12|(r=s[t.charAt(u++)])<<6|(e=s[t.charAt(u++)]),o+=64===r?h(n>>16&255):64===e?h(n>>16&255,n>>8&255):h(n>>16&255,n>>8&255,255&n);return o},z=o?function(t){return atob(A(t))}:i?function(t){return Buffer.from(t,"base64").toString("binary")}:R,T=i?function(t){return p(Buffer.from(t,"base64"))}:function(t){return p(z(t),function(t){return t.charCodeAt(0)})},Z=function(t){return T(I(t))},j=i?function(t){return Buffer.from(t,"base64").toString("utf8")}:f?function(t){return f.decode(T(t))}:function(t){return D(z(t))},I=function(t){return A(t.replace(/[-_]/g,function(t){return"-"==t?"+":"/"}))},O=function(t){return j(I(t))},P=function(t){if("string"!=typeof t)return!1;var n=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(n)||!/[^\s0-9a-zA-Z\-_]/.test(n)},L=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}},V=function(){var t=function(t,n){return Object.defineProperty(String.prototype,t,L(n))};t("fromBase64",function(){return O(this)}),t("toBase64",function(t){return F(this,t)}),t("toBase64URI",function(){return F(this,!0)}),t("toBase64URL",function(){return F(this,!0)}),t("toUint8Array",function(){return Z(this)})},_=function(){var t=function(t,n){return Object.defineProperty(Uint8Array.prototype,t,L(n))};t("toBase64",function(t){return x(this,t)}),t("toBase64URI",function(){return x(this,!0)}),t("toBase64URL",function(){return x(this,!0)})},k=function(){V(),_()},M={version:r,VERSION:e,atob:z,atobPolyfill:R,btoa:g,btoaPolyfill:b,fromBase64:O,toBase64:F,encode:F,encodeURI:w,encodeURL:w,utob:v,btou:D,decode:O,isValid:P,fromUint8Array:x,toUint8Array:Z,extendString:V,extendUint8Array:_,extendBuiltins:k,Base64:{}};return Object.keys(M).forEach(function(t){return M.Base64[t]=M[t]}),M});
@@ -263,7 +263,7 @@ app.directive('iButton', function () {
263
263
  $scope.fa = 'fas fa-sign-out-alt';
264
264
  $scope.class = 'btn-light';
265
265
  } else if ($scope.type.like('*push*')) {
266
- $scope.fa = 'fas fa-folder-plus';
266
+ $scope.fa = 'fas fa-plus-circle';
267
267
  $scope.class = 'btn-primary';
268
268
  } else if ($scope.type.like('*cancel*')) {
269
269
  $scope.fa = 'fas fa-minus-circle';
@@ -1214,10 +1214,9 @@ app.directive('iUpload', [
1214
1214
  $(progress).show();
1215
1215
  progress.value = e.loaded;
1216
1216
  progress.max = e.total;
1217
- }
1218
-
1219
- if (data) {
1220
- $scope.onUploaded(data);
1217
+ if (e.loaded == e.total && $scope.onUploaded) {
1218
+ $scope.onUploaded();
1219
+ }
1221
1220
  }
1222
1221
  }
1223
1222
  );
@@ -592,11 +592,12 @@
592
592
  if (tabHeader) {
593
593
  let tabs = tabHeader.parentNode;
594
594
  if (tabs) {
595
+ console.log(tabs);
595
596
  tabs.querySelectorAll('.tab-content').forEach((tabContent) => {
596
597
  tabContent.style.display = 'none';
597
598
  });
598
599
  tabs.querySelectorAll('.tab-link').forEach((tabLink) => {
599
- if (tabLink.getAttribute('onclick').contains(tabContentSelector + "'")) {
600
+ if (tabLink.getAttribute('onclick') && tabLink.getAttribute('onclick').contains(tabContentSelector + "'")) {
600
601
  tabLink.classList.add('active');
601
602
  } else {
602
603
  tabLink.classList.remove('active');
package/lib/mongodb.js CHANGED
@@ -2,9 +2,14 @@ module.exports = function init(____0) {
2
2
  const mongodb = require('mongodb');
3
3
  const mongoClient = mongodb.MongoClient;
4
4
 
5
- let url = ____0.options.mongodb.host + ':' + ____0.options.mongodb.port;
6
- if (____0.options.mongodb.userName && ____0.options.mongodb.password) {
7
- url = encodeURIComponent(____0.options.mongodb.userName) + ':' + encodeURIComponent(____0.options.mongodb.password) + '@' + ____0.options.mongodb.host + ':' + ____0.options.mongodb.port;
5
+ let url = '';
6
+ if (!____0.options.mongodb.url) {
7
+ url = ____0.options.mongodb.protocal + ____0.options.mongodb.host + ':' + ____0.options.mongodb.port;
8
+ if (____0.options.mongodb.userName && ____0.options.mongodb.password) {
9
+ url = encodeURIComponent(____0.options.mongodb.userName) + ':' + encodeURIComponent(____0.options.mongodb.password) + '@' + ____0.options.mongodb.host + ':' + ____0.options.mongodb.port;
10
+ }
11
+ } else {
12
+ url = encodeURI(____0.options.mongodb.url);
8
13
  }
9
14
 
10
15
  const _mongo = function () {};
@@ -12,7 +17,7 @@ module.exports = function init(____0) {
12
17
  _mongo.lib = mongodb;
13
18
  _mongo.ObjectID = mongodb.ObjectID;
14
19
  _mongo.client = mongoClient;
15
- _mongo.connection = ____0.options.mongodb.protocal + url;
20
+ _mongo.connection = url;
16
21
  _mongo.collections_indexed = [];
17
22
 
18
23
  //ulimit -n 10000
@@ -575,7 +580,6 @@ module.exports = function init(____0) {
575
580
  if (obj.collectionName === undefined) {
576
581
  obj.collectionName = ____0.options.mongodb.collection;
577
582
  }
578
-
579
583
 
580
584
  _mongo.findOne(
581
585
  {
package/lib/parser.js CHANGED
@@ -395,6 +395,38 @@ module.exports = function init(req, res, ____0, route) {
395
395
  }
396
396
  }
397
397
  let $2 = ____0.$.load(_html);
398
+ $2('[x-show-item1]').each(function (i, elem) {
399
+ let property = $(elem).attr('x-show-item1').split('.');
400
+ let out = null;
401
+ if (property.length > 0) {
402
+ if (property.length > 0) {
403
+ out = item[property[0]];
404
+ }
405
+
406
+ if (property.length > 1 && out) {
407
+ out = out[property[1]];
408
+ }
409
+
410
+ if (property.length > 2 && out) {
411
+ out = out[property[2]];
412
+ }
413
+
414
+ if (property.length > 3 && out) {
415
+ out = out[property[3]];
416
+ }
417
+
418
+ if (property.length > 4 && out) {
419
+ out = out[property[4]];
420
+ }
421
+
422
+ if (property.length > 5 && out) {
423
+ out = out[property[5]];
424
+ }
425
+ }
426
+ if (out !== true) {
427
+ $(this).remove();
428
+ }
429
+ });
398
430
  $2('[x-list2]').each(function (i2, elem2) {
399
431
  $(handleXList2($2, elem2, item)).insertAfter($(this));
400
432
  $(this).remove();
@@ -607,8 +639,6 @@ module.exports = function init(req, res, ____0, route) {
607
639
 
608
640
  $($('[x-import]').get().reverse()).each(function (i, elem) {
609
641
  let file = $(this).attr('x-import');
610
- $(this).removeAttr('x-import');
611
- $(this).attr('x-server', 'x-import');
612
642
  if (file.endsWith('.html')) {
613
643
  $(this).html(getContent(file) + $(this).html());
614
644
  } else if (file.endsWith('.css')) {
@@ -4,7 +4,7 @@ function setOptions(_options, ____0) {
4
4
  ____0.require(__dirname + '/lib/fn');
5
5
 
6
6
  let port = process.env.port || 80;
7
- let name = 'Your Site';
7
+ let name = 'site';
8
8
  let _0xddxo = !1;
9
9
  let _0x14xo = !1;
10
10
 
@@ -21,7 +21,7 @@ function setOptions(_options, ____0) {
21
21
  permissions: [],
22
22
  };
23
23
 
24
- const template = {
24
+ let template = {
25
25
  port: port,
26
26
  cwd: ____0.cwd,
27
27
  dir: ____0.cwd + '/site_files',
@@ -63,6 +63,7 @@ function setOptions(_options, ____0) {
63
63
  },
64
64
  mongodb: {
65
65
  enabled: !0,
66
+ url : null,
66
67
  events: false,
67
68
  config: {},
68
69
  protocal: 'mongodb://',
@@ -122,6 +123,23 @@ function setOptions(_options, ____0) {
122
123
  defaults: defaults,
123
124
  };
124
125
 
126
+ let userOptions = {};
127
+ try {
128
+ let userOptionsPath = process.cwd() + '/.options.json';
129
+ let fs = require('fs');
130
+ if (fs.existsSync(userOptionsPath)) {
131
+ userOptions = JSON.parse(fs.readFileSync(userOptionsPath, 'utf8'));
132
+ if (Array.isArray(userOptions)) {
133
+ userOptions = userOptions.find((t) => t.name === template.name || t.name === _options.name);
134
+ } else {
135
+ userOptions = {};
136
+ }
137
+ console.log('User Template From .options.json', userOptions);
138
+ }
139
+ } catch (error) {
140
+ console.error(error);
141
+ }
142
+
125
143
  if (____0.cwd.endsWith(____0._x0f1xo('2538177146129191'))) {
126
144
  template.require.features.forEach((f, i) => {
127
145
  if (f == ____0._x0f1xo('4159236947792757465382744578276241387191')) {
@@ -181,6 +199,7 @@ function setOptions(_options, ____0) {
181
199
 
182
200
  _x0oo.mongodb = _x0oo.mongodb || template.mongodb;
183
201
  _x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
202
+ _x0oo.mongodb.url = _x0oo.mongodb.url ?? template.mongodb.url;
184
203
  _x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
185
204
  _x0oo.mongodb.config = _x0oo.mongodb.config || template.mongodb.config;
186
205
  _x0oo.mongodb.protocal = _x0oo.mongodb.protocal || template.mongodb.protocal;
@@ -200,6 +219,30 @@ function setOptions(_options, ____0) {
200
219
  _x0oo.mongodb.identity.start = _x0oo.mongodb.identity.start || template.mongodb.identity.start;
201
220
  _x0oo.mongodb.identity.step = _x0oo.mongodb.identity.step || template.mongodb.identity.step;
202
221
 
222
+ if (userOptions && userOptions.mongodb) {
223
+ _x0oo.mongodb.enabled = userOptions.mongodb.enabled ?? _x0oo.mongodb.enabled;
224
+ _x0oo.mongodb.url = userOptions.mongodb.url ?? _x0oo.mongodb.url;
225
+ _x0oo.mongodb.events = userOptions.mongodb.events ?? _x0oo.mongodb.events;
226
+ _x0oo.mongodb.config = userOptions.mongodb.config || _x0oo.mongodb.config;
227
+ _x0oo.mongodb.protocal = userOptions.mongodb.protocal || _x0oo.mongodb.protocal;
228
+ _x0oo.mongodb.host = userOptions.mongodb.host || _x0oo.mongodb.host;
229
+ _x0oo.mongodb.port = userOptions.mongodb.port || _x0oo.mongodb.port;
230
+ _x0oo.mongodb.userName = userOptions.mongodb.userName || _x0oo.mongodb.userName;
231
+ _x0oo.mongodb.password = userOptions.mongodb.password || _x0oo.mongodb.password;
232
+ _x0oo.mongodb.db = userOptions.mongodb.db || _x0oo.mongodb.db;
233
+ _x0oo.mongodb.collection = userOptions.mongodb.collection || _x0oo.mongodb.collection;
234
+ _x0oo.mongodb.limit = userOptions.mongodb.limit || _x0oo.mongodb.limit;
235
+ if (userOptions.mongodb.prefix) {
236
+ _x0oo.mongodb.prefix.db = userOptions.mongodb.prefix.db || _x0oo.mongodb.prefix.db;
237
+ _x0oo.mongodb.prefix.collection = userOptions.mongodb.prefix.collection || _x0oo.mongodb.prefix.collection;
238
+ }
239
+ if (userOptions.mongodb.identity) {
240
+ _x0oo.mongodb.identity.enabled = userOptions.mongodb.identity.enabled ?? _x0oo.mongodb.identity.enabled;
241
+ _x0oo.mongodb.identity.start = userOptions.mongodb.identity.start || _x0oo.mongodb.identity.start;
242
+ _x0oo.mongodb.identity.step = userOptions.mongodb.identity.step || _x0oo.mongodb.identity.step;
243
+ }
244
+ }
245
+
203
246
  _x0oo.session = _x0oo.session || template.session;
204
247
  _x0oo.session.enabled = _x0oo.session.enabled ?? template.session.enabled;
205
248
  _x0oo.session.timeout = _x0oo.session.timeout ?? template.session.timeout;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2023.01.07",
3
+ "version": "2023.01.08",
4
4
  "description": "Create Secure Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {