wip bsky client for the web & android bbell.vt3e.cat

feat(profile): messages

vt3e.cat 937c5fff a738b0c4

verified
+23
+23
src/views/Profile/ProfileView.vue
··· 18 18 import { useAuthStore } from '@/stores/auth' 19 19 import { usePostStore } from '@/stores/posts' 20 20 import { useModalStore } from '@/stores/modal' 21 + import { useToastStore } from '@/stores/toast' 21 22 22 23 import { useEnvironmentStore } from '@/stores/environment' 23 24 ··· 46 47 const postStore = usePostStore() 47 48 const env = useEnvironmentStore() 48 49 const modal = useModalStore() 50 + const toast = useToastStore() 49 51 50 52 const { events: statsDragEvents, isDragging } = useDraggableScroll() 51 53 ··· 183 185 const { pds } = await getIdentity(profile.value.did) 184 186 if (!pds) throw new Error('Failed to resolve user PDS') 185 187 pdsUrl.value = pds 188 + 189 + const MESSAGE_MAP: Record<ActorIdentifier, string> = { 190 + 'did:plc:73gqgbnvpx5syidcponjrics': 'woagh dat coil habdel!!', 191 + 'did:plc:placeholder': 'omgg sibbieeee !!! <3', 192 + 'did:plc:2hcnfmbfr4ucfbjpnvjqvt3e': 'dat alzo coil ahbdel ,,,', 193 + 'did:plc:6if5m2yo6kroprmmency3gt5': 'WARNING diz user speeks fr*nch', 194 + 'did:plc:b26ewgkrnx3yvsp2cdao3ntu': 'alern .,.,,...', 195 + 'did:plc:dqmobzm2ntia652uhvrbo6w4': 'digidigidigidigidigidigidigidigidigidigi', 196 + 'did:plc:gy5roooborfiyvl2xadsam3e': 'this user needs salt', 197 + 'did:plc:qxichs7jsycphrsmbujwqbfb': 'remember to watr use robesses !', 198 + 199 + 'did:plc:7mx2jwbmpnvzwzjid7jjtbqp': 'use code CLICKER and get €50 free credits!', 200 + 'did:plc:qcwhrvzx6wmi5hz775uyi6fh': 201 + 'And thanks a bunch for liking my post! It makes me so happy!', 202 + 203 + 'did:plc:ar7c4by46qjdydhdevvrndac': 'dis ebil modration servbivce', 204 + 'did:plc:yfklixyvt4y3irrkdb4mtvqn': 'bestst meodwrion serbivce !', 205 + } 206 + 207 + const message = MESSAGE_MAP[profile.value.did] 208 + if (message) toast.info(message) 186 209 } catch (e) { 187 210 if (e instanceof Error) error.value = e.message 188 211 else error.value = 'An unknown error occurred :c'