refactor: auto import masto composables

This commit is contained in:
三咲智子 2023-01-07 02:35:45 +08:00
parent 79e4841f87
commit bf8070c4b9
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
5 changed files with 2 additions and 6 deletions

View file

@ -1,6 +1,5 @@
<script setup lang="ts">
import type { Account, Field } from 'masto'
import { getAccountFieldIcon } from '~/composables/masto/icons'
const { account } = defineProps<{
account: Account

View file

@ -1,6 +1,4 @@
<script setup lang="ts">
import { statusVisibilities } from '~/composables/masto/icons'
const { editing } = defineProps<{
editing?: boolean
}>()

View file

@ -1,6 +1,5 @@
<script setup lang="ts">
import type { UpdateCredentialsParams } from 'masto'
import { accountFieldIcons, getAccountFieldIcon } from '~/composables/masto/icons'
const { form } = defineModel<{
form: {

View file

@ -1,6 +1,5 @@
<script setup lang="ts">
import type { Status } from 'masto'
import { statusVisibilities } from '~/composables/masto/icons'
const props = withDefaults(defineProps<{
status: Status

View file

@ -48,9 +48,10 @@ export default defineNuxtConfig({
},
imports: {
dirs: [
'./composables/masto',
'./composables/push-notifications',
'./composables/tiptap',
'./composables/settings',
'./composables/tiptap',
],
},
vite: {