3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7
3// Initialize Notion client
4const notion = new Client({
5 auth: Deno.env.get("NOTION_API_KEY"),
6});
7
21import * as Main from "chrome-devtools-frontend/entrypoints/main/main.js";
22
23// Fix crash on Firefox (non standard / unsupported api used)
24ShadowRoot.prototype.getSelection = ShadowRoot.prototype.getComponentSelection;
25Element.prototype.scrollIntoViewIfNeeded = Element.prototype.scrollIntoView;
49 const teamId = "5LJ2HBVN6V";
50 const bundleId = isStaging ? "com.oneroofapp.snag.dev.voip" : "com.oneroofapp.snag.voip";
51 const endpoint = isSandbox ? "https://api.sandbox.push.apple.com/3/device" : "https://api.push.apple.com/3/device";
52
53 // 2. Create the JWT for authentication.
52 const apnsResponse = await fetch(
53 // The APNs endpoint includes the target device token.
54 `https://api.push.apple.com/3/device/${deviceToken}`,
55 {
56 method: "POST",
6 <title>React Hono Val Town Starter</title>
7 <script src="https://cdn.tailwindcss.com"></script>
8 <link rel="preconnect" href="https://fonts.googleapis.com">
9 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10 <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
11 <link rel="icon" href="/public/favicon.svg" sizes="any" type="image/svg+xml">
12 <style>
38```
39
40## API Endpoints
41
42- `GET /` - Serves the React application with initial data
43- `GET /api/messages` - Fetch all messages (JSON)
44- `POST /api/messages` - Create a new message
45- `GET /public/**` - Static assets (CSS, JS, etc.)
46- `/*` - All other routes handled by TanStack Router