mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
✨ Adjust nullable in types
This commit is contained in:
@@ -41,9 +41,21 @@ export const AvailableElementTypes = ({
|
|||||||
enabledStatusChecker: false,
|
enabledStatusChecker: false,
|
||||||
okStatus: [],
|
okStatus: [],
|
||||||
},
|
},
|
||||||
integration: {
|
behaviour: {
|
||||||
type: 'deluge',
|
isOpeningNewTab: false,
|
||||||
properties: {},
|
},
|
||||||
|
area: {
|
||||||
|
type: 'wrapper',
|
||||||
|
},
|
||||||
|
shape: {
|
||||||
|
location: {
|
||||||
|
x: 0,
|
||||||
|
y: 0,
|
||||||
|
},
|
||||||
|
size: {
|
||||||
|
height: 1,
|
||||||
|
width: 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,13 +7,11 @@ export interface ServiceType extends TileBaseType {
|
|||||||
behaviour: ServiceBehaviourType;
|
behaviour: ServiceBehaviourType;
|
||||||
network: ServiceNetworkType;
|
network: ServiceNetworkType;
|
||||||
appearance: ServiceAppearanceType;
|
appearance: ServiceAppearanceType;
|
||||||
integration?: ServiceIntegrationType; //TODO: make this nullable
|
integration?: ServiceIntegrationType;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ServiceBehaviourType {
|
interface ServiceBehaviourType {
|
||||||
onClickUrl: string;
|
onClickUrl?: string;
|
||||||
isMoveable: boolean; //TODO: remove this proeprty
|
|
||||||
isSticky: boolean; //TODO: remove this property
|
|
||||||
isOpeningNewTab: boolean;
|
isOpeningNewTab: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user