6<meta http-equiv="X-UA-Compatible" content="IE=edge">
7<meta name="viewport" content="width=device-width, initial-scale=1.0">
8<link rel="shortcut icon" href="images/gift.png" type="image/x-icon">
9<link rel="stylesheet" href="css/style.css">
10
bughandler.js6 matches
201js: "application/javascript",
202json: "application/json",
203png: "image/png",
204jpg: "image/jpeg",
205jpeg: "image/jpeg",
206gif: "image/gif",
207svg: "image/svg+xml",
208ico: "image/x-icon",
209woff: "font/woff",
210woff2: "font/woff2",
blob_adminREADME.md1 match
3This is a lightweight Blob Admin interface to view and debug your Blob data.
45
67To use this, fork it to your account.
blob_adminmain.tsx2 matches
60const { ValTown } = await import("npm:@valtown/sdk");
61const vt = new ValTown();
62const { email: authorEmail, profileImageUrl, username } = await vt.me.profile.retrieve();
63// const authorEmail = me.email;
64128129c.set("email", email);
130c.set("profile", { profileImageUrl, username });
131await next();
132};
blob_adminapp.tsx3 matches
437{profile && (
438<div className="flex items-center space-x-4">
439<img src={profile.profileImageUrl} alt="Profile" className="w-8 h-8 rounded-full" />
440<span>{profile.username}</span>
441<a href="/auth/logout" className="text-blue-400 hover:text-blue-300">Logout</a>
580alt="Blob content"
581className="max-w-full h-auto"
582onError={() => console.error("Error loading image")}
583/>
584</div>
630<li>Create public shareable links for blobs</li>
631<li>View and manage public folder</li>
632<li>Preview images directly in the interface</li>
633</ul>
634</div>
html-snippets-V2styles.css1 match
18width: calc(100vw + 20px);
19height: calc(100vh + 20px);
20background-image: url('https://cdn.midjourney.com/233e1f75-ba86-445e-9fbd-62b4d8b28d46/0_1.png');
21background-size: cover;
22background-repeat: no-repeat;
LogoReviewscript.js17 matches
108// More permissive file type validation
109const validTypes = [
110"image/png",
111"image/jpeg",
112"image/jpg",
113"image/svg+xml",
114"image/x-icon",
115"image/vnd.microsoft.icon",
116"image/webp",
117"image/gif",
118];
119125if (!validTypes.includes(file.type) && !hasValidExtension) {
126console.log("Invalid file type:", file.type, "and extension check failed for:", fileName);
127this.showStatus(`Invalid file type: ${file.type}. Please upload a valid image file.`, true);
128return;
129}
153}
154155displayLogo(imageSrc) {
156console.log("Displaying logo with src length:", imageSrc.length);
157158// Show the preview section
163164// Update all logo previews
165this.updateLogoPreviews(imageSrc);
166}
167168updateLogoPreviews(imageSrc) {
169// Size variations
170const logoElements = [
178const element = document.getElementById(id);
179if (element) {
180element.src = imageSrc;
181element.alt = "Logo preview";
182}
194const element = document.getElementById(id);
195if (element) {
196element.src = imageSrc;
197element.alt = "Logo on t-shirt";
198}
210const element = document.getElementById(id);
211if (element) {
212element.src = imageSrc;
213element.alt = "Logo black and white";
214}
218const faviconElement = document.getElementById("faviconPreview");
219if (faviconElement) {
220faviconElement.src = imageSrc;
221faviconElement.alt = "Favicon";
222}
LogoReviewindex.html1 match
93</div>
94
95<input type="file" id="fileInput" accept="image/*,.ico" class="hidden">
96
97<!-- Status message -->
LogoReviewtest.html1 match
10<h1>Simple Upload Test</h1>
11
12<input type="file" id="fileInput" accept="image/*">
13<button id="uploadBtn">Choose File</button>
14
basic-html-starterindex.html1 match
1112<!-- reference the webpage's favicon. note: currently only svg is supported in val town files -->
13<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
1415<!-- import the webpage's javascript file -->