blob_adminmain.tsx8 matches
13}
1415function Tooltip({ children, content }: TooltipProps) {
16const [isVisible, setIsVisible] = useState(false);
17const tooltipRef = useRef<HTMLDivElement>(null);
52}
5354function formatBytes(bytes: number, decimals = 2) {
55if (bytes === 0) return "0 Bytes";
56const k = 1024;
61}
6263function copyToClipboard(text: string) {
64navigator.clipboard.writeText(text).then(() => {
65console.log("Text copied to clipboard");
69}
7071function ActionMenu({ blob, onDownload, onRename, onDelete, onMoveToPublic, onMoveOutOfPublic }) {
72const [isOpen, setIsOpen] = useState(false);
73const menuRef = useRef(null);
7677useEffect(() => {
78function handleClickOutside(event) {
79if (menuRef.current && !menuRef.current.contains(event.target)) {
80event.stopPropagation();
158}
159160function BlobItem({ blob, onSelect, isSelected, onDownload, onRename, onDelete, onMoveToPublic, onMoveOutOfPublic }) {
161const [isLoading, setIsLoading] = useState(false);
162const decodedKey = decodeURIComponent(blob.key);
219}
220221function App({ initialEmail, initialProfile }) {
222const encodeKey = (key: string) => encodeURIComponent(key);
223const decodeKey = (key: string) => decodeURIComponent(key);
645}
646647function client() {
648const initialEmail = document.getElementById("root").getAttribute("data-email");
649const initialProfile = JSON.parse(document.getElementById("root").getAttribute("data-profile"));
zanySalmonPorpoisemain.tsx1 match
23// Fetches a random joke.
4async function fetchRandomJoke() {
5const response = await fetch(
6"https://official-joke-api.appspot.com/random_joke",
parallaxWordsValmain.tsx3 matches
3import { createRoot } from "https://esm.sh/react-dom/client";
45function ParallaxWords() {
6const [words] = useState([
7"金", "将来", "自分", "ない", "外国人", "答え", "不自由", "久しぶり",
116}
117118function client() {
119createRoot(document.getElementById("root")).render(<ParallaxWords />);
120}
121if (typeof document !== "undefined") { client(); }
122123export default async function server(request: Request): Promise<Response> {
124return new Response(`
125<html>
dm_callback_examplemain.tsx1 match
1export default async function(req: Request): Promise<Response> {
2const timeNow = new Date();
3// give me time in ist time detailed use js
3import { v4 as uuidV4 } from "npm:uuid";
45export default async function(req: Request): Promise<Response> {
6return Response.json({
7ok: true,
blob_adminmain.tsx8 matches
13}
1415function Tooltip({ children, content }: TooltipProps) {
16const [isVisible, setIsVisible] = useState(false);
17const tooltipRef = useRef<HTMLDivElement>(null);
52}
5354function formatBytes(bytes: number, decimals = 2) {
55if (bytes === 0) return "0 Bytes";
56const k = 1024;
61}
6263function copyToClipboard(text: string) {
64navigator.clipboard.writeText(text).then(() => {
65console.log("Text copied to clipboard");
69}
7071function ActionMenu({ blob, onDownload, onRename, onDelete, onMoveToPublic, onMoveOutOfPublic }) {
72const [isOpen, setIsOpen] = useState(false);
73const menuRef = useRef(null);
7677useEffect(() => {
78function handleClickOutside(event) {
79if (menuRef.current && !menuRef.current.contains(event.target)) {
80event.stopPropagation();
158}
159160function BlobItem({ blob, onSelect, isSelected, onDownload, onRename, onDelete, onMoveToPublic, onMoveOutOfPublic }) {
161const [isLoading, setIsLoading] = useState(false);
162const decodedKey = decodeURIComponent(blob.key);
219}
220221function App({ initialEmail, initialProfile }) {
222const encodeKey = (key: string) => encodeURIComponent(key);
223const decodeKey = (key: string) => decodeURIComponent(key);
645}
646647function client() {
648const initialEmail = document.getElementById("root").getAttribute("data-email");
649const initialProfile = JSON.parse(document.getElementById("root").getAttribute("data-profile"));
notionDbCalendarFeedmain.tsx3 matches
1import { Client } from "https://esm.sh/@notionhq/client";
23export default async function server(request: Request): Promise<Response> {
4try {
5// Ensure Notion API key is set
77}
7879function generateICalFeed(events) {
80const icalLines = [
81"BEGIN:VCALENDAR",
101}
102103function formatICalDate(dateString) {
104if (!dateString) return "";
105const date = new Date(dateString);
findingsvgfilesmain.tsx7 matches
2021// Home Page
22function HomePage() {
23return (
24<div>
4950// SVG Resources Page
51function SVGResourcesPage() {
52return (
53<div>
9192// Cricut Guide Page
93function CricutGuidePage() {
94return (
95<div>
118119// FAQ Page
120function FAQPage() {
121return (
122<div>
142143// Routing Component
144function App() {
145const [currentPage, setCurrentPage] = useState('home');
146164}
165166function client() {
167createRoot(document.getElementById("root")).render(<App />);
168}
169if (typeof document !== "undefined") { client(); }
170171export default async function server(request: Request): Promise<Response> {
172const url = new URL(request.url);
173
youthfulLavenderMosquitomain.tsx3 matches
296}
297298function App() {
299const canvasRef = useRef<HTMLCanvasElement>(null);
300const [game, setGame] = useState<BubbleShooterGame | null>(null);
348}
349350function client() {
351createRoot(document.getElementById("root")).render(<App />);
352}
353if (typeof document !== "undefined") { client(); }
354355export default async function server(request: Request): Promise<Response> {
356return new Response(`
357<html>
44].map(group => group.map(n => n - 1)); // Convert to 0-based index
4546function findNearestFiveMinuteMark(minutes: number): number {
47return Math.round(minutes / 5) * 5;
48}
4950function TextualClock() {
51const [highlightedIndices, setHighlightedIndices] = useState<number[]>([]);
52120}
121122function client() {
123createRoot(document.getElementById("root")).render(<TextualClock />);
124}
126if (typeof document !== "undefined") { client(); }
127128export default async function server(request: Request): Promise<Response> {
129return new Response(`
130<html>