@oneuptime/common 7.0.2990 → 7.0.3010
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Models/AnalyticsModels/ExceptionInstance.ts +488 -0
- package/Models/AnalyticsModels/Index.ts +2 -0
- package/Models/AnalyticsModels/Span.ts +2 -2
- package/Models/DatabaseModels/Index.ts +4 -0
- package/Models/DatabaseModels/TelemetryException.ts +978 -0
- package/Server/API/StatusAPI.ts +63 -51
- package/Server/EnvironmentConfig.ts +3 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.ts +93 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.ts +60 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.ts +17 -0
- package/Server/Infrastructure/Postgres/SchemaMigrations/Index.ts +6 -0
- package/Server/Infrastructure/Queue.ts +36 -1
- package/Server/Infrastructure/QueueWorker.ts +2 -2
- package/Server/Services/DatabaseService.ts +4 -5
- package/Server/Services/ExceptionInstanceService.ts +11 -0
- package/Server/Services/Index.ts +5 -0
- package/Server/Services/StatusPageDomainService.ts +118 -59
- package/Server/Services/TelemetryExceptionService.ts +10 -0
- package/Server/Types/Database/Permissions/Index.ts +1 -1
- package/Server/Types/Database/UpdateByID.ts +1 -1
- package/Server/Utils/Greenlock/Greenlock.ts +331 -204
- package/Server/Utils/Logger.ts +8 -2
- package/Server/Utils/Telemetry.ts +109 -25
- package/Types/Code/CodeType.ts +1 -0
- package/Types/Database/PartialEntity.ts +14 -1
- package/Types/Date.ts +9 -1
- package/Types/Icon/IconProp.ts +2 -0
- package/Types/Permission.ts +39 -0
- package/UI/Components/ActionCard/ActionCard.tsx +66 -0
- package/UI/Components/Alerts/Alert.tsx +69 -60
- package/UI/Components/Card/Card.tsx +1 -0
- package/UI/Components/Charts/ChartGroup/ChartGroup.tsx +4 -17
- package/UI/Components/Charts/ChartLibrary/LineChart/LineChart.tsx +1005 -0
- package/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.ts +3 -0
- package/UI/Components/Charts/ChartLibrary/Utils/ChartColors.ts +117 -0
- package/UI/Components/Charts/ChartLibrary/Utils/Cx.ts +8 -0
- package/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.ts +15 -0
- package/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.ts +19 -0
- package/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.ts +17 -0
- package/UI/Components/Charts/Line/LineChart.tsx +58 -225
- package/UI/Components/Charts/Types/ChartCurve.ts +7 -0
- package/UI/Components/Charts/Types/DataPoint.ts +7 -0
- package/UI/Components/Charts/Types/SeriesPoint.ts +7 -0
- package/UI/Components/Charts/Types/SeriesPoints.ts +6 -0
- package/UI/Components/Charts/Types/XAxis/XAxis.ts +21 -0
- package/UI/Components/Charts/Types/XAxis/XAxisMaxMin.ts +3 -0
- package/UI/Components/Charts/Types/XAxis/XAxisPrecision.ts +26 -0
- package/UI/Components/Charts/Types/XAxis/XAxisType.ts +6 -0
- package/UI/Components/Charts/Types/XValue.ts +3 -0
- package/UI/Components/Charts/Types/YAxis/YAxis.ts +22 -0
- package/UI/Components/Charts/Types/YAxis/YAxisMaxMin.ts +3 -0
- package/UI/Components/Charts/Types/YAxis/YAxisType.ts +5 -0
- package/UI/Components/Charts/Types/YValue.ts +3 -0
- package/UI/Components/Charts/Utils/DataPoint.ts +188 -0
- package/UI/Components/Charts/Utils/XAxis.ts +267 -0
- package/UI/Components/Detail/Detail.tsx +6 -1
- package/UI/Components/GanttChart/Row/Row.tsx +4 -2
- package/UI/Components/GanttChart/Row/RowLabel.tsx +7 -3
- package/UI/Components/Icon/Icon.tsx +16 -0
- package/UI/Components/LogsViewer/LogsViewer.tsx +1 -1
- package/UI/Components/Types/FieldType.ts +1 -0
- package/UI/Config.ts +2 -0
- package/UI/Utils/Telemetry.ts +7 -2
- package/Utils/Crypto.ts +11 -0
- package/build/dist/Models/AnalyticsModels/ExceptionInstance.js +445 -0
- package/build/dist/Models/AnalyticsModels/ExceptionInstance.js.map +1 -0
- package/build/dist/Models/AnalyticsModels/Index.js +2 -0
- package/build/dist/Models/AnalyticsModels/Index.js.map +1 -1
- package/build/dist/Models/AnalyticsModels/Span.js +2 -2
- package/build/dist/Models/DatabaseModels/Index.js +2 -0
- package/build/dist/Models/DatabaseModels/Index.js.map +1 -1
- package/build/dist/Models/DatabaseModels/TelemetryException.js +1010 -0
- package/build/dist/Models/DatabaseModels/TelemetryException.js.map +1 -0
- package/build/dist/Server/API/StatusAPI.js +52 -44
- package/build/dist/Server/API/StatusAPI.js.map +1 -1
- package/build/dist/Server/EnvironmentConfig.js +1 -0
- package/build/dist/Server/EnvironmentConfig.js.map +1 -1
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js +38 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724610006927-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js +26 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724613666632-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js +12 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/1724659071843-MigrationName.js.map +1 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js +6 -0
- package/build/dist/Server/Infrastructure/Postgres/SchemaMigrations/Index.js.map +1 -1
- package/build/dist/Server/Infrastructure/Queue.js +20 -1
- package/build/dist/Server/Infrastructure/Queue.js.map +1 -1
- package/build/dist/Server/Infrastructure/QueueWorker.js +2 -2
- package/build/dist/Server/Infrastructure/QueueWorker.js.map +1 -1
- package/build/dist/Server/Services/DatabaseService.js.map +1 -1
- package/build/dist/Server/Services/ExceptionInstanceService.js +9 -0
- package/build/dist/Server/Services/ExceptionInstanceService.js.map +1 -0
- package/build/dist/Server/Services/Index.js +4 -0
- package/build/dist/Server/Services/Index.js.map +1 -1
- package/build/dist/Server/Services/StatusPageDomainService.js +101 -53
- package/build/dist/Server/Services/StatusPageDomainService.js.map +1 -1
- package/build/dist/Server/Services/TelemetryExceptionService.js +9 -0
- package/build/dist/Server/Services/TelemetryExceptionService.js.map +1 -0
- package/build/dist/Server/Types/Database/Permissions/Index.js.map +1 -1
- package/build/dist/Server/Utils/Greenlock/Greenlock.js +234 -157
- package/build/dist/Server/Utils/Greenlock/Greenlock.js.map +1 -1
- package/build/dist/Server/Utils/Logger.js +5 -1
- package/build/dist/Server/Utils/Logger.js.map +1 -1
- package/build/dist/Server/Utils/Telemetry.js +63 -22
- package/build/dist/Server/Utils/Telemetry.js.map +1 -1
- package/build/dist/Types/Code/CodeType.js +1 -0
- package/build/dist/Types/Code/CodeType.js.map +1 -1
- package/build/dist/Types/Database/PartialEntity.js +3 -0
- package/build/dist/Types/Database/PartialEntity.js.map +1 -1
- package/build/dist/Types/Date.js +7 -1
- package/build/dist/Types/Date.js.map +1 -1
- package/build/dist/Types/Icon/IconProp.js +2 -0
- package/build/dist/Types/Icon/IconProp.js.map +1 -1
- package/build/dist/Types/Permission.js +33 -0
- package/build/dist/Types/Permission.js.map +1 -1
- package/build/dist/UI/Components/ActionCard/ActionCard.js +27 -0
- package/build/dist/UI/Components/ActionCard/ActionCard.js.map +1 -0
- package/build/dist/UI/Components/Alerts/Alert.js +36 -45
- package/build/dist/UI/Components/Alerts/Alert.js.map +1 -1
- package/build/dist/UI/Components/Card/Card.js +1 -1
- package/build/dist/UI/Components/Card/Card.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js +4 -9
- package/build/dist/UI/Components/Charts/ChartGroup/ChartGroup.js.map +1 -1
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js +388 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/LineChart/LineChart.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js +2 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Types/ChartDataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js +88 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/ChartColors.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js +7 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/Cx.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js +7 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/GetYAxisDomain.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js +14 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/HasOnlyOneValueForKey.js.map +1 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js +14 -0
- package/build/dist/UI/Components/Charts/ChartLibrary/Utils/UseWindowOnResize.js.map +1 -0
- package/build/dist/UI/Components/Charts/Line/LineChart.js +30 -136
- package/build/dist/UI/Components/Charts/Line/LineChart.js.map +1 -1
- package/build/dist/UI/Components/Charts/Types/ChartCurve.js +8 -0
- package/build/dist/UI/Components/Charts/Types/ChartCurve.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/DataPoint.js +2 -0
- package/build/dist/UI/Components/Charts/Types/DataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoint.js +2 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoints.js +2 -0
- package/build/dist/UI/Components/Charts/Types/SeriesPoints.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js +8 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxis.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js +2 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisMaxMin.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js +27 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisPrecision.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js +7 -0
- package/build/dist/UI/Components/Charts/Types/XAxis/XAxisType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/XValue.js +2 -0
- package/build/dist/UI/Components/Charts/Types/XValue.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js +8 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxis.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js +2 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisMaxMin.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js +6 -0
- package/build/dist/UI/Components/Charts/Types/YAxis/YAxisType.js.map +1 -0
- package/build/dist/UI/Components/Charts/Types/YValue.js +2 -0
- package/build/dist/UI/Components/Charts/Types/YValue.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js +109 -0
- package/build/dist/UI/Components/Charts/Utils/DataPoint.js.map +1 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js +241 -0
- package/build/dist/UI/Components/Charts/Utils/XAxis.js.map +1 -0
- package/build/dist/UI/Components/Detail/Detail.js +5 -1
- package/build/dist/UI/Components/Detail/Detail.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Row/Row.js +2 -2
- package/build/dist/UI/Components/GanttChart/Row/Row.js.map +1 -1
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js +3 -3
- package/build/dist/UI/Components/GanttChart/Row/RowLabel.js.map +1 -1
- package/build/dist/UI/Components/Icon/Icon.js +6 -0
- package/build/dist/UI/Components/Icon/Icon.js.map +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js +1 -1
- package/build/dist/UI/Components/LogsViewer/LogsViewer.js.map +1 -1
- package/build/dist/UI/Components/Types/FieldType.js +1 -0
- package/build/dist/UI/Components/Types/FieldType.js.map +1 -1
- package/build/dist/UI/Config.js +1 -0
- package/build/dist/UI/Config.js.map +1 -1
- package/build/dist/UI/Utils/Telemetry.js +6 -3
- package/build/dist/UI/Utils/Telemetry.js.map +1 -1
- package/build/dist/Utils/Crypto.js +10 -0
- package/build/dist/Utils/Crypto.js.map +1 -0
- package/package.json +15 -13
- package/UI/Components/Charts/Bar/Bar.tsx +0 -0
- package/UI/Components/Charts/Base/BaseChart.tsx +0 -0
- package/UI/Components/Charts/Tooltip/Tooltip.tsx +0 -84
- package/build/dist/UI/Components/Charts/Bar/Bar.js +0 -2
- package/build/dist/UI/Components/Charts/Bar/Bar.js.map +0 -1
- package/build/dist/UI/Components/Charts/Base/BaseChart.js +0 -2
- package/build/dist/UI/Components/Charts/Base/BaseChart.js.map +0 -1
- package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js +0 -34
- package/build/dist/UI/Components/Charts/Tooltip/Tooltip.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Telemetry.js","sourceRoot":"","sources":["../../../../UI/Utils/Telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,gCAAgC,GACjC,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EACL,kBAAkB,EAElB,iBAAiB,GAClB,MAAM,8BA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AG,EAAE,GAAG,CAAC,UAAU,CACjB,CAAA,iCAAiC,aAAjC,iCAAiC,uBAAjC,iCAAiC,CAAE,QAAQ,EAAE,IAAG,YAAY,CAC7D,CAAC,QAAQ,EAAE;gBACZ,OAAO,EAAE,gCAAgC;aAC1C,CAAC,CACH,CACF,CAAC;YAEF,QAAQ,CAAC,QAAQ,CAAC;gBAChB,cAAc,EAAE,IAAI,kBAAkB,EAAE;aACzC,CAAC,CAAC;YAEH,wBAAwB,CAAC;gBACvB,gBAAgB,EAAE;oBAChB,IAAI,oBAAoB,EAAE;oBAC1B,IAAI,6BAA6B,EAAE;iBACpC;aACF,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Crypto.js","sourceRoot":"","sources":["../../../Utils/Crypto.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,WAAW,CAAC;AAEjC,MAAM,CAAC,OAAO,OAAO,MAAM;IAClB,MAAM,CAAC,UAAU,CAAC,IAAY;QACnC,OAAO,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IACvC,CAAC;IAEM,MAAM,CAAC,aAAa,CAAC,IAAY;QACtC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC1C,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneuptime/common",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3010",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,29 +44,29 @@
|
|
|
44
44
|
"ts-jest": "^28.0.5"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@bull-board/express": "^5.21.4",
|
|
47
48
|
"@clickhouse/client": "^0.2.10",
|
|
48
49
|
"@elastic/elasticsearch": "^8.12.1",
|
|
49
50
|
"@monaco-editor/react": "^4.4.6",
|
|
50
|
-
"@nivo/core": "^0.87.0",
|
|
51
|
-
"@nivo/line": "^0.87.0",
|
|
52
51
|
"@opentelemetry/api": "^1.9.0",
|
|
53
52
|
"@opentelemetry/api-logs": "^0.52.1",
|
|
54
|
-
"@opentelemetry/context-zone": "^1.25.
|
|
53
|
+
"@opentelemetry/context-zone": "^1.25.1",
|
|
55
54
|
"@opentelemetry/exporter-logs-otlp-http": "^0.52.1",
|
|
56
55
|
"@opentelemetry/exporter-metrics-otlp-proto": "^0.52.1",
|
|
57
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.52.
|
|
56
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.52.1",
|
|
58
57
|
"@opentelemetry/exporter-trace-otlp-proto": "^0.52.1",
|
|
59
|
-
"@opentelemetry/id-generator-aws-xray": "^1.2.
|
|
60
|
-
"@opentelemetry/instrumentation": "^0.52.
|
|
58
|
+
"@opentelemetry/id-generator-aws-xray": "^1.2.2",
|
|
59
|
+
"@opentelemetry/instrumentation": "^0.52.1",
|
|
61
60
|
"@opentelemetry/instrumentation-fetch": "^0.52.1",
|
|
62
61
|
"@opentelemetry/instrumentation-xml-http-request": "^0.52.1",
|
|
63
|
-
"@opentelemetry/resources": "^1.25.
|
|
62
|
+
"@opentelemetry/resources": "^1.25.1",
|
|
64
63
|
"@opentelemetry/sdk-logs": "^0.52.1",
|
|
65
|
-
"@opentelemetry/sdk-metrics": "^1.
|
|
64
|
+
"@opentelemetry/sdk-metrics": "^1.25.1",
|
|
66
65
|
"@opentelemetry/sdk-node": "^0.52.1",
|
|
67
|
-
"@opentelemetry/sdk-trace-node": "^1.
|
|
68
|
-
"@opentelemetry/sdk-trace-web": "^1.
|
|
69
|
-
"@opentelemetry/semantic-conventions": "^1.
|
|
66
|
+
"@opentelemetry/sdk-trace-node": "^1.25.1",
|
|
67
|
+
"@opentelemetry/sdk-trace-web": "^1.25.1",
|
|
68
|
+
"@opentelemetry/semantic-conventions": "^1.26.0",
|
|
69
|
+
"@remixicon/react": "^4.2.0",
|
|
70
70
|
"@tippyjs/react": "^4.2.6",
|
|
71
71
|
"@types/crypto-js": "^4.2.2",
|
|
72
72
|
"@types/qrcode": "^1.5.5",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"airtable": "^0.12.2",
|
|
78
78
|
"axios": "^1.7.2",
|
|
79
79
|
"bullmq": "^5.3.3",
|
|
80
|
-
"Common": "npm:@oneuptime/common@7.0.
|
|
80
|
+
"Common": "npm:@oneuptime/common@7.0.3010",
|
|
81
81
|
"cookie-parser": "^1.4.6",
|
|
82
82
|
"cors": "^2.8.5",
|
|
83
83
|
"cron-parser": "^4.8.1",
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
"react-syntax-highlighter": "^15.5.0",
|
|
119
119
|
"react-toggle": "^4.1.3",
|
|
120
120
|
"reactflow": "^11.11.4",
|
|
121
|
+
"recharts": "^2.12.7",
|
|
121
122
|
"redis-semaphore": "^5.5.1",
|
|
122
123
|
"reflect-metadata": "^0.2.2",
|
|
123
124
|
"remark-gfm": "^3.0.1",
|
|
@@ -125,6 +126,7 @@
|
|
|
125
126
|
"socket.io": "^4.7.4",
|
|
126
127
|
"socket.io-client": "^4.7.5",
|
|
127
128
|
"stripe": "^10.17.0",
|
|
129
|
+
"tailwind-merge": "^2.5.2",
|
|
128
130
|
"tippy.js": "^6.3.7",
|
|
129
131
|
"twilio": "^4.22.0",
|
|
130
132
|
"typeorm": "^0.3.20",
|
|
File without changes
|
|
File without changes
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import OneUptimeDate from "Common/Types/Date";
|
|
2
|
-
import {
|
|
3
|
-
AxisBottom,
|
|
4
|
-
AxisLeft,
|
|
5
|
-
AxisType,
|
|
6
|
-
LineChartPoint,
|
|
7
|
-
XValue,
|
|
8
|
-
YValue,
|
|
9
|
-
} from "../Line/LineChart";
|
|
10
|
-
import React, { FunctionComponent, ReactElement } from "react";
|
|
11
|
-
|
|
12
|
-
export interface ComponentProps {
|
|
13
|
-
points: Array<LineChartPoint>;
|
|
14
|
-
axisBottom: AxisBottom;
|
|
15
|
-
axisLeft: AxisLeft;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const ChartTooltip: FunctionComponent<ComponentProps> = (
|
|
19
|
-
props: ComponentProps,
|
|
20
|
-
): ReactElement => {
|
|
21
|
-
type FormatAxisValueFunction = (
|
|
22
|
-
value: XValue | YValue,
|
|
23
|
-
type: AxisType,
|
|
24
|
-
) => string;
|
|
25
|
-
|
|
26
|
-
const formatAxisValue: FormatAxisValueFunction = (
|
|
27
|
-
value: XValue | YValue,
|
|
28
|
-
type: AxisType,
|
|
29
|
-
): string => {
|
|
30
|
-
if (typeof value === "number") {
|
|
31
|
-
return value.toFixed(2);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
if (type === AxisType.Date) {
|
|
35
|
-
return OneUptimeDate.getDateAsLocalFormattedString(value, true);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (type === AxisType.Time) {
|
|
39
|
-
return OneUptimeDate.getLocalHourAndMinuteFromDate(value);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return value.toString();
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<div className="bg-white rounded-md shadow-md p-5 text-sm space-y-2">
|
|
47
|
-
{props.points.map((point: LineChartPoint, index: number) => {
|
|
48
|
-
return (
|
|
49
|
-
<div key={index} className="space-y-1">
|
|
50
|
-
<div className="font-medium flex">
|
|
51
|
-
<div>
|
|
52
|
-
<div
|
|
53
|
-
className="w-3 h-3 mr-2 mt-1 rounded-full"
|
|
54
|
-
style={{
|
|
55
|
-
backgroundColor: point.seriesColor.toString(),
|
|
56
|
-
}}
|
|
57
|
-
></div>
|
|
58
|
-
</div>
|
|
59
|
-
{point.seriesName}
|
|
60
|
-
</div>
|
|
61
|
-
<div className="flex text-gray-600 text-xs">
|
|
62
|
-
<div className="w-1/2 text-left font-medium">
|
|
63
|
-
{props.axisLeft.legend}
|
|
64
|
-
</div>
|
|
65
|
-
<div className="w-1/2 text-right">
|
|
66
|
-
{formatAxisValue(point.y.toString(), props.axisLeft.type)}
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
|
-
<div className="flex text-gray-600 text-xs">
|
|
70
|
-
<div className="w-1/2 text-left font-medium">
|
|
71
|
-
{props.axisBottom.legend}
|
|
72
|
-
</div>
|
|
73
|
-
<div className="w-1/2 text-right">
|
|
74
|
-
{formatAxisValue(point.x.toString(), props.axisBottom.type)}
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</div>
|
|
78
|
-
);
|
|
79
|
-
})}
|
|
80
|
-
</div>
|
|
81
|
-
);
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export default ChartTooltip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Bar.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Bar/Bar.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseChart.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Base/BaseChart.tsx"],"names":[],"mappings":""}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import OneUptimeDate from "Common/Types/Date";
|
|
2
|
-
import { AxisType, } from "../Line/LineChart";
|
|
3
|
-
import React from "react";
|
|
4
|
-
const ChartTooltip = (props) => {
|
|
5
|
-
const formatAxisValue = (value, type) => {
|
|
6
|
-
if (typeof value === "number") {
|
|
7
|
-
return value.toFixed(2);
|
|
8
|
-
}
|
|
9
|
-
if (type === AxisType.Date) {
|
|
10
|
-
return OneUptimeDate.getDateAsLocalFormattedString(value, true);
|
|
11
|
-
}
|
|
12
|
-
if (type === AxisType.Time) {
|
|
13
|
-
return OneUptimeDate.getLocalHourAndMinuteFromDate(value);
|
|
14
|
-
}
|
|
15
|
-
return value.toString();
|
|
16
|
-
};
|
|
17
|
-
return (React.createElement("div", { className: "bg-white rounded-md shadow-md p-5 text-sm space-y-2" }, props.points.map((point, index) => {
|
|
18
|
-
return (React.createElement("div", { key: index, className: "space-y-1" },
|
|
19
|
-
React.createElement("div", { className: "font-medium flex" },
|
|
20
|
-
React.createElement("div", null,
|
|
21
|
-
React.createElement("div", { className: "w-3 h-3 mr-2 mt-1 rounded-full", style: {
|
|
22
|
-
backgroundColor: point.seriesColor.toString(),
|
|
23
|
-
} })),
|
|
24
|
-
point.seriesName),
|
|
25
|
-
React.createElement("div", { className: "flex text-gray-600 text-xs" },
|
|
26
|
-
React.createElement("div", { className: "w-1/2 text-left font-medium" }, props.axisLeft.legend),
|
|
27
|
-
React.createElement("div", { className: "w-1/2 text-right" }, formatAxisValue(point.y.toString(), props.axisLeft.type))),
|
|
28
|
-
React.createElement("div", { className: "flex text-gray-600 text-xs" },
|
|
29
|
-
React.createElement("div", { className: "w-1/2 text-left font-medium" }, props.axisBottom.legend),
|
|
30
|
-
React.createElement("div", { className: "w-1/2 text-right" }, formatAxisValue(point.x.toString(), props.axisBottom.type)))));
|
|
31
|
-
})));
|
|
32
|
-
};
|
|
33
|
-
export default ChartTooltip;
|
|
34
|
-
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../../../../UI/Components/Charts/Tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAGL,QAAQ,GAIT,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAA0C,MAAM,OAAO,CAAC;AAQ/D,MAAM,YAAY,GAAsC,CACtD,KAAqB,EACP,EAAE;IAMhB,MAAM,eAAe,GAA4B,CAC/C,KAAsB,EACtB,IAAc,EACN,EAAE;QACV,IAAI,OAAO,KAAK,KAAK,QAAQ,E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