├── content ├── examples │ ├── parallax │ │ ├── data.json5 │ │ └── App.html │ ├── 7guis-circles │ │ ├── data.json5 │ │ └── App.html │ ├── 7guis-timer │ │ ├── data.json5 │ │ └── App.html │ ├── await-block │ │ ├── data.json5 │ │ └── App.html │ ├── hacker-news │ │ ├── data.json5 │ │ ├── Comment.html │ │ ├── Summary.html │ │ ├── Item.html │ │ ├── List.html │ │ └── App.html │ ├── scoped-styles │ │ ├── data.json5 │ │ └── App.html │ ├── svg-clock │ │ ├── data.json5 │ │ └── App.html │ ├── nested-components │ │ ├── data.json5 │ │ ├── Nested.html │ │ └── App.html │ ├── transitions-custom │ │ ├── data.json5 │ │ └── App.html │ ├── transitions-fade │ │ ├── data.json5 │ │ └── App.html │ ├── transitions-fly │ │ ├── data.json5 │ │ └── App.html │ ├── transitions-in-out │ │ ├── data.json5 │ │ └── App.html │ ├── 7guis-flight-booker │ │ ├── data.json5 │ │ └── App.html │ ├── binding-media-elements │ │ ├── data.json5 │ │ └── App.html │ ├── if-blocks │ │ ├── data.json5 │ │ └── App.html │ ├── 7guis-counter │ │ ├── data.json5 │ │ └── App.html │ ├── hello-world │ │ ├── data.json5 │ │ └── App.html │ ├── 7guis-temperature │ │ ├── data.json5 │ │ └── App.html │ ├── binding-input-text │ │ ├── data.json5 │ │ └── App.html │ ├── modal-with-slot │ │ ├── data.json5 │ │ ├── Modal.html │ │ └── App.html │ ├── binding-input-numeric │ │ ├── data.json5 │ │ └── App.html │ ├── binding-input-radio │ │ ├── data.json5 │ │ └── App.html │ ├── binding-input-checkbox-group │ │ ├── data.json5 │ │ └── App.html │ ├── binding-textarea │ │ ├── data.json5 │ │ └── App.html │ ├── each-blocks │ │ ├── App.html │ │ └── data.json5 │ ├── self-references │ │ ├── App.html │ │ └── data.json5 │ ├── immutable │ │ ├── data.json5 │ │ ├── MutableTodo.html │ │ ├── ImmutableTodo.html │ │ └── App.html │ ├── 7guis-crud │ │ ├── data.json5 │ │ └── App.html │ ├── binding-input-checkbox │ │ ├── data.json5 │ │ └── App.html │ ├── bar-chart │ │ ├── data.json5 │ │ └── App.html │ ├── scatterplot │ │ ├── App.html │ │ ├── Scatterplot.html │ │ └── data.json5 │ ├── line-chart │ │ ├── data.json5 │ │ └── App.html │ └── manifest.json ├── guide │ ├── 99-still-to-come.md │ ├── 15-miscellaneous.md │ ├── 09-static-properties.md │ ├── 08-plugins.md │ ├── 12-preprocessing.md │ ├── 10-server-side-rendering.md │ ├── 03-scoped-styles.md │ ├── 01-component-api.md │ ├── 14-custom-elements.md │ ├── 13-advanced.md │ ├── 05-nested-components.md │ ├── 06-special-components.md │ └── 00-introduction.md └── blog │ ├── 2019-01-31-svelte-on-the-changelog.md │ └── 2017-08-07-the-easiest-way-to-get-started.md ├── .eslintignore ├── static ├── favicon.ico ├── favicon.png ├── svelte-logo-192.png ├── svelte-logo-512.png ├── images │ └── twitter-card.png ├── fonts │ ├── Roboto │ │ ├── Roboto-Bold.woff │ │ ├── Roboto-Bold.woff2 │ │ ├── Roboto-Light.woff │ │ ├── Roboto-Light.woff2 │ │ ├── Roboto-LightItalic.woff │ │ └── Roboto-LightItalic.woff2 │ ├── Rajdhani │ │ ├── Rajdhani-Bold.woff │ │ ├── Rajdhani-Bold.woff2 │ │ ├── Rajdhani-Medium.woff │ │ ├── Rajdhani-Medium.woff2 │ │ ├── Rajdhani-Regular.woff │ │ └── Rajdhani-Regular.woff2 │ └── Inconsolata │ │ ├── Inconsolata-Bold.woff │ │ ├── Inconsolata-Bold.woff2 │ │ ├── Inconsolata-Regular.woff │ │ ├── Inconsolata-Regular.woff2 │ │ └── OFL.txt ├── icons │ ├── download.svg │ ├── dropdown.svg │ ├── check.svg │ ├── save.svg │ ├── fork.svg │ ├── link.svg │ ├── collapse.svg │ ├── expand.svg │ └── flip.svg ├── manifest.json ├── repl-viewer.css ├── repl-runner.js └── svelte-app.json ├── .gitignore ├── .travis.yml ├── client └── store.js ├── now.json ├── src ├── routes │ ├── api │ │ ├── guide │ │ │ ├── index.js │ │ │ ├── contents.js │ │ │ ├── demo │ │ │ │ └── [hash].js │ │ │ └── _sections.js │ │ ├── blog │ │ │ ├── index.js │ │ │ ├── [slug].js │ │ │ └── _posts.js │ │ ├── _process_markdown.js │ │ └── examples │ │ │ └── [slug].js │ ├── repl │ │ ├── _utils │ │ │ ├── downloadBlob.js │ │ │ ├── getLocationFromStack.js │ │ │ └── ReplProxy.js │ │ ├── _components │ │ │ ├── _codemirror.js │ │ │ ├── events.js │ │ │ ├── UserMenu.html │ │ │ ├── ExampleSelector.html │ │ │ ├── SplitPane.html │ │ │ ├── ModuleEditor.html │ │ │ └── CodeMirror.html │ │ └── _worker.js │ ├── gist │ │ ├── _utils.js │ │ ├── [id].js │ │ └── create.js │ ├── _layout.html │ ├── _error.html │ ├── blog │ │ ├── rss.xml.js │ │ ├── index.html │ │ └── [slug].html │ └── index.html ├── client.js ├── components │ ├── Toast.html │ └── GuideContents.html ├── service-worker.js ├── server.js ├── utils │ └── local-fonts.js └── template.html ├── LICENSE ├── .eslintrc.json ├── README.md ├── webpack.config.js └── package.json /content/examples/parallax/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/7guis-circles/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/7guis-timer/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/await-block/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/hacker-news/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/scoped-styles/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/svg-clock/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/nested-components/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/transitions-custom/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/transitions-fade/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/transitions-fly/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/transitions-in-out/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/7guis-flight-booker/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/binding-media-elements/data.json5: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /content/examples/if-blocks/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "foo": true 3 | } -------------------------------------------------------------------------------- /content/examples/7guis-counter/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "count": 0 3 | } -------------------------------------------------------------------------------- /content/examples/hello-world/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "name": "world" 3 | } -------------------------------------------------------------------------------- /content/examples/7guis-temperature/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "celsius": 0 3 | } -------------------------------------------------------------------------------- /content/examples/binding-input-text/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "name": "" 3 | } -------------------------------------------------------------------------------- /content/examples/modal-with-slot/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "showModal": true 3 | } -------------------------------------------------------------------------------- /content/examples/binding-input-numeric/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "a": 5, 3 | "b": 5 4 | } -------------------------------------------------------------------------------- /content/examples/binding-input-radio/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "selected": "blue" 3 | } -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | server/components 2 | server/routes 3 | universal/routes/Repl/examples.js -------------------------------------------------------------------------------- /content/examples/nested-components/Nested.html: -------------------------------------------------------------------------------- 1 |
And this is a nested component.
-------------------------------------------------------------------------------- /content/examples/binding-input-checkbox-group/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "selected": ["blue"] 3 | } -------------------------------------------------------------------------------- /static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/favicon.ico -------------------------------------------------------------------------------- /static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/favicon.png -------------------------------------------------------------------------------- /content/examples/if-blocks/App.html: -------------------------------------------------------------------------------- 1 | {#if foo} 2 |foo!
3 | {:else} 4 |not foo!
5 | {/if} -------------------------------------------------------------------------------- /static/svelte-logo-192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/svelte-logo-192.png -------------------------------------------------------------------------------- /static/svelte-logo-512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/svelte-logo-512.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | credentials.json 4 | __sapper__ 5 | yarn-error.log 6 | .env 7 | .sessions 8 | -------------------------------------------------------------------------------- /static/images/twitter-card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/images/twitter-card.png -------------------------------------------------------------------------------- /static/fonts/Roboto/Roboto-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Roboto/Roboto-Bold.woff -------------------------------------------------------------------------------- /content/examples/binding-input-text/App.html: -------------------------------------------------------------------------------- 1 | 2 |Hello {name || 'stranger'}!
-------------------------------------------------------------------------------- /static/fonts/Roboto/Roboto-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Roboto/Roboto-Bold.woff2 -------------------------------------------------------------------------------- /static/fonts/Roboto/Roboto-Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Roboto/Roboto-Light.woff -------------------------------------------------------------------------------- /static/fonts/Roboto/Roboto-Light.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Roboto/Roboto-Light.woff2 -------------------------------------------------------------------------------- /static/fonts/Rajdhani/Rajdhani-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Rajdhani/Rajdhani-Bold.woff -------------------------------------------------------------------------------- /static/fonts/Rajdhani/Rajdhani-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Rajdhani/Rajdhani-Bold.woff2 -------------------------------------------------------------------------------- /static/fonts/Rajdhani/Rajdhani-Medium.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Rajdhani/Rajdhani-Medium.woff -------------------------------------------------------------------------------- /static/fonts/Rajdhani/Rajdhani-Medium.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Rajdhani/Rajdhani-Medium.woff2 -------------------------------------------------------------------------------- /static/fonts/Rajdhani/Rajdhani-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Rajdhani/Rajdhani-Regular.woff -------------------------------------------------------------------------------- /static/fonts/Rajdhani/Rajdhani-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Rajdhani/Rajdhani-Regular.woff2 -------------------------------------------------------------------------------- /static/fonts/Roboto/Roboto-LightItalic.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Roboto/Roboto-LightItalic.woff -------------------------------------------------------------------------------- /static/fonts/Roboto/Roboto-LightItalic.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Roboto/Roboto-LightItalic.woff2 -------------------------------------------------------------------------------- /static/fonts/Inconsolata/Inconsolata-Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Inconsolata/Inconsolata-Bold.woff -------------------------------------------------------------------------------- /static/fonts/Inconsolata/Inconsolata-Bold.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Inconsolata/Inconsolata-Bold.woff2 -------------------------------------------------------------------------------- /static/fonts/Inconsolata/Inconsolata-Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Inconsolata/Inconsolata-Regular.woff -------------------------------------------------------------------------------- /content/examples/binding-textarea/data.json5: -------------------------------------------------------------------------------- 1 | { 2 | "markdown": "# Markdown editor\n\nTODOs:\n\n* make a Svelte app\n* think of a third item for this list" 3 | } -------------------------------------------------------------------------------- /static/fonts/Inconsolata/Inconsolata-Regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sveltejs/v2.svelte.dev/master/static/fonts/Inconsolata/Inconsolata-Regular.woff2 -------------------------------------------------------------------------------- /content/examples/each-blocks/App.html: -------------------------------------------------------------------------------- 1 |This is a top-level element.
2 |fades in and out
5 | {/if} 6 | 7 | -------------------------------------------------------------------------------- /client/store.js: -------------------------------------------------------------------------------- 1 | import { Store } from 'svelte/store.js'; 2 | 3 | class ClientStore extends Store { 4 | logout() { 5 | return fetch(`auth/logout`, { 6 | method: 'POST', 7 | credentials: 'include' 8 | }).then(() => { 9 | this.set({ user: null }); 10 | }); 11 | } 12 | } 13 | 14 | export default new ClientStore(); -------------------------------------------------------------------------------- /content/examples/transitions-in-out/App.html: -------------------------------------------------------------------------------- 1 | visible 2 | 3 | {#if visible} 4 |flies up, fades out
5 | {/if} 6 | 7 | -------------------------------------------------------------------------------- /content/guide/15-miscellaneous.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Miscellaneous 3 | --- 4 | 5 | 6 | ### `