@ -6,13 +6,13 @@
< h2 style = "margin-top: 0; font-size: 1.2rem;" > Find us elsewhere:< / h2 >
< h2 style = "margin-top: 0; font-size: 1.2rem;" > Find us elsewhere:< / h2 >
< ul style = "list-style: none; padding: 0; margin: 0;" >
< ul style = "list-style: none; padding: 0; margin: 0;" >
< li style = "margin-bottom: 0.5rem;" >
< li style = "margin-bottom: 0.5rem;" >
< a href = "https://aitherboard.imwald.eu/repos/naddr1qvzqqqrhnypzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqq9xw6t5vd5hgctyv4kqde47kt?tab=about" target = "_blank" rel = "noopener noreferrer" style = "color: #0066cc; text-decoration: none;" >
< a href = "https://aitherboard.imwald.eu/repos/naddr1qvzqqqrhnypzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqq9xw6t5vd5hgctyv4kqde47kt?tab=about" target = "_blank" rel = "noopener noreferrer" style = "color: #0066cc; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; " >
📦 Aitherboard Repository
< i data-lucide = "package" class = "icon-inline" > < / i > Aitherboard Repository
< / a >
< / a >
< / li >
< / li >
< li style = "margin-bottom: 0.5rem;" >
< li style = "margin-bottom: 0.5rem;" >
< a href = "https://github.com/ShadowySupercode" target = "_blank" rel = "noopener noreferrer" style = "color: #0066cc; text-decoration: none;" >
< a href = "https://github.com/ShadowySupercode" target = "_blank" rel = "noopener noreferrer" style = "color: #0066cc; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; " >
🐙 GitHub: ShadowySupercode
< i data-lucide = "github" class = "icon-inline" > < / i > GitHub: ShadowySupercode
< / a >
< / a >
< / li >
< / li >
< / ul >
< / ul >
@ -37,11 +37,15 @@
{{end}}
{{end}}
{{if .Profile.Website}}
{{if .Profile.Website}}
< p style = "margin: 0.5rem 0 0 0;" >
< p style = "margin: 0.5rem 0 0 0;" >
< a href = "{{.Profile.Website}}" target = "_blank" rel = "noopener noreferrer" style = "color: #0066cc; text-decoration: none;" > 🌐 Website< / a >
< a href = "{{.Profile.Website}}" target = "_blank" rel = "noopener noreferrer" style = "color: #0066cc; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;" >
< i data-lucide = "globe" class = "icon-inline" > < / i > Website
< / a >
< / p >
< / p >
{{end}}
{{end}}
{{if .Profile.NIP05}}
{{if .Profile.NIP05}}
< p style = "margin: 0.5rem 0 0 0; color: #666; font-size: 0.9rem;" > NIP-05: {{.Profile.NIP05}}< / p >
< p style = "margin: 0.5rem 0 0 0; color: #666; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem;" >
< i data-lucide = "check-circle" class = "icon-inline" style = "width: 16px; height: 16px;" > < / i > NIP-05: {{.Profile.NIP05}}
< / p >
{{end}}
{{end}}
< / div >
< / div >
< / div >
< / div >
@ -52,9 +56,9 @@
{{if .Success}}
{{if .Success}}
< div class = "alert alert-success" role = "alert" >
< div class = "alert alert-success" role = "alert" >
< strong > Success!< / strong > Your message has been submitted. Thank you for contacting us!
< strong > < i data-lucide = "check-circle" class = "icon-inline" > < / i > Success!< / strong > Your message has been submitted. Thank you for contacting us!
{{if .EventID}}
{{if .EventID}}
< br > < small > Issue ID: {{.EventID}}< / small >
< br > < small > < i data-lucide = "hash" class = "icon-inline" > < / i > Issue ID: {{.EventID}}< / small >
{{end}}
{{end}}
< / div >
< / div >
{{end}}
{{end}}
@ -91,8 +95,8 @@
< / div >
< / div >
< div class = "form-actions" >
< div class = "form-actions" >
< button type = "submit" id = "submit-btn" class = "btn btn-primary" > Submit< / button >
< button type = "submit" id = "submit-btn" class = "btn btn-primary" > < i data-lucide = "send" class = "icon-inline" > < / i > Submit< / button >
< button type = "reset" class = "btn btn-secondary" > Clear< / button >
< button type = "reset" class = "btn btn-secondary" > < i data-lucide = "x" class = "icon-inline" > < / i > Clear< / button >
< / div >
< / div >
< / form >
< / form >
@ -152,7 +156,10 @@
// Disable submit button
// Disable submit button
submitBtn.disabled = true;
submitBtn.disabled = true;
submitBtn.textContent = 'Signing...';
submitBtn.innerHTML = '< i data-lucide = "loader-2" class = "icon-inline" > < / i > Signing...';
if (typeof lucide !== 'undefined') {
lucide.createIcons();
}
hideStatus();
hideStatus();
try {
try {
@ -205,7 +212,10 @@
};
};
// Sign the event
// Sign the event
submitBtn.textContent = 'Publishing...';
submitBtn.innerHTML = '< i data-lucide = "loader-2" class = "icon-inline" > < / i > Publishing...';
if (typeof lucide !== 'undefined') {
lucide.createIcons();
}
const signedEvent = await window.nostr.signEvent(unsignedEvent);
const signedEvent = await window.nostr.signEvent(unsignedEvent);
// Send to API
// Send to API
@ -225,13 +235,19 @@
} else {
} else {
showStatus('Failed to publish issue: ' + (result.error || 'Unknown error'), true);
showStatus('Failed to publish issue: ' + (result.error || 'Unknown error'), true);
submitBtn.disabled = false;
submitBtn.disabled = false;
submitBtn.textContent = 'Submit';
submitBtn.innerHTML = '< i data-lucide = "send" class = "icon-inline" > < / i > Submit';
if (typeof lucide !== 'undefined') {
lucide.createIcons();
}
}
}
} catch (error) {
} catch (error) {
console.error('Error:', error);
console.error('Error:', error);
showStatus('Error: ' + error.message, true);
showStatus('Error: ' + error.message, true);
submitBtn.disabled = false;
submitBtn.disabled = false;
submitBtn.textContent = 'Submit';
submitBtn.innerHTML = '< i data-lucide = "send" class = "icon-inline" > < / i > Submit';
if (typeof lucide !== 'undefined') {
lucide.createIcons();
}
}
}
});
});
})();
})();