frontend for xcvr appview

probably i should learn svelte

+4 -9
+4 -4
src/routes/p/[handle]/+page.svelte
··· 171 171 return null; 172 172 } 173 173 }; 174 - // @ts-expect-error - Svelte 5.36 experimental async support 175 - let lastSeenLocation = $derived(await getPathToChannel(data.lastSeen.where)); 176 174 </script> 177 175 178 176 <main> ··· 194 192 {#if data.lastSeen.when} 195 193 {timeSince(data.lastSeen.when) + " ago"} 196 194 {/if} 197 - {#if lastSeenLocation !== null} 198 - <a href={lastSeenLocation}> in this channel</a> 195 + {#if data.lastSeen.where} 196 + {#await getPathToChannel(data.lastSeen.where) then location} 197 + <a href={location}> in this channel</a> 198 + {/await} 199 199 {/if} 200 200 {/if} 201 201 </main>
-5
svelte.config.js
··· 15 15 fallback: 'index.html' 16 16 }) 17 17 }, 18 - compilerOptions: { 19 - experimental: { 20 - async: true 21 - } 22 - } 23 18 }; 24 19 25 20 export default config;