1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4import App from "./components/App.tsx";
5
19โ โโโ index.ts # Main API entry point
20โโโ frontend/
21โ โโโ components/ # React components
22โ โโโ index.html # Main HTML template
23โ โโโ index.tsx # Frontend entry point
27## Technologies Used
28
29- Frontend: React, TailwindCSS
30- Backend: Hono API framework
31- Database: SQLite
60 <input type="text" id="repo" name="repo" required
61 class="w-full px-4 py-2 border border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500"
62 placeholder="e.g., react">
63 </div>
64 </div>
38- GitHub REST API
39- Hono (backend framework)
40- React (frontend)
41- TailwindCSS (styling)
274 createMemory(
275 "2025-04-13",
276 "Lucas allergic to peanuts - mild reaction only, not anaphylactic.",
277 "telegram",
278 "telegram",
22## Technologies
23
24- React (Frontend UI)
25- Tailwind CSS (Styling)
26- Browser localStorage (Data persistence)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState, useEffect } from "https://esm.sh/react@18.2.0";
3import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
4
5// Define Note type
256 <script type="module">
257 import { NotesApp } from "${url.origin}";
258 import React from "https://esm.sh/react@18.2.0";
259 import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
260
261 const root = createRoot(document.getElementById("app"));
262 root.render(React.createElement(NotesApp));
263 </script>
264 </body>`);
271 }
272
273 // Export the React component for the frontend
274 if (url.pathname === "/") {
275 return new Response(`export const NotesApp = ${NotesApp.toString()}`, {
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
3
4// Html5QrcodeScanner is loaded from CDN in index.html
105
106 // Handle manual code submission
107 const handleManualSubmit = (e: React.FormEvent) => {
108 e.preventDefault();
109
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useEffect, useRef } from "https://esm.sh/react@18.2.0";
3import { Ticket, TicketType } from "../../shared/types.ts";
4
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import React, { useState } from "https://esm.sh/react@18.2.0";
3import { TicketType } from "../../shared/types.ts";
4