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
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>
0
0
199
{/if}
200
{/if}
201
</main>
···
171
return null;
172
}
173
};
0
0
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
},
0
0
0
0
0
18
};
19
20
export default config;