tangled
alpha
login
or
join now
moth11.net
/
xcvr
2
fork
atom
frontend for xcvr appview
2
fork
atom
overview
issues
pulls
pipelines
probably i should learn svelte
moth11.net
7 months ago
62eb914f
0fdc87cf
+4
-9
2 changed files
expand all
collapse all
unified
split
src
routes
p
[handle]
+page.svelte
svelte.config.js
+4
-4
src/routes/p/[handle]/+page.svelte
···
171
171
return null;
172
172
}
173
173
};
174
174
-
// @ts-expect-error - Svelte 5.36 experimental async support
175
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
197
-
{#if lastSeenLocation !== null}
198
198
-
<a href={lastSeenLocation}> in this channel</a>
195
195
+
{#if data.lastSeen.where}
196
196
+
{#await getPathToChannel(data.lastSeen.where) then location}
197
197
+
<a href={location}> in this channel</a>
198
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
18
-
compilerOptions: {
19
19
-
experimental: {
20
20
-
async: true
21
21
-
}
22
22
-
}
23
18
};
24
19
25
20
export default config;