1 parent
9c530247ef
commit
79d49d7916
1 file changed
+7
-4
@@ -34,6 +34,7 @@ import {
|
|||||||
useVIntl,
|
useVIntl,
|
||||||
} from '@modrinth/ui'
|
} from '@modrinth/ui'
|
||||||
import { getPingLevel } from '@modrinth/utils'
|
import { getPingLevel } from '@modrinth/utils'
|
||||||
|
import { autoToHTML } from '@sfirew/minecraft-motd-parser'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
import { Tooltip } from 'floating-vue'
|
import { Tooltip } from 'floating-vue'
|
||||||
import type { Component } from 'vue'
|
import type { Component } from 'vue'
|
||||||
@@ -360,10 +361,12 @@ const messages = defineMessages({
|
|||||||
}}
|
}}
|
||||||
</span>
|
</span>
|
||||||
<template #popper>
|
<template #popper>
|
||||||
<div class="flex flex-col gap-1">
|
<div class="flex flex-col gap-1 font-minecraft">
|
||||||
<span v-for="player in serverStatus.players?.sample" :key="player.name">
|
<span
|
||||||
{{ player.name }}
|
v-for="player in serverStatus.players?.sample"
|
||||||
</span>
|
:key="player.name"
|
||||||
|
v-html="autoToHTML(player.name)"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in new issue
Block a user