Auto-generated architecture documentation. See
CLAUDE.mdfor dev commands.
graph TB| {"version":3,"term":{"cols":80,"rows":24,"type":"alacritty"},"timestamp":1772492035,"command":"/bin/bash scripts/demo-live-watcher.sh","title":"Live Watcher: Backend Type Change → Frontend Error","env":{"SHELL":"/bin/zsh"}} | |
| [0.006, "o", "\r\n\u001b[44m\u001b[1;37m \u001b[0m\r\n"] | |
| [0.000, "o", "\u001b[44m\u001b[1;37m LIVE WATCHER DEMO — Backend Type Change → Frontend Error \u001b[0m\r\n\u001b[44m\u001b[1;37m \u001b[0m\r\n\r\n"] | |
| [2.007, "o", "\r\n"] | |
| [0.000, "o", " \u001b[1;35m╭──────────────────────────────────────────────────────────────╮\u001b[0m\r\n"] | |
| [0.000, "o", " \u001b[1;35m│\u001b[0m \u001b[1;36mSTEP 1\u001b[0m \u001b[1;37mVerify types are currently in sync\u001b[0m\r\n"] | |
| [0.000, "o", " \u001b[1;35m╰──────────────────────────────────────────────────────────────╯\u001b[0m\r\n\r\n"] | |
| [0.000, "o", " \u001b[2m$\u001b[0m \u001b[1;32mnpx tsc --noEmit\u001b[0m\r\n\r\n"] | |
| [1 |
| // same in a function | |
| function openAllLinksInNewTab() { | |
| document.querySelectorAll(selector).forEach(function(a) { | |
| a.target = '_blank'; | |
| // click it | |
| a.click(); | |
| }); | |
| } |
| import { PipeTransform, Injectable, ArgumentMetadata } from "@nestjs/common"; | |
| type TrueArgumentMetadata = ArgumentMetadata & { | |
| metatype: { _OPENAPI_METADATA_FACTORY: () => Record<string, any> }; | |
| }; | |
| @Injectable() | |
| export class TransformBooleanPipe implements PipeTransform<any> { | |
| transform(value: any, { metatype }: TrueArgumentMetadata) { | |
| if (!metatype || !this.toValidate(metatype)) { |
| const notesInfo = (results: any[]) => ({ | |
| action: "notesInfo", | |
| version: 6, | |
| params: { | |
| notes: results, | |
| }, | |
| }); | |
| const deckname = Deno.args[0] ?? "*"; |
| import * as React from 'react' | |
| import styled from 'styled-components' | |
| import schemaJson from './form.json' | |
| // import Form from '@rjsf/material-ui' | |
| import Form from '@rjsf/core' | |
| // console.log('schema: ', schema) | |
| export interface OptionSettings { | |
| whitelist: string[] |
| /** Check if a dom element is the descendant from another element with matching id */ | |
| export const isDescendant = (element: HTMLElement, parentId: string, depth: number) => { | |
| let isChild = false | |
| if (element.id === parentId) { | |
| //is this the element itself? | |
| isChild = true | |
| } | |
| let iterations = 0 |