Client - refactor types
This commit is contained in:
@ -20,8 +20,7 @@
|
||||
<script lang="ts">
|
||||
import { PropType, defineComponent, ref } from 'vue'
|
||||
|
||||
import { IDropdownOption } from '@/interfaces'
|
||||
import { TDropdownOptions } from '@/types'
|
||||
import { IDropdownOption, TDropdownOptions } from '@/types/forms'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Dropdown',
|
||||
|
@ -28,7 +28,7 @@
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import UserStatCard from '@/components/Dashboard/UserStatCard.vue'
|
||||
import { IAuthUserProfile } from '@/store/modules/user/interfaces'
|
||||
import { IAuthUserProfile } from '@/types/user'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'UserStats',
|
||||
|
@ -78,9 +78,9 @@
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
import Dropdown from '@/components/Common/Dropdown.vue'
|
||||
import { IDropdownOption } from '@/interfaces'
|
||||
import { ROOT_STORE, USER_STORE } from '@/store/constants'
|
||||
import { IAuthUserProfile } from '@/store/modules/user/interfaces'
|
||||
import { IDropdownOption } from '@/types/forms'
|
||||
import { IAuthUserProfile } from '@/types/user'
|
||||
import { useStore } from '@/use/useStore'
|
||||
import { capitalize, getApiUrl } from '@/utils'
|
||||
|
||||
|
@ -64,10 +64,10 @@
|
||||
|
||||
import AlertMessage from '@/components/Common/AlertMessage.vue'
|
||||
import ErrorMessage from '@/components/Common/ErrorMessage.vue'
|
||||
import { IFormData } from '@/interfaces'
|
||||
import router from '@/router'
|
||||
import { ROOT_STORE, USER_STORE } from '@/store/constants'
|
||||
import { IAppConfig } from '@/store/modules/root/interfaces'
|
||||
import { IAppConfig } from '@/types/application'
|
||||
import { ILoginRegisterFormData } from '@/types/user'
|
||||
import { useStore } from '@/use/useStore'
|
||||
|
||||
export default defineComponent({
|
||||
@ -83,7 +83,7 @@
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const formData: IFormData = reactive({
|
||||
const formData: ILoginRegisterFormData = reactive({
|
||||
username: '',
|
||||
email: '',
|
||||
password: '',
|
||||
|
Reference in New Issue
Block a user