-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* created: index.js as landingpage created: AuthPage.js w/ initial sign in component * added: TestPage / StudyPage / AuthPage / HomePage with initial layouts and styling structure * added: GraphQL query to siteMetadata in getaby-config.js to render the app subTitle on the index.js page * using GraphQL to access markdown data * added: initial connection to Contentful CMS weird issue around gatsby-source-contentful needing an img saved in media in order to work gatsbyjs/gatsby#15397 * debug: structure of <HomePage /> & GraphQL Query <HomePage /> is now dynamically rendering the <StudySetOption /> cards for each studySet recieved from the GraphQL query * Refactored: <SidebarLayout /> component now accepts type prop component is dyncamically rendering JSX for appropraite type deleated individual component implementations of the SidebarLayout * Updated: <StudySetOption /> styled updated to be rendering a stack of cards * updated: <SidebarLayout /> css * initial commit: auth branch * step: initial app.js routing and rendering appropraite data * Updated: Project file structure broke Views our of Pages * authReset // STUCK: cant resolve service worker look into implementation of auth0 & gatsby without a typical react src/index.js * auth: reset * stage: basic rendering of <HomePage /> (src > app > views > HomePage.js) inside of <GATSBY_INDEX /> (src > pages > index.js) * Updated: nodes.md * auth0-gatsby starter project * reNamed: account functionality to app * auth0: V1 of integration working started from a simple auth0-gatsby starter (https://github.com/auth0-blog/gatsby-auth0) project & adapted what I had previously done to integrate the contentful CMS into gatsby * updated: ReadMe.md * bug: .js.js changed to .js on a few pages * updated: license
- Loading branch information
Showing
39 changed files
with
3,063 additions
and
1,725 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# NoteCards | ||
|
||
# Copyright | ||
This code is not open source. | ||
Please contact [email protected] if you are interesting in acquiring a license. | ||
|
||
All code is owned by Reed Turgeon. |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# React | ||
Plugins & Packages: </br> | ||
|
||
1. react | ||
2. react-dom | ||
3. react-helmet | ||
4. @react/router | ||
|
||
# Gatsby | ||
- [Main Docs](https://www.gatsbyjs.org/docs/) | ||
- [Search Plugins](https://www.gatsbyjs.org/plugins/) | ||
|
||
Plugins & Packages: </br> | ||
|
||
1. gatsby | ||
2. gatsby-plugin-react-helmet | ||
3. "gatsby-source-filesystem | ||
|
||
# Styling | ||
Plugins & Packages: </br> | ||
|
||
1. gatsby-plugin-sass | ||
|
||
# Auth0 | ||
- [Starter Repo Title: auth0-blog / gatsby-auth0](https://github.com/auth0-blog/gatsby-auth0) | ||
|
||
Plugins & Packages: </br> | ||
|
||
1. auth0-js | ||
|
||
# Contentful | ||
Plugins & Packages: </br> | ||
|
||
1. @contentful/rich-text-react-renderer | ||
2. gatsby-source-contentful | ||
|
||
# Markdown | ||
Plugins & Packages: </br> | ||
|
||
1. gatsby-source-filesystem | ||
2. gatsby-transformer-remark | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,31 @@ | ||
/** | ||
* Implement Gatsby's Browser APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.org/docs/browser-apis/ | ||
*/ | ||
import React from "react" | ||
import { silentAuth } from "./src/utils/auth" | ||
|
||
// You can delete this file if you're not using it | ||
class SessionCheck extends React.Component { | ||
constructor(props) { | ||
super(props) | ||
this.state = { | ||
loading: true, | ||
} | ||
} | ||
|
||
handleCheckSession = () => { | ||
this.setState({ loading: false }) | ||
} | ||
|
||
componentDidMount() { | ||
silentAuth(this.handleCheckSession) | ||
} | ||
|
||
render() { | ||
return ( | ||
this.state.loading === false && ( | ||
<React.Fragment>{this.props.children}</React.Fragment> | ||
) | ||
) | ||
} | ||
} | ||
|
||
export const wrapRootElement = ({ element }) => { | ||
return <SessionCheck>{element}</SessionCheck> | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,37 @@ | ||
/** | ||
* Implement Gatsby's Node APIs in this file. | ||
* | ||
* See: https://www.gatsbyjs.org/docs/node-apis/ | ||
*/ | ||
// ./gatsby-node.js | ||
// Implement the Gatsby API “onCreatePage”. This is | ||
// called after every page is created. | ||
exports.onCreatePage = async ({ page, actions }) => { | ||
const { createPage } = actions | ||
|
||
// You can delete this file if you're not using it | ||
// page.matchPath is a special key that's used for matching pages | ||
// only on the client. | ||
if (page.path.match(/^\/app/)) { | ||
page.matchPath = "/app/*" | ||
|
||
// Update the page. | ||
createPage(page) | ||
} | ||
} | ||
|
||
exports.onCreateWebpackConfig = ({ stage, loaders, actions }) => { | ||
if (stage === "build-html") { | ||
/* | ||
* During the build step, `auth0-js` will break because it relies on | ||
* browser-specific APIs. Fortunately, we don’t need it during the build. | ||
* Using Webpack’s null loader, we’re able to effectively ignore `auth0-js` | ||
* during the build. (See `src/utils/auth.js` to see how we prevent this | ||
* from breaking the app.) | ||
*/ | ||
actions.setWebpackConfig({ | ||
module: { | ||
rules: [ | ||
{ | ||
test: /auth0-js/, | ||
use: loaders.null(), | ||
}, | ||
], | ||
}, | ||
}) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.