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
| .myChart text { | |
| fill: white; | |
| font: 10px sans-serif; | |
| text-anchor: end; | |
| } | |
| .axis text { | |
| fill: black; | |
| } |
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 {getResponsiveAttributes} from "../getResponsiveAttributes"; | |
| const Image = ({publidId}) => { | |
| const transformation = [{ | |
| quality: "auto", | |
| fetchFormat: "auto", | |
| dpr: 2, | |
| },]; | |
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 React from "react"; | |
| import NetlifyCmsWidgetMarkdown from "netlify-cms-widget-markdown"; | |
| const name = "rtlmarkdown"; | |
| const PreviewComponent = NetlifyCmsWidgetMarkdown.previewComponent; | |
| const OrgControlComponent = NetlifyCmsWidgetMarkdown.controlComponent; | |
| const ControlComponent = React.forwardRef((props, ref) => { | |
| return <div dir="rtl"> |
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 React, { useContext, useState, } from "react"; | |
| import { navigate } from "gatsby"; | |
| import styled from "styled-components"; | |
| import { Box, Button } from "grommet"; | |
| import ReCaptcha from "react-google-recaptcha"; | |
| import { NotificationContext } from "../Notifications/NotificationProvider"; | |
| const isDev = process.env.NODE_ENV === "development"; | |
| const onRegisterSuccess = (navUrl) => { |
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 React from "react"; | |
| import Uploady from "@rpldy/uploady"; | |
| import UploadButton from "@rpldy/upload-button"; | |
| const MyApp = () => ( | |
| <Uploady destination={{url: "https://my-server.com/upload"}}> | |
| <UploadButton/> | |
| </Uploady> | |
| ); |
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
| "use strict"; | |
| var path = require("path"), | |
| fs = require("fs"); | |
| module.exports = (function(){ | |
| /** | |
| * recursively remove the fs structure starting from (and including) the path given in dirToRemove | |
| * @param dirToRemove | |
| * the path to remove |
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 Uploady from "@rpldy/uploady"; | |
| import UploadWithProgressPreview from "./UploadWithProgressPreview"; | |
| const App = > () { | |
| return ( | |
| <Uploady | |
| destination={{ url: "[upload-url]" }} | |
| > | |
| <div className="App"> | |
| <h1>Hello React Uploady</h1> |
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 UploadButton from "@rpldy/upload-button"; | |
| import UploadPreview from "@rpldy/upload-preview"; | |
| import CustomImagePreview from "./CustomImagePreview"; | |
| const UploadWithProgressPreview = () => { | |
| const getPreviewProps = useCallback(item => ({ id: item.id }), []); | |
| return ( | |
| <> | |
| <UploadButton>Upload Files</UploadButton> |
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 React from "react"; | |
| import { isFunction } from "lodash"; | |
| import { mount } from "enzyme"; | |
| export default (hook, props) => { | |
| let wrapper, hookResult, hookParams, error; | |
| if (isFunction(props)) { | |
| hookParams = props; | |
| props = {}; |
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 Uploady from "@rpldy/uploady"; | |
| import UploadButton from "@rpldy/upload-button"; | |
| import UploadPreview from "@rpldy/upload-preview"; | |
| export default function UploadWithCrop() { | |
| const previewMethodsRef = useRef(); | |
| return ( | |
| <Uploady | |
| destination={{ url: "[upload-url]" }} |
OlderNewer