Merge branch 'crypto-donate' into 'develop'
Crypto donations See merge request soapbox-pub/soapbox-fe!521
This commit is contained in:
commit
a3ee5789bc
20 changed files with 104 additions and 0 deletions
BIN
app/soapbox/features/crypto_donate/components/crypto_address.js
Normal file
BIN
app/soapbox/features/crypto_donate/components/crypto_address.js
Normal file
Binary file not shown.
Binary file not shown.
BIN
app/soapbox/features/crypto_donate/components/site_wallet.js
Normal file
BIN
app/soapbox/features/crypto_donate/components/site_wallet.js
Normal file
Binary file not shown.
BIN
app/soapbox/features/crypto_donate/index.js
Normal file
BIN
app/soapbox/features/crypto_donate/index.js
Normal file
Binary file not shown.
BIN
app/soapbox/features/crypto_donate/utils/block_explorer.js
Normal file
BIN
app/soapbox/features/crypto_donate/utils/block_explorer.js
Normal file
Binary file not shown.
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"bch": "https://explorer.bitcoin.com/bch/address/{address}",
|
||||
"btc": "https://explorer.bitcoin.com/btc/address/{address}",
|
||||
"doge": "https://dogechain.info/address/{address}",
|
||||
"eth": "https://etherscan.io/address/{address}",
|
||||
"ubq": "https://ubiqscan.io/address/{address}",
|
||||
"xmr": "https://monerohash.com/explorer/search?value={address}"
|
||||
}
|
BIN
app/soapbox/features/crypto_donate/utils/coin_db.js
Normal file
BIN
app/soapbox/features/crypto_donate/utils/coin_db.js
Normal file
Binary file not shown.
BIN
app/soapbox/features/crypto_donate/utils/coin_icons.js
Normal file
BIN
app/soapbox/features/crypto_donate/utils/coin_icons.js
Normal file
Binary file not shown.
BIN
app/soapbox/features/crypto_donate/utils/manifest_map.js
Normal file
BIN
app/soapbox/features/crypto_donate/utils/manifest_map.js
Normal file
Binary file not shown.
Binary file not shown.
BIN
app/soapbox/features/ui/components/crypto_donate_modal.js
Normal file
BIN
app/soapbox/features/ui/components/crypto_donate_modal.js
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -81,6 +81,7 @@
|
|||
@import 'components/server-info';
|
||||
@import 'components/admin';
|
||||
@import 'components/backups';
|
||||
@import 'components/crypto-donate';
|
||||
|
||||
// Holiday
|
||||
@import 'holiday/halloween';
|
||||
|
|
69
app/styles/components/crypto-donate.scss
Normal file
69
app/styles/components/crypto-donate.scss
Normal file
|
@ -0,0 +1,69 @@
|
|||
.crypto-address {
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
&__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: center;
|
||||
width: 24px;
|
||||
margin-right: 10px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&__actions {
|
||||
margin-left: auto;
|
||||
|
||||
a {
|
||||
color: var(--primary-text-color--faint);
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
&__note {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&__qrcode {
|
||||
margin-bottom: 12px;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&__address {
|
||||
margin-top: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.site-wallet {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
}
|
||||
|
||||
.crypto-donate-modal {
|
||||
background: var(--foreground-color);
|
||||
border-radius: 8px;
|
||||
padding-bottom: 13px;
|
||||
}
|
||||
|
||||
.profile-info-panel-content__fields {
|
||||
.crypto-address {
|
||||
padding: 10px 0;
|
||||
}
|
||||
}
|
|
@ -788,3 +788,23 @@ code {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.copyable-input {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
font-size: 14px !important;
|
||||
border-radius: 4px 0 0 4px !important;
|
||||
}
|
||||
|
||||
button {
|
||||
width: auto;
|
||||
font-size: 14px;
|
||||
margin: 0;
|
||||
padding-bottom: 9px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,7 @@
|
|||
"classnames": "^2.2.5",
|
||||
"compression-webpack-plugin": "^6.0.2",
|
||||
"copy-webpack-plugin": "6.4.0",
|
||||
"cryptocurrency-icons": "^0.17.2",
|
||||
"css-loader": "^4.3.0",
|
||||
"cssnano": "^4.1.10",
|
||||
"detect-passive-events": "^2.0.0",
|
||||
|
|
|
@ -3866,6 +3866,11 @@ crypto-browserify@^3.11.0:
|
|||
randombytes "^2.0.0"
|
||||
randomfill "^1.0.3"
|
||||
|
||||
cryptocurrency-icons@^0.17.2:
|
||||
version "0.17.2"
|
||||
resolved "https://registry.yarnpkg.com/cryptocurrency-icons/-/cryptocurrency-icons-0.17.2.tgz#25811b450d8698e7985bc91005d89555f13e6686"
|
||||
integrity sha512-301lellubLNhxkySIBNNG3VD05rWfMR+CFgo9LoLfuNybG2OLy0mpWduxv65WZkJpLl9hhpaVAxCV5SYbG5o9A==
|
||||
|
||||
css-color-names@0.0.4, css-color-names@^0.0.4:
|
||||
version "0.0.4"
|
||||
resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"
|
||||
|
|
Loading…
Reference in a new issue