@@ -4,7 +4,7 @@ import { Strings } from './i18n'
44import Skeleton from ' ../Skeleton/Skeleton.vue'
55import { ProseTextInherit } from ' ../../../constants'
66import { computed , onMounted , ref , useTemplateRef } from ' vue'
7- import { UndefinedOr } from ' @devprotocol/util-ts'
7+ import type { UndefinedOr } from ' @devprotocol/util-ts'
88import Spinner from ' ../../../layouts/components/Spinner.vue'
99// @ts-ignore
1010import VideoFetch from ' ../../vue/VideoFetch.vue'
@@ -22,6 +22,7 @@ const props = defineProps<{
2222const cronCalling = ref < UndefinedOr < Promise < UndefinedOr < Response >>> > ()
2323const clicked = ref (false )
2424const cronFinished = ref (false )
25+ const eoa = ref (props .eoa )
2526
2627const imageRef = useTemplateRef (` imageRef ` )
2728
@@ -30,11 +31,11 @@ let i18n = i18nBase(['en'])
3031
3132const passportPageUrl = computed (() =>
3233 window .location .hostname .includes (' prerelease.clubs.place' )
33- ? ` https://prerelease.clubs.place/passport/${props . eoa ?? ' ' }/edit `
34+ ? ` https://prerelease.clubs.place/passport/${eoa . value ?? ' ' }/edit `
3435 : window .location .hostname .includes (' clubs.place' )
35- ? ` https://clubs.place/passport/${props . eoa ?? ' ' }/edit `
36+ ? ` https://clubs.place/passport/${eoa . value ?? ' ' }/edit `
3637 : ` http://localhost:${window .location .port }/passport/${
37- props . eoa ?? ' '
38+ eoa . value ?? ' '
3839 }/edit `
3940)
4041
@@ -64,6 +65,12 @@ onMounted(async () => {
6465 } catch (error ) {
6566 console .error (' Error loading image:' , error )
6667 }
68+ if (eoa .value === undefined ) {
69+ const C = await import (' ../../../connection/connection' )
70+ C .connection ().account .subscribe ((acc ) => {
71+ eoa .value = acc
72+ })
73+ }
6774})
6875 </script >
6976
@@ -140,8 +147,28 @@ onMounted(async () => {
140147
141148<template >
142149 <div
143- class =" m-auto w-full max-w-screen-lg rounded-xl bg-white p-4 text-black shadow @container/clb_result_modal"
150+ class =" relative w-full max-w-screen-lg rounded-xl bg-white p-4 text-black shadow @container/clb_result_modal"
144151 >
152+ <a
153+ :href =" props.base ?? '/'"
154+ class =" absolute -right-10 -top-10 flex h-8 w-8 items-center justify-center hover:bg-none"
155+ >
156+ <svg
157+ xmlns =" http://www.w3.org/2000/svg"
158+ class =" h-6 w-6"
159+ fill =" none"
160+ viewBox =" 0 0 24 24"
161+ stroke =" white"
162+ >
163+ <path
164+ stroke-linecap =" round"
165+ stroke-linejoin =" round"
166+ stroke-width =" 2"
167+ d =" M6 18L18 6M6 6l12 12"
168+ />
169+ </svg >
170+ </a >
171+
145172 <div
146173 class =" bg-color-navy relative mb-6 flex h-auto min-h-52 w-full flex-col items-center justify-center overflow-hidden rounded-md border border-black p-2 @xl/clb_result_modal:h-96 @xl/clb_result_modal:min-h-0 @xl/clb_result_modal:p-8"
147174 >
@@ -159,12 +186,13 @@ onMounted(async () => {
159186 <img
160187 v-if =" imageSrc"
161188 ref =" imageRef"
162- class =" z-10 max-h-60 min-h-full max-w-60 object-contain @xl/clb_result_modal:max-h-none @xl/clb_result_modal:max-w-xl"
189+ class =" z-10 max-h-60 min-h-full max-w-60 rounded-md object-contain @xl/clb_result_modal:max-h-none @xl/clb_result_modal:max-w-xl"
163190 />
164191 <!-- video -->
165192 <VideoFetch
166193 v-if =" !imageSrc && videoSrc"
167- class =" max-w-60 rounded"
194+ class =" aspect-[1/1] max-w-60 rounded-md"
195+ video-class =" rounded-md [& >video]:rounded-md"
168196 :url =" videoSrc"
169197 />
170198 <span class =" text-base italic text-white" >
@@ -210,7 +238,7 @@ onMounted(async () => {
210238 :href =" props.base ?? '/'"
211239 class =" hs-button is-filled rounded-lg border px-12 py-4 text-base @4xl/clb_result_modal:py-6"
212240 >
213- {{ i18n('Home ') }}
241+ {{ i18n('ContinueShopping ') }}
214242 </a >
215243 <button
216244 v-if =" false /* HIDDEN FOR NOW */"
0 commit comments