Changeset 2854986
- Timestamp:
- 01/26/2023 06:51:09 AM (3 years ago)
- Location:
- crypto
- Files:
-
- 1 added
- 7 edited
- 1 copied
-
assets/debug.log (added)
-
assets/screenshot-1.gif (modified) (previous)
-
tags/2.1 (copied) (copied from crypto/trunk)
-
tags/2.1/README.txt (modified) (2 diffs)
-
tags/2.1/crypto.php (modified) (3 diffs)
-
tags/2.1/includes/class-crypto-domain-search.php (modified) (6 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/crypto.php (modified) (3 diffs)
-
trunk/includes/class-crypto-domain-search.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
crypto/tags/2.1/README.txt
r2854978 r2854986 5 5 Requires at least: 3.0.1 6 6 Requires PHP: 5.5 7 Tested up to: 6. 0.18 Stable tag: 2. 07 Tested up to: 6.1.1 8 Stable tag: 2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 100 100 == Changelog == 101 101 102 = 2. 0=102 = 2.1 = 103 103 All starts from scratch 104 104 -
crypto/tags/2.1/crypto.php
r2854978 r2854986 10 10 * 11 11 * @link https://w3d.name/ 12 * @since 2. 012 * @since 2.1 13 13 * @package Crypto 14 14 * … … 17 17 * Plugin URI: http://w3d.name 18 18 * Description: Crypto - everyday use tools. 19 * Version: 1.819 * Version: 2.1 20 20 * Author: ODude 21 21 * Author URI: https://w3d.name/ … … 31 31 } 32 32 33 define('CRYPTO_VERSION', '2. 0');33 define('CRYPTO_VERSION', '2.1'); 34 34 define('CRYPTO_FOLDER', dirname(plugin_basename(__FILE__))); 35 35 define('CRYPTO_PLUGIN_URL', content_url('/plugins/' . CRYPTO_FOLDER)); -
crypto/tags/2.1/includes/class-crypto-domain-search.php
r2854978 r2854986 74 74 'options' => array( 75 75 '137' => __('Polygon - Matic', 'crypto'), 76 '19' => __('Filecoin - tFIL', 'crypto'),77 '80001' => __('Mumbai Testnet', 'crypto'),76 // '19' => __('Filecoin - tFIL', 'crypto'), 77 // '80001' => __('Mumbai Testnet', 'crypto'), 78 78 ), 79 79 'sanitize_callback' => 'sanitize_key', … … 424 424 425 425 if (crypto_is_valid_domain_name(final_domain)) { 426 // crypto_check_w3d_name_json(final_domain);426 // crypto_check_w3d_name_json(final_domain); 427 427 crypto_check_before_search(final_domain); 428 428 } else { … … 445 445 }); 446 446 447 function crypto_check_before_search(final_domain) 448 { 449 console.log("Search: "+final_domain); 447 function crypto_check_before_search(final_domain) { 448 console.log("Search: " + final_domain); 450 449 crypto_is_metamask_Connected().then(acc => { 451 450 jQuery("#crypto_register_domain").hide(); … … 492 491 await crypto_sleep(1000); 493 492 var domain_id = await getId(final_domain); 494 493 495 494 if (typeof domain_id !== 'undefined') { 496 495 if (acc.network == '137') { … … 511 510 jQuery("#crypto_unavailable").show(); 512 511 jQuery("#crypto_register_domain").hide(); 513 jQuery("#crypto_domain_info_url").show();514 jQuery("#crypto_manage_domain").show();515 jQuery("#crypto_ipfs_domain").show();516 jQuery("#crypto_manage_domain").attr("href",517 "<?php echo get_site_url(); ?>/web3/" + final_domain +518 "/?domain=manage");519 jQuery("#crypto_ipfs_domain").attr("href",520 "<?php echo get_site_url(); ?>/web3/" + final_domain +521 "/");522 523 var domain_info_url = new URL("<?php echo $this->info_page; ?>");524 //console.log(domain_info_url);525 domain_info_url.searchParams.append('domain', final_domain)526 jQuery("#crypto_domain_info_url").attr("href", domain_info_url);527 528 512 jQuery("#crypto_domain_info_url").show(); 513 jQuery("#crypto_manage_domain").show(); 514 jQuery("#crypto_ipfs_domain").show(); 515 jQuery("#crypto_manage_domain").attr("href", 516 "<?php echo get_site_url(); ?>/web3/" + final_domain + 517 "/?domain=manage"); 518 jQuery("#crypto_ipfs_domain").attr("href", 519 "<?php echo get_site_url(); ?>/web3/" + final_domain + 520 "/"); 521 522 var domain_info_url = new URL("<?php echo $this->info_page; ?>"); 523 //console.log(domain_info_url); 524 domain_info_url.searchParams.append('domain', final_domain) 525 jQuery("#crypto_domain_info_url").attr("href", domain_info_url); 526 527 529 528 jQuery("#crypto_loading").hide(); 530 529 } else { … … 533 532 jQuery("#crypto_loading").hide(); 534 533 jQuery("#crypto_register_domain").attr("href", 535 "<?php echo get_site_url(); ?>/web3/" + final_domain +536 "/?domain=manage");537 jQuery("#crypto_domain_info_url").hide();538 jQuery("#crypto_ipfs_domain").hide();539 jQuery("#crypto_register_domain").show();540 534 "<?php echo get_site_url(); ?>/web3/" + final_domain + 535 "/?domain=manage"); 536 jQuery("#crypto_domain_info_url").hide(); 537 jQuery("#crypto_ipfs_domain").hide(); 538 jQuery("#crypto_register_domain").show(); 539 541 540 } 542 541 -
crypto/trunk/README.txt
r2854978 r2854986 5 5 Requires at least: 3.0.1 6 6 Requires PHP: 5.5 7 Tested up to: 6. 0.18 Stable tag: 2. 07 Tested up to: 6.1.1 8 Stable tag: 2.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 100 100 == Changelog == 101 101 102 = 2. 0=102 = 2.1 = 103 103 All starts from scratch 104 104 -
crypto/trunk/crypto.php
r2854978 r2854986 10 10 * 11 11 * @link https://w3d.name/ 12 * @since 2. 012 * @since 2.1 13 13 * @package Crypto 14 14 * … … 17 17 * Plugin URI: http://w3d.name 18 18 * Description: Crypto - everyday use tools. 19 * Version: 1.819 * Version: 2.1 20 20 * Author: ODude 21 21 * Author URI: https://w3d.name/ … … 31 31 } 32 32 33 define('CRYPTO_VERSION', '2. 0');33 define('CRYPTO_VERSION', '2.1'); 34 34 define('CRYPTO_FOLDER', dirname(plugin_basename(__FILE__))); 35 35 define('CRYPTO_PLUGIN_URL', content_url('/plugins/' . CRYPTO_FOLDER)); -
crypto/trunk/includes/class-crypto-domain-search.php
r2854978 r2854986 74 74 'options' => array( 75 75 '137' => __('Polygon - Matic', 'crypto'), 76 '19' => __('Filecoin - tFIL', 'crypto'),77 '80001' => __('Mumbai Testnet', 'crypto'),76 // '19' => __('Filecoin - tFIL', 'crypto'), 77 // '80001' => __('Mumbai Testnet', 'crypto'), 78 78 ), 79 79 'sanitize_callback' => 'sanitize_key', … … 424 424 425 425 if (crypto_is_valid_domain_name(final_domain)) { 426 // crypto_check_w3d_name_json(final_domain);426 // crypto_check_w3d_name_json(final_domain); 427 427 crypto_check_before_search(final_domain); 428 428 } else { … … 445 445 }); 446 446 447 function crypto_check_before_search(final_domain) 448 { 449 console.log("Search: "+final_domain); 447 function crypto_check_before_search(final_domain) { 448 console.log("Search: " + final_domain); 450 449 crypto_is_metamask_Connected().then(acc => { 451 450 jQuery("#crypto_register_domain").hide(); … … 492 491 await crypto_sleep(1000); 493 492 var domain_id = await getId(final_domain); 494 493 495 494 if (typeof domain_id !== 'undefined') { 496 495 if (acc.network == '137') { … … 511 510 jQuery("#crypto_unavailable").show(); 512 511 jQuery("#crypto_register_domain").hide(); 513 jQuery("#crypto_domain_info_url").show();514 jQuery("#crypto_manage_domain").show();515 jQuery("#crypto_ipfs_domain").show();516 jQuery("#crypto_manage_domain").attr("href",517 "<?php echo get_site_url(); ?>/web3/" + final_domain +518 "/?domain=manage");519 jQuery("#crypto_ipfs_domain").attr("href",520 "<?php echo get_site_url(); ?>/web3/" + final_domain +521 "/");522 523 var domain_info_url = new URL("<?php echo $this->info_page; ?>");524 //console.log(domain_info_url);525 domain_info_url.searchParams.append('domain', final_domain)526 jQuery("#crypto_domain_info_url").attr("href", domain_info_url);527 528 512 jQuery("#crypto_domain_info_url").show(); 513 jQuery("#crypto_manage_domain").show(); 514 jQuery("#crypto_ipfs_domain").show(); 515 jQuery("#crypto_manage_domain").attr("href", 516 "<?php echo get_site_url(); ?>/web3/" + final_domain + 517 "/?domain=manage"); 518 jQuery("#crypto_ipfs_domain").attr("href", 519 "<?php echo get_site_url(); ?>/web3/" + final_domain + 520 "/"); 521 522 var domain_info_url = new URL("<?php echo $this->info_page; ?>"); 523 //console.log(domain_info_url); 524 domain_info_url.searchParams.append('domain', final_domain) 525 jQuery("#crypto_domain_info_url").attr("href", domain_info_url); 526 527 529 528 jQuery("#crypto_loading").hide(); 530 529 } else { … … 533 532 jQuery("#crypto_loading").hide(); 534 533 jQuery("#crypto_register_domain").attr("href", 535 "<?php echo get_site_url(); ?>/web3/" + final_domain +536 "/?domain=manage");537 jQuery("#crypto_domain_info_url").hide();538 jQuery("#crypto_ipfs_domain").hide();539 jQuery("#crypto_register_domain").show();540 534 "<?php echo get_site_url(); ?>/web3/" + final_domain + 535 "/?domain=manage"); 536 jQuery("#crypto_domain_info_url").hide(); 537 jQuery("#crypto_ipfs_domain").hide(); 538 jQuery("#crypto_register_domain").show(); 539 541 540 } 542 541
Note: See TracChangeset
for help on using the changeset viewer.