refactor: auto import masto composables
This commit is contained in:
parent
79e4841f87
commit
bf8070c4b9
|
@ -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
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
<script setup lang="ts">
|
||||
import { statusVisibilities } from '~/composables/masto/icons'
|
||||
|
||||
const { editing } = defineProps<{
|
||||
editing?: boolean
|
||||
}>()
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import type { UpdateCredentialsParams } from 'masto'
|
||||
import { accountFieldIcons, getAccountFieldIcon } from '~/composables/masto/icons'
|
||||
|
||||
const { form } = defineModel<{
|
||||
form: {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -48,9 +48,10 @@ export default defineNuxtConfig({
|
|||
},
|
||||
imports: {
|
||||
dirs: [
|
||||
'./composables/masto',
|
||||
'./composables/push-notifications',
|
||||
'./composables/tiptap',
|
||||
'./composables/settings',
|
||||
'./composables/tiptap',
|
||||
],
|
||||
},
|
||||
vite: {
|
||||
|
|
Loading…
Reference in a new issue