fix(token create): Added plugin back in

This commit is contained in:
Chris Troutner
2022-02-15 16:42:39 -08:00
parent 5df63e76e6
commit 36615ae949
4 changed files with 408 additions and 43 deletions
+3 -3
View File
@@ -7,7 +7,7 @@
module.exports = {
/* Your site config here */
plugins: [
'fullstack-gatsby-theme-bch-wallet',
"fullstack-gatsby-theme-bch-wallet",
// 'bch-wallet-plugin-postoffice',
// {
// resolve: 'gatsby-plugin-compile-es6-packages',
@@ -16,8 +16,8 @@ module.exports = {
// }
// },
// require.resolve('/home/trout/work/psf/gatsby-plugin-bch-sweep')
'fullstack-gatsby-plugin-bch-sweep'
// 'gatsby-plugin-bch-create-token'
"fullstack-gatsby-plugin-bch-sweep",
"gatsby-plugin-bch-create-token"
],
// https://www.gatsbyjs.com/docs/reference/release-notes/v2.28/#feature-flags-in-gatsby-configjs
flags: {
+365 -1
View File
@@ -15,7 +15,8 @@
"adminlte-2-react": "0.2.0-beta.10",
"fullstack-gatsby-plugin-bch-sweep": "1.0.0",
"fullstack-gatsby-theme-bch-wallet": "1.0.4",
"gatsby": "4.4.0"
"gatsby": "4.4.0",
"gatsby-plugin-bch-create-token": "1.1.2"
},
"devDependencies": {
"capacitor-resources": "2.0.5",
@@ -16356,6 +16357,209 @@
"node": ">=14.15.0"
}
},
"node_modules/gatsby-plugin-bch-create-token": {
"version": "1.1.2",
"resolved": "http://94.130.170.209:4873/gatsby-plugin-bch-create-token/-/gatsby-plugin-bch-create-token-1.1.2.tgz",
"integrity": "sha512-8Z7TJHNRVWBkGgMp7/9kl7XApGTZg2qBngwlUtlXsmPg1c9Zq2LKpFxtCHpBNjV8cHE4Ipoj1Ux2A6jnHnIuwA==",
"license": "MIT",
"dependencies": {
"adminlte-2-react": "^0.1.27",
"assert": "^2.0.0",
"browserify-zlib": "^0.2.0",
"crypto-browserify": "^3.12.0",
"https-browserify": "^1.0.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"react-helmet": "^6.1.0",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"webpack": "^5.65.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/adminlte-2-react": {
"version": "0.1.31",
"resolved": "http://94.130.170.209:4873/adminlte-2-react/-/adminlte-2-react-0.1.31.tgz",
"integrity": "sha512-36XJA6/mgxXvbEcSpnvS/eacspTdKDLuOOOg9n3AXaqSkAz4YBUwZTYt77Olndue26BTCt+zeiUHttpFFERMLw==",
"license": "MIT",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.34",
"@fortawesome/free-brands-svg-icons": "^5.15.2",
"@fortawesome/free-regular-svg-icons": "^5.15.2",
"@fortawesome/free-solid-svg-icons": "^5.15.2",
"@fortawesome/react-fontawesome": "^0.1.14",
"bootstrap": "^3.3.7",
"browserify-css": "^0.15.0",
"datatables.net-bs": "^1.10.23",
"datatables.net-select-bs": "^1.3.1",
"fullcalendar": "^3.10.2",
"icheck": "^1.0.2",
"jquery": "^3.6.0",
"jquery-sparkline": "^2.4.0",
"jquery-ui": "^1.12.1",
"moment": "^2.29.1",
"prop-types": "^15.6.2",
"rc-slider": "^8.7.1",
"rc-tooltip": "^3.7.3",
"react": "^16.14.0",
"react-bootstrap": "^0.32.4",
"react-bootstrap-slider": "^2.2.3",
"react-dates": "^21.8.0",
"react-datetime": "^2.16.3",
"react-dom": "^16.14.0",
"react-draggable": "^4.4.3",
"react-fontawesome": "^1.7.1",
"react-ionicons": "^1.3.6",
"react-moment-proptypes": "^1.7.0",
"react-router-dom": "^4.3.1",
"react-router-prop-types": "^1.0.5",
"react-select": "^2.4.4",
"select2": "^4.0.13",
"source-sans-pro": "^2.45.0",
"uuid": "^3.4.0"
},
"peerDependencies": {
"react": "^16.6.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/browserify-css": {
"version": "0.15.0",
"resolved": "http://94.130.170.209:4873/browserify-css/-/browserify-css-0.15.0.tgz",
"integrity": "sha512-ZgLHyZ16PH6P25JlBE+5xNtdobpkc5Egh+ctc8ha3GDtuZqSSQu0ovOxOQvXt0xAmaXixth/DY9iT56HlDOxyg==",
"license": "MIT",
"dependencies": {
"clean-css": "^4.1.5",
"concat-stream": "^1.6.0",
"css": "^2.2.1",
"find-node-modules": "^2.0.0",
"lodash": "^4.17.11",
"mime": "^1.3.6",
"strip-css-comments": "^3.0.0",
"through2": "2.0.x"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/detect-file": {
"version": "1.0.0",
"resolved": "http://94.130.170.209:4873/detect-file/-/detect-file-1.0.0.tgz",
"integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=",
"license": "MIT",
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/expand-tilde": {
"version": "2.0.2",
"resolved": "http://94.130.170.209:4873/expand-tilde/-/expand-tilde-2.0.2.tgz",
"integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=",
"license": "MIT",
"dependencies": {
"homedir-polyfill": "^1.0.1"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/find-node-modules": {
"version": "2.1.2",
"resolved": "http://94.130.170.209:4873/find-node-modules/-/find-node-modules-2.1.2.tgz",
"integrity": "sha512-x+3P4mbtRPlSiVE1Qco0Z4YLU8WFiFcuWTf3m75OV9Uzcfs2Bg+O9N+r/K0AnmINBW06KpfqKwYJbFlFq4qNug==",
"license": "MIT",
"dependencies": {
"findup-sync": "^4.0.0",
"merge": "^2.1.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/findup-sync": {
"version": "4.0.0",
"resolved": "http://94.130.170.209:4873/findup-sync/-/findup-sync-4.0.0.tgz",
"integrity": "sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ==",
"license": "MIT",
"dependencies": {
"detect-file": "^1.0.0",
"is-glob": "^4.0.0",
"micromatch": "^4.0.2",
"resolve-dir": "^1.0.1"
},
"engines": {
"node": ">= 8"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/global-modules": {
"version": "1.0.0",
"resolved": "http://94.130.170.209:4873/global-modules/-/global-modules-1.0.0.tgz",
"integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==",
"license": "MIT",
"dependencies": {
"global-prefix": "^1.0.1",
"is-windows": "^1.0.1",
"resolve-dir": "^1.0.0"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/global-prefix": {
"version": "1.0.2",
"resolved": "http://94.130.170.209:4873/global-prefix/-/global-prefix-1.0.2.tgz",
"integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=",
"license": "MIT",
"dependencies": {
"expand-tilde": "^2.0.2",
"homedir-polyfill": "^1.0.1",
"ini": "^1.3.4",
"is-windows": "^1.0.1",
"which": "^1.2.14"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/ini": {
"version": "1.3.8",
"resolved": "http://94.130.170.209:4873/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
"license": "ISC"
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/merge": {
"version": "2.1.1",
"resolved": "http://94.130.170.209:4873/merge/-/merge-2.1.1.tgz",
"integrity": "sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w==",
"license": "MIT"
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/mime": {
"version": "1.6.0",
"resolved": "http://94.130.170.209:4873/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
"license": "MIT",
"bin": {
"mime": "cli.js"
},
"engines": {
"node": ">=4"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/resolve-dir": {
"version": "1.0.1",
"resolved": "http://94.130.170.209:4873/resolve-dir/-/resolve-dir-1.0.1.tgz",
"integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=",
"license": "MIT",
"dependencies": {
"expand-tilde": "^2.0.0",
"global-modules": "^1.0.0"
},
"engines": {
"node": ">=0.10.0"
}
},
"node_modules/gatsby-plugin-bch-create-token/node_modules/uuid": {
"version": "3.4.0",
"resolved": "http://94.130.170.209:4873/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",
"deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",
"license": "MIT",
"bin": {
"uuid": "bin/uuid"
}
},
"node_modules/gatsby-plugin-image": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-image/-/gatsby-plugin-image-2.1.0.tgz",
@@ -48933,6 +49137,166 @@
"micromatch": "^4.0.4"
}
},
"gatsby-plugin-bch-create-token": {
"version": "1.1.2",
"resolved": "http://94.130.170.209:4873/gatsby-plugin-bch-create-token/-/gatsby-plugin-bch-create-token-1.1.2.tgz",
"integrity": "sha512-8Z7TJHNRVWBkGgMp7/9kl7XApGTZg2qBngwlUtlXsmPg1c9Zq2LKpFxtCHpBNjV8cHE4Ipoj1Ux2A6jnHnIuwA==",
"requires": {
"adminlte-2-react": "^0.1.27",
"assert": "^2.0.0",
"browserify-zlib": "^0.2.0",
"crypto-browserify": "^3.12.0",
"https-browserify": "^1.0.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10",
"react-helmet": "^6.1.0",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"webpack": "^5.65.0"
},
"dependencies": {
"adminlte-2-react": {
"version": "0.1.31",
"resolved": "http://94.130.170.209:4873/adminlte-2-react/-/adminlte-2-react-0.1.31.tgz",
"integrity": "sha512-36XJA6/mgxXvbEcSpnvS/eacspTdKDLuOOOg9n3AXaqSkAz4YBUwZTYt77Olndue26BTCt+zeiUHttpFFERMLw==",
"requires": {
"@fortawesome/fontawesome-svg-core": "^1.2.34",
"@fortawesome/free-brands-svg-icons": "^5.15.2",
"@fortawesome/free-regular-svg-icons": "^5.15.2",
"@fortawesome/free-solid-svg-icons": "^5.15.2",
"@fortawesome/react-fontawesome": "^0.1.14",
"bootstrap": "^3.3.7",
"browserify-css": "^0.15.0",
"datatables.net-bs": "^1.10.23",
"datatables.net-select-bs": "^1.3.1",
"fullcalendar": "^3.10.2",
"icheck": "^1.0.2",
"jquery": "^3.6.0",
"jquery-sparkline": "^2.4.0",
"jquery-ui": "^1.12.1",
"moment": "^2.29.1",
"prop-types": "^15.6.2",
"rc-slider": "^8.7.1",
"rc-tooltip": "^3.7.3",
"react": "^16.14.0",
"react-bootstrap": "^0.32.4",
"react-bootstrap-slider": "^2.2.3",
"react-dates": "^21.8.0",
"react-datetime": "^2.16.3",
"react-dom": "^16.14.0",
"react-draggable": "^4.4.3",
"react-fontawesome": "^1.7.1",
"react-ionicons": "^1.3.6",
"react-moment-proptypes": "^1.7.0",
"react-router-dom": "^4.3.1",
"react-router-prop-types": "^1.0.5",
"react-select": "^2.4.4",
"select2": "^4.0.13",
"source-sans-pro": "^2.45.0",
"uuid": "^3.4.0"
}
},
"browserify-css": {
"version": "0.15.0",
"resolved": "http://94.130.170.209:4873/browserify-css/-/browserify-css-0.15.0.tgz",
"integrity": "sha512-ZgLHyZ16PH6P25JlBE+5xNtdobpkc5Egh+ctc8ha3GDtuZqSSQu0ovOxOQvXt0xAmaXixth/DY9iT56HlDOxyg==",
"requires": {
"clean-css": "^4.1.5",
"concat-stream": "^1.6.0",
"css": "^2.2.1",
"find-node-modules": "^2.0.0",
"lodash": "^4.17.11",
"mime": "^1.3.6",
"strip-css-comments": "^3.0.0",
"through2": "2.0.x"
}
},
"detect-file": {
"version": "1.0.0",
"resolved": "http://94.130.170.209:4873/detect-file/-/detect-file-1.0.0.tgz",
"integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc="
},
"expand-tilde": {
"version": "2.0.2",
"resolved": "http://94.130.170.209:4873/expand-tilde/-/expand-tilde-2.0.2.tgz",
"integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=",
"requires": {
"homedir-polyfill": "^1.0.1"
}
},
"find-node-modules": {
"version": "2.1.2",
"resolved": "http://94.130.170.209:4873/find-node-modules/-/find-node-modules-2.1.2.tgz",
"integrity": "sha512-x+3P4mbtRPlSiVE1Qco0Z4YLU8WFiFcuWTf3m75OV9Uzcfs2Bg+O9N+r/K0AnmINBW06KpfqKwYJbFlFq4qNug==",
"requires": {
"findup-sync": "^4.0.0",
"merge": "^2.1.0"
}
},
"findup-sync": {
"version": "4.0.0",
"resolved": "http://94.130.170.209:4873/findup-sync/-/findup-sync-4.0.0.tgz",
"integrity": "sha512-6jvvn/12IC4quLBL1KNokxC7wWTvYncaVUYSoxWw7YykPLuRrnv4qdHcSOywOI5RpkOVGeQRtWM8/q+G6W6qfQ==",
"requires": {
"detect-file": "^1.0.0",
"is-glob": "^4.0.0",
"micromatch": "^4.0.2",
"resolve-dir": "^1.0.1"
}
},
"global-modules": {
"version": "1.0.0",
"resolved": "http://94.130.170.209:4873/global-modules/-/global-modules-1.0.0.tgz",
"integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==",
"requires": {
"global-prefix": "^1.0.1",
"is-windows": "^1.0.1",
"resolve-dir": "^1.0.0"
}
},
"global-prefix": {
"version": "1.0.2",
"resolved": "http://94.130.170.209:4873/global-prefix/-/global-prefix-1.0.2.tgz",
"integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=",
"requires": {
"expand-tilde": "^2.0.2",
"homedir-polyfill": "^1.0.1",
"ini": "^1.3.4",
"is-windows": "^1.0.1",
"which": "^1.2.14"
}
},
"ini": {
"version": "1.3.8",
"resolved": "http://94.130.170.209:4873/ini/-/ini-1.3.8.tgz",
"integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew=="
},
"merge": {
"version": "2.1.1",
"resolved": "http://94.130.170.209:4873/merge/-/merge-2.1.1.tgz",
"integrity": "sha512-jz+Cfrg9GWOZbQAnDQ4hlVnQky+341Yk5ru8bZSe6sIDTCIg8n9i/u7hSQGSVOF3C7lH6mGtqjkiT9G4wFLL0w=="
},
"mime": {
"version": "1.6.0",
"resolved": "http://94.130.170.209:4873/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
},
"resolve-dir": {
"version": "1.0.1",
"resolved": "http://94.130.170.209:4873/resolve-dir/-/resolve-dir-1.0.1.tgz",
"integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=",
"requires": {
"expand-tilde": "^2.0.0",
"global-modules": "^1.0.0"
}
},
"uuid": {
"version": "3.4.0",
"resolved": "http://94.130.170.209:4873/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
}
}
},
"gatsby-plugin-image": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/gatsby-plugin-image/-/gatsby-plugin-image-2.1.0.tgz",
+2 -1
View File
@@ -27,7 +27,8 @@
"adminlte-2-react": "0.2.0-beta.10",
"fullstack-gatsby-plugin-bch-sweep": "1.0.0",
"fullstack-gatsby-theme-bch-wallet": "1.0.4",
"gatsby": "4.4.0"
"gatsby": "4.4.0",
"gatsby-plugin-bch-create-token": "1.1.2"
},
"repository": {
"type": "git",
@@ -6,65 +6,65 @@
It over-rides he default file in the gatsby-ipfs-web-wallet Theme.
*/
import React from 'react'
import { Sidebar } from 'adminlte-2-react'
import React from "react"
import { Sidebar } from "adminlte-2-react"
import Wallet from 'fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/wallet'
import Tokens from 'fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/tokens'
import Configure from 'fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/configure'
import SendReceive from 'fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/send-receive'
import Wallet from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/wallet"
import Tokens from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/tokens"
import Configure from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/configure"
import SendReceive from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/send-receive"
import About from '../../about'
import Sweep from 'fullstack-gatsby-plugin-bch-sweep/src/components/sweep/index'
// import CreateToken from 'gatsby-plugin-bch-create-token/src/components/create-token'
import About from "../../about"
import Sweep from "fullstack-gatsby-plugin-bch-sweep/src/components/sweep/index"
import CreateToken from "gatsby-plugin-bch-create-token/src/components/create-token"
const { Item } = Sidebar
const MenuComponents = props => {
return [
{
key: 'Tokens',
component: <Tokens key='Tokens' {...props} />,
menuItem: <Item icon='fas-coins' key='Tokens' text='Tokens' />
key: "Tokens",
component: <Tokens key="Tokens" {...props} />,
menuItem: <Item icon="fas-coins" key="Tokens" text="Tokens" />
},
{
key: 'Send/Receive BCH',
component: <SendReceive key='Send/Receive BCH' {...props} />,
key: "Send/Receive BCH",
component: <SendReceive key="Send/Receive BCH" {...props} />,
menuItem: (
<Item
icon='fa-exchange-alt'
key='Send/Receive BCH'
text='Send/Receive BCH'
icon="fa-exchange-alt"
key="Send/Receive BCH"
text="Send/Receive BCH"
/>
)
},
{
key: 'Sweep',
component: <Sweep key='Sweep' {...props} />,
menuItem: <Item icon='fas-arrow-circle-up' key='Sweep' text='Sweep' />
key: "Sweep",
component: <Sweep key="Sweep" {...props} />,
menuItem: <Item icon="fas-arrow-circle-up" key="Sweep" text="Sweep" />
},
{
key: 'Wallet',
component: <Wallet key='Wallet' interface='rest-api' {...props} />,
key: "Wallet",
component: <Wallet key="Wallet" interface="rest-api" {...props} />,
// component: <Wallet key="Wallet" interface="consumer-api" {...props} />,
menuItem: <Item icon='fa-wallet' key='Wallet' text='Wallet' />
},
// {
// key: 'Create Token',
// component: <CreateToken key='Create Token' {...props} />,
// menuItem: (
// <Item icon='fas-plus-square' key='Create Token' text='Create Token' />
// )
// },
{
key: 'Configure',
component: <Configure key='Configure' {...props} />,
menuItem: <Item icon='fas-cog' key='Configure' text='Configure' />
menuItem: <Item icon="fa-wallet" key="Wallet" text="Wallet" />
},
{
key: 'About',
component: <About key='About' {...props} />,
menuItem: <Item icon='fas-question' key='About' text='About' />
key: "Create Token",
component: <CreateToken key="Create Token" {...props} />,
menuItem: (
<Item icon="fas-plus-square" key="Create Token" text="Create Token" />
)
},
{
key: "Configure",
component: <Configure key="Configure" {...props} />,
menuItem: <Item icon="fas-cog" key="Configure" text="Configure" />
},
{
key: "About",
component: <About key="About" {...props} />,
menuItem: <Item icon="fas-question" key="About" text="About" />
}
]
}