use COMMIT_HASH_PLACEHOLDER for server-side hash injection, remove version.json and local hooks
This commit is contained in:
@@ -335,7 +335,7 @@ footer a{color:var(--accent);text-decoration:none}
|
|||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<span>Bitcoin After Life — Will Executor List</span>
|
<span>Bitcoin After Life — Will Executor List</span>
|
||||||
<a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>
|
<a href="mailto:welist@bitcoin-after.life">welist@bitcoin-after.life</a>
|
||||||
<a class="mono" id="commit-link" href="#">—</a>
|
<a class="mono" id="commit-link" href="https://bitcoin-after.life/gitea/bitcoinafterlife/bal-welist-website/commit/COMMIT_HASH_PLACEHOLDER">COMMIT_HASH_PLACEHOLDER</a>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
@@ -497,13 +497,6 @@ document.getElementById('submit').addEventListener('click', async () => {
|
|||||||
(function init() {
|
(function init() {
|
||||||
const blob = new Blob([JSON.stringify(allServers, null, 2)], { type: 'application/json' });
|
const blob = new Blob([JSON.stringify(allServers, null, 2)], { type: 'application/json' });
|
||||||
document.getElementById('download').href = URL.createObjectURL(blob);
|
document.getElementById('download').href = URL.createObjectURL(blob);
|
||||||
fetch('/version.json')
|
|
||||||
.then(r => r.json())
|
|
||||||
.then(v => {
|
|
||||||
document.getElementById('commit-link').href = 'https://bitcoin-after.life/gitea/bitcoinafterlife/bal-welist-website/commit/' + v.commit;
|
|
||||||
document.getElementById('commit-link').textContent = v.commit;
|
|
||||||
})
|
|
||||||
.catch(() => {});
|
|
||||||
fetchData();
|
fetchData();
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
{"commit":"3925092"}
|
|
||||||
Reference in New Issue
Block a user