Skip to content

Commit

Permalink
style: 🎨 Apply Biome
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Apr 25, 2024
1 parent a17df9f commit d1f61dc
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
10 changes: 6 additions & 4 deletions components/buttons/DropdownElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
4 changes: 2 additions & 2 deletions components/dropdowns/AdaptiveDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
8 changes: 4 additions & 4 deletions components/social-elements/notes/note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down
14 changes: 9 additions & 5 deletions pages/[username]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d1f61dc

Please sign in to comment.