Skip to content

Commit 3321493

Browse files
committed
prettier
1 parent 74f8d39 commit 3321493

File tree

7 files changed

+28
-16
lines changed

7 files changed

+28
-16
lines changed

apps/svelte.dev/scripts/create-tutorial-zip/common/src/app.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,12 @@
3434

3535
body {
3636
--border-radius: 4px;
37-
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
37+
--font:
38+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
3839
'Open Sans', 'Helvetica Neue', sans-serif;
39-
--font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas,
40-
'DejaVu Sans Mono', monospace;
40+
--font-mono:
41+
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
42+
monospace;
4143
background: var(--bg-1);
4244
color: var(--fg-1);
4345
font-family: var(--font);

apps/svelte.dev/src/routes/_home/Hero.svelte

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@
5959
height: 200%;
6060
left: 0;
6161
top: -8rem; /* prevent cutoff on overscroll */
62-
background: linear-gradient(to bottom, transparent, var(--sk-bg-1)),
62+
background:
63+
linear-gradient(to bottom, transparent, var(--sk-bg-1)),
6364
radial-gradient(circle at 40% 30%, rgb(235, 243, 249), rgb(214, 222, 228));
6465
}
6566
6667
:root:not(.light) &::before {
6768
@media (prefers-color-scheme: dark) {
68-
background: linear-gradient(to bottom, transparent, var(--sk-bg-1)),
69+
background:
70+
linear-gradient(to bottom, transparent, var(--sk-bg-1)),
6971
radial-gradient(
7072
64.14% 72.25% at 47.58% 31.75%,
7173
hsl(209deg 6% 47% / 52%) 0%,
@@ -81,7 +83,8 @@
8183
}
8284
}
8385
:root.dark &::before {
84-
background: linear-gradient(to bottom, transparent, var(--sk-bg-1)),
86+
background:
87+
linear-gradient(to bottom, transparent, var(--sk-bg-1)),
8588
radial-gradient(
8689
64.14% 72.25% at 47.58% 31.75%,
8790
hsl(209deg 6% 47% / 52%) 0%,

apps/svelte.dev/src/routes/llms-small.txt/content-svelte.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ let { a, b, ...others } = $props();
297297
### Using await in Svelte
298298

299299
- **Where you can use await**
300-
301300
- **Top-level `<script>`**: `await` directly in component script.
302301
- **Inside `$derived(...)`**.
303302
- **Inside markup**: inline `await` expressions.

apps/svelte.dev/src/routes/llms-small.txt/content-sveltekit.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,19 +548,25 @@ Use:
548548
- **Progressive enhancement**: Works without JS via `method`/`action`; with JS it submits without full reload.
549549
- **Single-flight mutations**:
550550
- Server-driven: call refresh inside the handler:
551+
551552
```js
552553
await getPosts().refresh();
553554
```
555+
554556
- Client-driven: customize with `enhance` and `submit().updates(...)`:
557+
555558
```svelte
556559
<form {...createPost.enhance(async ({ submit }) => {
557560
await submit().updates(getPosts());
558561
})}>
559562
```
563+
560564
- Optimistic UI: use `withOverride`:
565+
561566
```js
562567
await submit().updates(getPosts().withOverride((posts) => [newPost, ...posts]));
563568
```
569+
564570
- **Returns**: Instead of redirect, return data; read at `createPost.result`.
565571
- **buttonProps**: For per-button `formaction`:
566572

apps/svelte.dev/static/tutorial/shared.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,11 @@ html {
3333

3434
body {
3535
--border-radius: 4px;
36-
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
37-
'Open Sans', 'Helvetica Neue', sans-serif;
38-
--font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
39-
monospace;
36+
--font:
37+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
38+
'Helvetica Neue', sans-serif;
39+
--font-mono:
40+
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
4041
background: var(--bg-1);
4142
color: var(--fg-1);
4243
font-family: var(--font);

packages/repl/src/lib/Output/AstNode.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
workspace.onselect((from, to) => {
3737
// legacy fragments have `children`
3838
const nodes =
39-
value.type === 'Fragment' ? value.nodes ?? value.children : is_array ? value : [value];
39+
value.type === 'Fragment' ? (value.nodes ?? value.children) : is_array ? value : [value];
4040
4141
const start = nodes[0]?.start;
4242
const end = nodes[nodes.length - 1]?.end;

packages/repl/src/lib/Output/srcdoc/styles.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ body {
99
--link-hover: hsl(208, 77%, 55%);
1010
--link-active: hsl(208, 77%, 40%);
1111
--border-radius: 4px;
12-
--font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
13-
'Open Sans', 'Helvetica Neue', sans-serif;
14-
--font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono',
15-
monospace;
12+
--font:
13+
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
14+
'Helvetica Neue', sans-serif;
15+
--font-mono:
16+
ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
1617
color-scheme: light;
1718
background: var(--bg-1);
1819
color: var(--fg-1);

0 commit comments

Comments
 (0)