Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
v2.3.2: linking the widget is not supported anymore, please use the b…
Browse files Browse the repository at this point in the history
…utton component
  • Loading branch information
0xNe0x1 committed May 30, 2024
1 parent 56dba5d commit 3fae20a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 45 deletions.
2 changes: 1 addition & 1 deletion block.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"category": "widgets",
"description": "Web3 donations directly into your own wallet. A Block-enabled WordPress plugin for P2P crypto donations with on-the-fly conversion.",
"keywords": [ "donations", "cryptocurrency", "p2p", "web3", "depay" ],
"version": "2.3.1",
"version": "2.3.2",
"textdomain": "depay-donations",
"example": {},
"editorScript": "depay-donations-script",
Expand Down
2 changes: 1 addition & 1 deletion core/includes/assets/js/admin.js

Large diffs are not rendered by default.

32 changes: 0 additions & 32 deletions core/includes/assets/js/frontend.js
Original file line number Diff line number Diff line change
@@ -1,32 +0,0 @@
document.addEventListener('click', e => {
const { target } = e;
if (target.matches('[href="#depay-donation-widget"]')) {
e.preventDefault();
e.stopImmediatePropagation();

let accept = DePay_donations_accepted_payments.map((token)=>{
return {
blockchain: token.blockchain,
token: token.address,
receiver: DePay_donations_receiving_wallet_address
}
})

let configuration = {
accept,
style: {
colors: {
primary: DePay_donations_widget_color_primary,
text: DePay_donations_widget_color_text,
buttonText: DePay_donations_widget_color_buttons,
icons: DePay_donations_widget_color_icons
},
css: DePay_donations_widget_css
},
}

DePayWidgets.Donation(configuration);

return false;
}
});
4 changes: 2 additions & 2 deletions depay-donations.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: DePay Donations
* Plugin URI: https://depay.com/plugins/wordpress
* Description: Web3 donations directly into your own wallet. Block-enabled Wordpress plugin for P2P cryptocurrency donations on multiple blockchains, with on-the-fly token conversion.
* Version: 2.3.1
* Version: 2.3.2
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Author: DePay
Expand All @@ -29,7 +29,7 @@
define( 'DEPAYDONATIONS_NAME', 'DePay Donations' );

// Plugin version
define( 'DEPAYDONATIONS_VERSION', '2.3.1' );
define( 'DEPAYDONATIONS_VERSION', '2.3.2' );

// Plugin Root File
define( 'DEPAYDONATIONS_PLUGIN_FILE', __FILE__ );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-wordpress-depay-donations",
"moduleName": "WordpressDePayDonations",
"version": "2.3.1",
"version": "2.3.2",
"description": "Web3 donations directly into your own wallet. A Block-enabled WordPress plugin for P2P cryptocurrency donations on multiple blockchains.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: depayfi
Tags: donations, cryptocurrency, p2p, web3, depay
Requires at least: 5.0
Tested up to: 6.5
Stable tag: 2.3.1
Stable tag: 2.3.2
Requires PHP: 5.6
License: GPLv2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -90,6 +90,9 @@ Building on the idea that "Web3" is the next generation of a blockchain-based an

== Changelog ==

= 2.3.2 =
* linking the widget is not supported anymore, please use the button component

= 2.3.1 =
* fixes mobile wallet connectivity (WalletConnect)

Expand Down
7 changes: 0 additions & 7 deletions src/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,6 @@
<div style={{ marginBottom: "0.8rem" }}><label style={{ display: "flex", alignItems: "center" }}><input style={{ marginRight: "0.6rem" }} type="color" value={widgetButtonText} onChange={(event)=>{ setWidgetButtonText(event.target.value) }}/>Button Text</label></div>
<div style={{ marginBottom: "0.8rem" }}><label style={{ display: "flex", alignItems: "center" }}><input style={{ marginRight: "0.6rem" }} type="range" value={widgetButtonRadius} min="0" max="36" onChange={(event)=>{ setWidgetButtonRadius(event.target.value) }}/>Button Border</label></div>
</div>
<div style={{ paddingTop: "0.8rem" }}>
<p className="description"><strong>Usage</strong></p>
</div>
<div style={{ marginBottom: "0.8rem" }}>
<p className="description" style={{ marginBottom: "0.8rem" }}>Link any text to <strong>#depay-donation-widget</strong> and it will open your donation widget upon click.</p>
</div>
<img style={{ maxWidth: "600px" }} src="/wp-content/plugins/depay-donations/core/includes/assets/img/widget.gif"/>
</td>
</tr>
<tr>
Expand Down

0 comments on commit 3fae20a

Please sign in to comment.