-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide component to output split and monolith plots
- Loading branch information
Showing
3 changed files
with
54 additions
and
22 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
dashboard/new-dashboard/src/components/charts/GroupProjectsWithClientChart.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<GroupProjectsChart | ||
:can-be-closed="false" | ||
:value-unit="valueUnit" | ||
:legend-formatter="legendFormatter" | ||
:machines="machines" | ||
:label="label" | ||
:projects="projectWithClient" | ||
:measure="measure" | ||
:aliases="aliasesWithClient" | ||
/> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ValueUnit } from "../common/chart" | ||
import GroupProjectsChart from "./GroupProjectsChart.vue" | ||
interface Props { | ||
label: string | ||
measure: string | string[] | ||
projects: string[] | ||
machines?: string[] | null | ||
valueUnit?: ValueUnit | ||
legendFormatter?: (name: string) => string | ||
aliases?: string[] | null | ||
} | ||
const { label, measure, projects, machines = null, valueUnit = "ms", legendFormatter = (name: string) => name, aliases = null } = defineProps<Props>() | ||
const projectWithClient = [...projects, ...projects.map((project) => `${project}/embeddedClient`)] | ||
const aliasesWithClient = aliases != null ? [...aliases, ...aliases] : null | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters