ether-code 0.3.7 → 0.3.8
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/cli/ether.js +26 -24
- package/package.json +1 -1
package/cli/ether.js
CHANGED
|
@@ -6,7 +6,7 @@ const http = require('http')
|
|
|
6
6
|
const { EtherCompiler } = require('./compiler')
|
|
7
7
|
const { Watcher } = require('./watcher')
|
|
8
8
|
|
|
9
|
-
const VERSION = '0.3.
|
|
9
|
+
const VERSION = '0.3.8'
|
|
10
10
|
|
|
11
11
|
const COLORS = {
|
|
12
12
|
reset: '\x1b[0m',
|
|
@@ -310,8 +310,7 @@ body {
|
|
|
310
310
|
align-items: stretch;
|
|
311
311
|
justify-content: center;
|
|
312
312
|
gap: 1.5rem;
|
|
313
|
-
|
|
314
|
-
max-width: 1000px;
|
|
313
|
+
max-width: 900px;
|
|
315
314
|
margin: 0 auto;
|
|
316
315
|
}
|
|
317
316
|
|
|
@@ -320,29 +319,29 @@ body {
|
|
|
320
319
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
321
320
|
border-radius: 1rem;
|
|
322
321
|
overflow: hidden;
|
|
323
|
-
min-width: 320px;
|
|
324
322
|
flex: 1;
|
|
323
|
+
max-width: 400px;
|
|
325
324
|
}
|
|
326
325
|
|
|
327
326
|
.code-header {
|
|
328
327
|
background: rgba(99, 102, 241, 0.15);
|
|
329
|
-
padding: 0.
|
|
328
|
+
padding: 0.75rem 1rem;
|
|
330
329
|
font-weight: 600;
|
|
331
|
-
font-size: 0.
|
|
330
|
+
font-size: 0.85rem;
|
|
332
331
|
color: var(--color-accent);
|
|
333
332
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
334
333
|
}
|
|
335
334
|
|
|
336
335
|
.code-block pre {
|
|
337
|
-
padding: 1.
|
|
336
|
+
padding: 1.25rem;
|
|
338
337
|
margin: 0;
|
|
339
338
|
overflow-x: auto;
|
|
340
339
|
}
|
|
341
340
|
|
|
342
341
|
.code-block code {
|
|
343
342
|
font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
|
|
344
|
-
font-size: 0.
|
|
345
|
-
line-height: 1.
|
|
343
|
+
font-size: 0.8rem;
|
|
344
|
+
line-height: 1.6;
|
|
346
345
|
color: var(--color-text-muted);
|
|
347
346
|
white-space: pre;
|
|
348
347
|
display: block;
|
|
@@ -351,7 +350,7 @@ body {
|
|
|
351
350
|
.code-arrow {
|
|
352
351
|
display: flex;
|
|
353
352
|
align-items: center;
|
|
354
|
-
font-size:
|
|
353
|
+
font-size: 1.5rem;
|
|
355
354
|
color: var(--color-primary);
|
|
356
355
|
padding: 0 0.5rem;
|
|
357
356
|
}
|
|
@@ -386,17 +385,19 @@ body {
|
|
|
386
385
|
display: none;
|
|
387
386
|
}
|
|
388
387
|
|
|
389
|
-
.code-arrow {
|
|
390
|
-
transform: rotate(90deg);
|
|
391
|
-
padding: 1rem 0;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
388
|
.code-comparison {
|
|
395
389
|
flex-direction: column;
|
|
390
|
+
align-items: center;
|
|
396
391
|
}
|
|
397
392
|
|
|
398
393
|
.code-block {
|
|
399
|
-
|
|
394
|
+
max-width: 100%;
|
|
395
|
+
width: 100%;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.code-arrow {
|
|
399
|
+
transform: rotate(90deg);
|
|
400
|
+
padding: 1rem 0;
|
|
400
401
|
}
|
|
401
402
|
}
|
|
402
403
|
`
|
|
@@ -687,10 +688,9 @@ document
|
|
|
687
688
|
pre
|
|
688
689
|
code classe: "ether-code"
|
|
689
690
|
"document"
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
691
|
+
" corps"
|
|
692
|
+
" titre1 Bonjour"
|
|
693
|
+
" paragraphe Le monde"
|
|
694
694
|
div classe: "code-arrow"
|
|
695
695
|
"→"
|
|
696
696
|
div classe: "code-block"
|
|
@@ -699,9 +699,11 @@ document
|
|
|
699
699
|
pre
|
|
700
700
|
code classe: "html-code"
|
|
701
701
|
"<html>"
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
702
|
+
" <body>"
|
|
703
|
+
" <h1>Bonjour</h1>"
|
|
704
|
+
" <p>Le monde</p>"
|
|
705
|
+
" </body>"
|
|
706
|
+
"</html>"
|
|
705
707
|
|
|
706
708
|
pied classe: "footer"
|
|
707
709
|
paragraphe
|
|
@@ -946,4 +948,4 @@ function main() {
|
|
|
946
948
|
console.log('Tapez "ether help" pour voir les commandes disponibles')
|
|
947
949
|
}
|
|
948
950
|
|
|
949
|
-
main()
|
|
951
|
+
main()
|