This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { renderToReadableStream } from "jsr:@bureaudouble/[email protected]/react-server-dom-esm/server.edge"; | |
import { cache } from "jsr:@bureaudouble/[email protected]/react.react-server"; | |
import { createElement } from "jsr:@bureaudouble/[email protected]/react.react-server"; | |
const getId = cache(() => ({ id: Math.random() })); | |
const A = async () => { | |
await new Promise((res) => setTimeout(res, 10)); | |
const id = getId(); | |
console.log(id); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const appName = "[Sibyl Monitoring System]"; | |
const endpointRaw = new URL(import.meta.url).searchParams.get("endpoint"); | |
const endpoint = endpointRaw ? decodeURIComponent(endpointRaw) : null; | |
const isBrowser = typeof window !== "undefined"; | |
const isLocal = | |
!isBrowser || | |
["localhost", "127.0.0.1", "[::1]"].includes(location.hostname) || | |
location.hostname.includes("192."); | |
const isRobot = /bot|googlebot|crawler|spider|robot|crawling/i.test( | |
isBrowser ? navigator.userAgent : "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { MeshTransmissionMaterial } from "@react-three/drei"; | |
import { types } from "@theatre/core"; | |
import { useCurrentSheet } from "@theatre/r3f"; | |
import { useEffect, useRef, useState } from "react"; | |
const EditableMeshTransmissionMaterial: typeof MeshTransmissionMaterial & { | |
theatreKey: string; | |
} = ({ theatreKey, ...props }) => { | |
const ref = useRef<JSX.IntrinsicElements["meshTransmissionMaterial"]>(null!); | |
const sheet = useCurrentSheet(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference lib="deno.unstable" /> | |
import { denoPlugins } from "https://deno.land/x/[email protected]/mod.ts"; | |
import * as esbuild from "https://deno.land/x/[email protected]/wasm.js"; | |
import { | |
collectAndCleanScripts, | |
getHashSync, | |
scripted, | |
storeFunctionExecution, | |
} from "https://deno.land/x/[email protected]/mod.ts"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const CLICK_PLAY_VIDEO = "click_play_video"; | |
export const CLICK_POSTER = "click_poster"; | |
export const CLICK_GALLERY_IMAGE = "click_gallery_image"; | |
export const CLICK_NAV_INFO = "click_nav_info"; | |
export const CLICK_NAV_SHOWTIMES = "click_nav_showtimes"; | |
export const CLICK_NAV_OTHER = "click_nav_other"; | |
export const CLICK_QUIZ_ANSWER = "click_quiz_answer"; | |
export const CLICK_SHOWTIME = "click_showtime"; | |
export const CLICK_SHOWTIME_BOOK = "click_showtime_book"; | |
export const CLICK_SHOWTIME_PHONE = "click_showtime_phone"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default () => <div>OK</div>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { fromFileUrl, join } from "https://deno.land/[email protected]/path/mod.ts"; | |
import * as esbuild from "https://deno.land/x/[email protected]/wasm.js"; | |
import { denoPlugins } from "https://deno.land/x/[email protected]/mod.ts"; | |
import { | |
getHashSync, | |
scripted, | |
collectAndCleanScripts, | |
} from "https://deno.land/x/[email protected]/mod.ts"; | |
export { scripted } from "https://deno.land/x/[email protected]/mod.ts"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { register } from "./islands.ts"; | |
export default ({ proxy: C, specifier, name, children, ...props }) => ( | |
<C | |
{...props} | |
className={[register(specifier, props, name), props.className].filter((v) => v).join(" ")} | |
> | |
{children} | |
</C> | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
type TableOptions, | |
type TableOptionsResolved, | |
type RowData, | |
createTable, | |
} from "@tanstack/table-core"; | |
export * from "@tanstack/table-core"; | |
import { useComputed, useSignal } from "@preact/signals"; | |
export type Renderable<TProps> = React.ReactNode | React.ComponentType<TProps>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h } from "preact"; | |
import { createContext, ComponentChildren } from "preact"; | |
import { useContext } from "preact/hooks"; | |
import { Signal } from "@preact/signals"; | |
interface ComboboxProps { | |
children: ComponentChildren; | |
value: string | Signal<string>; | |
onChange: (value: string | null) => void; | |
nullable?: boolean; |
NewerOlder