diff --git a/FireWalletBrowser.bsdesign b/FireWalletBrowser.bsdesign index e4f696a..299e27a 100644 Binary files a/FireWalletBrowser.bsdesign and b/FireWalletBrowser.bsdesign differ diff --git a/main.py b/main.py index 689e8d0..b447155 100644 --- a/main.py +++ b/main.py @@ -429,12 +429,12 @@ def search(): if 'error' in domain: return render_template("search.html", account=account, - + rendered=renderDomain(search_term), search_term=search_term, domain=domain['error'],plugins=plugins) if domain['info'] is None: return render_template("search.html", account=account, - + rendered=renderDomain(search_term), search_term=search_term,domain=search_term, state="AVAILABLE", next="Available Now",plugins=plugins) @@ -478,7 +478,7 @@ def search(): txs = render.txs(txs) return render_template("search.html", account=account, - + rendered=renderDomain(search_term), search_term=search_term,domain=domain['info']['name'], raw=domain,state=state, next=next, owner=owner, dns=dns, txs=txs,plugins=plugins) @@ -504,7 +504,7 @@ def manage(domain: str): domain_info = account_module.getDomain(domain) if 'error' in domain_info: return render_template("manage.html", account=account, - + rendered=renderDomain(domain), domain=domain, error=domain_info['error']) expiry = domain_info['info']['stats']['daysUntilExpire'] @@ -541,7 +541,7 @@ def manage(domain: str): return render_template("manage.html", account=account, - + rendered=renderDomain(domain), error=errorMessage, address=address, domain=domain,expiry=expiry, dns=dns, raw_dns=urllib.parse.quote(raw_dns), @@ -716,7 +716,7 @@ def editPage(domain: str): return render_template("edit.html", account=account, - + rendered=renderDomain(domain), domain=domain, error=errorMessage, dns=dns,raw_dns=urllib.parse.quote(raw_dns)) @@ -862,7 +862,7 @@ def auction(domain): if 'error' in domainInfo: return render_template("auction.html", account=account, - + rendered=renderDomain(search_term), search_term=search_term, domain=domainInfo['error'], error=error) @@ -873,7 +873,7 @@ def auction(domain): else: next_action = f'Open Auction' return render_template("auction.html", account=account, - + rendered=renderDomain(search_term), search_term=search_term,domain=search_term,next_action=next_action, state="AVAILABLE", next="Open Auction", error=error) @@ -934,7 +934,7 @@ def auction(domain): return render_template("auction.html", account=account, - + rendered=renderDomain(search_term), search_term=search_term,domain=domainInfo['info']['name'], raw=domainInfo,state=state, next=next, next_action=next_action, bids=bids,error=message) @@ -1598,7 +1598,7 @@ def renderDomain(name: str) -> str: rendered = name.encode("ascii").decode("idna") if rendered == name: return f"{name}/" - return f"{rendered}/ ({name}/)" + return f"{rendered}/ ({name})" except Exception as e: diff --git a/render.py b/render.py index af80fcd..4930106 100644 --- a/render.py +++ b/render.py @@ -3,6 +3,7 @@ import json import urllib.parse from flask import render_template from domainLookup import punycode_to_emoji +from main import renderDomain import os # Get Explorer URL @@ -24,10 +25,7 @@ def domains(domains, mobile=False): paid = paid / 1000000 # Handle punycodes - name = domain['name'] - emoji = punycode_to_emoji(name) - if emoji != name: - name = f'{emoji} ({name})' + name = renderDomain(domain['name']) link = f'/manage/{domain["name"]}' @@ -199,7 +197,7 @@ def bidDomains(bids,domains, sortbyDomains=False): html += "" - html += f"{domain['name']}" + html += f"{renderDomain(domain['name'])}" html += f"{domain['state']}" html += f"{bidDisplay}" html += f"{domain['height']:,}" @@ -215,7 +213,7 @@ def bidDomains(bids,domains, sortbyDomains=False): bidDisplay = f'{bidValue:,.2f} HNS + {blind:,.2f} HNS blind' html += "" - html += f"{domain['name']}" + html += f"{renderDomain(domain['name'])}" html += f"{domain['state']}" html += f"{bidDisplay}" html += f"{domain['height']:,}" diff --git a/templates/auction.html b/templates/auction.html index 04c4606..8ad5270 100644 --- a/templates/auction.html +++ b/templates/auction.html @@ -67,7 +67,7 @@
{{next_action|safe}}
-

{{domain}}/

+

{{rendered}}

{{next}}
diff --git a/templates/edit.html b/templates/edit.html index 81cd3fd..4b33fd5 100644 --- a/templates/edit.html +++ b/templates/edit.html @@ -66,7 +66,7 @@
-

{{domain}}/

+

{{rendered}}

diff --git a/templates/manage.html b/templates/manage.html index f00c25a..d717f89 100644 --- a/templates/manage.html +++ b/templates/manage.html @@ -66,7 +66,7 @@
-

{{domain}}/Renew

+

{{rendered}}Renew

Expires in {{expiry}} days
diff --git a/templates/search.html b/templates/search.html index ec50a3d..05de496 100644 --- a/templates/search.html +++ b/templates/search.html @@ -65,7 +65,7 @@
-

{{domain}}/{{next}}

+

{{rendered}}{{next}}

{{domain}}/

{{next}}


{{state}}
Owner: {{owner}}
ManageAuction