From 217cd6c741631463b451a7ef7efc317da4f82d19 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Sun, 10 Mar 2019 13:15:56 -0400 Subject: [PATCH 01/14] move example data into components --- .../content/examples/7guis-circles/data.json5 | 1 - .../content/examples/7guis-counter/App.svelte | 4 + .../content/examples/7guis-counter/data.json5 | 3 - site/content/examples/7guis-crud/App.svelte | 15 +- site/content/examples/7guis-crud/data.json5 | 16 -- .../examples/7guis-flight-booker/data.json5 | 1 - .../examples/7guis-temperature/data.json5 | 3 - site/content/examples/7guis-timer/data.json5 | 1 - site/content/examples/await-block/data.json5 | 1 - site/content/examples/bar-chart/App.svelte | 9 +- site/content/examples/bar-chart/data.json5 | 28 --- .../binding-input-checkbox-group/App.svelte | 4 + .../binding-input-checkbox-group/data.json5 | 3 - .../binding-input-checkbox/App.svelte | 31 ++- .../binding-input-checkbox/data.json5 | 16 -- .../examples/binding-input-numeric/App.svelte | 17 +- .../examples/binding-input-numeric/data.json5 | 4 - .../examples/binding-input-radio/App.svelte | 4 + .../examples/binding-input-radio/data.json5 | 3 - .../examples/binding-input-text/App.svelte | 4 + .../examples/binding-input-text/data.json5 | 3 - .../binding-media-elements/data.json5 | 1 - .../examples/binding-textarea/App.svelte | 10 +- .../examples/binding-textarea/data.json5 | 3 - site/content/examples/each-blocks/App.svelte | 17 ++ site/content/examples/each-blocks/data.json5 | 16 -- site/content/examples/hacker-news/data.json5 | 1 - site/content/examples/hello-world/App.svelte | 17 +- site/content/examples/hello-world/data.json5 | 3 - .../homepage-demo-hello-world/App.svelte | 4 + .../homepage-demo-hello-world/data.json5 | 3 - .../homepage-demo-reactivity/data.json5 | 1 - .../homepage-demo-scoped-styles/data.json5 | 1 - .../homepage-demo-transitions/data.json5 | 1 - site/content/examples/if-blocks/App.svelte | 4 + site/content/examples/if-blocks/data.json5 | 3 - site/content/examples/immutable/App.svelte | 6 +- site/content/examples/immutable/data.json5 | 7 - site/content/examples/line-chart/App.svelte | 3 +- site/content/examples/line-chart/data.js | 40 ++++ site/content/examples/line-chart/data.json5 | 156 --------------- .../examples/modal-with-slot/App.svelte | 2 +- .../examples/modal-with-slot/data.json5 | 3 - .../examples/nested-components/data.json5 | 1 - site/content/examples/parallax/data.json5 | 1 - site/content/examples/scatterplot/App.svelte | 26 ++- site/content/examples/scatterplot/data.js | 54 +++++ site/content/examples/scatterplot/data.json5 | 186 ------------------ .../content/examples/scoped-styles/data.json5 | 1 - .../examples/self-references/App.svelte | 33 ++++ .../examples/self-references/data.json5 | 32 --- site/content/examples/svg-clock/data.json5 | 1 - .../examples/transitions-custom/data.json5 | 1 - .../examples/transitions-fade/data.json5 | 1 - .../examples/transitions-fly/data.json5 | 1 - .../examples/transitions-in-out/data.json5 | 1 - .../get-examples-from-tutorials/index.js | 0 57 files changed, 252 insertions(+), 560 deletions(-) delete mode 100644 site/content/examples/7guis-circles/data.json5 delete mode 100644 site/content/examples/7guis-counter/data.json5 delete mode 100644 site/content/examples/7guis-crud/data.json5 delete mode 100644 site/content/examples/7guis-flight-booker/data.json5 delete mode 100644 site/content/examples/7guis-temperature/data.json5 delete mode 100644 site/content/examples/7guis-timer/data.json5 delete mode 100644 site/content/examples/await-block/data.json5 delete mode 100644 site/content/examples/bar-chart/data.json5 delete mode 100644 site/content/examples/binding-input-checkbox-group/data.json5 delete mode 100644 site/content/examples/binding-input-checkbox/data.json5 delete mode 100644 site/content/examples/binding-input-numeric/data.json5 delete mode 100644 site/content/examples/binding-input-radio/data.json5 delete mode 100644 site/content/examples/binding-input-text/data.json5 delete mode 100644 site/content/examples/binding-media-elements/data.json5 delete mode 100644 site/content/examples/binding-textarea/data.json5 delete mode 100644 site/content/examples/each-blocks/data.json5 delete mode 100644 site/content/examples/hacker-news/data.json5 delete mode 100644 site/content/examples/hello-world/data.json5 delete mode 100644 site/content/examples/homepage-demo-hello-world/data.json5 delete mode 100644 site/content/examples/homepage-demo-reactivity/data.json5 delete mode 100644 site/content/examples/homepage-demo-scoped-styles/data.json5 delete mode 100644 site/content/examples/homepage-demo-transitions/data.json5 delete mode 100644 site/content/examples/if-blocks/data.json5 delete mode 100644 site/content/examples/immutable/data.json5 create mode 100644 site/content/examples/line-chart/data.js delete mode 100644 site/content/examples/line-chart/data.json5 delete mode 100644 site/content/examples/modal-with-slot/data.json5 delete mode 100644 site/content/examples/nested-components/data.json5 delete mode 100644 site/content/examples/parallax/data.json5 create mode 100644 site/content/examples/scatterplot/data.js delete mode 100644 site/content/examples/scatterplot/data.json5 delete mode 100644 site/content/examples/scoped-styles/data.json5 delete mode 100644 site/content/examples/self-references/data.json5 delete mode 100644 site/content/examples/svg-clock/data.json5 delete mode 100644 site/content/examples/transitions-custom/data.json5 delete mode 100644 site/content/examples/transitions-fade/data.json5 delete mode 100644 site/content/examples/transitions-fly/data.json5 delete mode 100644 site/content/examples/transitions-in-out/data.json5 create mode 100644 site/scripts/get-examples-from-tutorials/index.js diff --git a/site/content/examples/7guis-circles/data.json5 b/site/content/examples/7guis-circles/data.json5 deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/site/content/examples/7guis-circles/data.json5 +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/site/content/examples/7guis-counter/App.svelte b/site/content/examples/7guis-counter/App.svelte index 385a3c9749..11c5993901 100644 --- a/site/content/examples/7guis-counter/App.svelte +++ b/site/content/examples/7guis-counter/App.svelte @@ -1,3 +1,7 @@ + + \ No newline at end of file diff --git a/site/content/examples/7guis-counter/data.json5 b/site/content/examples/7guis-counter/data.json5 deleted file mode 100644 index f30dc46c11..0000000000 --- a/site/content/examples/7guis-counter/data.json5 +++ /dev/null @@ -1,3 +0,0 @@ -{ - "count": 0 -} \ No newline at end of file diff --git a/site/content/examples/7guis-crud/App.svelte b/site/content/examples/7guis-crud/App.svelte index 388a2f4ea3..ed53430eff 100644 --- a/site/content/examples/7guis-crud/App.svelte +++ b/site/content/examples/7guis-crud/App.svelte @@ -1,7 +1,20 @@ +