0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

296 Commits

Author SHA1 Message Date
Rich Harris
c48d3456f7
Update text.md 2019-08-03 12:53:45 -04:00
Rich Harris
9d90272966
Make point about referential equality more concisely 2019-08-03 12:53:29 -04:00
vages
78eaf77a65
Elaborate on key equality
Readers unfamiliar with the concept of object equality in Javascript may have a hard time understanding why using keys as a reference is safe. So I elaborated a little on it.

Also, I changed the "context is not reactive" part into a section of its own, deleting the word "Remember" from the opening. I couldn't remember it from previously on this page or in the tutorial, so I think it may be a leftover from a previous version of the tutorial.
2019-08-03 13:44:20 +00:00
vages
f2aa0f279e
Explain difference between contexts and stores
I had a problem understanding why you would want to use a context when you can just use a store. This is what I've gathered after reading a bit about them.
2019-08-03 13:17:33 +00:00
Conduitry
f65ce85748 site: fix animate directive section heading 2019-07-27 06:50:23 -04:00
pngwn
fcfad5ae6b Document that context is not reactive. (#3296) 2019-07-26 21:01:45 -04:00
pngwn
efcd294731 Site: Document svelte/easing (#3292) 2019-07-26 15:22:24 -04:00
Noah Kaufman
c6cd2d43bb clicking on 'keyed each block' link did nothing before, now it takes you to the each blocks section like it's supposed to 2019-07-26 15:21:38 -04:00
Richard Harris
729fc4e891 link directly to event modifier tutorial 2019-07-25 20:37:50 -04:00
Richard Harris
9a0a2e2a52 Merge branch 'patch-1' of https://github.com/RAYDENFilipp/svelte into RAYDENFilipp-patch-1 2019-07-25 20:26:41 -04:00
Rich Harris
695ace3665
Update 03-run-time.md 2019-07-24 08:50:15 -04:00
Rich Harris
8851d79533
put second argument section back with its code sample 2019-07-24 08:49:04 -04:00
Rohan Faiyaz Khan
d56e0d5080
Update 03-run-time.md
Added descriptors for set and update methods of the return object of writable in svelte/store.
2019-07-22 01:01:44 +06:00
craigglennie
0a3818fb9b Don't use shorthand binding in textarea example (#3256) 2019-07-20 15:49:30 -04:00
Philipp_Lypniakov
b3b830d21a
Update text.md
Added a suggestion for a user to add the preventDefault modifier so they could press any key uninterrupted by the default behavior of a key or key combination.
2019-07-20 00:41:42 +03:00
Conduitry
35f81b279f
site: document store contract (#3261) 2019-07-18 11:20:46 -04:00
Conduitry
323e2fa4ae site: fix setting-up-your-editor blog post crashing the server 2019-07-03 07:10:28 -04:00
Lyndsy Simon
d9c45819a3 Add instructions for setting filetype in Vim 2019-07-02 12:32:56 -05:00
Luca Bonavita
0eb86d2a13 The element on: directive anchorwas pointing to the component on: directive anchor.
Fixes #3138
2019-06-30 12:53:13 -04:00
Rich Harris
80ef6f190d
Merge pull request #3127 from pngwn/3029-module-reactivity
Site: document that module script variables are not reactive. Closes …
2019-06-29 16:14:53 -04:00
Rich Harris
e05680d2e7
Update 01-component-format.md 2019-06-29 16:14:38 -04:00
Chris Lee
0a76ea32bc
Change tweened docs to show "interpolate" option
`tweened` actually accepts `interpolate`, not `interpolator`. It was correctly shown in the code example (and tutorial), but not in the API docs.

Not sure if doing a full build of the site is necessary or desired, so I've just kept this change to the markdown file for now.
2019-06-28 10:38:30 -05:00
pngwn
e0ac393a76 Site: document that module script variables are not reactive. Closes #3029. 2019-06-27 21:03:35 +01:00
Rich Harris
68c8030d08
Merge pull request #3121 from Ding-Fan/patch-2
change "item" to "thing"
2019-06-26 18:02:08 -04:00
范鼎
b9cdadcd22
change "item" to "thing"
The text in the button is "Remove first thing".
2019-06-27 02:01:43 +08:00
mellisdesigns
39760b70f8 documentation - binding this remove 256 canvas size 2019-06-26 16:50:31 +10:00
Rich Harris
9806d18bdb
Update 03-run-time.md 2019-06-25 19:38:32 -04:00
Bryan Terce
5515bb49c9
Fix docs typo with derived store 2019-06-25 11:27:21 -07:00
Rich Harris
6e6a675c67 tweak docs a bit 2019-06-24 16:49:26 -04:00
Rich Harris
820490fb4d add a tutorial chapter 2019-06-24 13:28:04 -04:00
Rich Harris
86c5086c54 add some docs, rename to textContent and innerHTML 2019-06-24 13:00:16 -04:00
Luca Bonavita
0b836872cf Use consistent tag closing for <svelte:*> elements
Fixes #3061
2019-06-22 12:43:57 -04:00
Luca Bonavita
a7dd227336 Docs: document rest in array/object destructuring in each blocks (#2676) 2019-06-22 12:42:00 -04:00
igoradamenko
5d51d50613 site: reuse layers variable in window bindings tutorial 2019-06-21 13:44:21 -04:00
Richard Harris
d270542aee merge master -> doc-restructure 2019-06-16 14:37:56 -04:00
Conduitry
87d4ac55c9 site: fix css-in-js blog embed, pt II 2019-06-16 09:38:55 -04:00
Conduitry
c24fc92d2f site: fix css-in-js blog embed 2019-06-16 09:17:40 -04:00
Jacob Wright
52b5e05ead Fix 7 GUIs crud example for delete when filtered
This example could delete the incorrect person when a filter was applied. Just an example, but the behavior was confusing when I played with it, so I thought it worth fixing.
2019-06-12 10:05:59 -04:00
Richard Harris
9754f2a817 take code block out of blockquote 2019-06-09 16:34:54 -04:00
Richard Harris
44489c9ccb Merge branch 'patch-1' of https://github.com/Karsten7/svelte into Karsten7-patch-1 2019-06-09 16:32:20 -04:00
Richard Harris
7215260aa2 tweak transition stuff 2019-06-09 16:22:16 -04:00
Richard Harris
60023f6f7e tweak some content and styles 2019-06-09 16:07:49 -04:00
Rich Harris
0dde4f51e0
Update text.md 2019-06-09 11:08:49 -04:00
Richard Harris
570098e8dd restructure 2019-06-06 09:05:20 -04:00
Richard Harris
f42bb4c7fd Merge branch 'patch-1' of https://github.com/trbrc/svelte into trbrc-patch-1 2019-06-06 08:28:05 -04:00
Rich Harris
6a388a9f86
Merge pull request #2922 from gabysantosw/patch-2
Ending alt text with a period
2019-06-06 08:24:06 -04:00
Rich Harris
aaabb12623
Merge pull request #2921 from gabysantosw/patch-1
Ending alt text with a period
2019-06-06 08:22:53 -04:00
Rich Harris
df632ca71e
change to sentence 2019-06-06 08:21:07 -04:00
Rich Harris
535d668516
Change text to a sentence, since we're ending it with a period 2019-06-06 08:20:46 -04:00
Jacob Wright
f65379f38b
Fix component binding example
While `cart.empty` could be passed around, it is undefined on first render and results in an error being thrown. The example here was broken and needed fixing.
2019-06-03 13:26:47 -06:00
trbrc
b4b9edf603
Clearer headlines with syntax examples
Change headline “Actions” to “Use directive” + add a number of additional syntax examples, to make it easier to find the relevant section without ⌘F
2019-06-01 17:15:37 +02:00
gabysantosw
b4d46ea60d
Ending alt text with a period 2019-06-01 12:00:06 +02:00
gabysantosw
f9c3d99b34
Ending alt text with a period
Added a period at the end of the alt text example, recently learned that it improves UX for screen-reader users as it provides a pause.
2019-06-01 11:59:21 +02:00
Tim Deschryver
42235cf64d fix slide example 2019-05-29 12:47:34 -04:00
Richard Harris
d07feba638 use better eliza package 2019-05-28 13:24:48 +02:00
Karsten 7
6d59a40a62
Add implementation for the given tutorial example 2019-05-27 13:49:20 +02:00
Richard Harris
0d7f6fb795 flesh out in/out transition tutorial chapter (#2792) 2019-05-26 14:29:30 +02:00
Elliot Waite
4c805018e4
Fix CRUD example to allow changing input values.
Currently, the first name and last name inputs fields can't be edited without the changes immediately being overwritten back to the selected person's first name and last name. This change will make it so that the input fields only get overwritten with the selected person's first name and last name when the selected person is changed.
2019-05-24 15:55:18 -10:00
Conduitry
2f80667f20 site: actions tutorial: destroy is not required (#2776) 2019-05-24 12:05:18 -04:00
Rich Harris
9ba91ddcaa
Merge pull request #2794 from trbrc/patch-1
Docs: Exporting function expression vs declaration
2019-05-20 21:14:03 -04:00
Emanuele
394a166a41 docs: multiple event listeners on single node (#2825) 2019-05-20 13:53:11 -04:00
Conduitry
1e919113c1 site: document additional arguments in svelte.walk 2019-05-20 10:22:01 -04:00
Peter Varholak
481ac14e7e Fix setup command in getting started blog 2019-05-17 14:25:43 -04:00
trbrc
c15d7ea2e1
Docs: Exporting function expression vs declaration
Current docs give the impression that functions can not be default values for props. Suggestion to make the distinction between expressions and declarations clearer.
2019-05-17 13:19:51 +02:00
Rich Harris
51be7cf8e3 explain how debug tag without args fires on all state changes 2019-05-15 18:04:25 -04:00
Rich Harris
8c9da2fa85 Merge branch 'docs/2640' of https://github.com/varholak-peter/svelte into varholak-peter-docs/2640 2019-05-15 17:56:28 -04:00
Conduitry
3cfbd66841 site: fix enter handling in animate example 2019-05-15 10:40:44 -04:00
Hongarc
66e39d52d4 Remove whitespace at end of line 2019-05-15 10:00:11 -04:00
Peter Varholak
85073dbb72
add @debug API docs 2019-05-14 22:09:20 -07:00
Conduitry
011b33181e site: fix immutable tutorial and example on Firefox (#2601) 2019-05-14 23:59:07 -04:00
Conduitry
438acdc09a
typo 2019-05-12 16:32:22 -04:00
Rich Harris
f2474ed11e
Merge pull request #2744 from pngwn/transition-docs
Document svelte/transition - fade, fly, slide, scale, draw.
2019-05-12 16:23:14 -04:00
Rich Harris
0c76b9637a
minor correction 2019-05-12 16:22:37 -04:00
pngwn
c72e863a7f Document svelte/transition - fade, fly, slide, scale, draw. 2019-05-12 20:27:19 +01:00
Rich Harris
61a96b382a implement namespaced components 2019-05-12 13:56:00 -04:00
Rich Harris
4fa9369120
Merge pull request #2580 from pngwn/animate-docs
Site: Document animations. #2532
2019-05-12 13:35:10 -04:00
Rich Harris
644b8a732d
Merge pull request #2730 from sveltejs/gh-2553
allow derivers to return cleanup functions
2019-05-12 13:31:24 -04:00
Rich Harris
ca1dc4cdb7 document changes to derived 2019-05-12 13:30:12 -04:00
Rich Harris
9dbd99b85d
Merge pull request #2741 from pngwn/master
Update animate example to use animate directive and built-in crossfad…
2019-05-12 13:08:19 -04:00
Rich Harris
b62328d6a7
Update App.svelte 2019-05-12 13:08:10 -04:00
Rich Harris
b64f570e2e
Merge pull request #2739 from membranophonist/patch-1
Replace tag with attribute for alt
2019-05-12 12:59:30 -04:00
Rich Harris
8c553706ab
Merge pull request #2740 from membranophonist/patch-2
Pluralize elements
2019-05-12 12:49:45 -04:00
Rich Harris
26a67a6ac4
Update text.md 2019-05-12 12:46:30 -04:00
Josh Duff
5ebde551b2
Link to label syntax page on MDN
Inspired by https://github.com/sveltejs/svelte/issues/98#issuecomment-491586072 , I wanted to make it a bit more explicit that the `$:` label was actual JS syntax.
2019-05-12 06:16:30 -05:00
pngwn
1b4446030b Update animate example to use animate directive and built-in crossfade function. 2019-05-12 10:13:52 +01:00
Daniel J. Wilson
66a4c1a9bc
Pluralize elements 2019-05-12 00:19:53 -04:00
Daniel J. Wilson
5e8383cf37
Replace tag with attribute for alt
Being an attribute, alt should be mentioned as such.
2019-05-11 23:42:32 -04:00
Conduitry
80fe0e9cdb site: add /chat redirect to Discord (#2708) 2019-05-07 20:54:44 -04:00
Conduitry
f7978b234a site: document export-as (#2559) 2019-05-07 08:49:54 -04:00
pngwn
7a7804be49 Document animations. #2532 2019-05-05 16:18:09 +01:00
James Robey
c954e84727 Make modal example more obvious 2019-05-05 17:06:10 +07:00
Michael Braun
ac24817ef0 Clarifying let needs to be used on exported properties, in order for them to be passed in 2019-05-04 21:01:01 +02:00
Richard Harris
4ef1a2d623 document new spring options 2019-05-04 12:14:07 -04:00
Rich Harris
ba91810b0b
Merge pull request #2672 from sveltejs/gh-2661
expose svelte.walk
2019-05-04 11:22:25 -04:00
Conduitry
54a8eb9fd4 expose svelte.walk (#2661) 2019-05-04 10:38:30 -04:00
Conduitry
df448cb36a document svelte.parse 2019-05-04 07:29:36 -04:00
Rich Harris
cfb22e4a10
Merge pull request #2633 from zlsa/patch-2
Add barebones description of `svelte/register`
2019-05-03 23:43:30 -04:00
Rich Harris
8f2ccc407e
flesh out svelte/register docs 2019-05-03 23:43:18 -04:00
Rich Harris
0f07accadb
Merge pull request #2657 from lode/patch-1
Clarify when sanitization is done and when not
2019-05-03 23:24:16 -04:00
Rich Harris
7bf207f825
Update text.md 2019-05-03 23:24:00 -04:00