chore: ⬆️ Upgrade to new @versia/client

This commit is contained in:
Jesse Wierzbinski 2025-05-26 11:19:15 +02:00
parent 0a157d06f6
commit f807b05784
No known key found for this signature in database
71 changed files with 451 additions and 492 deletions

View file

@ -71,7 +71,7 @@ import {
DropdownMenuSeparator,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import type { Account } from "@versia/client/types";
import type { Account } from "@versia/client/schemas";
import {
AtSign,
Ban,
@ -84,10 +84,11 @@ import {
VolumeX,
} from "lucide-vue-next";
import { toast } from "vue-sonner";
import type { z } from "zod";
import * as m from "~/paraglide/messages.js";
const { account } = defineProps<{
account: Account;
account: z.infer<typeof Account>;
}>();
const isMe = identity.value?.account.id === account.id;

View file

@ -25,12 +25,13 @@
</template>
<script lang="ts" setup>
import type { Account } from "@versia/client/types";
import type { Account } from "@versia/client/schemas";
import type { z } from "zod";
import * as m from "~/paraglide/messages.js";
import ProfileBadge from "./profile-badge.vue";
const { account } = defineProps<{
account: Account;
account: z.infer<typeof Account>;
}>();
const config = useConfig();

View file

@ -4,11 +4,12 @@
</template>
<script lang="ts" setup>
import type { Emoji } from "@versia/client/types";
import type { CustomEmoji } from "@versia/client/schemas";
import type { z } from "zod";
const { content } = defineProps<{
content: string;
emojis: Emoji[];
emojis: z.infer<typeof CustomEmoji>[];
}>();
</script>

View file

@ -8,10 +8,11 @@
</template>
<script lang="ts" setup>
import type { Emoji, Field } from "@versia/client/types";
import type { CustomEmoji, Field } from "@versia/client/schemas";
import type { z } from "zod";
defineProps<{
fields: Field[];
emojis: Emoji[];
fields: z.infer<typeof Field>[];
emojis: z.infer<typeof CustomEmoji>[];
}>();
</script>
</script>

View file

@ -66,9 +66,10 @@
</template>
<script lang="ts" setup>
import type { Account } from "@versia/client/types";
import type { Account } from "@versia/client/schemas";
import { Ellipsis, Loader } from "lucide-vue-next";
import { toast } from "vue-sonner";
import type { z } from "zod";
import CopyableText from "~/components/notes/copyable-text.vue";
import { Button } from "~/components/ui/button";
import { Card, CardContent, CardFooter, CardTitle } from "~/components/ui/card";
@ -83,7 +84,7 @@ import ProfileHeader from "./profile-header.vue";
import ProfileStats from "./profile-stats.vue";
const { account } = defineProps<{
account: Account;
account: z.infer<typeof Account>;
}>();
const { relationship, isLoading } = useRelationship(client, account.id);

View file

@ -52,7 +52,8 @@
</template>
<script lang="ts" setup>
import type { Account } from "@versia/client/types";
import type { Account } from "@versia/client/schemas";
import type { z } from "zod";
import { Separator } from "~/components/ui/separator";
import CopyableText from "../notes/copyable-text.vue";
import Avatar from "./avatar.vue";
@ -60,7 +61,7 @@ import ProfileContent from "./profile-content.vue";
import ProfileFields from "./profile-fields.vue";
const { account } = defineProps<{
account: Account;
account: z.infer<typeof Account>;
}>();
const [username, instance] = account.acct.split("@");

View file

@ -18,12 +18,13 @@
</template>
<script lang="ts" setup>
import type { Account } from "@versia/client/types";
import type { Account } from "@versia/client/schemas";
import type { z } from "zod";
import { Card, CardContent } from "~/components/ui/card";
import Avatar from "./avatar.vue";
const { account, domain, naked } = defineProps<{
account: Account;
account: z.infer<typeof Account>;
domain: string;
naked?: boolean;
}>();