refactor: group composables

This commit is contained in:
Anthony Fu 2022-12-02 16:52:00 +08:00
parent 97983e6d11
commit 9e9f2bde09
8 changed files with 54 additions and 56 deletions

View file

@ -1,7 +1,13 @@
import type { Ref } from 'vue'
import type { Account, Relationship, Status } from 'masto'
import type { Account, MastoClient, Relationship, Status } from 'masto'
import { withoutProtocol } from 'ufo'
export const useMasto = () => useNuxtApp().$masto.api as MastoClient
export const setMasto = (masto: MastoClient) => {
useNuxtApp().$masto?.replace(masto)
}
// @unocss-include
export const STATUS_VISIBILITIES = [
{