isite 2022.8.2 → 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.
- package/apps/client-side/app.js +27 -17
- package/apps/client-side/site_files/css/bootstrap5-addon.css +76 -1
- package/apps/client-side/site_files/css/dropdown.css +22 -4
- package/apps/client-side/site_files/css/effect.css +283 -283
- package/apps/client-side/site_files/css/images.css +40 -35
- package/apps/client-side/site_files/css/table.css +3 -3
- package/apps/client-side/site_files/html/directive/i-date.html +19 -0
- package/apps/client-side/site_files/html/directive/i-file.html +19 -0
- package/apps/client-side/site_files/html/directive/i-image.html +7 -0
- package/apps/client-side/site_files/html/directive/i-list.html +20 -0
- package/apps/client-side/site_files/images/no.jpg +0 -0
- package/apps/client-side/site_files/js/bootstrap-5-directive.js +302 -966
- package/apps/client-side/site_files/js/directive-core.js +7 -8
- package/apps/client-side/site_files/js/directive.js +2 -2
- package/apps/client-side/site_files/js/site.js +18 -2
- package/index.js +280 -278
- package/isite_files/images/no.jpg +0 -0
- package/lib/cookie.js +3 -5
- package/lib/email.js +108 -0
- package/lib/integrated.js +10 -26
- package/lib/routing.js +2 -0
- package/lib/security.js +1109 -1081
- package/object-options/index.js +18 -0
- package/object-options/lib/fn.js +6 -3
- package/package.json +3 -2
- package/apps/client-side/site_files/html/sub/i-date2.content.html +0 -64
- package/apps/client-side/site_files/html/sub/i-list.content.html +0 -31
- package/apps/client-side/site_files/html/sub/i-list2.content.html +0 -22
package/object-options/index.js
CHANGED
|
@@ -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;
|
package/object-options/lib/fn.js
CHANGED
|
@@ -347,7 +347,10 @@ exports = module.exports = function init(____0) {
|
|
|
347
347
|
return newData;
|
|
348
348
|
};
|
|
349
349
|
|
|
350
|
-
____0.
|
|
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.
|
|
4
|
-
"description": "Create
|
|
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,64 +0,0 @@
|
|
|
1
|
-
<div class="row i-date2">
|
|
2
|
-
<div class="control">
|
|
3
|
-
<label> {{label}} </label>
|
|
4
|
-
<div class="row">
|
|
5
|
-
<div class="col1 center" ng-click="setDay()">
|
|
6
|
-
<i class="fa fa-calendar-day"></i>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="col2 day">
|
|
9
|
-
<div class="dropdown">
|
|
10
|
-
<div class="control">
|
|
11
|
-
<input class="full-width text dropdown-text {{css}}" ng-disabled="disabled" v="{{v}}" readonly ng-model="model.day_name" />
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
|
-
<div class="dropdown-content">
|
|
15
|
-
<div class="row padding" >
|
|
16
|
-
<input class="full-width search" ng-model="d_search" />
|
|
17
|
-
<br />
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="row padding dropdown-item" ng-repeat="d in days1| filter : d_search">
|
|
21
|
-
<p class="center" ng-click="updateDate({day : d})">{{d.name}}</p>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="col5 month">
|
|
27
|
-
<div class="dropdown">
|
|
28
|
-
<div class="control">
|
|
29
|
-
<input class="full-width text dropdown-text {{css}}" ng-disabled="disabled" v="{{v}}" readonly ng-model="model.month_name" />
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div class="dropdown-content">
|
|
33
|
-
<div class="row padding" >
|
|
34
|
-
<input class="full-width search" ng-model="m_search" />
|
|
35
|
-
<br />
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
<div class="row padding dropdown-item" ng-repeat="m in monthes1 | filter : m_search">
|
|
39
|
-
<p class="center" ng-click="updateDate({month : m})">{{m.name}}</p>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div class="col4 year">
|
|
45
|
-
<div class="dropdown">
|
|
46
|
-
<div class="control">
|
|
47
|
-
<input class="full-width text dropdown-text {{css}}" ng-disabled="disabled" v="{{v}}" readonly ng-model="model.year_name" />
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div class="dropdown-content">
|
|
51
|
-
<div class="row padding">
|
|
52
|
-
<input class="full-width search" ng-model="y_search" />
|
|
53
|
-
<br />
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="row padding dropdown-item" ng-repeat="y in years1 | filter : y_search">
|
|
57
|
-
<p class="center" ng-click="updateDate({year : y})">{{y.name}}</p>
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
@@ -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>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<div class="dropdown i-list" >
|
|
2
|
-
<div class="control">
|
|
3
|
-
<label> {{label}} </label>
|
|
4
|
-
<input ng-focus="focus()" class="full-width text dropdown-text form-control {{css}}" ng-disabled="disabled" v="{{v}}" readonly ng-model="ngModel.$display" />
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
<div class="dropdown-content">
|
|
8
|
-
<div class="row padding" ng-show="showSearch">
|
|
9
|
-
<input class="full-width search form-control" ng-model="ngSearch" />
|
|
10
|
-
<br />
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<div class="row padding dropdown-item center" ng-repeat="item in items | filter:{ $display : ngSearch}" ng-click="updateModel(item)">
|
|
14
|
-
<p>{{getValue(item)}}</p>
|
|
15
|
-
<small> {{getValue2(item)}} </small>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="row center padding pointer">
|
|
19
|
-
<a class="btn red" ng-click="updateModel({})"> <i class="fa fa-trash"></i> Clear </a>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|