1
0
mirror of https://github.com/barthuijgen/factorio-sites.git synced 2025-03-17 21:17:57 +02:00

Depedency upgrade and markdown html parsing

This commit is contained in:
Bart 2021-04-15 21:19:58 +02:00
parent 3b606c10ae
commit 45006fc486
3 changed files with 783 additions and 655 deletions

View File

@ -1,5 +1,7 @@
import { css } from "@emotion/react";
import ReactMarkdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import rehypeSanitize from "rehype-sanitize";
const markdownStyle = css`
overflow: auto;
@ -18,6 +20,6 @@ const markdownStyle = css`
export const Markdown: React.FC<{ children: string }> = ({ children, ...props }) => (
<div css={markdownStyle} {...props}>
<ReactMarkdown>{children}</ReactMarkdown>
<ReactMarkdown rehypePlugins={[rehypeRaw, rehypeSanitize]}>{children}</ReactMarkdown>
</div>
);

View File

@ -28,30 +28,30 @@
"db-gen": "npx prisma generate --schema=./apps/blueprints/prisma/schema.prisma"
},
"dependencies": {
"@chakra-ui/react": "1.5.0",
"@chakra-ui/react": "1.5.1",
"@emotion/react": "11.1.5",
"@emotion/server": "11.0.0",
"@emotion/styled": "11.1.5",
"@emotion/styled": "11.3.0",
"@fbe/editor": "file:.yalc/@fbe/editor",
"@google-cloud/datastore": "6.3.1",
"@google-cloud/pubsub": "2.10.0",
"@google-cloud/pubsub": "2.11.0",
"@google-cloud/secret-manager": "3.6.0",
"@google-cloud/storage": "5.8.3",
"@hookstate/core": "3.0.6",
"@prisma/client": "2.20.1",
"@prisma/client": "2.21.2",
"bcrypt": "5.0.1",
"clsx": "1.1.1",
"cookie": "0.4.1",
"date-fns": "2.20.0",
"date-fns": "2.21.1",
"document-register-element": "1.14.10",
"factorio-wasm": "file:.yalc/factorio-wasm",
"formik": "2.2.6",
"framer-motion": "4.1.3",
"framer-motion": "4.1.4",
"next": "10.1.3",
"nprogress": "0.2.0",
"openid": "2.0.8",
"pako": "1.0.11",
"pg": "8.5.1",
"pg": "8.6.0",
"phin": "3.5.1",
"puppeteer": "8.0.0",
"react": "17.0.2",
@ -59,10 +59,12 @@
"react-dom": "17.0.2",
"react-icons": "4.2.0",
"react-map-interaction": "file:.yalc/react-map-interaction",
"react-markdown": "5.0.3",
"react-multi-select-component": "4.0.0",
"react-markdown": "6.0.0",
"react-multi-select-component": "4.0.1",
"react-paginate": "7.1.2",
"react-simplemde-editor": "4.1.3",
"rehype-raw": "5.1.0",
"rehype-sanitize": "4.0.0",
"sharp": "0.28.1",
"ws": "7.4.4"
},
@ -82,11 +84,11 @@
"@nrwl/react": "12.0.6",
"@nrwl/web": "12.0.6",
"@nrwl/workspace": "12.0.6",
"@testing-library/react": "11.2.5",
"@types/bcrypt": "3.0.0",
"@testing-library/react": "11.2.6",
"@types/bcrypt": "3.0.1",
"@types/cookie": "0.4.0",
"@types/jest": "26.0.22",
"@types/node": "14.14.37",
"@types/node": "14.14.41",
"@types/nprogress": "0.2.0",
"@types/openid": "2.0.1",
"@types/pako": "1.0.1",
@ -96,23 +98,23 @@
"@types/react-paginate": "6.2.1",
"@types/sharp": "0.28.0",
"@types/ws": "7.4.1",
"@typescript-eslint/eslint-plugin": "4.21.0",
"@typescript-eslint/parser": "4.21.0",
"@typescript-eslint/eslint-plugin": "4.22.0",
"@typescript-eslint/parser": "4.22.0",
"babel-jest": "26.6.3",
"cypress": "7.0.1",
"cypress": "7.1.0",
"dotenv": "8.2.0",
"eslint": "7.23.0",
"eslint-config-prettier": "8.1.0",
"eslint": "7.24.0",
"eslint-config-prettier": "8.2.0",
"eslint-plugin-cypress": "2.11.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.23.1",
"eslint-plugin-react": "7.23.2",
"eslint-plugin-react-hooks": "4.2.0",
"fork-ts-checker-webpack-plugin": "6.2.0",
"fork-ts-checker-webpack-plugin": "6.2.1",
"jest": "26.6.3",
"prettier": "2.2.1",
"prisma": "2.20.1",
"ts-jest": "26.5.4",
"prisma": "2.21.2",
"ts-jest": "26.5.5",
"ts-node": "9.1.1",
"tslint": "6.1.3",
"typescript": "4.2.4",

1390
yarn.lock

File diff suppressed because it is too large Load Diff