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"
1/** @jsxImportSource https://esm.sh/react */
2import { ArrowDownIcon, ChevronRightIcon } from "npm:@heroicons/react/20/solid";
3import { Hono } from "npm:hono@3";
4import { renderToString } from "npm:react-dom/server";
5
6const timeline = [
1/** @jsxImportSource https://esm.sh/react */
2import { email } from "https://esm.town/v/std/email?v=11";
3import { discordWebhook } from "https://esm.town/v/stevekrouse/discordWebhook";
4import { html } from "https://esm.town/v/stevekrouse/html";
5import { thisValURL } from "https://esm.town/v/stevekrouse/thisValURL";
6import { renderToString } from "npm:react-dom/server";
7
8let welcomeEmail = renderToString(
1import { render } from "npm:preact-render-to-string";
2
3export const htmlResponse = (html) =>
8 });
9
10export const reactResponse = (component) => htmlResponse(render(component));
30* If email, show that user's content, and a logout link to "/auth/logout"; if no email, show login options.
31* `import { LoginWithGoogleButton } from "https://esm.town/v/stevekrouse/LoginWithGoogleButton"`
32* Use the <LoginWithGoogleButton /> React Component, optionally supplying the `text` attribute
33* Add "via LastLogin" underneat LoginWithGoogleButton, centered, secondary text, linking to https://lastlogin.io/
34* Pass the email from the server to the client-side code if using React hydration or similar techniques.
35
36### How it works
37
381. Your users click on the <LoginWithGoogleButton /> React Component in your app
392. The <LoginWithGoogleButton /> opens a new window to /auth/login?provider=google in your app
403. This middleware directs them to log into Google via LastLogin
64* If email, show that user's content, and a logout link to "/auth/logout";
65* If no email, add a link to "Login or Sign Up" to "/auth/login"
66* Pass the email from the server to the client-side code if using React hydration or similar techniques.
67
68### How it works