Skip to content

Commit 448b18b

Browse files
Blankeosgithub-actions[bot]
authored andcommitted
Format
1 parent 4785076 commit 448b18b

File tree

5 files changed

+31
-31
lines changed

5 files changed

+31
-31
lines changed

dev/icons/shuffle.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JSX, VoidProps } from 'solid-js'
1+
import { JSX, VoidProps } from 'solid-js';
22

33
export function IconShuffle(props: VoidProps<JSX.HTMLAttributes<SVGSVGElement>>) {
44
return (
@@ -10,5 +10,5 @@ export function IconShuffle(props: VoidProps<JSX.HTMLAttributes<SVGSVGElement>>)
1010
fill="currentColor"
1111
></path>
1212
</svg>
13-
)
13+
);
1414
}

dev/icons/solidjs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { JSX, VoidProps } from 'solid-js'
1+
import { JSX, VoidProps } from 'solid-js';
22

33
export function IconSolidJS(props: VoidProps<JSX.HTMLAttributes<SVGSVGElement>>) {
44
return (
@@ -55,5 +55,5 @@ export function IconSolidJS(props: VoidProps<JSX.HTMLAttributes<SVGSVGElement>>)
5555
</linearGradient>
5656
<path d="M114 115a45 45 0 00-48-15L4 120s53 40 94 30l3-1c17-5 23-21 13-34z" fill="url(#d)" />
5757
</svg>
58-
)
58+
);
5959
}

dev/markdown.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { createEffect, createResource, createSignal, FlowProps, JSX, Show } from 'solid-js'
2-
import * as shikiji from 'shikiji'
3-
import { Dynamic, render } from 'solid-js/web'
4-
import { MDXProvider } from 'solid-marked'
1+
import { createEffect, createResource, createSignal, FlowProps, JSX, Show } from 'solid-js';
2+
import * as shikiji from 'shikiji';
3+
import { Dynamic, render } from 'solid-js/web';
4+
import { MDXProvider } from 'solid-marked';
55

66
export function Markdown(props: FlowProps) {
77
const [highlighter] = createResource(async () =>
88
shikiji.getHighlighter({
99
langs: ['tsx', 'jsx', 'md', 'mdx', 'markdown', 'bash', 'js', 'ts'],
1010
themes: ['vitesse-dark'],
1111
}),
12-
)
12+
);
1313

1414
return (
1515
<MDXProvider
@@ -21,44 +21,44 @@ export function Markdown(props: FlowProps) {
2121
{props.children}
2222
</Dynamic>
2323
</a>
24-
)
24+
);
2525
},
2626
Paragraph(props): JSX.Element {
27-
return <p>{props.children}</p>
27+
return <p>{props.children}</p>;
2828
},
2929
Root(props): JSX.Element {
30-
return <div class="">{props.children}</div>
30+
return <div class="">{props.children}</div>;
3131
},
3232
Blockquote(props): JSX.Element {
33-
return <blockquote>{props.children}</blockquote>
33+
return <blockquote>{props.children}</blockquote>;
3434
},
3535
Image(props): JSX.Element {
36-
return <img src={props.url} alt={props.alt ?? props.title ?? undefined} />
36+
return <img src={props.url} alt={props.alt ?? props.title ?? undefined} />;
3737
},
3838
Code(props): JSX.Element {
39-
const [ref, setRef] = createSignal<HTMLPreElement | undefined>()
39+
const [ref, setRef] = createSignal<HTMLPreElement | undefined>();
4040
createEffect(() => {
41-
const current = ref()
42-
const instance = highlighter()
43-
const content = props.children
41+
const current = ref();
42+
const instance = highlighter();
43+
const content = props.children;
4444
if (current && instance && content) {
4545
current.innerHTML = instance.codeToHtml(content, {
4646
lang: (props.lang ?? undefined) as shikiji.BuiltinLanguage,
4747
theme: 'vitesse-dark',
48-
})
48+
});
4949
}
50-
})
51-
return <div ref={setRef} lang={props.lang ?? undefined} />
50+
});
51+
return <div ref={setRef} lang={props.lang ?? undefined} />;
5252
},
5353
InlineCode(props): JSX.Element {
54-
return <code>{props.children}</code>
54+
return <code>{props.children}</code>;
5555
},
5656
List(props): JSX.Element {
5757
return (
5858
<Dynamic component={props.ordered ? 'ol' : 'ul'} start={props.start ?? undefined}>
5959
{props.children}
6060
</Dynamic>
61-
)
61+
);
6262
},
6363
ListItem(props): JSX.Element {
6464
return (
@@ -68,18 +68,18 @@ export function Markdown(props: FlowProps) {
6868
{props.children}
6969
</Show>
7070
</li>
71-
)
71+
);
7272
},
7373
Link(props): JSX.Element {
7474
return (
7575
<a href={props.url} title={props.title ?? undefined}>
7676
{props.children}
7777
</a>
78-
)
78+
);
7979
},
8080
}}
8181
>
8282
{props.children}
8383
</MDXProvider>
84-
)
84+
);
8585
}

dev/pages/+Layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { FlowProps } from 'solid-js'
2-
import '../styles.css'
1+
import { FlowProps } from 'solid-js';
2+
import '../styles.css';
33

44
export default function Layout(props: FlowProps) {
5-
return <>{props.children}</>
5+
return <>{props.children}</>;
66
}

dev/pages/_error/+Page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Show } from "solid-js";
2-
import { usePageContext } from "vike-solid/usePageContext";
1+
import { Show } from 'solid-js';
2+
import { usePageContext } from 'vike-solid/usePageContext';
33

44
export default function Page() {
55
const { is404 } = usePageContext();

0 commit comments

Comments
 (0)