fix(minimal-slp-wallet): updating to v4.1.0

This commit is contained in:
Chris Troutner
2022-02-02 11:53:07 -08:00
parent b9189dd4eb
commit 3e26f5f52a
5 changed files with 5012 additions and 19421 deletions
+3 -4
View File
@@ -7,7 +7,7 @@
module.exports = { module.exports = {
/* Your site config here */ /* Your site config here */
plugins: [ plugins: [
'gatsby-theme-bch-wallet', "fullstack-gatsby-theme-bch-wallet",
// 'bch-wallet-plugin-postoffice', // 'bch-wallet-plugin-postoffice',
// { // {
// resolve: 'gatsby-plugin-compile-es6-packages', // resolve: 'gatsby-plugin-compile-es6-packages',
@@ -16,9 +16,8 @@ module.exports = {
// } // }
// }, // },
// require.resolve('/home/trout/work/psf/gatsby-plugin-bch-sweep') // require.resolve('/home/trout/work/psf/gatsby-plugin-bch-sweep')
'gatsby-plugin-bch-sweep', "gatsby-plugin-bch-sweep",
'gatsby-plugin-bch-create-token' "gatsby-plugin-bch-create-token"
], ],
// https://www.gatsbyjs.com/docs/reference/release-notes/v2.28/#feature-flags-in-gatsby-configjs // https://www.gatsbyjs.com/docs/reference/release-notes/v2.28/#feature-flags-in-gatsby-configjs
flags: { flags: {
+4944 -19355
View File
File diff suppressed because it is too large Load Diff
+17 -17
View File
@@ -21,13 +21,13 @@
"test": "npm run lint" "test": "npm run lint"
}, },
"dependencies": { "dependencies": {
"@capacitor/android": "^2.4.6", "@capacitor/android": "2.4.6",
"@capacitor/cli": "^2.4.6", "@capacitor/cli": "2.4.6",
"@capacitor/core": "^2.4.6", "@capacitor/core": "2.4.6",
"gatsby": "^4.4.0", "gatsby": "4.4.0",
"gatsby-plugin-bch-create-token": "^1.1.1", "gatsby-plugin-bch-create-token": "1.1.1",
"gatsby-plugin-bch-sweep": "^1.5.5", "gatsby-plugin-bch-sweep": "1.5.5",
"gatsby-theme-bch-wallet": "^1.1.2" "fullstack-gatsby-theme-bch-wallet": "1.0.0"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -37,16 +37,16 @@
"url": "https://github.com/Permissionless-Software-Foundation/wallet.fullstack.cash/issues" "url": "https://github.com/Permissionless-Software-Foundation/wallet.fullstack.cash/issues"
}, },
"devDependencies": { "devDependencies": {
"capacitor-resources": "^2.0.5", "capacitor-resources": "2.0.5",
"eslint": "^7.24.0", "eslint": "7.24.0",
"eslint-config-prettier": "^8.2.0", "eslint-config-prettier": "8.2.0",
"eslint-config-standard": "^16.0.2", "eslint-config-standard": "16.0.2",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "3.4.0",
"eslint-plugin-standard": "^5.0.0", "eslint-plugin-standard": "5.0.0",
"husky": "^4.3.8", "husky": "4.3.8",
"mocha": "^9.1.3", "mocha": "9.1.3",
"semantic-release": "^17.4.2", "semantic-release": "17.4.2",
"standard": "^16.0.3" "standard": "16.0.3"
}, },
"release": { "release": {
"publish": [ "publish": [
@@ -6,63 +6,65 @@
It over-rides he default file in the gatsby-ipfs-web-wallet Theme. It over-rides he default file in the gatsby-ipfs-web-wallet Theme.
*/ */
import React from 'react' import React from "react"
import { Sidebar } from 'adminlte-2-react' import { Sidebar } from "adminlte-2-react"
import Wallet from 'gatsby-theme-bch-wallet/src/components/admin-lte/wallet' import Wallet from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/wallet"
import Tokens from 'gatsby-theme-bch-wallet/src/components/admin-lte/tokens' import Tokens from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/tokens"
import Configure from 'gatsby-theme-bch-wallet/src/components/admin-lte/configure' import Configure from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/configure"
import SendReceive from 'gatsby-theme-bch-wallet/src/components/admin-lte/send-receive' import SendReceive from "fullstack-gatsby-theme-bch-wallet/src/components/admin-lte/send-receive"
import About from '../../about' import About from "../../about"
import Sweep from 'gatsby-plugin-bch-sweep/src/components/sweep/index' import Sweep from "gatsby-plugin-bch-sweep/src/components/sweep/index"
import CreateToken from 'gatsby-plugin-bch-create-token/src/components/create-token' import CreateToken from "gatsby-plugin-bch-create-token/src/components/create-token"
const { Item } = Sidebar const { Item } = Sidebar
const MenuComponents = props => { const MenuComponents = props => {
return [ return [
{ {
key: 'Tokens', key: "Tokens",
component: <Tokens key='Tokens' {...props} />, component: <Tokens key="Tokens" {...props} />,
menuItem: <Item icon='fas-coins' key='Tokens' text='Tokens' /> menuItem: <Item icon="fas-coins" key="Tokens" text="Tokens" />
}, },
{ {
key: 'Send/Receive BCH', key: "Send/Receive BCH",
component: <SendReceive key='Send/Receive BCH' {...props} />, component: <SendReceive key="Send/Receive BCH" {...props} />,
menuItem: ( menuItem: (
<Item <Item
icon='fa-exchange-alt' icon="fa-exchange-alt"
key='Send/Receive BCH' key="Send/Receive BCH"
text='Send/Receive BCH' text="Send/Receive BCH"
/> />
) )
}, },
{ {
key: 'Sweep', key: "Sweep",
component: <Sweep key='Sweep' {...props} />, component: <Sweep key="Sweep" {...props} />,
menuItem: <Item icon='fas-arrow-circle-up' key='Sweep' text='Sweep' /> menuItem: <Item icon="fas-arrow-circle-up" key="Sweep" text="Sweep" />
}, },
{ {
key: 'Wallet', key: "Wallet",
component: <Wallet key='Wallet' interface='rest-api' {...props} />, component: <Wallet key="Wallet" interface="rest-api" {...props} />,
// component: <Wallet key="Wallet" interface="consumer-api" {...props} />, // component: <Wallet key="Wallet" interface="consumer-api" {...props} />,
menuItem: <Item icon='fa-wallet' key='Wallet' text='Wallet' /> menuItem: <Item icon="fa-wallet" key="Wallet" text="Wallet" />
}, },
{ {
key: 'Create Token', key: "Create Token",
component: <CreateToken key='Create Token' {...props} />, component: <CreateToken key="Create Token" {...props} />,
menuItem: <Item icon='fas-plus-square' key='Create Token' text='Create Token' /> menuItem: (
<Item icon="fas-plus-square" key="Create Token" text="Create Token" />
)
}, },
{ {
key: 'Configure', key: "Configure",
component: <Configure key='Configure' {...props} />, component: <Configure key="Configure" {...props} />,
menuItem: <Item icon='fas-cog' key='Configure' text='Configure' /> menuItem: <Item icon="fas-cog" key="Configure" text="Configure" />
}, },
{ {
key: 'About', key: "About",
component: <About key='About' {...props} />, component: <About key="About" {...props} />,
menuItem: <Item icon='fas-question' key='About' text='About' /> menuItem: <Item icon="fas-question" key="About" text="About" />
} }
] ]
} }
+14 -13
View File
@@ -8,18 +8,18 @@ export default function HTML (props) {
return ( return (
<html {...props.htmlAttributes}> <html {...props.htmlAttributes}>
<head> <head>
<meta charSet='utf-8' /> <meta charSet="utf-8" />
<meta httpEquiv='x-ua-compatible' content='ie=edge' /> <meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta <meta
name='viewport' name="viewport"
content='width=device-width, initial-scale=1, shrink-to-fit=no' content="width=device-width, initial-scale=1, shrink-to-fit=no"
/> />
{/* Loading animation should be loaded very first thing. */} {/* Loading animation should be loaded very first thing. */}
<div <div
className='test' className="test"
key='loader' key="loader"
id='___loader' id="___loader"
style={{ style={{
alignItems: 'center', alignItems: 'center',
backgroundColor: '#F2F2F2', backgroundColor: '#F2F2F2',
@@ -34,26 +34,27 @@ export default function HTML (props) {
flexDirection: 'column' 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... Loading...
</div> </div>
{/* minimal-slp-wallet-web */} {/* minimal-slp-wallet-web */}
<script src='https://unpkg.com/minimal-slp-wallet@3.6.1' /> {/* <script src='https://unpkg.com/minimal-slp-wallet@3.6.1' /> */}
<script src="https://unpkg.com/minimal-slp-wallet" />
{/* bch-message-lib */} {/* bch-message-lib */}
<script src='https://unpkg.com/bch-message-lib' /> <script src="https://unpkg.com/bch-message-lib" />
{/* bch-token-sweep */} {/* bch-token-sweep */}
<script src='https://unpkg.com/bch-token-sweep' /> <script src="https://unpkg.com/bch-token-sweep" />
{props.headComponents} {props.headComponents}
</head> </head>
<body {...props.bodyAttributes}> <body {...props.bodyAttributes}>
{props.preBodyComponents} {props.preBodyComponents}
<div <div
key='body' key="body"
id='___gatsby' id="___gatsby"
dangerouslySetInnerHTML={{ __html: props.body }} dangerouslySetInnerHTML={{ __html: props.body }}
/> />
{props.postBodyComponents} {props.postBodyComponents}