style: 🎨 Apply Biome

This commit is contained in:
Jesse Wierzbinski 2024-04-24 20:58:17 -10:00
parent a17df9fff8
commit d1f61dc32d
No known key found for this signature in database
4 changed files with 21 additions and 15 deletions

View file

@ -9,11 +9,13 @@
<script lang="ts" setup>
import type { ButtonHTMLAttributes } from "vue";
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes { }
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
defineProps<Props & {
icon: string;
}>();
defineProps<
Props & {
icon: string;
}
>();
</script>
<style></style>

View file

@ -24,6 +24,6 @@
</template>
<script setup lang="ts">
const { width } = useWindowSize()
const isSmallScreen = computed(() => width.value < 640)
const { width } = useWindowSize();
const isSmallScreen = computed(() => width.value < 640);
</script>

View file

@ -103,10 +103,10 @@ const client = await useMegalodon();
const mentions = await useResolveMentions(props.note?.mentions ?? [], client);
const content = props.note
? await useParsedContent(
props.note.content,
props.note.emojis,
mentions.value,
)
props.note.content,
props.note.emojis,
mentions.value,
)
: "";
const numberFormat = (number = 0) =>
new Intl.NumberFormat(undefined, {

View file

@ -102,11 +102,15 @@ const { timeline, loadNext, loadPrev } = useAccountTimeline(
);
const skeleton = ref<HTMLSpanElement | null>(null);
const parsedNote = account ? await useParsedContent(account?.note, account?.emojis, []) : ref("");
const parsedFields = await Promise.all(account?.fields.map(async (field) => ({
name: await useParsedContent(field.name, account.emojis, []),
value: await useParsedContent(field.value, account.emojis, []),
})) ?? []);
const parsedNote = account
? await useParsedContent(account?.note, account?.emojis, [])
: ref("");
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(() => {
useIntersectionObserver(skeleton, async (entries) => {