-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth0_V1 #1
Merged
Auth0_V1 #1
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b0a69e5
created: index.js as landingpage
MrT3313 7b6dd7c
added: TestPage / StudyPage / AuthPage / HomePage with initial layout…
MrT3313 93d4278
added: GraphQL query to siteMetadata in getaby-config.js to render th…
MrT3313 ccb42f7
using GraphQL to access markdown data
MrT3313 270cf2f
added: initial connection to Contentful CMS
MrT3313 9d780c9
debug: structure of <HomePage /> & GraphQL Query
MrT3313 e37eae6
Refactored: <SidebarLayout />
MrT3313 11c926c
Updated: <StudySetOption />
MrT3313 e10cbb2
updated: <SidebarLayout /> css
MrT3313 9ea51d6
initial commit: auth branch
MrT3313 c6f50bd
step: initial app.js routing and rendering appropraite data
MrT3313 e452ded
Updated: Project file structure
MrT3313 901985f
authReset // STUCK: cant resolve service worker
MrT3313 731306c
auth: reset
MrT3313 b33afff
stage: basic rendering of <HomePage /> (src > app > views > HomePage.…
MrT3313 bf83030
Updated: nodes.md
MrT3313 31f07c2
auth0-gatsby starter project
MrT3313 87762ef
reNamed: account functionality to app
MrT3313 a9aa190
auth0: V1 of integration working
MrT3313 85e8124
updated: ReadMe.md
MrT3313 bac91c8
bug: .js.js changed to .js on a few pages
MrT3313 3a4f926
updated: license
MrT3313 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 rturgeon13@gmail.com 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/, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ask about auth0-js vs auth-spa-js |
||
use: loaders.null(), | ||
}, | ||
], | ||
}, | ||
}) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do a project search for console.log()'s next time