Skip to content

Commit d6940cc

Browse files
committed
bruh
1 parent 1c254d0 commit d6940cc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

islands/Hiccups.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
const kv = await Deno.openKv();
1+
//const kv = await Deno.openKv();
22
//kv.set(["hiccups", "alltime"], "1");
3-
const hiccups = await kv.get(["hiccups", "alltime"]);
3+
//const hiccups = await kv.get(["hiccups", "alltime"]);
44
export default function Hiccup() {
5-
let globalhic = "";
5+
/*let globalhic = "";
66
if (hiccups != undefined) {
7-
globalhic = "<p>Global Hiccup counter: " + hiccups.value + "</p>";
7+
globalhic = "Global Hiccup counter: " + hiccups.value;
88
}
9-
console.log(hiccups)
9+
console.log(hiccups)*/
1010
return (
1111
<div class="flex flex-col items-center">
1212
<p>26</p>
1313
<div dangerouslySetInnerHTML={{ __html: `
1414
<button onclick="playAudio()" type="button">Click here to Hiccup</button>`
1515
}} />
16-
{globalhic}
1716
</div>
1817
)
1918
}

routes/api/hiccup.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { FreshContext } from "$fresh/server.ts";
1+
/*import { FreshContext } from "$fresh/server.ts";
22
const kv = await Deno.openKv();
33
const hiccups = await kv.get(["hiccups", "alltime"]);
44
export const handler = (_req: Request, _ctx: FreshContext): Response => {
55
console.log("test")
66
kv.set(["hiccups", "alltime"], hiccups.value + 1);
77
return new Response(hiccups.value);
88
};
9+
*/

0 commit comments

Comments
 (0)