File tree Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Expand file tree Collapse file tree 6 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { afterNavigate } from ' $app/navigation' ;
3- import { page } from ' $app/stores ' ;
3+ import { page } from ' $app/state ' ;
44 import { focusable_children , trap } from ' @sveltejs/site-kit/actions' ;
55 import { Icon } from ' @sveltejs/site-kit/components' ;
66 import type { Snippet } from ' svelte' ;
4646
4747 // except parents of the current one
4848 const current = details .querySelector (
49- ` [href="${$ page .url .pathname }"] `
49+ ` [href="${page .url .pathname }"] `
5050 ) as HTMLAnchorElement | null ;
5151 if (! current ) return ;
5252
Original file line number Diff line number Diff line change 77 import { mapbox_setup } from ' ../../../../config.js' ;
88 import AppControls from ' ./AppControls.svelte' ;
99 import { compress_and_encode_text , decode_and_decompress_text } from ' ./gzip.js' ;
10- import { page } from ' $app/stores ' ;
10+ import { page } from ' $app/state ' ;
1111 import type { File } from ' editor' ;
1212
1313 let { data } = $props ();
2020 let setting_hash: any = null ;
2121
2222 // svelte-ignore non_reactive_update
23- let version = $ page .url .searchParams .get (' version' ) || ' latest' ;
23+ let version = page .url .searchParams .get (' version' ) || ' latest' ;
2424 let is_pr_or_commit_version = version .startsWith (' pr-' ) || version .startsWith (' commit-' );
2525
2626 // Hashed URLs are less safe (we can't delete malicious REPLs), therefore
2727 // don't allow links to escape the sandbox restrictions
28- const can_escape = browser && ! $ page .url .hash ;
28+ const can_escape = browser && ! page .url .hash ;
2929
3030 if (version !== ' local' && ! is_pr_or_commit_version ) {
3131 $effect (() => {
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import { page } from ' $app/stores ' ;
2+ import { page } from ' $app/state ' ;
33 import UserMenu from ' ./UserMenu.svelte' ;
44 import { Icon } from ' @sveltejs/site-kit/components' ;
55 import { isMac } from ' $lib/utils/compat.js' ;
193193 <li >
194194 <a
195195 href ="/playground/ {example .slug }"
196- aria-current ={$ page .params .id === example .slug ? ' page' : undefined }
196+ aria-current ={page .params .id === example .slug ? ' page' : undefined }
197197 >
198198 {example .title }
199199 </a >
Original file line number Diff line number Diff line change 44 import { theme } from ' @sveltejs/site-kit/stores' ;
55 import { Repl } from ' @sveltejs/repl' ;
66 import { mapbox_setup } from ' ../../../../../config.js' ;
7- import { page } from ' $app/stores ' ;
7+ import { page } from ' $app/state ' ;
88
99 let { data } = $props ();
1010
1111 let repl = $state () as ReturnType <typeof Repl >;
1212
13- // svelte-ignore non_reactive_update
14- let version = $page .url .searchParams .get (' version' ) || ' latest' ;
13+ let version = page .url .searchParams .get (' version' ) || ' latest' ;
1514 let is_pr_or_commit_version = version .startsWith (' pr-' ) || version .startsWith (' commit-' );
1615
1716 if (version !== ' local' && ! is_pr_or_commit_version ) {
Original file line number Diff line number Diff line change 1212 import { solution } from ' ./state.svelte' ;
1313 import { needs_webcontainers , text_files } from ' ./shared' ;
1414 import OutputRollup from ' ./OutputRollup.svelte' ;
15- import { page } from ' $app/stores ' ;
15+ import { page } from ' $app/state ' ;
1616 import Controls from ' ./Controls.svelte' ;
1717 import type { Item } from ' editor' ;
1818 import type { Snapshot } from ' ./$types.js' ;
319319 </section >
320320
321321 <section slot =" b" class =" preview" >
322- {#if needs_webcontainers ($ page .data .exercise )}
322+ {#if needs_webcontainers (page .data .exercise )}
323323 <Output exercise ={data .exercise } {paused } {workspace } />
324324 {:else }
325325 <OutputRollup />
Original file line number Diff line number Diff line change 11<script lang =" ts" >
2- import { page } from ' $app/stores ' ;
2+ import { page } from ' $app/state ' ;
33 import SecondaryNav from ' $lib/components/SecondaryNav.svelte' ;
44 import ModalDropdown from ' $lib/components/ModalDropdown.svelte' ;
55 import type { Exercise , PartStub } from ' $lib/tutorial' ;
3030 {#each chapter .exercises as exercise }
3131 <li value ={exercise .slug }>
3232 <a
33- aria-current ={$ page .url .pathname === ` /tutorial/${exercise .slug } `
33+ aria-current ={page .url .pathname === ` /tutorial/${exercise .slug } `
3434 ? ' page'
3535 : undefined }
3636 href ="/tutorial/ {exercise .slug }" >{exercise .title }</a
You can’t perform that action at this time.
0 commit comments