mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-11 02:33:42 +00:00
chore: generate
This commit is contained in:
parent
146720e197
commit
04513d9692
2 changed files with 2 additions and 6 deletions
|
|
@ -24,8 +24,7 @@ export default createHandler(
|
|||
const event = getRequestEvent() as PageEvent | undefined
|
||||
const locale = event ? localeFromRequest(event.request) : "en"
|
||||
const stylesheet = (event?.assets as Asset[] | undefined)?.find(
|
||||
(asset): asset is Extract<Asset, { tag: "link" }> =>
|
||||
asset.tag === "link" && asset.attrs.rel === "stylesheet",
|
||||
(asset): asset is Extract<Asset, { tag: "link" }> => asset.tag === "link" && asset.attrs.rel === "stylesheet",
|
||||
)
|
||||
const stylesheetHref = import.meta.env.DEV ? statsStylesheetUrl : stylesheet?.attrs.href
|
||||
|
||||
|
|
|
|||
|
|
@ -83,10 +83,7 @@ export function ComparisonCardsSection(props: {
|
|||
|
||||
function FeaturedComparisonCard(props: { pair: ComparisonPair }) {
|
||||
return (
|
||||
<a
|
||||
data-component="compare-home-card"
|
||||
href={canonicalComparisonHref(props.pair.first, props.pair.second)}
|
||||
>
|
||||
<a data-component="compare-home-card" href={canonicalComparisonHref(props.pair.first, props.pair.second)}>
|
||||
<span data-slot="compare-home-card-head">
|
||||
<span>
|
||||
<strong>{props.pair.detail}</strong>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue