refactor: group composables
This commit is contained in:
parent
97983e6d11
commit
9e9f2bde09
8 changed files with 54 additions and 56 deletions
|
@ -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 = [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue