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"> <script setup lang="ts">
import type { Account, Field } from 'masto' import type { Account, Field } from 'masto'
import { getAccountFieldIcon } from '~/composables/masto/icons'
const { account } = defineProps<{ const { account } = defineProps<{
account: Account account: Account

View file

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

View file

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

View file

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

View file

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