File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
src/Exceptionless.Web/ClientApp/src/routes Expand file tree Collapse file tree 5 files changed +11
-11
lines changed 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 * as Sidebar from ' $comp/ui/sidebar' ;
44 import { useSidebar } from ' $comp/ui/sidebar' ;
55
2222 {#each dashboardRoutes as route (route .href )}
2323 {@const Icon = route .icon }
2424 <Sidebar .MenuItem >
25- <Sidebar .MenuButton isActive ={route .href === $ page .url .pathname }>
25+ <Sidebar .MenuButton isActive ={route .href === page .url .pathname }>
2626 {#snippet child ({ props })}
2727 <a href ={route .href } title ={route .title } {...props }>
2828 <Icon />
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import type { HTMLAttributes } from ' svelte/elements' ;
33
4- import { page } from ' $app/stores ' ;
4+ import { page } from ' $app/state ' ;
55 import { Button } from ' $comp/ui/button' ;
66 import { cn } from ' $lib/utils' ;
77 import { cubicInOut } from ' svelte/easing' ;
2323
2424<nav class ={cn (' flex space-x-2 lg:flex-col lg:space-x-0 lg:space-y-1' , className )} {...props }>
2525 {#each routes as route (route .href )}
26- {@const isActive = $ page .url .pathname === route .href }
26+ {@const isActive = page .url .pathname === route .href }
2727
2828 <Button
2929 class ={cn (! isActive && ' hover:underline' , ' relative justify-start hover:bg-transparent' )}
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { goto } from ' $app/navigation' ;
3- import { page } from ' $app/stores ' ;
3+ import { page } from ' $app/state ' ;
44 import { useFetchClient } from ' @exceptionless/fetchclient' ;
55 import { toast } from ' svelte-sonner' ;
66
77 const client = useFetchClient ();
8- const token = $ page .url .searchParams .get (' token' );
8+ const token = page .url .searchParams .get (' token' );
99
1010 async function verifyAccount() {
1111 if (token ) {
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { goto } from ' $app/navigation' ;
3- import { page } from ' $app/stores ' ;
3+ import { page } from ' $app/state ' ;
44 import ErrorMessage from ' $comp/ErrorMessage.svelte' ;
55 import Loading from ' $comp/Loading.svelte' ;
66 import Logo from ' $comp/Logo.svelte' ;
3131 import IconGoogle from ' ~icons/mdi/google' ;
3232 import IconMicrosoft from ' ~icons/mdi/microsoft' ;
3333
34- const redirectUrl = $ page .url .searchParams .get (' redirect' ) ?? ' /next' ;
34+ const redirectUrl = page .url .searchParams .get (' redirect' ) ?? ' /next' ;
3535
3636 const defaultFormData = new Login ();
37- defaultFormData .invite_token = $ page .url .searchParams .get (' token' );
37+ defaultFormData .invite_token = page .url .searchParams .get (' token' );
3838 const form = superForm (defaults (defaultFormData , classvalidatorClient (Login )), {
3939 dataType: ' json' ,
4040 async onUpdate({ form , result }) {
Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import { goto } from ' $app/navigation' ;
3- import { page } from ' $app/stores ' ;
3+ import { page } from ' $app/state ' ;
44 import Loading from ' $comp/Loading.svelte' ;
55 import Logo from ' $comp/Logo.svelte' ;
66 import { P } from ' $comp/typography' ;
77 import * as Card from ' $comp/ui/card' ;
88 import { getHealthQuery } from ' $features/status/api.svelte' ;
99
10- let redirect = $ page .url .searchParams .get (' redirect' );
10+ let redirect = page .url .searchParams .get (' redirect' );
1111
1212 const healthResponse = getHealthQuery ();
1313 $effect (() => {
You can’t perform that action at this time.
0 commit comments