openHeartProtocolGET.tsx1 match
1// Receive emojis!
23export default async function send() {
4const urls = [
5"https://openheart.val.run/charmaineklee.com/OpenHeart",
58import * as duckdb from "https://esm.sh/@duckdb/duckdb-wasm";
5960async function initDuckDB() {
61try {
62const JSDELIVR_BUNDLES = duckdb.getJsDelivrBundles();
parquetuser-analytics-dashboard.html13 matches
210211// Initialize DuckDB
212async function initDuckDB() {
213const JSDELIVR_BUNDLES = duckdb.getJsDelivrBundles();
214const bundle = await duckdb.selectBundle(JSDELIVR_BUNDLES);
238239// Initialize the dashboard
240async function initDashboard() {
241try {
242conn = await initDuckDB();
253document.getElementById("timeRange").addEventListener(
254"change",
255function () {
256timeRange = this.value;
257currentPage = 1;
263document.getElementById("tierFilter").addEventListener(
264"change",
265function () {
266tierFilter = this.value;
267currentPage = 1;
272document.getElementById("prevPage").addEventListener(
273"click",
274function () {
275if (currentPage > 1) {
276currentPage--;
282document.getElementById("nextPage").addEventListener(
283"click",
284function () {
285if (currentPage * pageSize < totalUsers) {
286currentPage++;
298299// Load user table with pagination
300async function loadUserTable() {
301try {
302document.getElementById("tableLoading").style.display =
384385// Load user growth chart
386async function loadUserGrowthChart() {
387try {
388document.getElementById("userGrowthLoading").style.display =
518519// Load user tiers chart
520async function loadUserTiersChart() {
521try {
522document.getElementById("userTiersLoading").style.display =
591592// Load theme preferences chart
593async function loadThemeChart() {
594try {
595document.getElementById("themeLoading").style.display =
663664// Load copilot usage chart
665async function loadCopilotChart() {
666try {
667document.getElementById("copilotLoading").style.display =
737738// Load referral sources chart
739async function loadReferralChart() {
740try {
741document.getElementById("referralLoading").style.display =
816817// Populate tier filter options
818async function populateTierOptions() {
819try {
820const result = await conn.query(`
Teamcontrollers.ts6 matches
10const vt = new ValTown();
1112export async function getValsForUser(id: string) {
13try {
14const vals = await vt.vals.list({ user_id: id });
20}
2122export async function getDatabasePageIds() {
23try {
24const response = await notion.databases.query({
31}
3233export async function getTeam() {
34try {
35const response = await notion.databases.query({
55}
5657export async function getValTownUser(username: string) {
58try {
59return await vt.alias.username.retrieve(username);
63}
6465export async function getNotionPage(id: string) {
66try {
67return await notion.pages.retrieve({
73}
7475export async function setNotionPage(id: string, data: any) {
76// bio might be empty (optional field)
77const bio = data.bio
3import { renderToString } from "https://esm.sh/react-dom@19/server";
45function App () {
6return (
7<html>
22transitionProperty: "background-color, color",
23transitionDuration: "1s",
24transitionTimingFunction: "ease-in-out",
25"&:hover": {
26backgroundColor: "magenta",
45}
4647export default async function (req: Request): Promise<Response> {
48const html = renderToString(<App />);
49return new Response(html, {
tunaatomic.tsx2 matches
11const MEDIA_RE = /^@media/;
1213function createRule(obj, parentKey) {
14const rules = [];
15const classNames = [];
545556export function atomic(obj: CSSProperties): TunaResult {
57const result = new TunaResult();
58const rules = [];
sqwnietable-info.tsx1 match
20});
2122function isValidTableName(name: string) {
23return /^[a-zA-Z0-9_]+$/.test(name);
24}
sqwnienew-file-8718.tsx1 match
1export default async function (e: Email) {
2
3}
ValTownValsdk.ts4 matches
15* @returns Promise resolving to whether the project exists
16*/
17export async function valExists(valId: string): Promise<boolean> {
18try {
19await sdk.vals.retrieve(valId);
34* @returns Promise resolving to the Val ID
35*/
36export async function resolveValId(identifier: string): Promise<string> {
37// If it looks like a direct ID, return as-is
38if (!identifier.startsWith("@")) {
72* Determine the type of a Val file.
73*
74* This function attempts to determine the type of a file within a val
75* based on its existing state on the server or its filename. The process...
76* 1. Check if the file already exists in the Val at the specified path.
94* @returns The val file type
95*/
96export async function getValItemType(
97valId: string,
98branchId: string,
intentionally-errorhi.tsx1 match
1import { hi } from "https://esm.town/v/valdottown/test-townie-credits/error.tsx";
2export default async function (req: Request): Promise<Response> {
3return Response.json({ ok: true });
4}