mirror of
https://github.com/fullstack-cash/fullstack-gatsby-theme-bch-wallet.git
synced 2026-09-21 16:52:06 -07:00
Merge pull request #12 from Permissionless-Software-Foundation/ct-unstable
Fixing dependencies, removing bch-message-lib
This commit is contained in:
Generated
+16363
-16363
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -48,7 +48,7 @@
|
||||
"process": "0.11.10",
|
||||
"prop-types": "15.7.2",
|
||||
"qrcode.react": "1.0.1",
|
||||
"react": "17.0.1",
|
||||
"react": "17.0.2",
|
||||
"react-dom": "17.0.2",
|
||||
"react-helmet": "6.1.0",
|
||||
"react-jdenticon": "0.0.9",
|
||||
@@ -61,6 +61,7 @@
|
||||
"stream-http": "3.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"colors": "1.4.0",
|
||||
"eslint": "7.18.0",
|
||||
"eslint-config-prettier": "7.2.0",
|
||||
"eslint-config-standard": "16.0.2",
|
||||
|
||||
@@ -6,7 +6,7 @@ import { faGithub } from '@fortawesome/free-brands-svg-icons'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
// Get the IPFS hash from the BCH Blockchain.
|
||||
import Memo from '../../services/memo-hash'
|
||||
// import Memo from '../../services/memo-hash'
|
||||
const siteConfig = require('../site-config')
|
||||
|
||||
let _this
|
||||
@@ -21,10 +21,10 @@ class Footer extends React.Component {
|
||||
ipfsHashLink: ''
|
||||
}
|
||||
|
||||
this.memo = new Memo({
|
||||
bchWallet: props.bchWallet,
|
||||
bchAddr: siteConfig.memoAddr
|
||||
})
|
||||
// this.memo = new Memo({
|
||||
// bchWallet: props.bchWallet,
|
||||
// bchAddr: siteConfig.memoAddr
|
||||
// })
|
||||
}
|
||||
|
||||
async componentDidMount () {
|
||||
@@ -34,28 +34,28 @@ class Footer extends React.Component {
|
||||
|
||||
// This function retrieves the IPFS CID for the latest copy of this app. That
|
||||
// CID is written to the BCH blockchain.
|
||||
async handleMemoService () {
|
||||
// This is a hard-coded hash or 'checkpoint' to use in times when the
|
||||
// connection fails.
|
||||
let hash = 'QmXT85Xoi7xMRD9m7Ta4Cx8Yrsd2WSzLrq2VRo26KW4xLu'
|
||||
|
||||
// Try to retrieve the hash from the BCH blockchain.
|
||||
try {
|
||||
hash = await this.memo.findHash()
|
||||
console.log(`IPFS hash found: ${hash}`)
|
||||
|
||||
if (!hash) {
|
||||
throw new Error('Hash not found! Falling back to hard coded IPFS hash.')
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Error trying to retrieve IPFS hash for the site: ', err)
|
||||
}
|
||||
|
||||
this.setState({
|
||||
ipfsHash: hash,
|
||||
ipfsHashLink: `https://ipfs.io/ipfs/${hash}`
|
||||
})
|
||||
}
|
||||
// async handleMemoService () {
|
||||
// // This is a hard-coded hash or 'checkpoint' to use in times when the
|
||||
// // connection fails.
|
||||
// let hash = 'QmXT85Xoi7xMRD9m7Ta4Cx8Yrsd2WSzLrq2VRo26KW4xLu'
|
||||
//
|
||||
// // Try to retrieve the hash from the BCH blockchain.
|
||||
// try {
|
||||
// hash = await this.memo.findHash()
|
||||
// console.log(`IPFS hash found: ${hash}`)
|
||||
//
|
||||
// if (!hash) {
|
||||
// throw new Error('Hash not found! Falling back to hard coded IPFS hash.')
|
||||
// }
|
||||
// } catch (err) {
|
||||
// console.error('Error trying to retrieve IPFS hash for the site: ', err)
|
||||
// }
|
||||
//
|
||||
// this.setState({
|
||||
// ipfsHash: hash,
|
||||
// ipfsHashLink: `https://ipfs.io/ipfs/${hash}`
|
||||
// })
|
||||
// }
|
||||
|
||||
render () {
|
||||
return (
|
||||
|
||||
+3
-2
@@ -34,7 +34,8 @@ export default function HTML (props) {
|
||||
zIndex: 9000,
|
||||
flexDirection: 'column'
|
||||
}}
|
||||
><img src='https://i.imgur.com/8n8PYAi.gif' alt='' width='250' />
|
||||
>
|
||||
<img src='https://i.imgur.com/8n8PYAi.gif' alt='' width='250' />
|
||||
Loading...
|
||||
</div>
|
||||
|
||||
@@ -42,7 +43,7 @@ export default function HTML (props) {
|
||||
<script src='https://unpkg.com/minimal-slp-wallet' />
|
||||
|
||||
{/* bch-message-lib */}
|
||||
<script src='https://unpkg.com/bch-message-lib' />
|
||||
{/* <script src='https://unpkg.com/bch-message-lib' /> */}
|
||||
|
||||
{props.headComponents}
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user