mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
Fix formatting issues and optimize code
This commit is contained in:
parent
29092b23ba
commit
150e6b9207
@ -72,8 +72,7 @@ const Bar: FunctionComponent<ComponentProps> = (
|
|||||||
barOpacity = 0.5;
|
barOpacity = 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isHovered) {
|
||||||
if(isHovered){
|
|
||||||
barOpacity = 1;
|
barOpacity = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ const GanttChart: FunctionComponent<ComponentProps> = (
|
|||||||
setEachIntervalWidth(chartWidth / numberOfInterval);
|
setEachIntervalWidth(chartWidth / numberOfInterval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const timelineWidth: number = chartWidth * 0.75; // 75 % of chart width, 25% for category spacer
|
const timelineWidth: number = chartWidth * 0.75; // 75 % of chart width, 25% for category spacer
|
||||||
|
|
||||||
setTimelineWidth(timelineWidth); // 75 % of chart width, 25% for category spacer
|
setTimelineWidth(timelineWidth); // 75 % of chart width, 25% for category spacer
|
||||||
|
@ -53,21 +53,22 @@ const TraceView: FunctionComponent<PageComponentProps> = (
|
|||||||
|
|
||||||
// get trace with this id and then get all the parentSpanId with this traceid.
|
// get trace with this id and then get all the parentSpanId with this traceid.
|
||||||
|
|
||||||
const telemetryServices: ListResult<TelemetryService> = await ModelAPI.getList<TelemetryService>({
|
const telemetryServices: ListResult<TelemetryService> =
|
||||||
query: {
|
await ModelAPI.getList<TelemetryService>({
|
||||||
projectId: DashboardNavigation.getProjectId()!,
|
query: {
|
||||||
},
|
projectId: DashboardNavigation.getProjectId()!,
|
||||||
limit: LIMIT_PER_PROJECT,
|
},
|
||||||
skip: 0,
|
limit: LIMIT_PER_PROJECT,
|
||||||
modelType: TelemetryService,
|
skip: 0,
|
||||||
sort: {
|
modelType: TelemetryService,
|
||||||
name: SortOrder.Ascending,
|
sort: {
|
||||||
},
|
name: SortOrder.Ascending,
|
||||||
select: {
|
},
|
||||||
name: true,
|
select: {
|
||||||
_id: true,
|
name: true,
|
||||||
},
|
_id: true,
|
||||||
});
|
},
|
||||||
|
});
|
||||||
|
|
||||||
setTelemetryServices(telemetryServices.data);
|
setTelemetryServices(telemetryServices.data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user