base64 图片改为 png

This commit is contained in:
yll 2022-05-07 22:12:05 +07:00
parent e3bacc676a
commit c70092f1a2
5 changed files with 62 additions and 39 deletions

1
public/static/img/a1.svg Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View File

@ -653,32 +653,32 @@
}
},
'custom-walletlink': {
display: {
logo: 'https://play-lh.googleusercontent.com/PjoJoG27miSglVBXoXrxBSLveV6e3EeBPpNY55aiUUBM9Q1RCETKCOqdOkX2ZydqVf0',
name: 'Coinbase',
description: 'Connect to Coinbase Wallet (not Coinbase App)'
},
options: {
appName: 'Coinbase', // Your app name
networkUrl: `https://mainnet.infura.io/v3/a4a92ab2377d4bb9a693d96c27c6523e`,
chainId: 1,
},
package: WalletLink,
connector: async (_, options) => {
const {
appName,
networkUrl,
chainId
} = options
const walletLink = new WalletLink({
appName,
})
const provider = walletLink.makeWeb3Provider(networkUrl, chainId)
await provider.enable()
return provider
}
}
// 'custom-walletlink': {
// display: {
// logo: 'https://play-lh.googleusercontent.com/PjoJoG27miSglVBXoXrxBSLveV6e3EeBPpNY55aiUUBM9Q1RCETKCOqdOkX2ZydqVf0',
// name: 'Coinbase',
// description: 'Connect to Coinbase Wallet (not Coinbase App)'
// },
// options: {
// appName: 'Coinbase', // Your app name
// networkUrl: `https://mainnet.infura.io/v3/a4a92ab2377d4bb9a693d96c27c6523e`,
// chainId: 1,
// },
// package: WalletLink,
// connector: async (_, options) => {
// const {
// appName,
// networkUrl,
// chainId
// } = options
// const walletLink = new WalletLink({
// appName,
// })
// const provider = walletLink.makeWeb3Provider(networkUrl, chainId)
// await provider.enable()
// return provider
// }
// }
}
web3Modal = new Web3Modal({
@ -697,7 +697,7 @@
// }
// }, 5000);
provider = await web3Modal.connect();
provider.enable()
await provider.enable()
} catch (e) {
console.log(e)
return message("{{trans('web.Please install MetaMask')}}");
@ -717,6 +717,7 @@
provider.on("networkChanged", async (networkId) => {
await fetchAccountData();
});
await refreshAccountData();
}

File diff suppressed because one or more lines are too long