TownieChatRouteSingleColumn.tsx15 matches
9import { useUsageStats } from "../hooks/useUsageStats.ts";
10import { Messages } from "./Messages.tsx";
11import { InputBox, ImageDropContainer } from "./InputBox.tsx";
12import { PreviewFrame } from "./PreviewFrame.tsx";
13import { BranchSelect } from "./BranchSelect.tsx";
66refetch: () => void;
67}) {
68const [images, setImages] = useState<(string|null)[]>([]);
69const [selectedFiles, setSelectedFiles] = useState<string[]>([]);
70const { audio, user } = useContext(AppContext);
85branchId,
86selectedFiles,
87images,
88soundEnabled: audio,
89});
109110return (
111<ImageDropContainer
112running={running}
113images={images}
114setImages={setImages}>
115<div className="single-column-container">
116<div className="single-sticky-header">
120rel="norefferer"
121className="block-link text-link lockup">
122{project.imageUrl ? (
123<img src={project.imageUrl} className="image-thumbnail" />
124) : user?.profileImageUrl ? (
125<img
126src={user.profileImageUrl}
127className="avatar"
128alt={user.username}
131/>
132) : (
133<div className="image-placeholder" />
134)}
135<div>{project.name}</div>
178onSubmit={e => {
179handleSubmit(e);
180setImages([]);
181}}
182onCancel={handleStop}
183running={running}
184error={error}
185images={images}
186setImages={setImages}
187/>
188)}
190</div>
191</div>
192</ImageDropContainer>
193);
194}
Chatroomnew-file-9976.tsx1 match
1createImageBitmap
reactHonoStarterindex.html1 match
6<title>React Hono Val Town Starter</title>
7<link rel="stylesheet" href="/frontend/style.css">
8<link rel="icon" href="/frontend/favicon.svg" type="image/svg+xml">
9</head>
10<body>
untitled-779main.tsx2 matches
609<div class="form-row">
610<div class="form-group">
611<label for="victimAge">Age</label>
612<input type="number" id="victimAge" min="0" max="120">
613</div>
614<div class="form-group">
untitled-779new-file-116.tsx2 matches
609<div class="form-row">
610<div class="form-group">
611<label for="victimAge">Age</label>
612<input type="number" id="victimAge" min="0" max="120">
613</div>
614<div class="form-group">
reactHonoStarterindex.html1 match
6<title>React Hono Val Town Starter</title>
7<link rel="stylesheet" href="/frontend/style.css">
8<link rel="icon" href="/frontend/favicon.svg" type="image/svg+xml">
9</head>
10<body>
templateTwitterAlertREADME.md3 matches
9## Example
10This val tracks mentions of "Val Town" and related terms, excluding noise like retweets and irrelevant accounts. Notifications are sent to a Discord webhook but can be easily reconfigured for other platforms.
11<img src="https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/85912106-f625-443e-5321-6e2699453200/public" width="500"/>
12To see exactly how we use this template at Val Town: https://www.val.town/x/stevekrouse/twitterAlert
1316### 1. Fork this Val
17To use this template, fork this val on the top right corner of this page.
18
1920### 2. View Source Code
21<em>The `CODE` box shows you the the full source code of this val, you may need to scroll down to see it.</em>
22
2324### 3. Customize Query
bookFileUpload.tsx1 match
167<strong>Troubleshooting tips:</strong>
168<ul className="list-disc list-inside mt-1">
169<li>For PDFs: Ensure the file is not password-protected or image-only</li>
170<li>For EPUB: Try converting to PDF or TXT if processing fails</li>
171<li>For DOCX: Try saving as TXT or PDF format</li>
bookfileProcessors.ts1 match
215216if (!fullText.trim()) {
217throw new Error('No readable text found in PDF. The file might be image-based or corrupted.');
218}
219
88### PDF Files
89- **"PDF.js library not loaded"**: Refresh the page and try again
90- **"No readable text found"**: The PDF might be image-based (scanned) or corrupted
91- **"Password-protected PDFs"**: Not supported - please remove password protection first
92100101### General Issues
102- **"No readable content found"**: Ensure the file contains actual text (not just images)
103- **File too large**: Large files (>50MB) may take longer to process or fail
104- **Browser compatibility**: Works best in modern browsers (Chrome, Firefox, Safari, Edge)