frontend for xcvr appview

probably i should learn svelte

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