isite 2021.12.7 → 2022.1.10
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/README.md +6 -5
- package/apps/client-side/site_files/css/dropdown.css +6 -4
- package/apps/client-side/site_files/css/form.css +3 -4
- package/apps/client-side/site_files/css/print.css +121 -95
- package/apps/client-side/site_files/css/table.css +1 -7
- package/apps/client-side/site_files/css/theme.css +147 -146
- package/apps/client-side/site_files/css/theme_dark.css +2 -0
- package/apps/client-side/site_files/css/theme_paper.css +5 -3
- package/apps/client-side/site_files/js/custom.js +3 -3
- package/apps/client-side/site_files/js/site.js +0 -2
- package/apps/security/site_files/js/navbar.js +1 -1
- package/index.js +277 -293
- package/isite_files/js/custom.js +3 -3
- package/lib/collection.js +14 -18
- package/lib/collectionFile.js +16 -0
- package/lib/dashboard.js +28 -28
- package/lib/fsm.js +15 -1
- package/lib/mongodb.js +87 -82
- package/lib/parser.js +5 -5
- package/lib/routing.js +41 -15
- package/lib/security.js +1081 -1045
- package/lib/session.js +13 -78
- package/lib/sessions.js +22 -37
- package/lib/strings.js +1 -1
- package/object-options/index.js +3 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -522,14 +522,15 @@ site.onGET('/testGetCookie', function (req, res) {
|
|
|
522
522
|
|
|
523
523
|
```js
|
|
524
524
|
site.onGET('/testSetSession', function (req, res) {
|
|
525
|
-
req.session
|
|
526
|
-
res.session
|
|
527
|
-
res.session
|
|
525
|
+
req.session.user_name = req.query.user_name;
|
|
526
|
+
res.session.ip = req.ip;
|
|
527
|
+
res.session.more = 'any data';
|
|
528
|
+
site.saveSession(res.session);
|
|
528
529
|
res.end('Session Set ok !! ');
|
|
529
530
|
}); //example : /testSetSession?user_name=absunstar
|
|
530
531
|
|
|
531
532
|
site.onGET('/testGetSession', function (req, res) {
|
|
532
|
-
res.end('User Name from session : ' + req.session
|
|
533
|
+
res.end('User Name from session : ' + req.session.user_name);
|
|
533
534
|
}); //example : /testGetSession
|
|
534
535
|
```
|
|
535
536
|
|
|
@@ -1116,7 +1117,7 @@ site.onGET('/files/file1.zip', (req, res) => {
|
|
|
1116
1117
|
$scope.changeLang = function (lang) {
|
|
1117
1118
|
$http({
|
|
1118
1119
|
method: 'POST',
|
|
1119
|
-
url: '
|
|
1120
|
+
url: '/x-language/change',
|
|
1120
1121
|
data: { name: lang },
|
|
1121
1122
|
}).then(function (response) {
|
|
1122
1123
|
if (response.data.done) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
.dropdown {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: inline-block;
|
|
5
|
+
width: 100%;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
/* Dropdown Content (Hidden by Default) */
|
|
@@ -34,7 +35,8 @@
|
|
|
34
35
|
background-color: var(--theme-color);
|
|
35
36
|
color: #fff;
|
|
36
37
|
}
|
|
37
|
-
.dropdown-content .dropdown-item:hover p
|
|
38
|
+
.dropdown-content .dropdown-item:hover p,
|
|
39
|
+
.dropdown-content .dropdown-item:hover small {
|
|
38
40
|
color: #fff;
|
|
39
41
|
}
|
|
40
42
|
/* Show the dropdown menu on hover */
|
|
@@ -50,12 +52,12 @@
|
|
|
50
52
|
cursor: pointer;
|
|
51
53
|
background: var(--dropdown-background);
|
|
52
54
|
}
|
|
53
|
-
.dropdown-item p{
|
|
55
|
+
.dropdown-item p {
|
|
54
56
|
color: var(--dropdown-color);
|
|
55
57
|
font-size: var(--dropdown-font-size);
|
|
56
58
|
background: transparent;
|
|
57
59
|
}
|
|
58
|
-
.dropdown-item small{
|
|
60
|
+
.dropdown-item small {
|
|
59
61
|
color: var(--dropdown-color2);
|
|
60
62
|
font-size: var(--dropdown-font-size2);
|
|
61
|
-
}
|
|
63
|
+
}
|
|
@@ -21,7 +21,7 @@ form p {
|
|
|
21
21
|
color: var(--form-color);
|
|
22
22
|
}
|
|
23
23
|
p {
|
|
24
|
-
word-break: break-
|
|
24
|
+
word-break: break-word;
|
|
25
25
|
}
|
|
26
26
|
label {
|
|
27
27
|
font-weight: var(--label-font-weight);
|
|
@@ -136,9 +136,8 @@ textarea:focus {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
fieldset {
|
|
139
|
-
padding:
|
|
140
|
-
margin:
|
|
141
|
-
margin-bottom: 10px;
|
|
139
|
+
padding: var(--fieldset-padding);
|
|
140
|
+
margin: var(--fieldset-margin);
|
|
142
141
|
background: var(--fieldset-background);
|
|
143
142
|
border: var(--fieldset-border);
|
|
144
143
|
}
|
|
@@ -1,113 +1,139 @@
|
|
|
1
1
|
.print-only {
|
|
2
|
-
|
|
2
|
+
visibility: collapse;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
5
|
.page-a4 {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
display: inline-block;
|
|
7
|
+
height: 297mm !important;
|
|
8
|
+
width: 210mm !important;
|
|
9
|
+
padding: 2mm !important;
|
|
10
|
+
margin: 0mm !important;
|
|
11
|
+
background: white !important;
|
|
12
|
+
color: #000 !important;
|
|
13
|
+
page-break-before: always !important;
|
|
14
|
+
page-break-after: always !important;
|
|
15
|
+
page-break-inside: avoid !important;
|
|
16
|
+
}
|
|
17
|
+
.width-15-mm {
|
|
18
|
+
min-width: 15mm !important;
|
|
19
|
+
width: 15mm !important;
|
|
20
|
+
white-space: normal;
|
|
21
|
+
max-width: 15mm !important;
|
|
22
|
+
}
|
|
23
|
+
.width-30-mm {
|
|
24
|
+
min-width: 30mm !important;
|
|
25
|
+
width: 30mm !important;
|
|
26
|
+
white-space: normal;
|
|
27
|
+
max-width: 30mm !important;
|
|
28
|
+
}
|
|
29
|
+
.width-60-mm {
|
|
30
|
+
min-width: 60mm !important;
|
|
31
|
+
width: 60mm !important;
|
|
32
|
+
white-space: normal;
|
|
33
|
+
max-width: 60mm !important;
|
|
34
|
+
}
|
|
35
|
+
.width-90-mm {
|
|
36
|
+
min-width: 90mm !important;
|
|
37
|
+
width: 90mm !important;
|
|
38
|
+
white-space: normal;
|
|
39
|
+
max-width: 90mm !important;
|
|
14
40
|
}
|
|
15
41
|
|
|
16
42
|
.page-width-a4 {
|
|
17
|
-
|
|
18
|
-
|
|
43
|
+
padding: 2mm;
|
|
44
|
+
margin: 0mm;
|
|
19
45
|
}
|
|
20
46
|
|
|
21
47
|
body.a4 {
|
|
22
|
-
|
|
23
|
-
|
|
48
|
+
background: white;
|
|
49
|
+
color: #000;
|
|
24
50
|
}
|
|
25
51
|
body.a4 {
|
|
26
|
-
|
|
52
|
+
height: 297mm;
|
|
27
53
|
}
|
|
28
|
-
body.print-mode{
|
|
29
|
-
|
|
30
|
-
|
|
54
|
+
body.print-mode {
|
|
55
|
+
padding: 0px !important;
|
|
56
|
+
margin: 2mm !important;
|
|
31
57
|
}
|
|
32
58
|
body.print-mode .hide {
|
|
33
|
-
|
|
59
|
+
visibility: visible;
|
|
34
60
|
}
|
|
35
61
|
body.print-mode .not-print,
|
|
36
62
|
body.print-mode .dont-print {
|
|
37
|
-
|
|
63
|
+
display: none;
|
|
38
64
|
}
|
|
39
65
|
body.print-mode .print-only {
|
|
40
|
-
|
|
66
|
+
visibility: visible;
|
|
41
67
|
}
|
|
42
68
|
body.print-mode .table {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
69
|
+
table-layout: fixed;
|
|
70
|
+
border-collapse: collapse;
|
|
71
|
+
border: 1px solid black;
|
|
72
|
+
font-size: 8pt;
|
|
73
|
+
page-break-inside: avoid;
|
|
48
74
|
}
|
|
49
75
|
body.print-mode .table.wide {
|
|
50
|
-
|
|
51
|
-
|
|
76
|
+
min-width: 206mm !important;
|
|
77
|
+
width: 206mm !important;
|
|
52
78
|
}
|
|
53
79
|
body.print-mode .table th {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
80
|
+
color: #000 !important;
|
|
81
|
+
background: #fff !important;
|
|
82
|
+
border-collapse: collapse;
|
|
57
83
|
}
|
|
58
84
|
body.print-mode .table td {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
85
|
+
color: #000 !important;
|
|
86
|
+
background: #fff !important;
|
|
87
|
+
border-collapse: collapse;
|
|
62
88
|
}
|
|
63
89
|
body.print-mode input,
|
|
64
90
|
body.print-mode textarea {
|
|
65
|
-
|
|
91
|
+
font-size: 8pt;
|
|
66
92
|
}
|
|
67
93
|
body.print-mode .small {
|
|
68
|
-
|
|
94
|
+
font-size: 6pt;
|
|
69
95
|
}
|
|
70
96
|
|
|
71
97
|
.page {
|
|
72
|
-
page-break-before: always;
|
|
73
|
-
page-break-after: always;
|
|
74
|
-
page-break-inside: avoid !important;
|
|
75
|
-
}
|
|
76
|
-
@media print {
|
|
77
|
-
:root {
|
|
78
|
-
--legend-color: #000;
|
|
79
|
-
--legend-text-shadow: none;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.page {
|
|
83
|
-
/* this section always occupies it's own page or pages. */
|
|
84
98
|
page-break-before: always;
|
|
85
99
|
page-break-after: always;
|
|
86
100
|
page-break-inside: avoid !important;
|
|
87
|
-
|
|
101
|
+
}
|
|
102
|
+
@media print {
|
|
103
|
+
:root {
|
|
104
|
+
--legend-color: #000;
|
|
105
|
+
--legend-text-shadow: none;
|
|
106
|
+
}
|
|
88
107
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
108
|
+
.page {
|
|
109
|
+
/* this section always occupies it's own page or pages. */
|
|
110
|
+
page-break-before: always;
|
|
111
|
+
page-break-after: always;
|
|
112
|
+
page-break-inside: avoid !important;
|
|
113
|
+
}
|
|
92
114
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
115
|
+
.print-break {
|
|
116
|
+
page-break-after: always;
|
|
117
|
+
}
|
|
97
118
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
119
|
+
.print-start {
|
|
120
|
+
/* elements always start on the top of a new page. */
|
|
121
|
+
page-break-before: always;
|
|
122
|
+
}
|
|
101
123
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
h4,
|
|
106
|
-
h5 {
|
|
107
|
-
page-break-after: avoid;
|
|
108
|
-
}
|
|
124
|
+
.print-content {
|
|
125
|
+
page-break-inside: avoid;
|
|
126
|
+
}
|
|
109
127
|
|
|
110
|
-
|
|
128
|
+
h1,
|
|
129
|
+
h2,
|
|
130
|
+
h3,
|
|
131
|
+
h4,
|
|
132
|
+
h5 {
|
|
133
|
+
page-break-after: avoid;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* @page: first {
|
|
111
137
|
margin: 0;
|
|
112
138
|
}
|
|
113
139
|
@page: blank {
|
|
@@ -116,44 +142,44 @@ body.print-mode .small {
|
|
|
116
142
|
}
|
|
117
143
|
} */
|
|
118
144
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
145
|
+
@page {
|
|
146
|
+
size: A4;
|
|
147
|
+
}
|
|
122
148
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
149
|
+
@page: right {
|
|
150
|
+
@top-right {
|
|
151
|
+
content: '';
|
|
152
|
+
}
|
|
126
153
|
}
|
|
127
|
-
}
|
|
128
154
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
155
|
+
@page: right {
|
|
156
|
+
@bottom-right {
|
|
157
|
+
content: '';
|
|
158
|
+
}
|
|
132
159
|
}
|
|
133
|
-
}
|
|
134
160
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
161
|
+
@page: left {
|
|
162
|
+
@top-left {
|
|
163
|
+
content: '';
|
|
164
|
+
}
|
|
138
165
|
}
|
|
139
|
-
}
|
|
140
166
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
167
|
+
@page: left {
|
|
168
|
+
@bottom-left {
|
|
169
|
+
content: 'Page ' counter(page) ' of ' counter(pages);
|
|
170
|
+
}
|
|
144
171
|
}
|
|
145
|
-
}
|
|
146
172
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
173
|
+
a {
|
|
174
|
+
font-weight: bolder;
|
|
175
|
+
text-decoration: none;
|
|
176
|
+
}
|
|
151
177
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
178
|
+
a[href^='http']:after {
|
|
179
|
+
content: ' [ ' attr(href) ' ] ';
|
|
180
|
+
}
|
|
155
181
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
182
|
+
a[href^='#']:after {
|
|
183
|
+
content: '';
|
|
184
|
+
}
|
|
159
185
|
}
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
padding: 5px;
|
|
43
43
|
text-align: center;
|
|
44
44
|
font-weight: bold;
|
|
45
|
+
white-space: nowrap;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
.table.center {
|
|
@@ -74,10 +75,3 @@
|
|
|
74
75
|
border: none !important;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
@media print {
|
|
78
|
-
|
|
79
|
-
table.details {
|
|
80
|
-
font-size: 85%;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
}
|