Download frontend/src/lib/constants.ts from turtle89431/Moxie-Multimedia: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/turtle89431/Moxie-Multimedia/resolve/main/frontend/src/lib/constants.ts
- Command line
-
hf download hf://turtle89431/Moxie-Multimedia/frontend/src/lib/constants.ts
-
curl -L -o constants.ts https://huggingface.co/turtle89431/Moxie-Multimedia/resolve/main/frontend/src/lib/constants.ts
646 Bytes
| /** | |
| * Root CSS class applied to every React widget container. | |
| * | |
| * Derived at build time from `import.meta.env.PROJECT_NAME` (the project's | |
| * directory name, lowercased). Bun's `define` inlines the value into the bundle. | |
| * | |
| * This value is the single source of truth used by: | |
| * - create-react-widget.ts → container.classList.add(CUSTOM_NODE_CLASS) | |
| * - tailwind.config.ts → important: `.${CUSTOM_NODE_CLASS}` (derives independently via path) | |
| * - globals.css → compiled, scoped, and embedded into index.js by build.ts | |
| */ | |
| export const CUSTOM_NODE_CLASS = (import.meta.env.PROJECT_NAME as string).toLowerCase() | |