mirror of
https://github.com/unraid/api.git
synced 2026-05-03 13:40:36 -05:00
refactor(types): UserProfileLink
This commit is contained in:
+2
-4
@@ -1,4 +1,5 @@
|
|||||||
import { KeyIcon } from '@heroicons/vue/24/solid';
|
import { KeyIcon } from '@heroicons/vue/24/solid';
|
||||||
|
import { UserProfileLink } from '~/types/userProfile';
|
||||||
|
|
||||||
export enum ServerState {
|
export enum ServerState {
|
||||||
BASIC = 'BASIC',
|
BASIC = 'BASIC',
|
||||||
@@ -42,11 +43,8 @@ export interface Server {
|
|||||||
// @todo convert to object with text and click payload
|
// @todo convert to object with text and click payload
|
||||||
export type ServerStateDataActionType = 'signIn'|'signOut'|'purchase'|'redeem'|'upgrade'|'recover'|'replace'|'trialExtend'|'trialStart';
|
export type ServerStateDataActionType = 'signIn'|'signOut'|'purchase'|'redeem'|'upgrade'|'recover'|'replace'|'trialExtend'|'trialStart';
|
||||||
|
|
||||||
export interface ServerStateDataAction {
|
export interface ServerStateDataAction extends UserProfileLink {
|
||||||
click: any; // @todo be more specific
|
|
||||||
icon?: typeof KeyIcon
|
|
||||||
name: ServerStateDataActionType;
|
name: ServerStateDataActionType;
|
||||||
text: string;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ServerStateDataError {
|
export interface ServerStateDataError {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import { ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
|
import { ArrowTopRightOnSquareIcon } from '@heroicons/vue/24/solid';
|
||||||
|
|
||||||
export interface UserProfileLink {
|
export interface UserProfileLink {
|
||||||
|
click?: any; // @todo be more specific
|
||||||
emphasize?: boolean;
|
emphasize?: boolean;
|
||||||
external?: boolean;
|
external?: boolean;
|
||||||
href: string;
|
href?: string;
|
||||||
icon?: typeof ArrowTopRightOnSquareIcon;
|
icon?: typeof ArrowTopRightOnSquareIcon;
|
||||||
|
name?: string;
|
||||||
text: string;
|
text: string;
|
||||||
title?: string;
|
title?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user