Skip to content

Commit

Permalink
chore: Yolo package upgrade (#263)
Browse files Browse the repository at this point in the history
* Yolo package upgrade

* Fix pascal case for SEO component

* Node version
  • Loading branch information
raae authored May 5, 2021
1 parent 5ecfac4 commit 83bca39
Show file tree
Hide file tree
Showing 12 changed files with 21,950 additions and 13,461 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v14.15.3
35,316 changes: 21,901 additions & 13,415 deletions package-lock.json

Large diffs are not rendered by default.

56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,48 +18,48 @@
},
"dependencies": {
"@date-io/date-fns": "1.3.13",
"@material-ui/core": "4.11.3",
"@material-ui/core": "4.11.4",
"@material-ui/icons": "4.11.2",
"@material-ui/lab": "4.0.0-alpha.57",
"@material-ui/pickers": "3.2.10",
"@material-ui/lab": "4.0.0-alpha.58",
"@material-ui/pickers": "3.3.10",
"@mdx-js/mdx": "1.6.22",
"@mdx-js/react": "1.6.22",
"@raae/gatsby-plugin-fathom": "0.0.2",
"@reduxjs/toolkit": "^1.4.0",
"@stripe/stripe-js": "1.10.0",
"classnames": "2.2.6",
"date-fns": "2.17.0",
"gatsby": "2.32.3",
"gatsby-plugin-manifest": "2.12.0",
"gatsby-plugin-material-ui": "2.1.10",
"gatsby-plugin-mdx": "1.10.0",
"gatsby-plugin-netlify": "2.11.0",
"gatsby-plugin-page-creator": "2.10.0",
"gatsby-plugin-react-helmet": "3.10.0",
"gatsby-source-filesystem": "2.11.0",
"gatsby-transformer-remark": "2.16.0",
"lodash": "4.17.20",
"netlify-lambda": "2.0.3",
"@raae/gatsby-plugin-fathom": "0.0.4",
"@reduxjs/toolkit": "^1.5.1",
"@stripe/stripe-js": "1.14.0",
"classnames": "2.3.1",
"date-fns": "2.21.2",
"gatsby": "3.4.1",
"gatsby-plugin-manifest": "3.4.0",
"gatsby-plugin-material-ui": "3.0.1",
"gatsby-plugin-mdx": "2.4.0",
"gatsby-plugin-netlify": "3.4.0",
"gatsby-plugin-page-creator": "3.4.1",
"gatsby-plugin-react-helmet": "4.4.0",
"gatsby-source-filesystem": "3.4.0",
"gatsby-transformer-remark": "4.1.0",
"lodash": "4.17.21",
"netlify-lambda": "2.0.6",
"papaparse": "^5.3.0",
"query-string": "6.13.8",
"react": "17.0.1",
"react-dom": "17.0.1",
"query-string": "7.0.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-helmet": "6.1.0",
"react-redux": "7.2.2",
"react-scroll": "1.8.1",
"redux": "4.0.5",
"react-redux": "7.2.4",
"react-scroll": "1.8.2",
"redux": "4.1.0",
"redux-observable": "1.2.0",
"stripe": "8.134.0",
"stripe": "8.146.0",
"typeface-seymour-one": "1.1.13",
"userbase-js": "^2.8.0"
},
"devDependencies": {
"babel-jest": "26.6.3",
"babel-preset-gatsby": "0.12.1",
"babel-preset-gatsby": "1.4.0",
"identity-obj-proxy": "3.0.0",
"jest": "26.6.3",
"prettier": "2.2.1",
"react-test-renderer": "17.0.1"
"react-test-renderer": "17.0.2"
},
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/features/app/Seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const useSiteMetadata = () => {
return data.site.siteMetadata
}

const SEO = ({ title }) => {
const Seo = ({ title }) => {
const siteMeta = useSiteMetadata()

const pageTitle = title || siteMeta.title
Expand Down Expand Up @@ -72,4 +72,4 @@ const SEO = ({ title }) => {
)
}

export default SEO
export default Seo
2 changes: 1 addition & 1 deletion src/features/app/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as Loading } from "./Loading"
export { default as SEO } from "./Seo"
export { default as Seo } from "./Seo"
export { default as AppLayout } from "./AppLayout"
export { default as AppAuthLayout } from "./AppAuthLayout"
export { default as AppMainToolbar } from "./AppMainToolbar"
Expand Down
4 changes: 3 additions & 1 deletion src/features/cycle/analyze.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { compact, sum, round, last, intersection } from "lodash"

import { daysBetweenDates, addDaysToDate } from "../utils/days"

export default ({ sortedEntries, initialDaysBetween, menstruationTags }) => {
const analyze = ({ sortedEntries, initialDaysBetween, menstruationTags }) => {
let cycleIndex = 0

const cycle = {
Expand Down Expand Up @@ -64,3 +64,5 @@ export default ({ sortedEntries, initialDaysBetween, menstruationTags }) => {
nextStartDate,
}
}

export default analyze
4 changes: 2 additions & 2 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from "react"
import { navigate } from "gatsby"

import { Loading, SEO } from "../features/app"
import { Loading, Seo } from "../features/app"
import { TIMELINE } from "../features/navigation"
import { useAuth } from "../features/auth"

Expand All @@ -16,7 +16,7 @@ const IndexPage = () => {

return (
<>
<SEO title="Loading..." />
<Seo title="Loading..." />
<Loading fullScreen />
</>
)
Expand Down
4 changes: 2 additions & 2 deletions src/pages/recover.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import userbase from "userbase-js"
import { Button, TextField, FormGroup } from "@material-ui/core"
import Alert from "@material-ui/lab/Alert"

import { SEO, Loading } from "../features/app"
import { Seo, Loading } from "../features/app"
import { useAuth } from "../features/auth"
import { HOME } from "../features/navigation"
import PageTemplate from "../templates/page"
Expand Down Expand Up @@ -48,7 +48,7 @@ const StuffPage = () => {

return (
<PageTemplate>
<SEO title="Reset" />
<Seo title="Reset" />

<h1>Reset password</h1>

Expand Down
6 changes: 3 additions & 3 deletions src/pages/signout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useEffect } from "react"
import Alert from "@material-ui/lab/Alert"

import { SEO, Loading } from "../features/app"
import { Seo, Loading } from "../features/app"
import PageTemplate from "../templates/page"

import { useAuth } from "../features/auth"
Expand All @@ -17,13 +17,13 @@ const SignOutPage = () => {
<PageTemplate>
{isAuthFailed ? (
<>
<SEO title="Sign out" />
<Seo title="Sign out" />
<h1>Sign out failed</h1>
<Alert severity="error">{error.message}</Alert>
</>
) : (
<>
<SEO title="Signing out..." />
<Seo title="Signing out..." />
<Loading fullScreen />
</>
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/stuff.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import userbase from "userbase-js"
import { Button, TextField, FormHelperText } from "@material-ui/core"
import Alert from "@material-ui/lab/Alert"

import { SEO, Loading } from "../features/app"
import { Seo, Loading } from "../features/app"
import { useAuth } from "../features/auth"
import PageTemplate from "../templates/page"

Expand Down Expand Up @@ -36,7 +36,7 @@ const StuffPage = () => {

return (
<PageTemplate>
<SEO title="Secret" />
<Seo title="Secret" />
<h1>Support Stuff</h1>
<Alert severity="warning">
This page should only be used if directed here by POW! support.
Expand Down
6 changes: 3 additions & 3 deletions src/pages/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { selectAreEntriesLoading } from "../features/entries"
import { selectAreSettingsLoading } from "../features/settings"
import { TimelineIndexPage, TimelineEditPage } from "../features/timeline"

import { SEO, Loading } from "../features/app"
import { Seo, Loading } from "../features/app"

const CyclePage = () => {
const { isAuthenticated, isAuthPending } = useAuth()
Expand All @@ -29,15 +29,15 @@ const CyclePage = () => {
if (isAuthPending || dataIsLoading) {
return (
<>
<SEO title="Loading..." />
<Seo title="Loading..." />
<Loading fullScreen />
</>
)
}

return (
<>
<SEO title="Cycle" />
<Seo title="Cycle" />
<Router basepath="/timeline">
<TimelineIndexPage path="/" />
<TimelineIndexPage path=":entryId" />
Expand Down
4 changes: 2 additions & 2 deletions src/templates/page.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import { Container, makeStyles } from "@material-ui/core"

import { SEO, Logo } from "../features/app"
import { Seo, Logo } from "../features/app"

const useStyles = makeStyles((theme) => ({
root: {
Expand All @@ -14,7 +14,7 @@ const PageTemplate = ({ children }) => {
return (
<div className={classes.root}>
<Container maxWidth="sm">
<SEO />
<Seo />

<h1>
<Logo component="a" href="https://usepow.app">
Expand Down

0 comments on commit 83bca39

Please # to comment.