Client - refactor types

This commit is contained in:
Sam
2021-08-21 18:36:44 +02:00
parent f60847cc5f
commit db9ea49998
19 changed files with 81 additions and 84 deletions

View File

@ -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',

View File

@ -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',

View File

@ -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'

View File

@ -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: '',