2 * This app generates cute daily notes for a daughter using OpenAI's GPT model.
3 * It stores the generated notes in SQLite for persistence and displays them on a simple web interface.
4 * The app uses React for the frontend and Deno's runtime environment in Val Town for the backend.
5 */
6
7/** @jsxImportSource https://esm.sh/react */
8import React, { useEffect, useState } from "https://esm.sh/react";
9import { createRoot } from "https://esm.sh/react-dom/client";
10
11function App() {
5 */
6
7/** @jsxImportSource https://esm.sh/react */
8import React, { useState, useEffect } from "https://esm.sh/react";
9import { createRoot } from "https://esm.sh/react-dom/client";
10
11function App() {
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4import { Hono } from "npm:hono";
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import date_me_doc_locations from "https://esm.town/v/stevekrouse/date_me_doc_locations";
3const Link = ({ href, children }) => {
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import isPointWithinRadius from "https://esm.sh/geolib/es/isPointWithinRadius";
3import { useLoaderData } from "https://esm.sh/react-router-dom@6.23.0?deps=react@18.2.0,react-dom@18.2.0";
4import date_me_doc_locations_geo from "https://esm.town/v/stevekrouse/date_me_doc_locations_geo";
5import { nominatimSearch } from "https://esm.town/v/stevekrouse/nominatimSearch";
32}
33
34// TODO - refactor this into a Cell React component
35function renderCell(header, row) {
36 let data = row[header];
1/** @jsxImportSource https://esm.sh/react */
2import { renderToString } from "npm:react-dom/server";
3
4export default async function(req: Request) {
1/** @jsxImportSource npm:hono@3/jsx */
2
3import { useState } from "https://esm.sh/react";
4import date_me_doc_locations from "https://esm.town/v/stevekrouse/date_me_doc_locations";
5import Layout from "https://esm.town/v/vawogbemi/dateme_layout";
1/** @jsxImportSource npm:react **/
2import { renderToString } from "npm:react-dom@18/server";
3
4 // Albüm verisi
1/** @jsxImportSource https://esm.sh/react */
2import { render } from "https://deno.land/x/resvg_wasm/mod.ts"
3import satori from "npm:satori"
Starter template with client-side React & Hono server
A web-based dice roller using React on Val Town
Write business logic with ease
Meet the new standard for modern TypeScript development.
Type-safe, reactive, framework-agnostic library to manage your business logic.
Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | Frontend Developer | https://linktr.ee/officialrajdeepsingh