Download react-page/packages/plugins/content/image/src/default/settings.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/plugins/content/image/src/default/settings.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/react-page/packages/plugins/content/image/src/default/settings.tsx
-
curl -L -o settings.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/react-page/packages/plugins/content/image/src/default/settings.tsx
1.16 kB
| import React from 'react'; | |
| import type { ImageSettings } from '../types/settings'; | |
| import { lazyLoad } from '@react-page/editor'; | |
| const Panorama = lazyLoad(() => import('@mui/icons-material/Panorama')); | |
| export const defaultTranslations = { | |
| pluginName: 'Image', | |
| pluginDescription: 'Loads an image from an url.', | |
| or: 'OR', | |
| haveUrl: 'Existing image URL', | |
| imageUrl: 'Image URL', | |
| hrefPlaceholder: 'http://example.com', | |
| hrefLabel: 'Link to open upon image click', | |
| altPlaceholder: "Image's description", | |
| altLabel: "Image's alternative description", | |
| openNewWindow: 'Open link in new window', | |
| srcPlaceholder: 'http://example.com/image.png', | |
| // Strings used in ImageUpload | |
| buttonContent: 'Choose for upload', | |
| noFileError: 'No file selected', | |
| badExtensionError: 'Wrong file type', | |
| tooBigError: 'Image file > 5MB', | |
| uploadingError: 'Error while uploading', | |
| unknownError: 'Unknown error', | |
| }; | |
| export const defaultSettings: ImageSettings = { | |
| Controls: () => <> Controls for this plugin were not provided</>, | |
| Renderer: () => <>Renderer; for this plugin was not provided </>, | |
| translations: defaultTranslations, | |
| icon: <Panorama />, | |
| }; | |