feat: use masto client
This commit is contained in:
parent
4adab40932
commit
90c45b435f
14 changed files with 96 additions and 205 deletions
31
components/status/StatusBody.vue
Normal file
31
components/status/StatusBody.vue
Normal file
|
@ -0,0 +1,31 @@
|
|||
<script setup lang="ts">
|
||||
import type { Status } from 'masto'
|
||||
|
||||
defineProps<{
|
||||
status: Status
|
||||
}>()
|
||||
|
||||
// TODO: parse and interop content (link, emojis)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="status-body" v-html="sanitize(status.content)" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.status-body a {
|
||||
--at-apply: text-primary hover:underline;
|
||||
}
|
||||
.status-body b {
|
||||
--at-apply: font-bold;
|
||||
}
|
||||
.status-body p {
|
||||
--at-apply: my-1;
|
||||
}
|
||||
.status-body a .invisible {
|
||||
--at-apply: hidden;
|
||||
}
|
||||
.status-body a .ellipsis {
|
||||
--at-apply: truncate overflow-hidden ws-nowrap;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue