diff --git a/gatsby-config.js b/gatsby-config.js index 12b1979..e59faff 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -6,5 +6,5 @@ module.exports = { /* Your site config here */ - plugins: ['gatsby-ipfs-web-wallet'] + plugins: ['gatsby-ipfs-web-wallet', require.resolve('../gatsby-plugin-bch-tx-history')] } diff --git a/package-lock.json b/package-lock.json index 905154d..5a9b79d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4537,9 +4537,9 @@ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.0.tgz", - "integrity": "sha512-3YDiu347mtVtjpyV3u5kVqQLP242c06zwDOgpeRnybmXlYYsLbtTrUBUm8i8srONt+FWobl5aibnU1030PeeuA==" + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", + "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==" }, "axe-core": { "version": "3.5.5", @@ -21377,9 +21377,9 @@ } }, "gatsby-image": { - "version": "2.4.15", - "resolved": "https://registry.npmjs.org/gatsby-image/-/gatsby-image-2.4.15.tgz", - "integrity": "sha512-18DbwBXFHytFxk3N2mRO4g4dI+cm/0lUk8WP0jGKrJlgMxUYGf5KuIfugTPbTxC0CAR48DKJqB7CZGcpaGFC+g==", + "version": "2.4.16", + "resolved": "https://registry.npmjs.org/gatsby-image/-/gatsby-image-2.4.16.tgz", + "integrity": "sha512-N5kJ3LE8re57DgR1lAZFWP2or0nCSuNXSUKvSBvVgxwcebdcFGCxN/xTJbU4ojFfFBJ/D4gKuxJrvLvDf3jcyg==", "requires": { "@babel/runtime": "^7.10.3", "object-fit-images": "^3.2.4", @@ -21415,9 +21415,9 @@ } }, "gatsby-ipfs-web-wallet": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/gatsby-ipfs-web-wallet/-/gatsby-ipfs-web-wallet-1.9.2.tgz", - "integrity": "sha512-oPyDzVfBaizBtlSlKd8VuBm8L4OpO2FvAPaRCuDOjgIi5b5t+oQ/mUZqjba53o1icn2w8rZ7KyN+X43E9H++iQ==", + "version": "1.9.8", + "resolved": "https://registry.npmjs.org/gatsby-ipfs-web-wallet/-/gatsby-ipfs-web-wallet-1.9.8.tgz", + "integrity": "sha512-oFLaCSmbaO6jHRsrm4/VQTMmEbe/6ZUFmqeYzdP/CRhYtMqt7iA6TBdoHiaqVSvaEFVgrMLi/0H+RO5i5mwUbA==", "requires": { "adminlte-2-react": "^0.1.27", "gatsby": "^2.23.7", @@ -21473,6 +21473,13 @@ "micromatch": "^3.1.10" } }, + "gatsby-plugin-bch-tx-history": { + "version": "github:Permissionless-Software-Foundation/gatsby-plugin-bch-tx-history#99aeb6cb8e24af50fa7e912b2c44bdd3b15c81c8", + "from": "github:Permissionless-Software-Foundation/gatsby-plugin-bch-tx-history#ct-unstable", + "requires": { + "adminlte-2-react": "^0.1.27" + } + }, "gatsby-plugin-ipfs": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/gatsby-plugin-ipfs/-/gatsby-plugin-ipfs-2.0.2.tgz", @@ -21578,19 +21585,6 @@ "sharp": "^0.25.1" }, "dependencies": { - "gatsby-core-utils": { - "version": "1.3.15", - "resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz", - "integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==", - "requires": { - "ci-info": "2.0.0", - "configstore": "^5.0.1", - "fs-extra": "^8.1.0", - "node-object-hash": "^2.0.0", - "proper-lockfile": "^4.1.1", - "xdg-basedir": "^4.0.0" - } - }, "semver": { "version": "7.3.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", @@ -21610,21 +21604,6 @@ "idb-keyval": "^3.2.0", "lodash": "^4.17.15", "workbox-build": "^4.3.1" - }, - "dependencies": { - "gatsby-core-utils": { - "version": "1.3.15", - "resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz", - "integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==", - "requires": { - "ci-info": "2.0.0", - "configstore": "^5.0.1", - "fs-extra": "^8.1.0", - "node-object-hash": "^2.0.0", - "proper-lockfile": "^4.1.1", - "xdg-basedir": "^4.0.0" - } - } } }, "gatsby-plugin-page-creator": { @@ -21697,19 +21676,6 @@ "lodash": "^4.17.14" } }, - "gatsby-core-utils": { - "version": "1.3.15", - "resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz", - "integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==", - "requires": { - "ci-info": "2.0.0", - "configstore": "^5.0.1", - "fs-extra": "^8.1.0", - "node-object-hash": "^2.0.0", - "proper-lockfile": "^4.1.1", - "xdg-basedir": "^4.0.0" - } - }, "semver": { "version": "7.3.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz", @@ -22023,19 +21989,6 @@ "resolved": "https://registry.npmjs.org/file-type/-/file-type-12.4.2.tgz", "integrity": "sha512-UssQP5ZgIOKelfsaB5CuGAL+Y+q7EmONuiwF3N5HAH0t27rvrttgi6Ra9k/+DVaY9UF6+ybxu5pOXLUdA8N7Vg==" }, - "gatsby-core-utils": { - "version": "1.3.15", - "resolved": "https://registry.npmjs.org/gatsby-core-utils/-/gatsby-core-utils-1.3.15.tgz", - "integrity": "sha512-np1tJCGejhCHtgHdFl6+y5EwVAzdrieJZ3hdvpeOrJ22bL9ktl5XVLy4K937ThgxHLp8+ElMDVdziNun5tC8eg==", - "requires": { - "ci-info": "2.0.0", - "configstore": "^5.0.1", - "fs-extra": "^8.1.0", - "node-object-hash": "^2.0.0", - "proper-lockfile": "^4.1.1", - "xdg-basedir": "^4.0.0" - } - }, "got": { "version": "9.6.0", "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", @@ -30264,16 +30217,6 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" }, - "find-cache-dir": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz", - "integrity": "sha512-t2GDMt3oGC/v+BMwzmllWDuJF/xcDtE5j/fCGbqDD7OLuJkj0cfh1YSA5VKPvwMeLFLNDBkwOKZ2X85jGLVftQ==", - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, "find-up": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", @@ -30312,14 +30255,6 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "requires": { - "find-up": "^4.0.0" - } - }, "resolve-from": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", diff --git a/package.json b/package.json index f87ade2..39759bd 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ }, "dependencies": { "gatsby": "^2.23.7", - "gatsby-ipfs-web-wallet": "^1.9.2" + "gatsby-ipfs-web-wallet": "^1.9.8", + "gatsby-plugin-bch-tx-history": "Permissionless-Software-Foundation/gatsby-plugin-bch-tx-history#ct-unstable" }, "repository": { "type": "git", diff --git a/src/gatsby-ipfs-web-wallet/components/admin-lte/wallet/index.js b/src/gatsby-ipfs-web-wallet/components/admin-lte/wallet/index.js new file mode 100644 index 0000000..83fe2b0 --- /dev/null +++ b/src/gatsby-ipfs-web-wallet/components/admin-lte/wallet/index.js @@ -0,0 +1,38 @@ +import React from 'react' +import Wallet from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/index' +import TXHistory from 'gatsby-plugin-bch-tx-history/src/components/txhistory' + +// import Info from 'gatsby-ipfs-web-wallet/src/components/admin-lte/wallet/info' + +// console.log('Wallet: ', Wallet) +// console.log('Info: ', Info) + +// let _this + +class Wallet2 extends Wallet { + // class Wallet2 extends React.Component { + constructor (props) { + super(props) + console.log('Loading new example view.') + + // console.log('Wallet info: ', props.walletInfo) + } + + render () { + return ( + <> + + + ) + } + + addCards () { + return ( + <> + + + ) + } +} + +export default Wallet2