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 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('user_name', req.query.user_name);
526
- res.session('ip', req.ip);
527
- res.session('more', 'any data');
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('user_name'));
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: '/@language/change',
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 , .dropdown-content .dropdown-item:hover small{
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-all;
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: 4px;
140
- margin: 0px;
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
- visibility: collapse;
2
+ visibility: collapse;
3
3
  }
4
4
 
5
5
  .page-a4 {
6
- height: 297mm !important;
7
- padding: 2mm !important;
8
- margin: 0mm !important;
9
- background: white !important;
10
- color: #000 !important;
11
- page-break-before: always !important;
12
- page-break-after: always !important;
13
- page-break-inside: avoid !important;
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
- padding: 2mm;
18
- margin: 0mm;
43
+ padding: 2mm;
44
+ margin: 0mm;
19
45
  }
20
46
 
21
47
  body.a4 {
22
- background: white;
23
- color: #000;
48
+ background: white;
49
+ color: #000;
24
50
  }
25
51
  body.a4 {
26
- height: 297mm;
52
+ height: 297mm;
27
53
  }
28
- body.print-mode{
29
- padding: 0px !important;
30
- margin: 2mm !important;
54
+ body.print-mode {
55
+ padding: 0px !important;
56
+ margin: 2mm !important;
31
57
  }
32
58
  body.print-mode .hide {
33
- visibility: visible;
59
+ visibility: visible;
34
60
  }
35
61
  body.print-mode .not-print,
36
62
  body.print-mode .dont-print {
37
- display: none;
63
+ display: none;
38
64
  }
39
65
  body.print-mode .print-only {
40
- visibility: visible;
66
+ visibility: visible;
41
67
  }
42
68
  body.print-mode .table {
43
- table-layout: fixed;
44
- border-collapse: collapse;
45
- border: 1px solid black;
46
- font-size: 8pt;
47
- page-break-inside: avoid;
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
- min-width: 206mm !important;
51
- width: 206mm !important;
76
+ min-width: 206mm !important;
77
+ width: 206mm !important;
52
78
  }
53
79
  body.print-mode .table th {
54
- color: #000 !important;
55
- background: #fff !important;
56
- border-collapse: collapse;
80
+ color: #000 !important;
81
+ background: #fff !important;
82
+ border-collapse: collapse;
57
83
  }
58
84
  body.print-mode .table td {
59
- color: #000 !important;
60
- background: #fff !important;
61
- border-collapse: collapse;
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
- font-size: 8pt;
91
+ font-size: 8pt;
66
92
  }
67
93
  body.print-mode .small {
68
- font-size: 6pt;
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
- .print-break {
90
- page-break-after: always;
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
- .print-start {
94
- /* elements always start on the top of a new page. */
95
- page-break-before: always;
96
- }
115
+ .print-break {
116
+ page-break-after: always;
117
+ }
97
118
 
98
- .print-content {
99
- page-break-inside: avoid;
100
- }
119
+ .print-start {
120
+ /* elements always start on the top of a new page. */
121
+ page-break-before: always;
122
+ }
101
123
 
102
- h1,
103
- h2,
104
- h3,
105
- h4,
106
- h5 {
107
- page-break-after: avoid;
108
- }
124
+ .print-content {
125
+ page-break-inside: avoid;
126
+ }
109
127
 
110
- /* @page: first {
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
- @page {
120
- size: A4;
121
- }
145
+ @page {
146
+ size: A4;
147
+ }
122
148
 
123
- @page: right {
124
- @top-right {
125
- content: "";
149
+ @page: right {
150
+ @top-right {
151
+ content: '';
152
+ }
126
153
  }
127
- }
128
154
 
129
- @page: right {
130
- @bottom-right {
131
- content: "";
155
+ @page: right {
156
+ @bottom-right {
157
+ content: '';
158
+ }
132
159
  }
133
- }
134
160
 
135
- @page: left {
136
- @top-left {
137
- content: "";
161
+ @page: left {
162
+ @top-left {
163
+ content: '';
164
+ }
138
165
  }
139
- }
140
166
 
141
- @page: left {
142
- @bottom-left {
143
- content: "Page " counter(page) " of " counter(pages);
167
+ @page: left {
168
+ @bottom-left {
169
+ content: 'Page ' counter(page) ' of ' counter(pages);
170
+ }
144
171
  }
145
- }
146
172
 
147
- a {
148
- font-weight: bolder;
149
- text-decoration: none;
150
- }
173
+ a {
174
+ font-weight: bolder;
175
+ text-decoration: none;
176
+ }
151
177
 
152
- a[href^="http"]:after {
153
- content: " [ " attr(href) " ] ";
154
- }
178
+ a[href^='http']:after {
179
+ content: ' [ ' attr(href) ' ] ';
180
+ }
155
181
 
156
- a[href^="#"]:after {
157
- content: "";
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
- }