mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: ♻️ Replace megalodon with @lysand-org/client
This commit is contained in:
parent
5c528e8d03
commit
0bd3237965
41 changed files with 147 additions and 170 deletions
|
|
@ -2,8 +2,8 @@
|
|||
<div class="flex flex-col p-10 gap-4 h-full">
|
||||
<div
|
||||
class="aspect-video shrink-0 w-full rounded ring-white/5 bg-dark-800 shadow overflow-hidden ring-1 hover:ring-2 duration-100">
|
||||
<img class="object-cover w-full h-full duration-150 hover:scale-[102%] ease-in-out" v-if="instance?.banner"
|
||||
alt="Instance banner" :src="instance.banner" />
|
||||
<img class="object-cover w-full h-full duration-150 hover:scale-[102%] ease-in-out"
|
||||
v-if="instance?.banner.url" alt="Instance banner" :src="instance.banner.url" />
|
||||
</div>
|
||||
|
||||
<div class="prose prose-invert prose-sm">
|
||||
|
|
@ -11,15 +11,15 @@
|
|||
<div v-html="description?.content"></div>
|
||||
</div>
|
||||
|
||||
<div v-if="instance?.contact_account" class="flex flex-col gap-2 mt-auto">
|
||||
<div v-if="instance?.contact.account" class="flex flex-col gap-2 mt-auto">
|
||||
<h2 class="text-gray-200 font-semibold uppercase text-xs">Administrator</h2>
|
||||
<SocialElementsUsersSmallCard :account="instance.contact_account" />
|
||||
<SocialElementsUsersSmallCard :account="instance.contact.account" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
const client = useMegalodon();
|
||||
const client = useClient();
|
||||
const instance = useInstance();
|
||||
const description = useExtendedDescription(client);
|
||||
</script>
|
||||
|
|
@ -112,7 +112,7 @@ useListen("composer:send-edit", (note) => {
|
|||
const tokenData = useTokenData();
|
||||
const isSignedIn = useSignedIn();
|
||||
const me = useMe();
|
||||
const client = useMegalodon(tokenData);
|
||||
const client = useClient(tokenData);
|
||||
const {
|
||||
loaded,
|
||||
note: outputtedNote,
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@ const props = defineProps<{
|
|||
}>();
|
||||
|
||||
const tokenData = useTokenData();
|
||||
const client = useMegalodon(tokenData);
|
||||
const client = useClient(tokenData);
|
||||
const account = useAccount(client, props.account_id);
|
||||
</script>
|
||||
|
|
@ -105,7 +105,7 @@ const props = defineProps<{
|
|||
const skeleton = computed(() => !props.account);
|
||||
const tokenData = useTokenData();
|
||||
const me = useMe();
|
||||
const client = useMegalodon(tokenData);
|
||||
const client = useClient(tokenData);
|
||||
const accountId = computed(() => props.account?.id ?? null);
|
||||
const { relationship, isLoading } = useRelationship(client, accountId);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue