Add software info on hover
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
d8643b5b4a
commit
331be28efa
3 changed files with 11 additions and 0 deletions
|
@ -460,6 +460,13 @@ const Status = {
|
|||
return 'globe'
|
||||
}
|
||||
},
|
||||
faviconAlt (status) {
|
||||
if (!status.user.instance) {
|
||||
return ''
|
||||
}
|
||||
const software = ((status.user.instance) && (status.user.instance.nodeinfo) && (status.user.instance.nodeinfo.software)) || {}
|
||||
return `${status.user.instance.name} (${software.name} ${software.version})`
|
||||
},
|
||||
showError (error) {
|
||||
this.error = error
|
||||
},
|
||||
|
|
|
@ -177,6 +177,7 @@
|
|||
v-if="!!(status.user && status.user.favicon)"
|
||||
class="status-favicon"
|
||||
:src="status.user.favicon"
|
||||
:title="faviconAlt(status)"
|
||||
>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -88,6 +88,9 @@ export const parseUser = (data) => {
|
|||
output.friends_count = data.following_count
|
||||
|
||||
output.bot = data.bot
|
||||
if (data.akkoma) {
|
||||
output.instance = data.akkoma.instance
|
||||
}
|
||||
|
||||
if (data.pleroma) {
|
||||
const relationship = data.pleroma.relationship
|
||||
|
|
Loading…
Reference in a new issue