feat: Finalize emoji rendering
All checks were successful
Build Docker / Build Image (push) Successful in 48s
All checks were successful
Build Docker / Build Image (push) Successful in 48s
This commit is contained in:
20
main.py
20
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'<a href="/auction/{domain}/open">Open Auction</a>'
|
||||
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:
|
||||
|
||||
Reference in New Issue
Block a user