mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
Update and fix ugprades
This commit is contained in:
parent
3d64368700
commit
5af9c4f230
6 changed files with 2366 additions and 1878 deletions
4201
package-lock.json
generated
4201
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
|
@ -19,12 +19,12 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@sentry/browser": "^5.4.3",
|
||||
"next": "^7.0.3",
|
||||
"next-seo": "^1.12.0",
|
||||
"next": "^9.0.5",
|
||||
"next-seo": "^2.0.0",
|
||||
"react": "^16.9.0",
|
||||
"react-clipboard.js": "^2.0.13",
|
||||
"react-dom": "^16.8.0-alpha.0",
|
||||
"react-markdown": "^4.0.9",
|
||||
"react-dom": "^16.9.0",
|
||||
"react-markdown": "^4.1.0",
|
||||
"styled-components": "^4.3.2",
|
||||
"throttle-debounce": "^2.1.0"
|
||||
},
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
"babel-eslint": "^10.0.2",
|
||||
"babel-plugin-styled-components": "^1.10.1",
|
||||
"babel-plugin-transform-define": "^1.3.1",
|
||||
"cypress": "^3.3.1",
|
||||
"cypress": "^3.4.1",
|
||||
"eslint": "^6.0.0",
|
||||
"eslint-config-airbnb": "^17.1.0",
|
||||
"eslint-config-prettier": "^6.1.0",
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
// @flow
|
||||
import App, { Container } from 'next/app';
|
||||
import App from 'next/app';
|
||||
import * as React from 'react';
|
||||
import Head from 'next/head';
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import NextSeo from 'next-seo';
|
||||
import { NextSeo } from 'next-seo';
|
||||
import { GlobalStyles } from '../static/normalize';
|
||||
import defaultSEO from '../config/next-seo.js';
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ class SecurityChecklistApp extends App {
|
|||
const { Component, pageProps } = this.props;
|
||||
|
||||
return (
|
||||
<Container>
|
||||
<>
|
||||
<GlobalStyles />
|
||||
|
||||
<Head>
|
||||
|
|
@ -135,7 +135,7 @@ class SecurityChecklistApp extends App {
|
|||
|
||||
<NextSeo config={defaultSEO} />
|
||||
<Component {...pageProps} />
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,18 +1,8 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import type { GetInitialProps } from '../types';
|
||||
import Home from './index';
|
||||
|
||||
class Error extends React.Component<{}> {
|
||||
static async getInitialProps({ res }: GetInitialProps) {
|
||||
if (res && res.setHeader) {
|
||||
const cacheAge = 60 * 60 * 24 * 30;
|
||||
res.setHeader('Cache-Control', `public,s-maxage=${cacheAge}`);
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
render() {
|
||||
return <Home />;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import NextSeo from 'next-seo';
|
||||
import { NextSeo } from 'next-seo';
|
||||
import Page, { SectionHeading, Heading, Subheading } from '../components/Page';
|
||||
|
||||
export default function About() {
|
||||
|
|
|
|||
|
|
@ -1,25 +1,14 @@
|
|||
// @flow
|
||||
import * as React from 'react';
|
||||
import Page, { SectionHeading, Heading, Subheading } from '../components/Page';
|
||||
import type { GetInitialProps } from '../types';
|
||||
import Checklist from '../components/Checklist';
|
||||
import ShareButtons from '../components/ShareButtons';
|
||||
import BottomShare from '../components/BottomShare';
|
||||
|
||||
class Index extends React.Component<{}> {
|
||||
static async getInitialProps({ res }: GetInitialProps) {
|
||||
if (res && res.setHeader) {
|
||||
// cache podcasts for a month
|
||||
const cacheAge = 60 * 60 * 24 * 30;
|
||||
res.setHeader('Cache-Control', `public,s-maxage=${cacheAge}`);
|
||||
}
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Page displayProgress={true}>
|
||||
<Page displayProgress>
|
||||
<SectionHeading>
|
||||
<Heading>Be safe on the internet.</Heading>
|
||||
<Subheading>
|
||||
|
|
|
|||
Loading…
Reference in a new issue