Skip to content

Commit

Permalink
fix(ceremony): duplicate logging (#3057)
Browse files Browse the repository at this point in the history
  • Loading branch information
cor authored Oct 2, 2024
2 parents 0b763e8 + e38afba commit 23b97ae
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 42 deletions.
4 changes: 2 additions & 2 deletions ceremony/src/lib/components/Terminal/TaskBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ let progressBar = $derived(
<Print>{terminal.currentStep}/{terminal.maxStep} COMPLETED | </Print>
</div>
{#if user?.session?.user?.email}
<p class="text-xs font-mono text-white uppercase">
<Print class="uppercase">
{user.session.user.email}
</p>
</Print>
{/if}
</div>

Expand Down
1 change: 0 additions & 1 deletion ceremony/src/lib/state/contributor.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@ export class Contributor {
axiom.ingest("monitor", [{ user: this.userId, type: "missed" }])
} else if (this.clientState === "offline") {
this.state = "offline"
axiom.ingest("monitor", [{ user: this.userId, type: "offline" }])
} else {
this.state = "loading"
}
Expand Down
33 changes: 33 additions & 0 deletions ceremony/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,43 @@ const handleError = async (e: Event) => {
const errorId = await sendWindowErrorLog(e)
console.error(generateUserErrorMessage(errorId))
}
const imagePath = "https://ceremony.union.build/images/ceremony-og.png"
</script>

<svelte:window on:error={handleError} on:unhandledrejection={handleRejection} />

<svelte:head>
<title>Union Ceremony</title>
<meta name="description" content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>

<meta property="og:title" content="Union Ceremony"/>
<meta property="og:description" content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://ceremony.union.build"/>
<meta property="og:site_name" content="Union Ceremony"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:image" content="https://ceremony.union.build/images/ceremony-og.png"/>
<meta property="og:image:secure_url" content="https://ceremony.union.build/images/ceremony-og.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>
<meta property="og:image:alt" content="Union Ceremony event banner"/>

<meta name="twitter:title" content="Union Ceremony"/>
<meta name="twitter:description" content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@union_build"/>
<meta name="twitter:creator" content="@union_build"/>
<meta name="twitter:image" content="https://ceremony.union.build/images/ceremony-og.png"/>
<meta name="twitter:image:alt" content="Union Ceremony event banner"/>
<meta name="twitter:image:width" content="1200"/>
<meta name="twitter:image:height" content="630"/>

<link rel="canonical" href="https://ceremony.union.build"/>
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
</svelte:head>

{#if showBootSequence}
<video
muted
Expand Down
33 changes: 0 additions & 33 deletions ceremony/src/routes/contributions/[hash]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ async function copyToClipboard(text: string, type: string) {
prints.push(`Successfully copied ${type}`)
}
const imagePath = "https://ceremony.union.build/images/ceremony.png"
function trigger(value: "key" | "signature") {
if (value === "key") {
copyToClipboard(decodeHexString(contribution.public_key), "public key")
Expand All @@ -50,37 +48,6 @@ function trigger(value: "key" | "signature") {
}
</script>

<svelte:head>
<title>Union Ceremony</title>
<meta name="description"
content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>

<meta property="og:title" content="Union Ceremony "/>
<meta property="og:description"
content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="https://ceremony.union.build"/>
<meta property="og:site_name" content="Union Ceremony"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:image" content={imagePath}/>
<meta property="og:image:secure_url" content={imagePath}/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="675"/>
<meta property="og:image:alt" content="Union Ceremony event banner"/>

<meta name="twitter:title"
content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>
<meta name="twitter:description"
content="Ceremony to generate trustworthy cryptographic keys for securing the Union zero-knowledge system."/>
<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:site" content="@union_build"/>
<meta name="twitter:creator" content="@union_build"/>
<meta name="twitter:image" content={imagePath}/>
<meta name="twitter:image:alt" content="Union Ceremony event banner"/>
</svelte:head>


{#if contribution}
<pre class="text-white whitespace-pre-wrap text-sm sm:text-base">{decodeHexString(contribution?.public_key)}</pre>
<pre class="text-white whitespace-pre-wrap text-sm sm:text-base">{decodeHexString(contribution?.signature)}</pre>
Expand Down
3 changes: 3 additions & 0 deletions ceremony/static/images/ceremony-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions ceremony/static/images/ceremony.png

This file was deleted.

3 changes: 0 additions & 3 deletions ceremony/static/images/whale.png

This file was deleted.

0 comments on commit 23b97ae

Please sign in to comment.