1
0

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: {