Refactor project structure and update dependencies
This commit is contained in:
51
nuxt/app/types/account.d.ts
vendored
Normal file
51
nuxt/app/types/account.d.ts
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
import type { ButtonProps } from '#ui/components/Button.vue'
|
||||
|
||||
export interface IAccountLoginResponse {
|
||||
ok: boolean
|
||||
token: string
|
||||
}
|
||||
|
||||
export interface IAccountLogoutResponse {
|
||||
ok: boolean
|
||||
}
|
||||
|
||||
export interface IAccountProviderData {
|
||||
provider: string
|
||||
token: string
|
||||
message?: string
|
||||
}
|
||||
|
||||
export interface IAccountChangePasswordResponse {
|
||||
ok: boolean
|
||||
}
|
||||
|
||||
export interface IAccountResetPasswordResponse {
|
||||
ok: boolean
|
||||
}
|
||||
|
||||
export interface IVerificationNotificationResponse {
|
||||
ok: boolean
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface IAccountUpdateResponse {
|
||||
ok: boolean
|
||||
}
|
||||
|
||||
export interface IForgotPasswordResponse {
|
||||
ok: boolean
|
||||
message: string
|
||||
}
|
||||
|
||||
export interface IAccountProvider {
|
||||
name: string
|
||||
icon: string
|
||||
color: ButtonProps['color']
|
||||
loading?: boolean
|
||||
}
|
||||
|
||||
export interface IUploadResponse {
|
||||
ok: boolean
|
||||
path: string
|
||||
message?: string
|
||||
}
|
||||
12
nuxt/app/types/device.d.ts
vendored
Normal file
12
nuxt/app/types/device.d.ts
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
export type Device = {
|
||||
name: string
|
||||
ip: string
|
||||
last_used_at: string
|
||||
is_current: boolean
|
||||
hash: string
|
||||
}
|
||||
|
||||
export interface IDevicesResponse {
|
||||
ok: boolean
|
||||
devices: Device[]
|
||||
}
|
||||
0
nuxt/app/types/responses.d.ts
vendored
Normal file
0
nuxt/app/types/responses.d.ts
vendored
Normal file
Reference in New Issue
Block a user