@reactful/create 0.0.51

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. package/README.md +8 -0
  2. package/bun.lockb +0 -0
  3. package/common/package.json +22 -0
  4. package/common/tsconfig.json +24 -0
  5. package/index.js +77 -0
  6. package/package.json +16 -0
  7. package/templates/empty/index.html +12 -0
  8. package/templates/empty/index.ts +5 -0
  9. package/templates/minimal/index.html +12 -0
  10. package/templates/minimal/index.ts +5 -0
  11. package/templates/sampling/apis/auth/db.ts +15 -0
  12. package/templates/sampling/apis/auth/index.ts +28 -0
  13. package/templates/sampling/apis/hello.ts +3 -0
  14. package/templates/sampling/apis/quotes.ts +16 -0
  15. package/templates/sampling/apis/sub/index.ts +3 -0
  16. package/templates/sampling/apis/sub/sub.ts +3 -0
  17. package/templates/sampling/assets/SLIDEME.png +0 -0
  18. package/templates/sampling/assets/default.css +91 -0
  19. package/templates/sampling/assets/favicon.ico +0 -0
  20. package/templates/sampling/assets/icon.png +0 -0
  21. package/templates/sampling/assets/icon.svg +6 -0
  22. package/templates/sampling/assets/logo-144.png +0 -0
  23. package/templates/sampling/assets/logo-168.png +0 -0
  24. package/templates/sampling/assets/logo-192.png +0 -0
  25. package/templates/sampling/assets/logo-48.png +0 -0
  26. package/templates/sampling/assets/logo-512.png +0 -0
  27. package/templates/sampling/assets/logo-72.png +0 -0
  28. package/templates/sampling/assets/logo-96.png +0 -0
  29. package/templates/sampling/assets/manifest.json +57 -0
  30. package/templates/sampling/assets/markdown.css +274 -0
  31. package/templates/sampling/assets/robots.txt +1 -0
  32. package/templates/sampling/assets/system.css +7 -0
  33. package/templates/sampling/builds/about.html +27 -0
  34. package/templates/sampling/builds/bundle.js +13116 -0
  35. package/templates/sampling/builds/bundle.ts +25 -0
  36. package/templates/sampling/builds/client.ts +1 -0
  37. package/templates/sampling/builds/clock.html +30 -0
  38. package/templates/sampling/builds/counter.html +30 -0
  39. package/templates/sampling/builds/forms/form.html +48 -0
  40. package/templates/sampling/builds/forms/index.html +48 -0
  41. package/templates/sampling/builds/hello.html +60 -0
  42. package/templates/sampling/builds/htmlx.html +24 -0
  43. package/templates/sampling/builds/htmlx.tsx +13 -0
  44. package/templates/sampling/builds/index.html +98 -0
  45. package/templates/sampling/builds/login.html +45 -0
  46. package/templates/sampling/builds/profile/index.html +54 -0
  47. package/templates/sampling/builds/quotes.html +26 -0
  48. package/templates/sampling/builds/shared.js +76 -0
  49. package/templates/sampling/builds/system.html +27 -0
  50. package/templates/sampling/components/header.tsx +7 -0
  51. package/templates/sampling/directives/index.ts +1 -0
  52. package/templates/sampling/directives/shown.ts +6 -0
  53. package/templates/sampling/index.html +20 -0
  54. package/templates/sampling/index.ts +19 -0
  55. package/templates/sampling/routes/about.html +13 -0
  56. package/templates/sampling/routes/clock.tsx +35 -0
  57. package/templates/sampling/routes/counter.tsx +21 -0
  58. package/templates/sampling/routes/forms/form.css +19 -0
  59. package/templates/sampling/routes/forms/form.tsx +51 -0
  60. package/templates/sampling/routes/forms/index.tsx +3 -0
  61. package/templates/sampling/routes/hello.tsx +62 -0
  62. package/templates/sampling/routes/htmlx.html +15 -0
  63. package/templates/sampling/routes/index.md +15 -0
  64. package/templates/sampling/routes/login.tsx +36 -0
  65. package/templates/sampling/routes/profile/detail.css +13 -0
  66. package/templates/sampling/routes/profile/detail.tsx +48 -0
  67. package/templates/sampling/routes/profile/index.tsx +14 -0
  68. package/templates/sampling/routes/profile/profile.css +8 -0
  69. package/templates/sampling/routes/profile/tester.tsx +11 -0
  70. package/templates/sampling/routes/quotes.tsx +25 -0
  71. package/templates/sampling/routes/system.tsx +23 -0
  72. package/templates/sampling/tests/access.spec.ts +29 -0
  73. package/templates/sampling/tests/counter.spec.ts +19 -0
  74. package/templates/sampling/tests/form.spec.ts +51 -0
  75. package/templates/sampling/tests/hello.spec.ts +25 -0
  76. package/templates/sampling/tests/path.test.ts +20 -0
  77. package/testings/apis/auth/db.ts +15 -0
  78. package/testings/apis/auth/index.ts +28 -0
  79. package/testings/apis/hello.ts +3 -0
  80. package/testings/apis/quotes.ts +16 -0
  81. package/testings/apis/sub/index.ts +3 -0
  82. package/testings/apis/sub/sub.ts +3 -0
  83. package/testings/assets/SLIDEME.png +0 -0
  84. package/testings/assets/default.css +91 -0
  85. package/testings/assets/favicon.ico +0 -0
  86. package/testings/assets/icon.png +0 -0
  87. package/testings/assets/icon.svg +6 -0
  88. package/testings/assets/logo-144.png +0 -0
  89. package/testings/assets/logo-168.png +0 -0
  90. package/testings/assets/logo-192.png +0 -0
  91. package/testings/assets/logo-48.png +0 -0
  92. package/testings/assets/logo-512.png +0 -0
  93. package/testings/assets/logo-72.png +0 -0
  94. package/testings/assets/logo-96.png +0 -0
  95. package/testings/assets/manifest.json +57 -0
  96. package/testings/assets/markdown.css +274 -0
  97. package/testings/assets/robots.txt +1 -0
  98. package/testings/assets/system.css +7 -0
  99. package/testings/builds/forms/form.html +48 -0
  100. package/testings/builds/forms/index.html +48 -0
  101. package/testings/builds/profile/index.html +54 -0
  102. package/testings/bun.lockb +0 -0
  103. package/testings/components/header.tsx +7 -0
  104. package/testings/directives/index.ts +1 -0
  105. package/testings/directives/shown.ts +6 -0
  106. package/testings/index.html +20 -0
  107. package/testings/index.ts +19 -0
  108. package/testings/package.json +22 -0
  109. package/testings/routes/about.html +13 -0
  110. package/testings/routes/clock.tsx +35 -0
  111. package/testings/routes/counter.tsx +21 -0
  112. package/testings/routes/forms/form.css +19 -0
  113. package/testings/routes/forms/form.tsx +51 -0
  114. package/testings/routes/forms/index.tsx +3 -0
  115. package/testings/routes/hello.tsx +62 -0
  116. package/testings/routes/htmlx.html +15 -0
  117. package/testings/routes/index.md +15 -0
  118. package/testings/routes/login.tsx +36 -0
  119. package/testings/routes/profile/detail.css +13 -0
  120. package/testings/routes/profile/detail.tsx +48 -0
  121. package/testings/routes/profile/index.tsx +14 -0
  122. package/testings/routes/profile/profile.css +8 -0
  123. package/testings/routes/profile/tester.tsx +11 -0
  124. package/testings/routes/quotes.tsx +25 -0
  125. package/testings/routes/system.tsx +23 -0
  126. package/testings/tests/access.spec.ts +29 -0
  127. package/testings/tests/counter.spec.ts +19 -0
  128. package/testings/tests/form.spec.ts +51 -0
  129. package/testings/tests/hello.spec.ts +25 -0
  130. package/testings/tests/path.test.ts +20 -0
  131. package/testings/tsconfig.json +24 -0
  132. package/tsconfig.json +22 -0
@@ -0,0 +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
+
274
+ .vscode-dark h1,.vscode-dark h2,.vscode-dark hr,.vscode-dark td { border-color: rgba(255, 255, 255, 0.18);}
@@ -0,0 +1 @@
1
+ User-agent: *
@@ -0,0 +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;
7
+ }
@@ -0,0 +1,27 @@
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/markdown.css">
9
+ <link rel="stylesheet" href="/assets/default.css">
10
+ <link rel="manifest" href="/assets/manifest.json">
11
+ <title>About</title>
12
+ <meta name='title' content='About' />
13
+ <meta name='description' content='About page' />
14
+ <script src='/mnt/b/Repositorios/reactful/experiments/builds/shared.js'></script>
15
+ <script type='module' src='/mnt/b/Repositorios/reactful/experiments/builds/bundle.js'></script></head>
16
+ <body>
17
+ <div id='root'>
18
+ <h1>About</h1>
19
+ <p>
20
+ Lorem ipsum dolor sit amet consectetur adipisicing elit.
21
+ Adipisci id eaque saepe ab numquam, nisi minus atque obcaecati,
22
+ dignissimos facere accusamus nihil ipsam repudiandae praesentium,
23
+ quia animi perspiciatis architecto fuga?
24
+ </p>
25
+ </div>
26
+ </body>
27
+ </html>