Merge branch 'chore/update-deps' into 'master'

Update some dependencies

See merge request sahkoinsinoorikilta/vtmk/web2.0-frontend!60
This commit is contained in:
Aarni Halinen
2021-04-18 18:53:29 +00:00
8 changed files with 639 additions and 360 deletions
+1 -1
View File
@@ -1 +1 @@
14.16.0 14
+3
View File
@@ -14,4 +14,7 @@ module.exports = withBundleAnalyzer({
"placehold.it", "placehold.it",
], ],
}, },
future: {
webpack5: true
},
}); });
+609 -345
View File
File diff suppressed because it is too large Load Diff
+12 -10
View File
@@ -37,10 +37,10 @@
}, },
"devDependencies": { "devDependencies": {
"@types/js-cookie": "2.2.6", "@types/js-cookie": "2.2.6",
"@types/react": "17.0.2", "@types/react": "^17.0.2",
"@types/react-beautiful-dnd": "13.0.0", "@types/react-beautiful-dnd": "13.0.0",
"@types/react-csv": "1.1.1", "@types/react-csv": "1.1.1",
"@types/react-dom": "17.0.1", "@types/react-dom": "^17.0.1",
"@types/react-jsonschema-form": "1.7.4", "@types/react-jsonschema-form": "1.7.4",
"@types/shortid": "0.0.29", "@types/shortid": "0.0.29",
"@types/styled-components": "5.1.7", "@types/styled-components": "5.1.7",
@@ -54,7 +54,7 @@
"eslint-plugin-react": "7.22.0", "eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0", "eslint-plugin-react-hooks": "4.2.0",
"husky": "5.1.3", "husky": "5.1.3",
"next-sitemap": "^1.6.9", "next-sitemap": "^1.6.25",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"stylelint": "13.11.0", "stylelint": "13.11.0",
"stylelint-config-recommended": "3.0.0", "stylelint-config-recommended": "3.0.0",
@@ -64,23 +64,25 @@
"typescript": "4.2.2" "typescript": "4.2.2"
}, },
"dependencies": { "dependencies": {
"@next/bundle-analyzer": "10.0.7", "@next/bundle-analyzer": "^10.1.3",
"axios": "0.21.1", "axios": "0.21.1",
"date-fns": "2.18.0", "date-fns": "2.18.0",
"fast-deep-equal": "^3.1.3", "fast-deep-equal": "^3.1.3",
"js-cookie": "2.2.1", "js-cookie": "2.2.1",
"lodash": "4.17.21", "lodash": "4.17.21",
"next": "10.1.2", "next": "^10.1.3",
"normalize.css": "8.0.1", "normalize.css": "8.0.1",
"react": "17.0.1", "react": "^17.0.2",
"react-beautiful-dnd": "13.1.0", "react-beautiful-dnd": "13.1.0",
"react-csv": "2.0.3", "react-csv": "2.0.3",
"react-dom": "17.0.1", "react-dom": "^17.0.2",
"react-is": "17.0.2", "react-is": "^17.0.2",
"react-jsonschema-form": "1.8.1", "react-jsonschema-form": "1.8.1",
"react-markdown": "5.0.3", "react-markdown": "^6.0.0",
"react-mde": "11.0.6", "react-mde": "^11.1.0",
"react-toastify": "^7.0.3", "react-toastify": "^7.0.3",
"rehype-raw": "^5.1.0",
"rehype-sanitize": "^4.0.0",
"shortid": "2.2.16", "shortid": "2.2.16",
"styled-components": "5.2.3", "styled-components": "5.2.3",
"swr": "0.4.2" "swr": "0.4.2"
@@ -32,7 +32,9 @@ const MarkdownEditorWidget: React.FC<MarkdownEditorWidgetProps> = ({ value, onCh
onChange={onChange} onChange={onChange}
selectedTab={selectedTab} selectedTab={selectedTab}
onTabChange={setSelectedTab} onTabChange={setSelectedTab}
generateMarkdownPreview={(markdown) => Promise.resolve(<MarkdownStyles source={markdown} />)} generateMarkdownPreview={(markdown) => Promise.resolve(
<MarkdownStyles>{markdown}</MarkdownStyles>,
)}
/> />
</Container> </Container>
); );
+5 -1
View File
@@ -3,6 +3,8 @@ import styled from "styled-components";
import JobAd from "@models/JobAd"; import JobAd from "@models/JobAd";
import { Accordion } from "@components/index"; import { Accordion } from "@components/index";
import ReactMarkdown from "react-markdown"; import ReactMarkdown from "react-markdown";
import rehypeRaw from "rehype-raw";
import rehypeSanitize from "rehype-sanitize";
interface JobAdListProps { interface JobAdListProps {
jobAds: JobAd[]; jobAds: JobAd[];
@@ -25,7 +27,9 @@ const JobAdList: React.FC<JobAdListProps> = ({ jobAds }) => (
<p> <p>
{ad.description_fi} {ad.description_fi}
</p> </p>
<ReactMarkdown source={ad.content_fi} escapeHtml={false} /> <ReactMarkdown rehypePlugins={[rehypeRaw, rehypeSanitize]}>
{ad.content_fi}
</ReactMarkdown>
</div> </div>
</Accordion> </Accordion>
</li> </li>
+3 -1
View File
@@ -1,6 +1,8 @@
import React from "react"; import React from "react";
import Image from "next/image"; import Image from "next/image";
import styled from "styled-components"; import styled from "styled-components";
import rehypeRaw from "rehype-raw";
import rehypeSanitize from "rehype-sanitize";
import colors from "@theme/colors"; import colors from "@theme/colors";
import Event from "@models/Event"; import Event from "@models/Event";
import { import {
@@ -85,7 +87,7 @@ const EventPageView: React.FC<EventPageViewProps> = ({ event }) => {
/> />
</h1> </h1>
<div> <div>
<Content source={content} escapeHtml={false} /> <Content rehypePlugins={[rehypeRaw, rehypeSanitize]}>{content}</Content>
<p> <p>
{`${t("Paikka")}: ${location}`} {`${t("Paikka")}: ${location}`}
</p> </p>
+3 -1
View File
@@ -1,6 +1,8 @@
import React from "react"; import React from "react";
import Image from "next/image"; import Image from "next/image";
import styled from "styled-components"; import styled from "styled-components";
import rehypeRaw from "rehype-raw";
import rehypeSanitize from "rehype-sanitize";
import colors from "@theme/colors"; import colors from "@theme/colors";
import Post from "@models/Feed"; import Post from "@models/Feed";
import { TextSection, ChangeLanguageButton } from "@components/index"; import { TextSection, ChangeLanguageButton } from "@components/index";
@@ -70,7 +72,7 @@ const FeedPageView: React.FC<FeedPageViewProps> = ({ post }) => {
)} )}
</h1> </h1>
<div> <div>
<Content source={content} escapeHtml={false} /> <Content rehypePlugins={[rehypeRaw, rehypeSanitize]}>{content}</Content>
</div> </div>
</StyledTextSection> </StyledTextSection>
</> </>