File tree 5 files changed +13
-13
lines changed
5 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
// See https://svelte.dev/docs/kit/types#app.d.ts
2
- import type { components } from '$lib/clients/v1' ;
2
+ import type { components } from '$lib/clients/v1/schema ' ;
3
3
4
4
type Profile = components [ 'schemas' ] [ 'Profile' ] ;
5
5
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { page } from ' $app/stores ' ;
2
+ import { page } from ' $app/state ' ;
3
3
import ChartBarsIcon from ' $lib/components/icons/chart_bars.svelte' ;
4
4
import QuibbleLogo from ' $lib/components/icons/logos/quibble.svelte' ;
5
5
import QuibbleTextLogo from ' $lib/components/icons/logos/quibble_text.svelte' ;
15
15
let { on_menu_click }: Props = $props ();
16
16
17
17
const show_search_in_community = $derived (
18
- $ page .url .pathname .includes (' /q/' ) && $ page .data .community
18
+ page .url .pathname .includes (' /q/' ) && page .data .community
19
19
);
20
20
21
21
const modalsStore = createModalsStore (),
61
61
<div
62
62
class =" ml-2 flex items-center gap-2 rounded-lg border border-neutral bg-base-100 p-1 px-1.5"
63
63
>
64
- <Avatar src ={$ page .data .community .avatar } class =" size-5 rounded-full" />
64
+ <Avatar src ={page .data .community .avatar } class =" size-5 rounded-full" />
65
65
<h5 class =" whitespace-nowrap text-xs font-medium" >
66
- q/{$ page .data .community .name }
66
+ q/{page .data .community .name }
67
67
</h5 >
68
68
</div >
69
69
{/if }
70
70
<input
71
71
type =" text"
72
72
class =" grow border-none text-sm font-medium focus:ring-0"
73
73
placeholder ={show_search_in_community
74
- ? ` Search in q/${$ page .params .name } `
74
+ ? ` Search in q/${page .params .name } `
75
75
: ' Search...' }
76
76
/>
77
77
</label >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { page } from ' $app/stores ' ;
2
+ import { page } from ' $app/state ' ;
3
3
import type { components } from ' $lib/clients/v1/schema' ;
4
4
import Avatar from ' $lib/components/ui/avatar.svelte' ;
5
5
import BackdropImage from ' $lib/components/ui/backdrop_image.svelte' ;
30
30
}
31
31
32
32
function get_avatar() {
33
- return $ page .url .pathname .includes (' /q/' ) ? post .poster .avatar : post .poster .avatar ;
33
+ return page .url .pathname .includes (' /q/' ) ? post .poster .avatar : post .poster .avatar ;
34
34
}
35
35
36
36
function get_name() {
37
- return $ page .url .pathname .includes (' /q/' )
37
+ return page .url .pathname .includes (' /q/' )
38
38
? ` u/${post .poster .username } `
39
39
: ` q/${post .community .name } ` ;
40
40
}
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { page } from ' $app/stores ' ;
2
+ import { page } from ' $app/state ' ;
3
3
import Quibble404 from ' $lib/assets/vectors/quibble_404.svg' ;
4
4
</script >
5
5
12
12
<div class =" flex flex-col" >
13
13
<h4 class =" text-xl font-bold text-error" >oh noh!!</h4 >
14
14
<!-- eslint-disable svelte/no-at-html-tags -->
15
- <h5 >{@html $ page .error ?.message }</h5 >
15
+ <h5 >{@html page .error ?.message }</h5 >
16
16
<!-- eslint-enable svelte/no-at-html-tags -->
17
17
<a href =" /" aria-label =" home" class =" btn btn-primary btn-sm mt-4 w-max" >
18
18
<coreicons-shape-home class =" size-4" ></coreicons-shape-home >
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
- import { page } from ' $app/stores ' ;
2
+ import { page } from ' $app/state ' ;
3
3
import Quibble404 from ' $lib/assets/vectors/quibble_404.svg' ;
4
4
</script >
5
5
11
11
<img src ={Quibble404 } class =" w-28" alt =" " />
12
12
<div class =" flex flex-col" >
13
13
<h4 class =" text-xl font-bold text-error" >oops!!</h4 >
14
- <h5 >{$ page .error ?.message }</h5 >
14
+ <h5 >{page .error ?.message }</h5 >
15
15
<a href =" /" aria-label =" home" class =" btn btn-primary btn-sm mt-4 w-max" >
16
16
<coreicons-shape-home class =" size-4" ></coreicons-shape-home >
17
17
Back to home
You can’t perform that action at this time.
0 commit comments