fedihost-co / articles

Articles found on fedihost.co
https://fedihost.co/articles
0 stars 0 forks source link

Explainer: How to use bridgy fed #15

Open psaunders opened 2 months ago

psaunders commented 2 months ago

Their documentation is not obvious to me. I thought I would need to create an account on the bridgy website and then didn't. Figured it would connect accounts, but it creates an account. Still didn't work.

Masto<->Bsky Conversation Box

I think what was going on was I was getting my handle wrong on bluesky, took reading this article and then using a computer to check the url section by section. https://techcrunch.com/2024/06/05/bluesky-and-mastodon-users-can-now-talk-to-each-other-with-bridgy-fed/ This makes me think a Masto<->Bluesky conversion box would be a great feature for an article.

psaunders commented 1 month ago

Hey @S0yKaf I added a little place to generate the masto/bluesky handle for users, should be possible with a few lines of Javascript. Is javascript or an inline script tag possible in this repo?

S0yKaf commented 1 month ago

you can create a custom component with the javascript you want.

https://github.com/fedihost-co/articles/blob/ffc588fd9926d97d5ada28a94bfbeed57ce19c56/components/content/vid.vue#L1-L12

like this component but you add a script block. In your case it would probably look like:



<template>
<div>
<input  v-model="input" />
Becomes: {{ handle }}
</div>
</template>

<script setup>
const input = ref();
const handle = computed(() => {
     // your wonderful js
    return "converted"
 })

</script>