-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mastodon support #569
Comments
Hey! I'll take a look at the issue soon. I think the interface should look like this: interface IMastodonShareOptions {
domain?: string
text?: string;
url?: string;
} Leave the modal window to users, as the design may not be suitable. |
Seems great :) would love to see this get added for sure. Thanks for the quick response. |
add mastodon button ✅ Closes: #569
Available in <template>
<s-mastodon
:window-features="windowFeatures"
:share-options="shareOptions"
:use-native-behavior="useNativeBehavior"
@popup-close="onClose"
@popup-open="onOpen"
@popup-block="onBlock"
@popup-focus="onFocus"
></s-mastodon>
</template>
<script>
import { SMastodon } from 'vue-socials'
export default {
name: 'SSMastodonSharing',
components: { SMastodon },
data() {
return {
windowFeatures: {},
shareOptions: {
domain: 'https://mas.to',
url: 'https://github.com',
text: 'Hello, world!',
},
useNativeBehavior: false,
}
},
methods: {
onClose() {},
onOpen() {},
onBlock() {},
onFocus() {},
}
};
</script> |
My dude. Absolute legend. Thanks! |
How would you recommend allowing the user to provide a domain before launching the window? I'd like to have it so that clicking the button launches a modal that asks for the mastodon domain, and then clicking Ok on the modal triggers the click event on the vue-social button, passing in the user's provided domain. |
Make your own modal, where there will be an input for the domain and an |
Ahhhh smart. Thanks again! |
Seeing as so many people are frequenting mastodon now it would be really nice to have a mastodon button as well. I've yet to see a single library add support since a mastodon share button would require a modal or something to enter your instance address, which tends to upset the simple "click and go" flow.
The text was updated successfully, but these errors were encountered: