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
server { | |
listen [::]:80; | |
listen 80; | |
server_name server.qeeper.co.uk; | |
access_log /var/log/nginx/server-access.log; | |
error_log /var/log/nginx/server-error.log; | |
include /home/dokku/server/nginx.conf.d/*.conf; | |
location / { | |
return 301 https://$host:443$request_uri; |
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 your MDX content with this component. | |
import React from 'react' | |
import MDX from '@mdx-js/runtime' | |
import components from '../utils/markdown/markdown' | |
// Renders a cimple loading spinner as a test | |
import Loading from './Loading' | |
const mdxComponents = { |
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 { useRef, useState } from 'react'; | |
import Cropper from 'react-cropper'; | |
import Button from '@material-ui/core/Button'; | |
import Dialog from '@material-ui/core/Dialog'; | |
import DialogActions from '@material-ui/core/DialogActions'; | |
import DialogContent from '@material-ui/core/DialogContent'; | |
import DialogTitle from '@material-ui/core/DialogTitle'; | |
import { IMAGE_SERVER_URL } from '../../../common'; |
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 imageExtensions from 'image-extensions'; | |
import isUrl from 'is-url'; | |
import { Transforms } from 'slate'; | |
import { useEditor } from 'slate-react'; | |
import { IconButton } from '@material-ui/core'; | |
import { ImageCropper } from '../ImageCropper'; | |
export const withSlateImages = (editor: any) => { |
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 { FieldAttributes, useField } from 'formik'; | |
import isHotkey from 'is-hotkey'; | |
import React, { useCallback, useMemo, useState } from 'react'; | |
import { createEditor } from 'slate'; | |
import { withHistory } from 'slate-history'; | |
import { Editable, Slate, withReact } from 'slate-react'; | |
import { FormControl, FormHelperText } from '@material-ui/core'; | |
import Paper from '@material-ui/core/Paper'; | |
import { Theme } from '@material-ui/core/styles'; |
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 { useEffect, useState } from 'react'; | |
import { FaBold, FaCode, FaItalic, FaUnderline } from 'react-icons/fa'; | |
import { | |
MdFormatListNumbered, MdFormatQuote, MdImage, MdList, MdLooksOne, MdLooksTwo, MdOndemandVideo | |
} from 'react-icons/md'; | |
import { Editor } from 'slate'; | |
import { useSlate } from 'slate-react'; | |
import Divider from '@material-ui/core/Divider'; | |
import Paper from '@material-ui/core/Paper'; |
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 { Editor, Transforms } from "slate"; | |
import { VideoElement } from "./SlateEmbeds"; | |
import { ImageElement } from "./SlateImage"; | |
export const HOTKEYS: any = { | |
"mod+b": "bold", | |
"mod+i": "italic", | |
"mod+u": "underline", | |
"mod+`": "code" | |
}; |