This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface SheetResponse { | |
| range: string; | |
| majorDimension: 'ROWS' | 'COLUMNS'; | |
| values: string[][]; | |
| } | |
| export const mockBroadbandData: SheetResponse = { | |
| range: 'Broadband!A2:E50', | |
| majorDimension: 'ROWS', | |
| values: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MasonryGrid(userOptions = {}) { | |
| if (!(this instanceof MasonryGrid)) { | |
| throw new Error('MasonryGrid must be called with new'); | |
| } | |
| // Private state using WeakMap to maintain encapsulation | |
| const privateState = new WeakMap(); | |
| privateState.set(this, { | |
| expandedId: null, | |
| isMobile: window.innerWidth < 768, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MasonryGrid(userOptions = {}) { | |
| if (!(this instanceof MasonryGrid)) { | |
| throw new Error('MasonryGrid must be called with new'); | |
| } | |
| // Private state using WeakMap to maintain encapsulation | |
| const privateState = new WeakMap(); | |
| privateState.set(this, { | |
| expandedId: null, | |
| isMobile: window.innerWidth < 768, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MasonryGrid(userOptions = {}) { | |
| if (!(this instanceof MasonryGrid)) { | |
| throw new Error('MasonryGrid must be called with new'); | |
| } | |
| // Private state using WeakMap to maintain encapsulation | |
| const privateState = new WeakMap(); | |
| privateState.set(this, { | |
| expandedId: null, | |
| isMobile: window.innerWidth < 768, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MasonryGrid(userOptions = {}) { | |
| if (!(this instanceof MasonryGrid)) { | |
| throw new Error('MasonryGrid must be called with new'); | |
| } | |
| // Private state using WeakMap to maintain encapsulation | |
| const privateState = new WeakMap(); | |
| privateState.set(this, { | |
| expandedId: null, | |
| isMobile: window.innerWidth < 768, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MasonryGrid(userOptions = {}) { | |
| if (!(this instanceof MasonryGrid)) { | |
| throw new Error('MasonryGrid must be called with new'); | |
| } | |
| // Private state using WeakMap to maintain encapsulation | |
| const privateState = new WeakMap(); | |
| privateState.set(this, { | |
| expandedId: null, | |
| isMobile: window.innerWidth < 768, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const element = webflow.elementBuilder(webflow.elementPresets.DOM); | |
| await element.setTag('h1'); | |
| await element.setTextContent('Hello World') | |
| await selectedElement.append(element); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import YouTube, { YouTubeProps } from "react-youtube" | |
| import { useRef, useState } from "react" | |
| import { Play, Pause } from "phosphor-react" | |
| import { motion } from "framer-motion" | |
| import { addPropertyControls, ControlType } from "framer" | |
| export default function MusicPlayer(props) { | |
| const [isPlaying, setIsPlaying] = useState(false) | |
| const player = useRef() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // New.tsx | |
| export const action: ActionFunction = async ({ request }) => { | |
| const uploadHandler: UploadHandler = async ({ name, filename, stream }) => { | |
| if (name !== "image") { | |
| stream.resume(); | |
| return; | |
| } | |
| try { | |
| const uploadedImage = await uploadImage(stream, filename); |
NewerOlder