@reactful/create 1.2.23 → 1.2.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/commons/package.json +4 -5
  2. package/package.json +2 -2
  3. package/templates/minimal/builds/about.html +30 -0
  4. package/templates/minimal/builds/bundle.js +34981 -0
  5. package/templates/minimal/builds/bundle.ts +20 -0
  6. package/templates/minimal/builds/clock.html +30 -0
  7. package/templates/minimal/builds/counter.html +37 -0
  8. package/templates/minimal/builds/forms/form.html +48 -0
  9. package/templates/minimal/builds/forms/index.html +48 -0
  10. package/templates/minimal/builds/hello.html +62 -0
  11. package/templates/minimal/builds/htmlx.html +27 -0
  12. package/templates/minimal/builds/htmlx.tsx +13 -0
  13. package/templates/minimal/builds/index.html +98 -11
  14. package/templates/minimal/builds/login.html +48 -0
  15. package/templates/minimal/builds/profile/index.html +55 -0
  16. package/templates/minimal/builds/quotes.html +27 -0
  17. package/templates/minimal/builds/shared.js +76 -0
  18. package/templates/minimal/builds/system.html +28 -0
  19. package/templates/minimal/components/index.ts +1 -2
  20. package/templates/minimal/components/label.tsx +7 -0
  21. package/templates/minimal/index.html +12 -11
  22. package/templates/minimal/index.ts +2 -2
  23. package/templates/minimal/routes/hello.tsx +6 -0
  24. package/templates/minimal/routes/index.tsx +4 -7
  25. package/templates/sampling/apis/auth/db.ts +14 -14
  26. package/templates/sampling/apis/auth/index.ts +27 -27
  27. package/templates/sampling/apis/hello.ts +2 -2
  28. package/templates/sampling/apis/quotes.ts +15 -15
  29. package/templates/sampling/apis/sub/index.ts +2 -2
  30. package/templates/sampling/apis/sub/sub.ts +2 -2
  31. package/templates/sampling/assets/bootstrap-icons.css +4 -4
  32. package/templates/sampling/assets/default.css +93 -93
  33. package/templates/sampling/assets/icon.svg +6 -6
  34. package/templates/sampling/assets/manifest.json +56 -56
  35. package/templates/sampling/assets/markdown.css +273 -273
  36. package/templates/sampling/assets/robots.txt +1 -1
  37. package/templates/sampling/assets/system.css +6 -6
  38. package/templates/sampling/builds/about.html +30 -0
  39. package/templates/sampling/builds/bundle.js +34981 -0
  40. package/templates/sampling/builds/bundle.ts +20 -0
  41. package/templates/sampling/builds/clock.html +30 -0
  42. package/templates/sampling/builds/counter.html +37 -0
  43. package/templates/sampling/builds/forms/form.html +48 -0
  44. package/templates/sampling/builds/forms/index.html +48 -0
  45. package/templates/sampling/builds/hello.html +62 -0
  46. package/templates/sampling/builds/htmlx.html +27 -0
  47. package/templates/sampling/builds/htmlx.tsx +13 -0
  48. package/templates/sampling/builds/index.html +98 -98
  49. package/templates/sampling/builds/login.html +48 -0
  50. package/templates/sampling/builds/profile/index.html +55 -0
  51. package/templates/sampling/builds/quotes.html +27 -0
  52. package/templates/sampling/builds/shared.js +76 -0
  53. package/templates/sampling/builds/system.html +28 -0
  54. package/templates/sampling/components/header.tsx +6 -6
  55. package/templates/sampling/components/hello.tsx +8 -8
  56. package/templates/sampling/components/icon.tsx +10 -10
  57. package/templates/sampling/components/index.ts +2 -2
  58. package/templates/sampling/index.html +20 -20
  59. package/templates/sampling/index.ts +18 -18
  60. package/templates/sampling/routes/about.html +12 -12
  61. package/templates/sampling/routes/clock.tsx +32 -36
  62. package/templates/sampling/routes/counter.tsx +16 -7
  63. package/templates/sampling/routes/forms/form.tsx +49 -50
  64. package/templates/sampling/routes/hello.tsx +57 -58
  65. package/templates/sampling/routes/htmlx.html +14 -14
  66. package/templates/sampling/routes/index.md +14 -14
  67. package/templates/sampling/routes/login.tsx +34 -35
  68. package/templates/sampling/routes/profile/detail.css +12 -12
  69. package/templates/sampling/routes/profile/detail.tsx +46 -47
  70. package/templates/sampling/routes/profile/index.tsx +13 -13
  71. package/templates/sampling/routes/profile/profile.css +8 -8
  72. package/templates/sampling/routes/profile/tester.tsx +10 -10
  73. package/templates/sampling/routes/quotes.tsx +1 -1
  74. package/templates/sampling/routes/system.tsx +1 -2
  75. package/templates/sampling/tests/access.spec.ts +29 -29
  76. package/templates/sampling/tests/counter.spec.ts +18 -18
  77. package/templates/sampling/tests/form.spec.ts +50 -50
  78. package/templates/sampling/tests/hello.spec.ts +24 -24
  79. package/templates/sampling/tests/path.test.ts +19 -19
  80. package/templates/minimal/components/hello.tsx +0 -9
  81. package/templates/minimal/components/icon.tsx +0 -11
@@ -1,274 +1,274 @@
1
- /*---------------------------------------------------------------------------------------------
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *--------------------------------------------------------------------------------------------*/
5
- @import url('https://fonts.cdnfonts.com/css/agave');
6
- @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400&display=swap');
7
- @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400&family=Quicksand:wght@300;400;500;600;700&display=swap');
8
-
9
-
10
-
11
- :root {
12
- --base-font: 'fira-sans';
13
- --code-font: 'agave';
14
- }
15
-
16
- @media (prefers-color-scheme: dark) {
17
- /* :root { filter: invert(80%) contrast(150%); }
18
- input { filter: invert(10%); } */
19
- }
20
-
21
- label > input { margin-left:10px; }
22
-
23
- input {
24
- font-family: var(--code-font);
25
- padding: 5px 7px;
26
- color: black;
27
- }
28
-
29
- html, body {
30
- font-family: var(--base-font, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", system-ui, "Ubuntu", "Droid Sans", sans-serif);
31
- font-size: var(--markdown-font-size, 14px);
32
- line-height: var(--markdown-line-height, 22px);
33
- word-wrap: break-word;
34
- }
35
-
36
- body {
37
- padding: 10px;
38
- background: whitesmoke;
39
- zoom: 1.1;
40
- }
41
-
42
-
43
- /* Reset margin top for elements */
44
- h1,h2,h3,h4,h5,h6,p,ol,ul,pre {
45
- margin-top: 0;
46
- }
47
-
48
- h1,h2,h3,h4,h5,h6 {
49
- font-weight: 600;
50
- margin-top: 24px;
51
- margin-bottom: 16px;
52
- line-height: 1.25;
53
- }
54
-
55
- #code-csp-warning {
56
- position: fixed;
57
- top: 0;
58
- right: 0;
59
- color: white;
60
- margin: 16px;
61
- text-align: center;
62
- font-size: 12px;
63
- font-family: sans-serif;
64
- background-color: #444444;
65
- cursor: pointer;
66
- padding: 6px;
67
- box-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
68
- }
69
-
70
- #code-csp-warning:hover {
71
- text-decoration: none;
72
- background-color: #007acc;
73
- box-shadow: 2px 2px 2px rgba(0, 0, 0, .25);
74
- }
75
-
76
- body.scrollBeyondLastLine {
77
- margin-bottom: calc(100vh - 22px);
78
- }
79
-
80
- body.showEditorSelection .code-line {
81
- position: relative;
82
- }
83
-
84
- body.showEditorSelection :not(tr, ul, ol).code-active-line:before,
85
- body.showEditorSelection :not(tr, ul, ol).code-line:hover:before {
86
- content: "";
87
- display: block;
88
- position: absolute;
89
- top: 0;
90
- left: -12px;
91
- height: 100%;
92
- }
93
-
94
- .vscode-high-contrast.showEditorSelection :not(tr, ul, ol).code-line .code-line:hover:before {
95
- border-left: none;
96
- }
97
-
98
- body.showEditorSelection li.code-active-line:before,
99
- body.showEditorSelection li.code-line:hover:before {
100
- left: -30px;
101
- }
102
-
103
- .vscode-light.showEditorSelection .code-active-line:before {
104
- border-left: 3px solid rgba(0, 0, 0, 0.15);
105
- }
106
-
107
- .vscode-light.showEditorSelection .code-line:hover:before {
108
- border-left: 3px solid rgba(0, 0, 0, 0.40);
109
- }
110
-
111
- .vscode-dark.showEditorSelection .code-active-line:before {
112
- border-left: 3px solid rgba(255, 255, 255, 0.4);
113
- }
114
-
115
- .vscode-dark.showEditorSelection .code-line:hover:before {
116
- border-left: 3px solid rgba(255, 255, 255, 0.60);
117
- }
118
-
119
- .vscode-high-contrast.showEditorSelection .code-active-line:before {
120
- border-left: 3px solid rgba(255, 160, 0, 0.7);
121
- }
122
-
123
- .vscode-high-contrast.showEditorSelection .code-line:hover:before {
124
- border-left: 3px solid rgba(255, 160, 0, 1);
125
- }
126
-
127
- /* Prevent `sub` and `sup` elements from affecting line height */
128
- sub, sup { line-height: 0; }
129
-
130
- ul ul:first-child,
131
- ul ol:first-child,
132
- ol ul:first-child,
133
- ol ol:first-child {
134
- margin-bottom: 0;
135
- }
136
-
137
- img, video {
138
- max-width: 100%;
139
- max-height: 100%;
140
- }
141
-
142
- a { text-decoration: none; }
143
-
144
- a:hover { text-decoration: underline; }
145
-
146
- a:focus,
147
- input:focus,
148
- select:focus,
149
- textarea:focus {
150
- outline: 1px solid -webkit-focus-ring-color;
151
- outline-offset: -1px;
152
- }
153
-
154
- p {
155
- margin-bottom: 16px;
156
- }
157
-
158
- li p {
159
- margin-bottom: 0.7em;
160
- }
161
-
162
- ul,
163
- ol {
164
- margin-bottom: 0.7em;
165
- }
166
-
167
- hr {
168
- border: 0;
169
- height: 1px;
170
- border-bottom: 1px solid;
171
- }
172
-
173
- h1 {
174
- font-size: 2em;
175
- margin-top: 0;
176
- padding-bottom: 0.3em;
177
- border-bottom-width: 1px;
178
- border-bottom-style: solid;
179
- }
180
-
181
- h2 {
182
- font-size: 1.5em;
183
- padding-bottom: 0.3em;
184
- border-bottom-width: 1px;
185
- border-bottom-style: solid;
186
- }
187
-
188
- h3 {
189
- font-size: 1.25em;
190
- }
191
-
192
- h4 {
193
- font-size: 1em;
194
- }
195
-
196
- h5 {
197
- font-size: 0.875em;
198
- }
199
-
200
- h6 {
201
- font-size: 0.85em;
202
- }
203
-
204
- table {
205
- border-collapse: collapse;
206
- margin-bottom: 0.7em;
207
- }
208
-
209
- th {
210
- text-align: left;
211
- border-bottom: 1px solid;
212
- }
213
-
214
- th,
215
- td {
216
- padding: 5px 10px;
217
- }
218
-
219
- table>tbody>tr+tr>td {
220
- border-top: 1px solid;
221
- }
222
-
223
- blockquote {
224
- margin: 0;
225
- padding: 2px 16px 0 10px;
226
- border-left-width: 5px;
227
- border-left-style: solid;
228
- border-radius: 2px;
229
- }
230
-
231
- code {
232
- font-family: var(--code-font, "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace);
233
- font-size: 1em;
234
- line-height: 1.357em;
235
- }
236
-
237
- body.wordWrap pre {
238
- white-space: pre-wrap;
239
- }
240
-
241
- pre:not(.hljs),
242
- pre.hljs code>div {
243
- padding: 16px;
244
- border-radius: 3px;
245
- overflow: auto;
246
- }
247
-
248
- pre code {
249
- color: var(--vscode-editor-foreground);
250
- tab-size: 4;
251
- }
252
-
253
- /** Theming */
254
-
255
- pre {
256
- background-color: var(--vscode-textCodeBlock-background);
257
- border: 1px solid var(--vscode-widget-border);
258
- }
259
-
260
- .vscode-high-contrast h1 {
261
- border-color: rgb(0, 0, 0);
262
- }
263
-
264
- .vscode-light th {
265
- border-color: rgba(0, 0, 0, 0.69);
266
- }
267
-
268
- .vscode-dark th {
269
- border-color: rgba(255, 255, 255, 0.69);
270
- }
271
-
272
- .vscode-light h1,.vscode-light h2,.vscode-light hr,.vscode-light td { border-color: rgba(0, 0, 0, 0.18);}
273
-
1
+ /*---------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ *--------------------------------------------------------------------------------------------*/
5
+ @import url('https://fonts.cdnfonts.com/css/agave');
6
+ @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400&display=swap');
7
+ @import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@100;200;300;400&family=Quicksand:wght@300;400;500;600;700&display=swap');
8
+
9
+
10
+
11
+ :root {
12
+ --base-font: 'fira-sans';
13
+ --code-font: 'agave';
14
+ }
15
+
16
+ @media (prefers-color-scheme: dark) {
17
+ /* :root { filter: invert(80%) contrast(150%); }
18
+ input { filter: invert(10%); } */
19
+ }
20
+
21
+ label > input { margin-left:10px; }
22
+
23
+ input {
24
+ font-family: var(--code-font);
25
+ padding: 5px 7px;
26
+ color: black;
27
+ }
28
+
29
+ html, body {
30
+ font-family: var(--base-font, -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", system-ui, "Ubuntu", "Droid Sans", sans-serif);
31
+ font-size: var(--markdown-font-size, 14px);
32
+ line-height: var(--markdown-line-height, 22px);
33
+ word-wrap: break-word;
34
+ }
35
+
36
+ body {
37
+ padding: 10px;
38
+ background: whitesmoke;
39
+ zoom: 1.1;
40
+ }
41
+
42
+
43
+ /* Reset margin top for elements */
44
+ h1,h2,h3,h4,h5,h6,p,ol,ul,pre {
45
+ margin-top: 0;
46
+ }
47
+
48
+ h1,h2,h3,h4,h5,h6 {
49
+ font-weight: 600;
50
+ margin-top: 24px;
51
+ margin-bottom: 16px;
52
+ line-height: 1.25;
53
+ }
54
+
55
+ #code-csp-warning {
56
+ position: fixed;
57
+ top: 0;
58
+ right: 0;
59
+ color: white;
60
+ margin: 16px;
61
+ text-align: center;
62
+ font-size: 12px;
63
+ font-family: sans-serif;
64
+ background-color: #444444;
65
+ cursor: pointer;
66
+ padding: 6px;
67
+ box-shadow: 1px 1px 1px rgba(0, 0, 0, .25);
68
+ }
69
+
70
+ #code-csp-warning:hover {
71
+ text-decoration: none;
72
+ background-color: #007acc;
73
+ box-shadow: 2px 2px 2px rgba(0, 0, 0, .25);
74
+ }
75
+
76
+ body.scrollBeyondLastLine {
77
+ margin-bottom: calc(100vh - 22px);
78
+ }
79
+
80
+ body.showEditorSelection .code-line {
81
+ position: relative;
82
+ }
83
+
84
+ body.showEditorSelection :not(tr, ul, ol).code-active-line:before,
85
+ body.showEditorSelection :not(tr, ul, ol).code-line:hover:before {
86
+ content: "";
87
+ display: block;
88
+ position: absolute;
89
+ top: 0;
90
+ left: -12px;
91
+ height: 100%;
92
+ }
93
+
94
+ .vscode-high-contrast.showEditorSelection :not(tr, ul, ol).code-line .code-line:hover:before {
95
+ border-left: none;
96
+ }
97
+
98
+ body.showEditorSelection li.code-active-line:before,
99
+ body.showEditorSelection li.code-line:hover:before {
100
+ left: -30px;
101
+ }
102
+
103
+ .vscode-light.showEditorSelection .code-active-line:before {
104
+ border-left: 3px solid rgba(0, 0, 0, 0.15);
105
+ }
106
+
107
+ .vscode-light.showEditorSelection .code-line:hover:before {
108
+ border-left: 3px solid rgba(0, 0, 0, 0.40);
109
+ }
110
+
111
+ .vscode-dark.showEditorSelection .code-active-line:before {
112
+ border-left: 3px solid rgba(255, 255, 255, 0.4);
113
+ }
114
+
115
+ .vscode-dark.showEditorSelection .code-line:hover:before {
116
+ border-left: 3px solid rgba(255, 255, 255, 0.60);
117
+ }
118
+
119
+ .vscode-high-contrast.showEditorSelection .code-active-line:before {
120
+ border-left: 3px solid rgba(255, 160, 0, 0.7);
121
+ }
122
+
123
+ .vscode-high-contrast.showEditorSelection .code-line:hover:before {
124
+ border-left: 3px solid rgba(255, 160, 0, 1);
125
+ }
126
+
127
+ /* Prevent `sub` and `sup` elements from affecting line height */
128
+ sub, sup { line-height: 0; }
129
+
130
+ ul ul:first-child,
131
+ ul ol:first-child,
132
+ ol ul:first-child,
133
+ ol ol:first-child {
134
+ margin-bottom: 0;
135
+ }
136
+
137
+ img, video {
138
+ max-width: 100%;
139
+ max-height: 100%;
140
+ }
141
+
142
+ a { text-decoration: none; }
143
+
144
+ a:hover { text-decoration: underline; }
145
+
146
+ a:focus,
147
+ input:focus,
148
+ select:focus,
149
+ textarea:focus {
150
+ outline: 1px solid -webkit-focus-ring-color;
151
+ outline-offset: -1px;
152
+ }
153
+
154
+ p {
155
+ margin-bottom: 16px;
156
+ }
157
+
158
+ li p {
159
+ margin-bottom: 0.7em;
160
+ }
161
+
162
+ ul,
163
+ ol {
164
+ margin-bottom: 0.7em;
165
+ }
166
+
167
+ hr {
168
+ border: 0;
169
+ height: 1px;
170
+ border-bottom: 1px solid;
171
+ }
172
+
173
+ h1 {
174
+ font-size: 2em;
175
+ margin-top: 0;
176
+ padding-bottom: 0.3em;
177
+ border-bottom-width: 1px;
178
+ border-bottom-style: solid;
179
+ }
180
+
181
+ h2 {
182
+ font-size: 1.5em;
183
+ padding-bottom: 0.3em;
184
+ border-bottom-width: 1px;
185
+ border-bottom-style: solid;
186
+ }
187
+
188
+ h3 {
189
+ font-size: 1.25em;
190
+ }
191
+
192
+ h4 {
193
+ font-size: 1em;
194
+ }
195
+
196
+ h5 {
197
+ font-size: 0.875em;
198
+ }
199
+
200
+ h6 {
201
+ font-size: 0.85em;
202
+ }
203
+
204
+ table {
205
+ border-collapse: collapse;
206
+ margin-bottom: 0.7em;
207
+ }
208
+
209
+ th {
210
+ text-align: left;
211
+ border-bottom: 1px solid;
212
+ }
213
+
214
+ th,
215
+ td {
216
+ padding: 5px 10px;
217
+ }
218
+
219
+ table>tbody>tr+tr>td {
220
+ border-top: 1px solid;
221
+ }
222
+
223
+ blockquote {
224
+ margin: 0;
225
+ padding: 2px 16px 0 10px;
226
+ border-left-width: 5px;
227
+ border-left-style: solid;
228
+ border-radius: 2px;
229
+ }
230
+
231
+ code {
232
+ font-family: var(--code-font, "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace);
233
+ font-size: 1em;
234
+ line-height: 1.357em;
235
+ }
236
+
237
+ body.wordWrap pre {
238
+ white-space: pre-wrap;
239
+ }
240
+
241
+ pre:not(.hljs),
242
+ pre.hljs code>div {
243
+ padding: 16px;
244
+ border-radius: 3px;
245
+ overflow: auto;
246
+ }
247
+
248
+ pre code {
249
+ color: var(--vscode-editor-foreground);
250
+ tab-size: 4;
251
+ }
252
+
253
+ /** Theming */
254
+
255
+ pre {
256
+ background-color: var(--vscode-textCodeBlock-background);
257
+ border: 1px solid var(--vscode-widget-border);
258
+ }
259
+
260
+ .vscode-high-contrast h1 {
261
+ border-color: rgb(0, 0, 0);
262
+ }
263
+
264
+ .vscode-light th {
265
+ border-color: rgba(0, 0, 0, 0.69);
266
+ }
267
+
268
+ .vscode-dark th {
269
+ border-color: rgba(255, 255, 255, 0.69);
270
+ }
271
+
272
+ .vscode-light h1,.vscode-light h2,.vscode-light hr,.vscode-light td { border-color: rgba(0, 0, 0, 0.18);}
273
+
274
274
  .vscode-dark h1,.vscode-dark h2,.vscode-dark hr,.vscode-dark td { border-color: rgba(255, 255, 255, 0.18);}
@@ -1 +1 @@
1
- User-agent: *
1
+ User-agent: *
@@ -1,7 +1,7 @@
1
- h2 {
2
- color:green;
3
- font-weight: bolder;
4
- border-bottom: solid 3px dimgray;
5
- font-family: 'Bebas Neue', quicksand, sans-serif !important;
6
- font-size: 50px !important;
1
+ h2 {
2
+ color:green;
3
+ font-weight: bolder;
4
+ border-bottom: solid 3px dimgray;
5
+ font-family: 'Bebas Neue', quicksand, sans-serif !important;
6
+ font-size: 50px !important;
7
7
  }
@@ -0,0 +1,30 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta name="description" content="Home page">
7
+ <meta name="theme-color" content="#333">
8
+ <link rel="stylesheet" href="/assets/default.css">
9
+ <link rel="stylesheet" href="/assets/markdown.css">
10
+ <link rel="stylesheet" href="/assets/bootstrap-icons.css">
11
+ <link rel="manifest" href="/assets/manifest.json">
12
+ <title>Welcome</title>
13
+ <meta name='viewport' content='width=device-width, initial-scale=1.0' />
14
+ <meta name='description' content='Home page' />
15
+ <meta name='theme-color' content='#333' />
16
+ <meta name='title' content='Welcome' />
17
+ <script src='/mnt/b/Repositorios/reactful/prototype/builds/shared.js'></script>
18
+ <script type='module' src='/mnt/b/Repositorios/reactful/prototype/builds/bundle.js'></script></head>
19
+ <body>
20
+ <div id='root'>
21
+ <h1>About</h1>
22
+ <p>
23
+ Lorem ipsum dolor sit amet consectetur adipisicing elit.
24
+ Adipisci id eaque saepe ab numquam, nisi minus atque obcaecati,
25
+ dignissimos facere accusamus nihil ipsam repudiandae praesentium,
26
+ quia animi perspiciatis architecto fuga?
27
+ </p>
28
+ </div>
29
+ </body>
30
+ </html>