tangled
alpha
login
or
join now
vt3e.cat
/
bbell
7
fork
atom
wip bsky client for the web & android
bbell.vt3e.cat
7
fork
atom
overview
issues
pulls
pipelines
feat(profile): messages
vt3e.cat
1 week ago
937c5fff
a738b0c4
verified
This commit was signed with the committer's
known signature
.
vt3e.cat
SSH Key Fingerprint:
SHA256:MaVgF6bXxDdD131G4rXizPh+sttp3IVsdPrj48HV0X0=
+23
1 changed file
expand all
collapse all
unified
split
src
views
Profile
ProfileView.vue
+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
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
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
188
+
189
189
+
const MESSAGE_MAP: Record<ActorIdentifier, string> = {
190
190
+
'did:plc:73gqgbnvpx5syidcponjrics': 'woagh dat coil habdel!!',
191
191
+
'did:plc:placeholder': 'omgg sibbieeee !!! <3',
192
192
+
'did:plc:2hcnfmbfr4ucfbjpnvjqvt3e': 'dat alzo coil ahbdel ,,,',
193
193
+
'did:plc:6if5m2yo6kroprmmency3gt5': 'WARNING diz user speeks fr*nch',
194
194
+
'did:plc:b26ewgkrnx3yvsp2cdao3ntu': 'alern .,.,,...',
195
195
+
'did:plc:dqmobzm2ntia652uhvrbo6w4': 'digidigidigidigidigidigidigidigidigidigi',
196
196
+
'did:plc:gy5roooborfiyvl2xadsam3e': 'this user needs salt',
197
197
+
'did:plc:qxichs7jsycphrsmbujwqbfb': 'remember to watr use robesses !',
198
198
+
199
199
+
'did:plc:7mx2jwbmpnvzwzjid7jjtbqp': 'use code CLICKER and get €50 free credits!',
200
200
+
'did:plc:qcwhrvzx6wmi5hz775uyi6fh':
201
201
+
'And thanks a bunch for liking my post! It makes me so happy!',
202
202
+
203
203
+
'did:plc:ar7c4by46qjdydhdevvrndac': 'dis ebil modration servbivce',
204
204
+
'did:plc:yfklixyvt4y3irrkdb4mtvqn': 'bestst meodwrion serbivce !',
205
205
+
}
206
206
+
207
207
+
const message = MESSAGE_MAP[profile.value.did]
208
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'