mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
style: 🎨 Apply Biome
This commit is contained in:
parent
a17df9fff8
commit
d1f61dc32d
|
|
@ -9,11 +9,13 @@
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { ButtonHTMLAttributes } from "vue";
|
import type { ButtonHTMLAttributes } from "vue";
|
||||||
|
|
||||||
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes { }
|
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
|
||||||
|
|
||||||
defineProps<Props & {
|
defineProps<
|
||||||
icon: string;
|
Props & {
|
||||||
}>();
|
icon: string;
|
||||||
|
}
|
||||||
|
>();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style></style>
|
<style></style>
|
||||||
|
|
@ -24,6 +24,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const { width } = useWindowSize()
|
const { width } = useWindowSize();
|
||||||
const isSmallScreen = computed(() => width.value < 640)
|
const isSmallScreen = computed(() => width.value < 640);
|
||||||
</script>
|
</script>
|
||||||
|
|
@ -103,10 +103,10 @@ const client = await useMegalodon();
|
||||||
const mentions = await useResolveMentions(props.note?.mentions ?? [], client);
|
const mentions = await useResolveMentions(props.note?.mentions ?? [], client);
|
||||||
const content = props.note
|
const content = props.note
|
||||||
? await useParsedContent(
|
? await useParsedContent(
|
||||||
props.note.content,
|
props.note.content,
|
||||||
props.note.emojis,
|
props.note.emojis,
|
||||||
mentions.value,
|
mentions.value,
|
||||||
)
|
)
|
||||||
: "";
|
: "";
|
||||||
const numberFormat = (number = 0) =>
|
const numberFormat = (number = 0) =>
|
||||||
new Intl.NumberFormat(undefined, {
|
new Intl.NumberFormat(undefined, {
|
||||||
|
|
|
||||||
|
|
@ -102,11 +102,15 @@ const { timeline, loadNext, loadPrev } = useAccountTimeline(
|
||||||
);
|
);
|
||||||
const skeleton = ref<HTMLSpanElement | null>(null);
|
const skeleton = ref<HTMLSpanElement | null>(null);
|
||||||
|
|
||||||
const parsedNote = account ? await useParsedContent(account?.note, account?.emojis, []) : ref("");
|
const parsedNote = account
|
||||||
const parsedFields = await Promise.all(account?.fields.map(async (field) => ({
|
? await useParsedContent(account?.note, account?.emojis, [])
|
||||||
name: await useParsedContent(field.name, account.emojis, []),
|
: ref("");
|
||||||
value: await useParsedContent(field.value, account.emojis, []),
|
const parsedFields = await Promise.all(
|
||||||
})) ?? []);
|
account?.fields.map(async (field) => ({
|
||||||
|
name: await useParsedContent(field.name, account.emojis, []),
|
||||||
|
value: await useParsedContent(field.value, account.emojis, []),
|
||||||
|
})) ?? [],
|
||||||
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
useIntersectionObserver(skeleton, async (entries) => {
|
useIntersectionObserver(skeleton, async (entries) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue