isite 2022.8.4 → 2022.8.5

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.
@@ -56,6 +56,15 @@ function setOptions(_options, ____0) {
56
56
  key: null,
57
57
  cert: null,
58
58
  },
59
+ mail :{
60
+ enabled : !0,
61
+ type : 'free',
62
+ host : '',
63
+ port : 587,
64
+ secure : false,
65
+ username : '',
66
+ password : ''
67
+ },
59
68
  mongodb: {
60
69
  enabled: !0,
61
70
  events: false,
@@ -154,6 +163,15 @@ function setOptions(_options, ____0) {
154
163
  _x0oo.https.ports.push(_x0oo.https.port);
155
164
  }
156
165
 
166
+ _x0oo.mail = _x0oo.mail || template.mail;
167
+ _x0oo.mail.enabled = _x0oo.mail.enabled ?? template.mail.enabled;
168
+ _x0oo.mail.type = _x0oo.mail.type || template.mail.type;
169
+ _x0oo.mail.host = _x0oo.mail.host || template.mail.host;
170
+ _x0oo.mail.port = _x0oo.mail.port || template.mail.port;
171
+ _x0oo.mail.secure = _x0oo.mail.secure || template.mail.secure;
172
+ _x0oo.mail.username = _x0oo.mail.username || template.mail.username;
173
+ _x0oo.mail.password = _x0oo.mail.password || template.mail.password;
174
+
157
175
  _x0oo.mongodb = _x0oo.mongodb || template.mongodb;
158
176
  _x0oo.mongodb.enabled = _x0oo.mongodb.enabled ?? template.mongodb.enabled;
159
177
  _x0oo.mongodb.events = _x0oo.mongodb.events ?? template.mongodb.events;
@@ -347,7 +347,10 @@ exports = module.exports = function init(____0) {
347
347
  return newData;
348
348
  };
349
349
 
350
- ____0.ul = (data) => {
350
+ ____0.hide = (data) => {
351
+ return fn.to123(data);
352
+ };
353
+ ____0.ul = ____0.show = (data) => {
351
354
  return fn.fromJson(fn.from123(data));
352
355
  };
353
356
 
@@ -409,9 +412,9 @@ exports = module.exports = function init(____0) {
409
412
  ____0.canRequire = function (name) {
410
413
  try {
411
414
  require(process.cwd() + '/node_modules/' + name);
412
- return true
415
+ return true;
413
416
  } catch (e) {
414
- console.log(e)
417
+ console.log(e);
415
418
  return false;
416
419
  }
417
420
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "isite",
3
- "version": "2022.08.04",
4
- "description": "Create Enterprise Multi-Language Web Site [Fast and Easy] ",
3
+ "version": "2022.08.05",
4
+ "description": "Create Secure Multi-Language Web Site [Fast and Easy] ",
5
5
  "main": "index.js",
6
6
  "repository": {
7
7
  "type": "git",
@@ -43,6 +43,7 @@
43
43
  "mongodb": "^4.2.2",
44
44
  "mv": "^2.1.1",
45
45
  "node-fetch": "^2.6.1",
46
+ "nodemailer": "^6.7.8",
46
47
  "utf8": "^3.0.0",
47
48
  "ws": "^8.2.3",
48
49
  "xlsx": "^0.17.4"
@@ -1,31 +0,0 @@
1
- <div class="control">
2
- <label> {{label}} </label>
3
- <input class="full-width text {{css}}" ng-disabled="disabled" v="{{v}}" readonly />
4
- <input type="hidden" ng-model="ngModel.$display" />
5
- <div class="popup">
6
- <div ng-show="showSearch" class="row search-box">
7
- <div class="col1">
8
- <div class="pointer icon-close" ng-click="hide()">
9
- <i class="fa fa-times center"></i>
10
- </div>
11
- </div>
12
- <div class="col10">
13
- <input ng-disabled="disabled" class="full-width search" ng-model="ngSearch" />
14
- </div>
15
- <div class="col1">
16
- <div class="center pointer icon-search" ng-click="ngAdd()">
17
- <i class="fa {{fa_add}} center"></i>
18
- </div>
19
- </div>
20
- </div>
21
- <item ng-repeat="item in items | filter:{ $display : ngSearch}" ng-click="updateModel(item)"> {{getValue(item)}} <small class="left"> {{getValue2(item)}} </small> </item>
22
- <br />
23
- <div class="row">
24
- <div class="col4"></div>
25
- <div class="col4 center bg-red padding pointer" ng-click="updateModel({})">
26
- <i class="fa fa-trash white" aria-hidden="true"></i>
27
- </div>
28
- <div class="col4"></div>
29
- </div>
30
- </div>
31
- </div>