View example.json
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
{ | |
"id": 1296269, | |
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5", | |
"name": "Hello-World", | |
"full_name": "octocat/Hello-World", | |
"owner": { | |
"login": "octocat", | |
"id": 1, | |
"node_id": "MDQ6VXNlcjE=", | |
"avatar_url": "https://github.com/images/error/octocat_happy.gif", |
View index.js
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
import { navigate } from "gatsby-link"; | |
import * as React from "react"; | |
import { useAuth } from "../hooks/useAuth"; | |
const wrapper = { | |
backgroundColor: `rgb(197,250,3)`, | |
display: `flex`, | |
alignItems: `center`, | |
justifyContent: `center`, | |
flexDirection: `column`, |
View login.js
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
import React from "react"; | |
import { useAuth } from "../hooks/useAuth"; | |
// .... other code .... // | |
export default function Login() { | |
const { login } = useAuth(); | |
return ( | |
<section style={wrapper}> | |
<div style={loginCard}> |
View useAuth.js
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
import { navigate } from "gatsby-link"; | |
import { useMoralis } from "./useMoralis"; | |
export function useAuth() { | |
const { Moralis } = useMoralis(); | |
return { | |
login: async () => { | |
try { | |
const user = await Moralis?.Web3.authenticate(); | |
navigate("/"); |
View useMoralis.js
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
export function useMoralis() { | |
// Moralis Initialization | |
let Moralis; | |
if (typeof window !== `undefined`) { | |
Moralis = require("moralis"); | |
Moralis.initialize(process.env.GATSBY_MORALIS_APPLICATION_ID); | |
Moralis.serverURL = process.env.GATSBY_MORALIS_SERVER_ID; | |
} | |
return { Moralis }; | |
} |
View gatsby-browser.js
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
import Moralis from "moralis"; | |
// Moralis Initialization | |
Moralis.initialize(`YOUR_APP_ID`); | |
Moralis.serverURL = `YOUR_SERVER_URL`; |
View login.js
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
import React from "react"; | |
const wrapper = { | |
backgroundColor: `rgb(197,250,3)`, | |
display: `flex`, | |
alignItems: `center`, | |
justifyContent: `center`, | |
flexDirection: `column`, | |
height: `100vh`, | |
}; |
View testnet-stake-pool-metadata.json
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
{ | |
"name": "Platform First Pool", | |
"description": "A pool dedicated to building applications on top of Cardano", | |
"ticker": "PLFM", | |
"homepage": "https://platformfirst.co" | |
} |
View error.logs
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
DEBUG: yarn.lock needs updating (repository=julienp-test-org/gatsby-starter-blog, branch=renovate/react-helmet-6.x) | |
DEBUG: Updated 2 lock files (repository=julienp-test-org/gatsby-starter-blog, branch=renovate/react-helmet-6.x) | |
"updatedArtifacts": ["package-lock.json", "yarn.lock"] | |
DEBUG: 3 file(s) to commit (repository=julienp-test-org/gatsby-starter-blog, branch=renovate/react-helmet-6.x) | |
DEBUG: Committing files to branch renovate/react-helmet-6.x (repository=julienp-test-org/gatsby-starter-blog, branch=renovate/react-helmet-6.x) | |
DEBUG: Error commiting files (repository=julienp-test-org/gatsby-starter-blog, branch=renovate/react-helmet-6.x) | |
"err": { | |
"task": { | |
"commands": [ | |
"push", |
View example-renovate.config.js
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
module.exports = { | |
/* endpoint: 'https://api.github.com/', */ | |
token: 'xxx', | |
platform: 'github', | |
logLevel: 'debug', | |
onboardingConfig: { | |
extends: ['config:base'], | |
}, | |
repositories: ['julienp-test-org/gatsby-starter-blog'], | |
renovateFork: true, |
NewerOlder