better router, add sharing support

This commit is contained in:
wryk
2020-02-16 17:02:39 +01:00
parent 9fc0c52973
commit 3c2146127a
12 changed files with 170 additions and 136 deletions

View File

@ -1,16 +1,14 @@
<Radio />
<Radio share={refererCredentials} />
<script>
import { onMount } from 'svelte'
import Radio from '/components/Radio.svelte'
import { fetchStatus } from '/services/mastodon.js'
export let domain
export let statusId
export let id
onMount(async () => {
const status = await fetchStatus(domain, statusId)
console.log(`Status ${statusId} from ${domain} shared`)
})
const refererCredentials = {
type: 'mastodon',
domain,
id
}
</script>