From 1830d57b4c458d52a3e3392fb0d73f202576786a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 19 Dec 2018 18:03:13 -0500 Subject: [PATCH] update some examples --- site/content/examples/7guis-circles/App.html | 148 +++++++++--------- site/content/examples/7guis-counter/App.html | 4 +- site/content/examples/7guis-crud/App.html | 140 +++++++---------- .../examples/7guis-flight-booker/App.html | 94 +++++------ .../examples/7guis-temperature/App.html | 28 ++-- site/content/examples/7guis-timer/App.html | 80 +++++----- site/content/examples/await-block/App.html | 32 ++-- site/content/examples/bar-chart/App.html | 129 ++++++++------- .../binding-input-checkbox-group/App.html | 6 +- .../examples/binding-input-checkbox/App.html | 6 +- .../examples/binding-input-numeric/App.html | 4 +- .../examples/binding-input-radio/App.html | 8 +- .../examples/binding-input-text/App.html | 2 +- .../examples/binding-media-elements/App.html | 106 ++++++------- .../examples/binding-textarea/App.html | 22 ++- site/content/examples/each-blocks/App.html | 2 +- site/content/examples/hacker-news/App.html | 72 ++++----- .../content/examples/hacker-news/Comment.html | 6 +- site/content/examples/hacker-news/Item.html | 36 ++--- site/content/examples/hacker-news/List.html | 55 +++---- .../content/examples/hacker-news/Summary.html | 28 ++-- site/content/examples/immutable/App.html | 62 ++++---- .../examples/immutable/ImmutableTodo.html | 28 ++-- .../examples/immutable/MutableTodo.html | 25 +-- site/content/examples/line-chart/App.html | 144 +++++++---------- .../content/examples/modal-with-slot/App.html | 26 ++- .../examples/modal-with-slot/Modal.html | 10 +- .../examples/nested-components/App.html | 12 +- site/content/examples/parallax/App.html | 20 +-- site/content/examples/scatterplot/App.html | 31 ++-- .../examples/scatterplot/Scatterplot.html | 121 +++++++------- site/content/examples/scoped-styles/App.html | 2 +- .../content/examples/self-references/App.html | 2 +- site/content/examples/svg-clock/App.html | 53 +++---- .../examples/transitions-custom/App.html | 56 +++---- .../examples/transitions-fade/App.html | 18 +-- .../content/examples/transitions-fly/App.html | 18 +-- .../examples/transitions-in-out/App.html | 18 +-- 38 files changed, 767 insertions(+), 887 deletions(-) diff --git a/site/content/examples/7guis-circles/App.html b/site/content/examples/7guis-circles/App.html index 554231d00e..c1fa2ef9d6 100644 --- a/site/content/examples/7guis-circles/App.html +++ b/site/content/examples/7guis-circles/App.html @@ -1,3 +1,70 @@ + +
- - + +
- + {#each circles as circle} {/each} @@ -23,7 +90,7 @@ radius of the selected circle. {#if adjusting}

adjust diameter of circle at {selected.cx}, {selected.cy}

- +
{/if} @@ -58,73 +125,4 @@ radius of the selected circle. input[type='range'] { width: 100%; } - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/7guis-counter/App.html b/site/content/examples/7guis-counter/App.html index 90cd49056b..385a3c9749 100644 --- a/site/content/examples/7guis-counter/App.html +++ b/site/content/examples/7guis-counter/App.html @@ -1,3 +1,3 @@ - - \ No newline at end of file + + \ No newline at end of file diff --git a/site/content/examples/7guis-crud/App.html b/site/content/examples/7guis-crud/App.html index 185c39e814..d1e49cccc1 100644 --- a/site/content/examples/7guis-crud/App.html +++ b/site/content/examples/7guis-crud/App.html @@ -1,19 +1,68 @@ + + - + - {#each filteredPeople as person, i} - + {/each} - - + +
- - - + + +
- - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/7guis-flight-booker/App.html b/site/content/examples/7guis-flight-booker/App.html index e69cbfd696..1cb45371e1 100644 --- a/site/content/examples/7guis-flight-booker/App.html +++ b/site/content/examples/7guis-flight-booker/App.html @@ -1,62 +1,30 @@ - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + \ No newline at end of file diff --git a/site/content/examples/7guis-temperature/App.html b/site/content/examples/7guis-temperature/App.html index fe1b6a894a..216c3461eb 100644 --- a/site/content/examples/7guis-temperature/App.html +++ b/site/content/examples/7guis-temperature/App.html @@ -1,6 +1,6 @@ - °c = - °f + °c = + °f diff --git a/site/content/examples/7guis-timer/App.html b/site/content/examples/7guis-timer/App.html index 8644fefaa8..ad8ffd8082 100644 --- a/site/content/examples/7guis-timer/App.html +++ b/site/content/examples/7guis-timer/App.html @@ -1,3 +1,42 @@ + + - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/await-block/App.html b/site/content/examples/await-block/App.html index 997d6a2f99..dd3ef25bfc 100644 --- a/site/content/examples/await-block/App.html +++ b/site/content/examples/await-block/App.html @@ -1,4 +1,17 @@ - + + + {#if promise} {#await promise} @@ -8,19 +21,4 @@ {:catch error}

well that's odd

{/await} -{/if} - - \ No newline at end of file +{/if} \ No newline at end of file diff --git a/site/content/examples/bar-chart/App.html b/site/content/examples/bar-chart/App.html index 2a3988ae74..a00913fc44 100644 --- a/site/content/examples/bar-chart/App.html +++ b/site/content/examples/bar-chart/App.html @@ -1,4 +1,56 @@ - + + +

US birthrate by year

@@ -6,7 +58,7 @@ {#each yTicks as tick} - + {tick} {tick === 20 ? ' per 1,000 population' : ''} @@ -16,8 +68,8 @@ {#each points as point, i} - - {width > 380 ? point.year : formatMobile(point.year)} + + {width > 380 ? point.year : formatMobile(point.year)} {/each} @@ -25,10 +77,10 @@ {#each points as point, i} {/each} @@ -70,63 +122,4 @@ stroke: none; opacity: 0.65; } - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/binding-input-checkbox-group/App.html b/site/content/examples/binding-input-checkbox-group/App.html index 5c06a79ae6..617e71e17d 100644 --- a/site/content/examples/binding-input-checkbox-group/App.html +++ b/site/content/examples/binding-input-checkbox-group/App.html @@ -1,15 +1,15 @@ diff --git a/site/content/examples/binding-input-checkbox/App.html b/site/content/examples/binding-input-checkbox/App.html index 20c72c5d0e..b8facdd53b 100644 --- a/site/content/examples/binding-input-checkbox/App.html +++ b/site/content/examples/binding-input-checkbox/App.html @@ -1,7 +1,7 @@ {#each todos as todo} -
- - +
+ +
{/each} diff --git a/site/content/examples/binding-input-numeric/App.html b/site/content/examples/binding-input-numeric/App.html index 6dc37b6d17..566c16006c 100644 --- a/site/content/examples/binding-input-numeric/App.html +++ b/site/content/examples/binding-input-numeric/App.html @@ -1,6 +1,6 @@ - - + +

{a} * {b} = {a * b}

diff --git a/site/content/examples/binding-input-radio/App.html b/site/content/examples/binding-input-radio/App.html index d1fdc52f67..f83813754f 100644 --- a/site/content/examples/binding-input-radio/App.html +++ b/site/content/examples/binding-input-radio/App.html @@ -1,16 +1,16 @@ -

selected {selected}

\ No newline at end of file +

selected {selected}

\ No newline at end of file diff --git a/site/content/examples/binding-input-text/App.html b/site/content/examples/binding-input-text/App.html index 6120d9a23c..5d81d1e564 100644 --- a/site/content/examples/binding-input-text/App.html +++ b/site/content/examples/binding-input-text/App.html @@ -1,2 +1,2 @@ - +

Hello {name || 'stranger'}!

\ No newline at end of file diff --git a/site/content/examples/binding-media-elements/App.html b/site/content/examples/binding-media-elements/App.html index 75f8e51507..a8fcb64f64 100644 --- a/site/content/examples/binding-media-elements/App.html +++ b/site/content/examples/binding-media-elements/App.html @@ -1,22 +1,59 @@ - + + + + +

THX Deep Note

-
- play/pause button - {format(t)} - {format(d)} +
+ play/pause button + {format(t)} + {format(d)}
-
+

THX Deep Note

-
- play/pause button - {format(t)} - {format(d)} +
+ play/pause button + {format(t)} + {format(d)}
@@ -57,48 +94,3 @@ .elapsed { float: left; } .duration { float: right; } - - diff --git a/site/content/examples/binding-textarea/App.html b/site/content/examples/binding-textarea/App.html index 6e9f32ec4f..4fd46f2625 100644 --- a/site/content/examples/binding-textarea/App.html +++ b/site/content/examples/binding-textarea/App.html @@ -1,19 +1,15 @@ - -
{@html marked(markdown)}
+ + + +
{@html marked(markdown)}
- - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/each-blocks/App.html b/site/content/examples/each-blocks/App.html index 07d1a693de..b8ba07a5e9 100644 --- a/site/content/examples/each-blocks/App.html +++ b/site/content/examples/each-blocks/App.html @@ -2,6 +2,6 @@ \ No newline at end of file diff --git a/site/content/examples/hacker-news/App.html b/site/content/examples/hacker-news/App.html index 0fe0af3dff..8650751d31 100644 --- a/site/content/examples/hacker-news/App.html +++ b/site/content/examples/hacker-news/App.html @@ -1,4 +1,35 @@ - + + +
{#if item} @@ -26,41 +57,4 @@ main :global(a) { color: rgb(0,0,150); } - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/hacker-news/Comment.html b/site/content/examples/hacker-news/Comment.html index 7c9d40611b..f932a30717 100644 --- a/site/content/examples/hacker-news/Comment.html +++ b/site/content/examples/hacker-news/Comment.html @@ -1,11 +1,11 @@
-

{comment.user} {comment.time_ago}

+

{comment.user} {comment.time_ago}

{@html comment.content} -
+
{#each comment.comments as child} - + {/each}
diff --git a/site/content/examples/hacker-news/Item.html b/site/content/examples/hacker-news/Item.html index 40843e4ee4..76a3c10551 100644 --- a/site/content/examples/hacker-news/Item.html +++ b/site/content/examples/hacker-news/Item.html @@ -1,15 +1,26 @@ -« back + + +« back -
+
{#each item.comments as comment} {/each} @@ -29,19 +40,4 @@ font-size: 1.4em; margin: 0; } - - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/hacker-news/List.html b/site/content/examples/hacker-news/List.html index 3bdc01802c..1fe61bdea1 100644 --- a/site/content/examples/hacker-news/List.html +++ b/site/content/examples/hacker-news/List.html @@ -1,11 +1,34 @@ + + {#if items} {#each items as item, i} {/each} - page {page + 1} + page {page + 1} {:else} -

loading...

+

loading...

{/if} - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/hacker-news/Summary.html b/site/content/examples/hacker-news/Summary.html index d3b21f5d61..a777761ce4 100644 --- a/site/content/examples/hacker-news/Summary.html +++ b/site/content/examples/hacker-news/Summary.html @@ -1,7 +1,18 @@ + + - - \ No newline at end of file + \ No newline at end of file diff --git a/site/content/examples/immutable/App.html b/site/content/examples/immutable/App.html index bd4c0934bd..db7795f43f 100644 --- a/site/content/examples/immutable/App.html +++ b/site/content/examples/immutable/App.html @@ -1,6 +1,31 @@ + + + +

Immutable

{#each todos as todo} -