Browse Source

Updated contact page

master^2
Silberengel 2 months ago
parent
commit
908bbd8387
  1. 10
      src/routes/contact/+page.svelte

10
src/routes/contact/+page.svelte

@ -35,7 +35,7 @@
let submissionSuccess = $state(false); let submissionSuccess = $state(false);
let submissionError = $state(""); let submissionError = $state("");
let submittedEvent = $state<NDKEvent | null>(null); let submittedEvent = $state<NDKEvent | null>(null);
let issueLink = $state(""); let issueLink = $state("https://gitworkshop.dev/silberengel@gitcitadel.com/Alexandria/issues/");
let successfulRelays = $state<string[]>([]); let successfulRelays = $state<string[]>([]);
// Store form data when user needs to login // Store form data when user needs to login
@ -48,10 +48,6 @@
let user = $state($userStore); let user = $state($userStore);
userStore.subscribe((val) => (user = val)); userStore.subscribe((val) => (user = val));
// Repository event address from the task
const repoAddress =
"naddr1qvzqqqrhnypzplfq3m5v3u5r0q9f255fdeyz8nyac6lagssx8zy4wugxjs8ajf7pqy88wumn8ghj7mn0wvhxcmmv9uqq5stvv4uxzmnywf5kz2elajr";
// Use the new relay management system with anonymous relays as fallbacks // Use the new relay management system with anonymous relays as fallbacks
const allRelays = [ const allRelays = [
...$activeInboxRelays, ...$activeInboxRelays,
@ -198,7 +194,7 @@
// Create the issue link using the repository address // Create the issue link using the repository address
const noteId = nip19.noteEncode(event.id); const noteId = nip19.noteEncode(event.id);
issueLink = `https://gitcitadel.com/r/${repoAddress}/issues/${noteId}`; issueLink = `${issueLink}${noteId}`;
// Clear form and show success message // Clear form and show success message
clearForm(); clearForm();
@ -279,7 +275,7 @@
"GitCitadel", "GitCitadel",
ndk, ndk,
)} or you can view submitted issues on the <A )} or you can view submitted issues on the <A
href="https://gitcitadel.com/r/naddr1qvzqqqrhnypzquqjyy5zww7uq7hehemjt7juf0q0c9rgv6lv8r2yxcxuf0rvcx9eqy88wumn8ghj7mn0wvhxcmmv9uq3wamnwvaz7tmjv4kxz7fwdehhxarj9e3xzmny9uqsuamnwvaz7tmwdaejumr0dshsqzjpd3jhsctwv3exjcgtpg0n0/issues" href="https://gitworkshop.dev/silberengel@gitcitadel.com/Alexandria/issues"
target="_blank">Alexandria repo page.</A target="_blank">Alexandria repo page.</A
> >
</P> </P>

Loading…
Cancel
Save