refactor: auto import masto composables
This commit is contained in:
parent
79e4841f87
commit
bf8070c4b9
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}>()
|
}>()
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
Loading…
Reference in a new issue