wip bsky client for the web & android
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(posts): toast when link copied or post saved

vi b476a82d a1e29453

+9
+9
src/components/Feed/FeedItem.vue
··· 19 19 20 20 import { useNavigationStore } from '@/stores/navigation' 21 21 import { usePostStore } from '@/stores/posts' 22 + import { useToastStore } from '@/stores/toast' 22 23 23 24 import AppLink from '@/components/Navigation/AppLink.vue' 24 25 import BasePopover from '@/components/UI/BasePopover.vue' ··· 40 41 41 42 const postStore = usePostStore() 42 43 const navigationStore = useNavigationStore() 44 + const toastStore = useToastStore() 43 45 const rootEl = ref<HTMLElement | null>(null) 44 46 const isVisible = ref(false) 45 47 ··· 107 109 const handleBookmark = () => { 108 110 if (displayPost.value && !props.embedded) { 109 111 postStore.toggleBookmark(displayPost.value) 112 + toastStore.success( 113 + displayPost.value.viewer?.bookmarked ? 'Bookmarked post' : 'Removed bookmark', 114 + ) 110 115 tap() 111 116 } 112 117 } ··· 147 152 if (displayPost.value) { 148 153 const url = `${window.location.origin}/profile/${displayPost.value.author.handle}/post/${rkey.value}` 149 154 navigator.clipboard.writeText(url) 155 + toastStore.success('Link copied to clipboard') 150 156 tap() 151 157 } 152 158 }, ··· 154 160 if (displayPost.value) { 155 161 const bskyUrl = `https://bsky.app/profile/${displayPost.value.author.did}/post/${rkey.value}` 156 162 navigator.clipboard.writeText(bskyUrl) 163 + toastStore.success('Link copied to clipboard') 157 164 tap() 158 165 } 159 166 }, 160 167 copyATUri: () => { 161 168 if (displayPost.value) { 162 169 navigator.clipboard.writeText(displayPost.value.uri) 170 + toastStore.success('URI copied to clipboard') 163 171 tap() 164 172 } 165 173 }, 166 174 copyDid: () => { 167 175 if (displayPost.value) { 168 176 navigator.clipboard.writeText(displayPost.value.author.did) 177 + toastStore.success('DID copied to clipboard') 169 178 tap() 170 179 } 171 180 },