feat: Add github link and fix a small crash with reserved domains
All checks were successful
Build Docker / Build Docker (push) Successful in 26s

This commit is contained in:
Nathan Woodburn 2023-12-11 21:37:58 +11:00
parent 9e01262e90
commit c88e6b90ce
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
10 changed files with 30 additions and 13 deletions

View File

@ -162,6 +162,21 @@ def syncDomains():
print(json.dumps(data, indent=4))
# Check if domain is registered
info = data['result']['info']
if (info == None):
# Update domain status
userDomain['status'] = 'error'
userDomain['transfering'] = 0
userDomain['next'] = 'open for bidding'
userDomain['when'] = 0
# Update user domains
conn = mysql.connector.connect(**db_config)
cursor = conn.cursor()
cursor.execute("UPDATE users SET domains = %s WHERE id = %s", (json.dumps(userDomains), userID))
conn.commit()
cursor.close()
conn.close()
continue
if (userDomain['transfering'] != info['transfer']):
# Update domain status
if (notify('transfer', customNotifications, userID)):
@ -334,4 +349,6 @@ def blocksToTime(blocks):
if minutes and not years and not days:
time_string += f"{minutes} {'min' if minutes == 1 else 'mins'}"
if not time_string:
time_string = "now"
return time_string.rstrip(', ')

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

View File

@ -133,7 +133,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
</ul>

View File

@ -48,9 +48,9 @@
</div>
<div class="col-12 col-lg-10 mx-auto">
<div class="position-relative" style="display: flex;flex-wrap: wrap;justify-content: flex-end;">
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-15%, 35%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.8" src="/assets/img/products/3.jpg"></div>
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-5%, 20%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.4" src="/assets/img/products/2.jpg"></div>
<div style="position: relative;flex: 0 0 60%;transform: translate3d(0, 0%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.25" src="/assets/img/products/1.jpg"></div>
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-15%, 35%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.8" src="/assets/img/Screenshot_20231211-212905.png" style="border-style: solid;"></div>
<div style="position: relative;flex: 0 0 45%;transform: translate3d(-5%, 20%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.4" src="/assets/img/Screenshot_20231211-212453.png" style="border-style: solid;"></div>
<div style="position: relative;flex: 0 0 60%;transform: translate3d(0, 0%, 0);"><img class="img-fluid" data-bss-parallax="" data-bss-parallax-speed="0.25" src="/assets/img/Screenshot_20231211-212927.png" style="border-style: solid;"></div>
</div>
</div>
</div>
@ -127,7 +127,7 @@
<div class="card bg-primary-light">
<div class="card-body text-center px-4 py-5 px-md-5">
<p class="fw-bold text-primary card-text mb-2">Open Source</p>
<h5 class="fw-bold card-title mb-3">Look at the source code of the project to verify it isn't doing anything shady</h5><button class="btn btn-primary btn-sm" type="button">View the source</button>
<h5 class="fw-bold card-title mb-3">Look at the source code of the project to verify it isn't doing anything shady</h5><a class="btn btn-primary btn-sm" role="button" target="_blank" href="https://github.com/nathanwoodburn/hnsalert">View the source</a>
</div>
</div>
</div>
@ -135,7 +135,7 @@
<div class="card bg-secondary-light">
<div class="card-body text-center px-4 py-5 px-md-5">
<p class="fw-bold text-secondary card-text mb-2">Self Hosted</p>
<h5 class="fw-bold card-title mb-3">Host your own alert system to ensure you control all the data</h5><button class="btn btn-secondary btn-sm" type="button">Learn how</button>
<h5 class="fw-bold card-title mb-3">Host your own alert system to ensure you control all the data</h5><a class="btn btn-secondary btn-sm" role="button" href="https://l.woodburn.au/discord" target="_blank">Learn how</a>
</div>
</div>
</div>
@ -143,7 +143,7 @@
<div class="card bg-info-light">
<div class="card-body text-center px-4 py-5 px-md-5">
<p class="fw-bold text-info card-text mb-2">Free to use</p>
<h5 class="fw-bold card-title mb-3">HNSAlert is free to use. Please consider donating to help support the development of HNSAlert and other Handshake projects</h5><a class="btn btn-info btn-sm" role="button" href="https://l.woodburn.au/donate">Donate</a>
<h5 class="fw-bold card-title mb-3">HNSAlert is free to use. Please consider donating to help support the development of HNSAlert and other Handshake projects</h5><a class="btn btn-info btn-sm" role="button" href="https://l.woodburn.au/donate" target="_blank">Donate</a>
</div>
</div>
</div>
@ -245,7 +245,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
</ul>

View File

@ -101,7 +101,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
</ul>

View File

@ -77,7 +77,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
</ul>

View File

@ -71,7 +71,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
</ul>

View File

@ -71,7 +71,7 @@
<div class="col-sm-4 col-md-3 text-center text-lg-start d-flex flex-column">
<h3 class="fs-6 fw-bold">About</h3>
<ul class="list-unstyled">
<li><a href="https://github.com/nathanwoodburn" target="_blank">Github</a></li>
<li><a href="https://github.com/nathanwoodburn/hnsalert" target="_blank">Github</a></li>
<li><a href="https://nathan.woodburn.au" target="_blank">Nathan.Woodburn/</a></li>
<li><a href="https://l.woodburn.au/donate" target="_blank">Donate</a></li>
</ul>