chore: fix lint errors (#2833)
This PR fixes current lint errors thrown by `deno lint`.
This commit is contained in:
@@ -6,9 +6,9 @@ export function DemoIsland(): JSX.Element {
|
||||
|
||||
return (
|
||||
<div style="display: flex; gap: 1rem; padding: 2rem;">
|
||||
<button onClick={() => (count.value -= 1)}>-1</button>
|
||||
<button type="button" onClick={() => (count.value -= 1)}>-1</button>
|
||||
<p style="font-variant-numeric: tabular-nums;">{count}</p>
|
||||
<button onClick={() => (count.value += 1)}>+1</button>
|
||||
<button type="button" onClick={() => (count.value += 1)}>+1</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -134,7 +134,12 @@ export function ErrorOverlay(props: { url: URL }) {
|
||||
<style dangerouslySetInnerHTML={{ __html: errorCss }} />
|
||||
<div class="inner">
|
||||
<div class="header">
|
||||
<button class="close-btn" aria-label="close" id="close-btn">
|
||||
<button
|
||||
type="button"
|
||||
class="close-btn"
|
||||
aria-label="close"
|
||||
id="close-btn"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
fill="none"
|
||||
|
||||
@@ -14,11 +14,19 @@ export function Counter(props: CounterProps) {
|
||||
|
||||
return (
|
||||
<div id={props.id} class={active.value ? "ready" : ""}>
|
||||
<button class="decrement" onClick={() => props.count.value -= 1}>
|
||||
<button
|
||||
type="button"
|
||||
class="decrement"
|
||||
onClick={() => props.count.value -= 1}
|
||||
>
|
||||
-1
|
||||
</button>
|
||||
<p class="output">{props.count}</p>
|
||||
<button class="increment" onClick={() => props.count.value += 1}>
|
||||
<button
|
||||
type="button"
|
||||
class="increment"
|
||||
onClick={() => props.count.value += 1}
|
||||
>
|
||||
+1
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -16,7 +16,9 @@ export function CounterWithSlots(
|
||||
<div class={active.value ? "ready" : ""}>
|
||||
<div class="counter-with-children">
|
||||
<p class="output">{sig}</p>
|
||||
<button onClick={() => sig.value = sig.peek() + 1}>update</button>
|
||||
<button type="button" onClick={() => sig.value = sig.peek() + 1}>
|
||||
update
|
||||
</button>
|
||||
</div>
|
||||
<div class="children">
|
||||
{props.children}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// deno-lint-ignore-file jsx-curly-braces
|
||||
export function FragmentIsland() {
|
||||
return (
|
||||
<>
|
||||
|
||||
@@ -14,7 +14,7 @@ export function FreshAttrs(props: FreshAttrs) {
|
||||
return (
|
||||
<div id={props.id} class={active.value ? "ready" : ""}>
|
||||
<h1>Fresh attrs</h1>
|
||||
<div class="f-client-nav-true" f-client-nav={true}>f-client-nav=true</div>
|
||||
<div class="f-client-nav-true" f-client-nav>f-client-nav=true</div>
|
||||
<div class="f-client-nav-false" f-client-nav={false}>
|
||||
f-client-nav=false
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,11 @@ export function IslandInIsland() {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<button class="trigger" onClick={() => sig.value = sig.peek() + 1}>
|
||||
<button
|
||||
type="button"
|
||||
class="trigger"
|
||||
onClick={() => sig.value = sig.peek() + 1}
|
||||
>
|
||||
trigger
|
||||
</button>
|
||||
<Counter count={sig} />
|
||||
|
||||
@@ -18,7 +18,11 @@ export function JsxConditional(props: JsxConditionalProps) {
|
||||
return (
|
||||
<div class={active.value ? "ready" : ""}>
|
||||
<p class="cond-output">{sig}</p>
|
||||
<button class="cond-update" onClick={() => sig.value = sig.peek() + 1}>
|
||||
<button
|
||||
type="button"
|
||||
class="cond-update"
|
||||
onClick={() => sig.value = sig.peek() + 1}
|
||||
>
|
||||
update
|
||||
</button>
|
||||
<div class="jsx">{active.value ? props.jsx : null}</div>
|
||||
|
||||
@@ -17,7 +17,11 @@ export function JsxIsland(props: JsxIslandProps) {
|
||||
return (
|
||||
<div class={active.value ? "ready" : ""}>
|
||||
<p class="output">{sig}</p>
|
||||
<button class="update" onClick={() => sig.value = sig.peek() + 1}>
|
||||
<button
|
||||
type="button"
|
||||
class="update"
|
||||
onClick={() => sig.value = sig.peek() + 1}
|
||||
>
|
||||
update
|
||||
</button>
|
||||
<div class="jsx">{props.jsx}</div>
|
||||
|
||||
@@ -10,7 +10,7 @@ export function NodeProcess() {
|
||||
}, []);
|
||||
|
||||
// @ts-ignore bundling
|
||||
// deno-lint-ignore no-process-globals
|
||||
// deno-lint-ignore no-process-global
|
||||
const value = IS_BROWSER ? process.env.NODE_ENV : "no";
|
||||
|
||||
return (
|
||||
|
||||
+107
-42
@@ -62,7 +62,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="output">hello world</p>
|
||||
</Partial>
|
||||
@@ -99,7 +101,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="init">hello world</p>
|
||||
</Partial>
|
||||
@@ -141,7 +145,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="init">hello world</p>
|
||||
</Partial>
|
||||
@@ -174,7 +180,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="ready">foo</p>
|
||||
</Partial>
|
||||
@@ -225,7 +233,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="init">hello world</p>
|
||||
</Partial>
|
||||
@@ -272,7 +282,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p>hello world</p>
|
||||
</Partial>
|
||||
@@ -343,7 +355,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<SelfCounter />
|
||||
</Partial>
|
||||
@@ -386,7 +400,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="init">init</p>
|
||||
<SelfCounter />
|
||||
@@ -432,7 +448,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p class="init">init</p>
|
||||
<SelfCounter />
|
||||
@@ -479,7 +497,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<p class="outer">outer</p>
|
||||
<Partial name="inner">
|
||||
@@ -526,7 +546,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="sib-1">
|
||||
<p class="sib-1">sib-1</p>
|
||||
</Partial>
|
||||
@@ -576,7 +598,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<p key="p" class="init">init</p>
|
||||
<SelfCounter key="a" id="a" />
|
||||
@@ -643,7 +667,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<p key="p" class="init">init</p>
|
||||
|
||||
@@ -717,7 +743,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<p key="p" class="init">init</p>
|
||||
|
||||
@@ -789,7 +817,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<p key="p" class="init">init</p>
|
||||
|
||||
@@ -874,7 +904,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
@@ -922,7 +954,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<Partial name="inner">
|
||||
<p class="init">init</p>
|
||||
@@ -970,7 +1004,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<div class="content">
|
||||
<Partial name="outer">
|
||||
<p class="init">init</p>
|
||||
@@ -1020,7 +1056,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<div class="content">
|
||||
<Partial name="outer">
|
||||
<Partial name="inner">
|
||||
@@ -1069,7 +1107,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<div class="content">
|
||||
<Partial name="outer">
|
||||
<p class="init">init</p>
|
||||
@@ -1118,7 +1158,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<div class="content">
|
||||
<Partial name="outer">
|
||||
<Partial name="inner">
|
||||
@@ -1367,7 +1409,7 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial">
|
||||
<button type="button" f-partial="/partial">
|
||||
<svg
|
||||
width="100"
|
||||
height="100"
|
||||
@@ -1651,8 +1693,8 @@ Deno.test({
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<Partial name="foo">
|
||||
{new Array(10).fill(0).map(() => {
|
||||
return <p>{loremIpsum}</p>;
|
||||
{new Array(10).fill(0).map((it) => {
|
||||
return <p key={it}>{loremIpsum}</p>;
|
||||
})}
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
@@ -1716,7 +1758,12 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button class="update" name="submitter" value="sub">
|
||||
<button
|
||||
type="button"
|
||||
class="update"
|
||||
name="submitter"
|
||||
value="sub"
|
||||
>
|
||||
update
|
||||
</button>
|
||||
</form>
|
||||
@@ -1765,7 +1812,12 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button class="update" name="submitter" value="sub">
|
||||
<button
|
||||
type="button"
|
||||
class="update"
|
||||
name="submitter"
|
||||
value="sub"
|
||||
>
|
||||
update
|
||||
</button>
|
||||
</form>
|
||||
@@ -1818,7 +1870,12 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button class="update" name="submitter" value="sub">
|
||||
<button
|
||||
type="button"
|
||||
class="update"
|
||||
name="submitter"
|
||||
value="sub"
|
||||
>
|
||||
update
|
||||
</button>
|
||||
</form>
|
||||
@@ -1874,7 +1931,7 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button class="update">
|
||||
<button type="button" class="update">
|
||||
update
|
||||
</button>
|
||||
</form>
|
||||
@@ -1924,7 +1981,7 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button>
|
||||
<button type="button">
|
||||
nothing
|
||||
</button>
|
||||
</form>
|
||||
@@ -1985,7 +2042,7 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button>
|
||||
<button type="button">
|
||||
nothing
|
||||
</button>
|
||||
</form>
|
||||
@@ -2048,7 +2105,7 @@ Deno.test({
|
||||
<p class="init">init</p>
|
||||
</Partial>
|
||||
<SelfCounter />
|
||||
<button>
|
||||
<button type="button">
|
||||
nothing
|
||||
</button>
|
||||
</form>
|
||||
@@ -2189,8 +2246,8 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
{new Array(10).fill(0).map(() => {
|
||||
return <p>{loremIpsum}</p>;
|
||||
{new Array(10).fill(0).map((it) => {
|
||||
return <p key={it}>{loremIpsum}</p>;
|
||||
})}
|
||||
<h1 id="foo">Same nav</h1>
|
||||
<a href="#foo">#foo</a>
|
||||
@@ -2238,7 +2295,7 @@ Deno.test({
|
||||
</p>
|
||||
</Partial>
|
||||
<p>
|
||||
<button class="update" f-partial="/partial">
|
||||
<button type="button" class="update" f-partial="/partial">
|
||||
update
|
||||
</button>
|
||||
</p>
|
||||
@@ -2317,7 +2374,7 @@ Deno.test({
|
||||
</p>
|
||||
</Partial>
|
||||
<p>
|
||||
<button class="update" f-partial="/partial">
|
||||
<button type="button" class="update" f-partial="/partial">
|
||||
update
|
||||
</button>
|
||||
</p>
|
||||
@@ -2392,7 +2449,7 @@ Deno.test({
|
||||
</p>
|
||||
</Partial>
|
||||
<p>
|
||||
<button class="update" f-partial="/partial">
|
||||
<button type="button" class="update" f-partial="/partial">
|
||||
update
|
||||
</button>
|
||||
</p>
|
||||
@@ -2419,7 +2476,7 @@ Deno.test({
|
||||
</p>
|
||||
</Partial>
|
||||
<p>
|
||||
<button class="update" f-partial="/partial">
|
||||
<button type="button" class="update" f-partial="/partial">
|
||||
update
|
||||
</button>
|
||||
</p>
|
||||
@@ -2473,7 +2530,7 @@ Deno.test({
|
||||
</p>
|
||||
</Partial>
|
||||
<p>
|
||||
<button f-partial="?refresh">
|
||||
<button type="button" f-partial="?refresh">
|
||||
refresh
|
||||
</button>
|
||||
</p>
|
||||
@@ -2512,7 +2569,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="outer">
|
||||
<SelfCounter id="outer" />
|
||||
<Partial name="inner">
|
||||
@@ -2565,7 +2624,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<h1>foo</h1>
|
||||
</Partial>
|
||||
@@ -2593,7 +2654,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<h1>foo</h1>
|
||||
</Partial>
|
||||
@@ -2639,7 +2702,9 @@ Deno.test({
|
||||
return ctx.render(
|
||||
<Doc>
|
||||
<div f-client-nav>
|
||||
<button f-partial="/partial" class="update">update</button>
|
||||
<button type="button" f-partial="/partial" class="update">
|
||||
update
|
||||
</button>
|
||||
<Partial name="foo">
|
||||
<h1>foo</h1>
|
||||
</Partial>
|
||||
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
{
|
||||
"version": "4",
|
||||
"specifiers": {
|
||||
"npm:@opentelemetry/api@^1.9.0": "1.9.0",
|
||||
"npm:@preact/signals@^1.2.3": "1.3.2_preact@10.26.4",
|
||||
"npm:esbuild-wasm@0.23.1": "0.23.1",
|
||||
"npm:esbuild@0.23.1": "0.23.1",
|
||||
"npm:preact-render-to-string@^6.5.11": "6.5.13_preact@10.26.4",
|
||||
"npm:preact@^10.25.1": "10.26.4"
|
||||
},
|
||||
"npm": {
|
||||
"@esbuild/aix-ppc64@0.23.1": {
|
||||
"integrity": "sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ=="
|
||||
},
|
||||
"@esbuild/android-arm64@0.23.1": {
|
||||
"integrity": "sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw=="
|
||||
},
|
||||
"@esbuild/android-arm@0.23.1": {
|
||||
"integrity": "sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ=="
|
||||
},
|
||||
"@esbuild/android-x64@0.23.1": {
|
||||
"integrity": "sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg=="
|
||||
},
|
||||
"@esbuild/darwin-arm64@0.23.1": {
|
||||
"integrity": "sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q=="
|
||||
},
|
||||
"@esbuild/darwin-x64@0.23.1": {
|
||||
"integrity": "sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw=="
|
||||
},
|
||||
"@esbuild/freebsd-arm64@0.23.1": {
|
||||
"integrity": "sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA=="
|
||||
},
|
||||
"@esbuild/freebsd-x64@0.23.1": {
|
||||
"integrity": "sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g=="
|
||||
},
|
||||
"@esbuild/linux-arm64@0.23.1": {
|
||||
"integrity": "sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g=="
|
||||
},
|
||||
"@esbuild/linux-arm@0.23.1": {
|
||||
"integrity": "sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ=="
|
||||
},
|
||||
"@esbuild/linux-ia32@0.23.1": {
|
||||
"integrity": "sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ=="
|
||||
},
|
||||
"@esbuild/linux-loong64@0.23.1": {
|
||||
"integrity": "sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw=="
|
||||
},
|
||||
"@esbuild/linux-mips64el@0.23.1": {
|
||||
"integrity": "sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q=="
|
||||
},
|
||||
"@esbuild/linux-ppc64@0.23.1": {
|
||||
"integrity": "sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw=="
|
||||
},
|
||||
"@esbuild/linux-riscv64@0.23.1": {
|
||||
"integrity": "sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA=="
|
||||
},
|
||||
"@esbuild/linux-s390x@0.23.1": {
|
||||
"integrity": "sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw=="
|
||||
},
|
||||
"@esbuild/linux-x64@0.23.1": {
|
||||
"integrity": "sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ=="
|
||||
},
|
||||
"@esbuild/netbsd-x64@0.23.1": {
|
||||
"integrity": "sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA=="
|
||||
},
|
||||
"@esbuild/openbsd-arm64@0.23.1": {
|
||||
"integrity": "sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q=="
|
||||
},
|
||||
"@esbuild/openbsd-x64@0.23.1": {
|
||||
"integrity": "sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA=="
|
||||
},
|
||||
"@esbuild/sunos-x64@0.23.1": {
|
||||
"integrity": "sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA=="
|
||||
},
|
||||
"@esbuild/win32-arm64@0.23.1": {
|
||||
"integrity": "sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A=="
|
||||
},
|
||||
"@esbuild/win32-ia32@0.23.1": {
|
||||
"integrity": "sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ=="
|
||||
},
|
||||
"@esbuild/win32-x64@0.23.1": {
|
||||
"integrity": "sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg=="
|
||||
},
|
||||
"@opentelemetry/api@1.9.0": {
|
||||
"integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="
|
||||
},
|
||||
"@preact/signals-core@1.8.0": {
|
||||
"integrity": "sha512-OBvUsRZqNmjzCZXWLxkZfhcgT+Fk8DDcT/8vD6a1xhDemodyy87UJRJfASMuSD8FaAIeGgGm85ydXhm7lr4fyA=="
|
||||
},
|
||||
"@preact/signals@1.3.2_preact@10.26.4": {
|
||||
"integrity": "sha512-naxcJgUJ6BTOROJ7C3QML7KvwKwCXQJYTc5L/b0eEsdYgPB6SxwoQ1vDGcS0Q7GVjAenVq/tXrybVdFShHYZWg==",
|
||||
"dependencies": [
|
||||
"@preact/signals-core",
|
||||
"preact"
|
||||
]
|
||||
},
|
||||
"esbuild-wasm@0.23.1": {
|
||||
"integrity": "sha512-L3vn7ctvBrtScRfoB0zG1eOCiV4xYvpLYWfe6PDZuV+iDFDm4Mt3xeLIDllG8cDHQ8clUouK3XekulE+cxgkgw=="
|
||||
},
|
||||
"esbuild@0.23.1": {
|
||||
"integrity": "sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==",
|
||||
"dependencies": [
|
||||
"@esbuild/aix-ppc64",
|
||||
"@esbuild/android-arm",
|
||||
"@esbuild/android-arm64",
|
||||
"@esbuild/android-x64",
|
||||
"@esbuild/darwin-arm64",
|
||||
"@esbuild/darwin-x64",
|
||||
"@esbuild/freebsd-arm64",
|
||||
"@esbuild/freebsd-x64",
|
||||
"@esbuild/linux-arm",
|
||||
"@esbuild/linux-arm64",
|
||||
"@esbuild/linux-ia32",
|
||||
"@esbuild/linux-loong64",
|
||||
"@esbuild/linux-mips64el",
|
||||
"@esbuild/linux-ppc64",
|
||||
"@esbuild/linux-riscv64",
|
||||
"@esbuild/linux-s390x",
|
||||
"@esbuild/linux-x64",
|
||||
"@esbuild/netbsd-x64",
|
||||
"@esbuild/openbsd-arm64",
|
||||
"@esbuild/openbsd-x64",
|
||||
"@esbuild/sunos-x64",
|
||||
"@esbuild/win32-arm64",
|
||||
"@esbuild/win32-ia32",
|
||||
"@esbuild/win32-x64"
|
||||
]
|
||||
},
|
||||
"preact-render-to-string@6.5.13_preact@10.26.4": {
|
||||
"integrity": "sha512-iGPd+hKPMFKsfpR2vL4kJ6ZPcFIoWZEcBf0Dpm3zOpdVvj77aY8RlLiQji5OMrngEyaxGogeakTb54uS2FvA6w==",
|
||||
"dependencies": [
|
||||
"preact"
|
||||
]
|
||||
},
|
||||
"preact@10.26.4": {
|
||||
"integrity": "sha512-KJhO7LBFTjP71d83trW+Ilnjbo+ySsaAgCfXOXUlmGzJ4ygYPWmysm77yg4emwfmoz3b22yvH5IsVFHbhUaH5w=="
|
||||
}
|
||||
},
|
||||
"workspace": {
|
||||
"dependencies": [
|
||||
"jsr:@fresh/core@^2.0.0-alpha.29",
|
||||
"jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",
|
||||
"npm:@preact/signals@^2.0.1",
|
||||
"npm:preact@^10.25.4"
|
||||
]
|
||||
}
|
||||
}
|
||||
+1147
File diff suppressed because it is too large
Load Diff
@@ -6,7 +6,7 @@ import { SectionHeading } from "../homepage/SectionHeading.tsx";
|
||||
export function DenoSection() {
|
||||
return (
|
||||
<PageSection>
|
||||
<SideBySide reverseOnDesktop={true}>
|
||||
<SideBySide reverseOnDesktop>
|
||||
<img
|
||||
src="/illustration/lemon-squash.svg"
|
||||
class="w-full h-auto mx-auto max-w-[24rem] mt-8 mb-4"
|
||||
|
||||
@@ -32,7 +32,7 @@ export function IslandsSection() {
|
||||
<SideBySide
|
||||
mdColSplit="3/2"
|
||||
lgColSplit="3/2"
|
||||
reverseOnDesktop={true}
|
||||
reverseOnDesktop
|
||||
class="!items-start"
|
||||
>
|
||||
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
||||
@@ -80,7 +80,7 @@ export function IslandsSection() {
|
||||
/>
|
||||
</CodeWindow>
|
||||
<ExampleArrow class="[transform:rotateY(-180deg)]" />
|
||||
<DemoBox flip={true}>
|
||||
<DemoBox flip>
|
||||
<Counter start={3} />
|
||||
</DemoBox>
|
||||
</div>
|
||||
|
||||
@@ -37,7 +37,7 @@ export function PartialsSection() {
|
||||
<SideBySide
|
||||
mdColSplit="3/2"
|
||||
lgColSplit="3/2"
|
||||
reverseOnDesktop={true}
|
||||
reverseOnDesktop
|
||||
class="!items-start"
|
||||
>
|
||||
<div class="flex flex-col gap-4 md:sticky md:top-4">
|
||||
@@ -82,7 +82,7 @@ export function PartialsSection() {
|
||||
/>
|
||||
</CodeWindow>
|
||||
<ExampleArrow class="[transform:rotateY(-180deg)]" />
|
||||
<DemoBox flip={true}>
|
||||
<DemoBox flip>
|
||||
<RecipeDemo />
|
||||
</DemoBox>
|
||||
</div>
|
||||
|
||||
@@ -6,13 +6,13 @@ export const RecipeDemo = () => (
|
||||
class="w-full grid grid-cols-1 md:grid-cols-[auto_1fr] text-left gap-6 items-stretch min-h-64"
|
||||
>
|
||||
<aside class="flex flex-col gap-2 underline p-6 pl-0 border-b md:border-r md:border-b-0 border-current text-left items-start justify-center">
|
||||
<button f-partial="/recipes/lemonade">
|
||||
<button type="button" f-partial="/recipes/lemonade">
|
||||
Lemonade
|
||||
</button>
|
||||
<button f-partial="/recipes/lemon-honey-tea">
|
||||
<button type="button" f-partial="/recipes/lemon-honey-tea">
|
||||
Lemon-honey tea
|
||||
</button>
|
||||
<button f-partial="/recipes/lemondrop">
|
||||
<button type="button" f-partial="/recipes/lemondrop">
|
||||
Lemondrop Martini
|
||||
</button>
|
||||
</aside>
|
||||
|
||||
@@ -25,7 +25,7 @@ export function SocialProof() {
|
||||
/>
|
||||
</a>
|
||||
<div class="flex flex-col gap-8 items-center justify-center -mt-8 md:-mt-16 lg:-mt-32">
|
||||
<DemoBox flip={true}>
|
||||
<DemoBox flip>
|
||||
<blockquote class="text-center italic text-lg sm:text-xl md:text-2xl lg:text-2xl xl:text-3xl max-w-screen-md text-gray-700 text-balance font-normal border-l-yellow-300 mx-auto my-4">
|
||||
<span class="font-semibold inline-block transform scale-150 relative -left-3 top-1 leading-none">
|
||||
“
|
||||
|
||||
@@ -46,6 +46,7 @@ export default function CopyArea(props: { code: string }) {
|
||||
Copied!
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
aria-label="Copy to Clipboard"
|
||||
disabled={!IS_BROWSER}
|
||||
class={`rounded p-1.5 border border-foreground-secondary/30 hover:bg-foreground-secondary/70 ${
|
||||
|
||||
@@ -10,7 +10,7 @@ export function FormSubmitDemo() {
|
||||
value="lemon-meringue-pie"
|
||||
id="lemon-meringue-pie"
|
||||
name="treat"
|
||||
checked={true}
|
||||
checked
|
||||
/>
|
||||
Lemon meringue pie
|
||||
</label>
|
||||
|
||||
@@ -103,6 +103,7 @@ export function TableOfContents({ headings }: TableOfContentsProps) {
|
||||
<>
|
||||
<div class="xl:hidden mx-4 md:mx-0 mt-4 md:mt-0">
|
||||
<button
|
||||
type="button"
|
||||
id="toc-outline-btn"
|
||||
onClick={() => setIsOpen((v) => !v)}
|
||||
class="bg-background-primary py-2 px-4 rounded border border-foreground-secondary/30 flex items-center hover:border-fresh-green/80 transition-colors text-sm"
|
||||
|
||||
@@ -150,7 +150,7 @@ export default define.page<typeof handler>(function DocsPage(props) {
|
||||
return (
|
||||
<div class="flex flex-col min-h-screen mx-auto max-w-screen-2xl">
|
||||
<Header title="docs" active="/docs" />
|
||||
<div f-client-nav={true}>
|
||||
<div f-client-nav>
|
||||
<MobileSidebar page={page} />
|
||||
<div class="flex mx-auto max-w-screen-2xl px-0 md:px-4 md:py-0 justify-start bg-background-secondary">
|
||||
<label
|
||||
|
||||
Reference in New Issue
Block a user