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