Compare commits
7 Commits
8522d35d90
...
bur-35
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d95dbc5b9d | ||
|
|
36276297a6 | ||
|
|
19b1eb3d8a | ||
|
|
b58b5102b2 | ||
|
|
221552104f | ||
| 0f38229ad0 | |||
| faccdf734a |
19
docker-compose.dev.yml
Normal file
19
docker-compose.dev.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
drill-ui-dev:
|
||||
container_name: container-drill-ui${branch:+-${branch}}
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
VITE_DIAGRAM_API_URL: ${VITE_DIAGRAM_API_URL}
|
||||
VITE_TOIR_LIGHT_ORIGIN: ${VITE_TOIR_LIGHT_ORIGIN}
|
||||
VITE_KEYCLOAK_URL: ${VITE_KEYCLOAK_URL}
|
||||
VITE_KEYCLOAK_REALM: ${VITE_KEYCLOAK_REALM}
|
||||
VITE_KEYCLOAK_CLIENT_ID: ${VITE_KEYCLOAK_CLIENT_ID}
|
||||
expose:
|
||||
- "80"
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
drill-ui:
|
||||
container_name: drill-ui${branch:+-${branch}}
|
||||
container_name: container-drill-ui${branch:+-${branch}}
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
|
||||
@@ -7,5 +7,10 @@ server {
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
||||
# отключаем кеширование вообще пока активная разработка
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
export type AvgPointValue = [time: number, avg: number, min: number, max: number, count: number];
|
||||
|
||||
export type TooltipParam = {
|
||||
color?: string;
|
||||
marker?: string;
|
||||
seriesName?: string;
|
||||
value?: unknown;
|
||||
|
||||
@@ -89,7 +89,7 @@ export function formatTooltip(params: unknown): string {
|
||||
const value = item.value as AvgPointValue;
|
||||
return [
|
||||
'<div class="chart-tooltip-row">',
|
||||
`<span>${item.marker ?? ''}${item.seriesName ?? ''}</span>`,
|
||||
`<span class="chart-tooltip-label" style="--chart-tooltip-marker-color:${item.color ?? 'currentColor'};">${item.seriesName ?? ''}</span>`,
|
||||
'<strong>',
|
||||
`min ${formatChartValue(value[2])} · avg ${formatChartValue(value[1])} · max ${formatChartValue(value[3])}`,
|
||||
value[4] > 1 ? ` · ${value[4]} точек` : '',
|
||||
|
||||
@@ -45,6 +45,9 @@ export function createHistoryChartOptions({
|
||||
legend: {
|
||||
type: 'scroll',
|
||||
top: 0,
|
||||
icon: 'rect',
|
||||
itemWidth: 18,
|
||||
itemHeight: 3,
|
||||
data: legendData,
|
||||
textStyle: { color: '#cbd5e1' },
|
||||
},
|
||||
|
||||
@@ -93,7 +93,11 @@ export function createSeriesOptions(points: HistoryPoint[], index: number, label
|
||||
color,
|
||||
},
|
||||
emphasis: {
|
||||
focus: 'series',
|
||||
disabled: true,
|
||||
lineStyle: {
|
||||
width: 1.8,
|
||||
color,
|
||||
},
|
||||
},
|
||||
z: 3,
|
||||
},
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.chart-tooltip-row span {
|
||||
.chart-tooltip-label {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #cbd5e1;
|
||||
@@ -44,6 +44,16 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.chart-tooltip-label::before {
|
||||
content: '';
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 3px;
|
||||
margin-right: 6px;
|
||||
vertical-align: middle;
|
||||
background: var(--chart-tooltip-marker-color, currentColor);
|
||||
}
|
||||
|
||||
.chart-tooltip-row strong {
|
||||
color: #f8fafc;
|
||||
font-variant-numeric: tabular-nums;
|
||||
|
||||
Reference in New Issue
Block a user