@odigos/ui-kit 0.0.8 → 0.0.10
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/CHANGELOG.md +28 -0
- package/lib/components/badge/index.d.ts +2 -2
- package/lib/components/data-card/index.d.ts +1 -0
- package/lib/components/data-tab/index.d.ts +2 -2
- package/lib/components/describe-row/index.d.ts +2 -2
- package/lib/components/divider/index.d.ts +2 -2
- package/lib/components/drawer/drawer-header/index.d.ts +1 -1
- package/lib/components/icon-group/index.d.ts +2 -2
- package/lib/components/icon-wrapped/index.d.ts +2 -2
- package/lib/components/interactive-table/index.d.ts +2 -2
- package/lib/components/interactive-table/row.d.ts +2 -2
- package/lib/components/notification-note/index.d.ts +2 -2
- package/lib/components/status/index.d.ts +2 -2
- package/lib/components/styled.d.ts +12 -0
- package/lib/components/warning-modal/index.d.ts +2 -2
- package/lib/components.js +5 -5
- package/lib/constants/strings/index.d.ts +1 -0
- package/lib/constants.js +1 -1
- package/lib/containers/data-flow/nodes/base-node.d.ts +2 -2
- package/lib/containers/data-flow/nodes/scroll-node.d.ts +2 -2
- package/lib/containers/destination-form/test-connection/index.d.ts +2 -2
- package/lib/containers.js +106 -115
- package/lib/functions/get-conditions-booleans/index.d.ts +2 -2
- package/lib/functions/get-containers-icons/index.d.ts +2 -2
- package/lib/functions/get-platform-icon/index.d.ts +1 -1
- package/lib/functions/get-platform-label/index.d.ts +1 -1
- package/lib/functions/get-programming-language-icon/index.d.ts +2 -2
- package/lib/functions/get-status-icon/index.d.ts +2 -2
- package/lib/functions.js +4 -4
- package/lib/hooks.js +2 -2
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +8 -0
- package/lib/icons/common/image-error-icon/index.d.ts +2 -0
- package/lib/icons/common/index.d.ts +1 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +8 -0
- package/lib/icons/overview/connections-icon/index.d.ts +2 -0
- package/lib/icons/overview/index.d.ts +1 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-plus-plus-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/c-sharp-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/dotnet-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/elixir-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/go-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/index.d.ts +17 -0
- package/lib/icons/programming-languages/java-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/kafka-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/kafka-logo/kafka-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/mysql-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nginx-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/nodejs-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/php-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/postgres-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/python-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/redis-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/ruby-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/rust-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +8 -0
- package/lib/icons/programming-languages/swift-logo/index.d.ts +2 -0
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +8 -0
- package/lib/icons.js +10 -3
- package/lib/{index-BulCzWQI.js → index-DB1gmCsH.js} +29 -31
- package/lib/{index-BJxaoI0G.js → index-D_Qn2U89.js} +8 -1
- package/lib/{index-Cu2uHOuh.js → index-DnmWFsTQ.js} +1 -0
- package/lib/{index-CKUgKtl0.js → index-Do8ODRlA.js} +60 -40
- package/lib/{index-CKD2OX24.js → index-eF2JXMVR.js} +11 -7
- package/lib/index-ixs381n-.js +466 -0
- package/lib/types/common/index.d.ts +3 -3
- package/lib/types/connection/index.d.ts +3 -3
- package/lib/types.js +9 -9
- package/lib/{useSourceSelectionFormData-BY6B70Kf.js → useSourceSelectionFormData-CxdOP9FT.js} +4 -4
- package/package.json +10 -10
- package/lib/index-DLKEpJJm.js +0 -53
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { STATUS_TYPE, type Condition } from '@/types';
|
|
2
2
|
export declare const getConditionsBooleans: (conditions: Condition[]) => {
|
|
3
3
|
hasErrors: boolean;
|
|
4
4
|
hasWarnings: boolean;
|
|
5
5
|
hasDisableds: boolean;
|
|
6
6
|
hasLoadings: boolean;
|
|
7
|
-
priorotizedStatus:
|
|
7
|
+
priorotizedStatus: STATUS_TYPE | undefined;
|
|
8
8
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Source } from '@/types';
|
|
2
|
-
export declare const getContainersIcons: (containers: Source["containers"]) =>
|
|
1
|
+
import type { Source, SVG } from '@/types';
|
|
2
|
+
export declare const getContainersIcons: (containers: Source["containers"]) => SVG[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PLATFORM_TYPE, type SVG } from '@/types';
|
|
2
|
-
export declare const getPlatformIcon: (type
|
|
2
|
+
export declare const getPlatformIcon: (type?: PLATFORM_TYPE) => SVG;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PLATFORM_TYPE } from '@/types';
|
|
2
|
-
export declare const getPlatformLabel: (type
|
|
2
|
+
export declare const getPlatformLabel: (type?: PLATFORM_TYPE) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PROGRAMMING_LANGUAGES } from '@/types';
|
|
2
|
-
export declare const getProgrammingLanguageIcon: (language: PROGRAMMING_LANGUAGES) =>
|
|
1
|
+
import { PROGRAMMING_LANGUAGES, type SVG } from '@/types';
|
|
2
|
+
export declare const getProgrammingLanguageIcon: (language: PROGRAMMING_LANGUAGES) => SVG;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const getStatusIcon: (type:
|
|
1
|
+
import { STATUS_TYPE, type SVG } from '@/types';
|
|
2
|
+
export declare const getStatusIcon: (type: STATUS_TYPE, theme: Record<"text", Record<STATUS_TYPE, string>>) => SVG;
|
package/lib/functions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { c as capitalizeFirstLetter, f as flattenObjectKeys, g as getMonitorIcon, a as getProgrammingLanguageIcon, b as getStatusIcon, m as mapConditions, p as parseJsonStringToPrettyString, r as removeEmptyValuesFromObject, s as safeJsonStringify, d as splitCamelString } from './index-
|
|
2
|
-
export { c as compareCondition, f as filterActions, a as filterDestinations, b as filterSources, d as formatBytes, g as getConditionsBooleans, h as getContainersIcons, e as getContainersInstrumentedCount, i as getEntityIcon, j as getEntityLabel, k as getMetricForEntity, l as getPlatformIcon, m as getPlatformLabel, n as getValueForRange, o as isOverTime, s as sleep } from './index-
|
|
1
|
+
export { c as capitalizeFirstLetter, f as flattenObjectKeys, g as getMonitorIcon, a as getProgrammingLanguageIcon, b as getStatusIcon, m as mapConditions, p as parseJsonStringToPrettyString, r as removeEmptyValuesFromObject, s as safeJsonStringify, d as splitCamelString } from './index-DB1gmCsH.js';
|
|
2
|
+
export { c as compareCondition, f as filterActions, a as filterDestinations, b as filterSources, d as formatBytes, g as getConditionsBooleans, h as getContainersIcons, e as getContainersInstrumentedCount, i as getEntityIcon, j as getEntityLabel, k as getMetricForEntity, l as getPlatformIcon, m as getPlatformLabel, n as getValueForRange, o as isOverTime, s as sleep } from './index-eF2JXMVR.js';
|
|
3
3
|
import { INSTRUMENTATION_RULE_TYPE, ENTITY_TYPES } from './types.js';
|
|
4
4
|
export { g as getActionIcon, a as getInstrumentationRuleIcon } from './index-BumPE6cF.js';
|
|
5
5
|
export { k as getEntityId, l as isTimeElapsed } from './index-DIcomki-.js';
|
|
@@ -7,9 +7,9 @@ export { g as getIdFromSseTarget } from './index-BFct3S32.js';
|
|
|
7
7
|
export { i as isEmpty, s as safeJsonParse } from './index-BZS1ijMm.js';
|
|
8
8
|
import 'react';
|
|
9
9
|
import 'styled-components';
|
|
10
|
-
import './index-DLKEpJJm.js';
|
|
11
|
-
import './theme.js';
|
|
12
10
|
import './index-BGlk5VhF.js';
|
|
11
|
+
import './theme.js';
|
|
12
|
+
import './index-ixs381n-.js';
|
|
13
13
|
import './index-BjJpYtF1.js';
|
|
14
14
|
|
|
15
15
|
const cleanObjectEmptyStringsValues = (obj) => {
|
package/lib/hooks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { u as useActionFormData, a as useClickNode, b as useClickNotification, c as useDestinationFormData, d as useSourceFormData, e as useSourceSelectionFormData } from './useSourceSelectionFormData-
|
|
1
|
+
export { u as useActionFormData, a as useClickNode, b as useClickNotification, c as useDestinationFormData, d as useSourceFormData, e as useSourceSelectionFormData } from './useSourceSelectionFormData-CxdOP9FT.js';
|
|
2
2
|
export { u as useContainerSize, a as useCopy, b as useGenericForm, c as useInstrumentationRuleFormData, d as useKeyDown, e as useOnClickOutside, f as useTimeAgo, g as useTransition } from './useTransition-Dfxjcy-C.js';
|
|
3
3
|
import './types.js';
|
|
4
4
|
import 'react';
|
|
@@ -9,5 +9,5 @@ import './index-CZe2VX28.js';
|
|
|
9
9
|
import './index-BumPE6cF.js';
|
|
10
10
|
import './index-BGlk5VhF.js';
|
|
11
11
|
import './theme.js';
|
|
12
|
-
import './index-
|
|
12
|
+
import './index-DnmWFsTQ.js';
|
|
13
13
|
import './index-BFct3S32.js';
|
|
@@ -7,6 +7,7 @@ export * from './edit-icon/index';
|
|
|
7
7
|
export * from './extend-arrow-icon/index';
|
|
8
8
|
export * from './filter-icon/index';
|
|
9
9
|
export * from './folder-icon/index';
|
|
10
|
+
export * from './image-error-icon/index';
|
|
10
11
|
export * from './key-icon/index';
|
|
11
12
|
export * from './list-icon/index';
|
|
12
13
|
export * from './no-data-icon/index';
|
package/lib/icons/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './overview-icon/index';
|
|
2
2
|
export * from './service-map-icon/index';
|
|
3
3
|
export * from './trace-view-icon/index';
|
|
4
|
+
export * from './connections-icon/index';
|
|
4
5
|
export * from './actions-icon/index';
|
|
5
6
|
export * from './destinations-icon/index';
|
|
6
7
|
export * from './rules-icon/index';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './c-plus-plus-logo';
|
|
2
|
+
export * from './c-sharp-logo';
|
|
3
|
+
export * from './dotnet-logo';
|
|
4
|
+
export * from './elixir-logo';
|
|
5
|
+
export * from './go-logo';
|
|
6
|
+
export * from './java-logo';
|
|
7
|
+
export * from './kafka-logo';
|
|
8
|
+
export * from './mysql-logo';
|
|
9
|
+
export * from './nginx-logo';
|
|
10
|
+
export * from './nodejs-logo';
|
|
11
|
+
export * from './php-logo';
|
|
12
|
+
export * from './postgres-logo';
|
|
13
|
+
export * from './python-logo';
|
|
14
|
+
export * from './redis-logo';
|
|
15
|
+
export * from './ruby-logo';
|
|
16
|
+
export * from './rust-logo';
|
|
17
|
+
export * from './swift-logo';
|
package/lib/icons.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { A as AddClusterInfoIcon, C as CodeAttributesIcon, D as DeleteAttributeIcon, K as K8sLogo, O as OdigosLogo, a as PayloadCollectionIcon, P as PiiMaskingIcon, R as RenameAttributeIcon, S as SamplerIcon } from './index-BGlk5VhF.js';
|
|
2
2
|
export { C as CrossCircledIcon, E as EditIcon, F as FilterIcon, a as FolderIcon, K as KeyIcon, N as NotificationIcon, O as OdigosLogoText, b as OverviewIcon, S as SlackLogo, T as TerminalIcon } from './index-3KUV6Vlt.js';
|
|
3
|
-
export { A as ArrowIcon, f as CheckIcon, C as CodeIcon, a as CopyIcon, g as CrossIcon, E as ExtendArrowIcon, d as EyeClosedIcon, e as EyeOpenIcon, L as ListIcon, M as MinusIcon, N as NoDataIcon, b as NotebookIcon, P as PlusIcon, S as SearchIcon, c as SortArrowsIcon, T as TrashIcon, X as XIcon } from './index-
|
|
3
|
+
export { A as ArrowIcon, f as CheckIcon, C as CodeIcon, a as CopyIcon, g as CrossIcon, E as ExtendArrowIcon, d as EyeClosedIcon, e as EyeOpenIcon, I as ImageErrorIcon, L as ListIcon, M as MinusIcon, N as NoDataIcon, b as NotebookIcon, P as PlusIcon, S as SearchIcon, c as SortArrowsIcon, T as TrashIcon, X as XIcon } from './index-D_Qn2U89.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Theme from './theme.js';
|
|
6
6
|
export { A as ActionsIcon, D as DestinationsIcon, R as RulesIcon, S as SourcesIcon, V as VmLogo } from './index-BjJpYtF1.js';
|
|
7
|
-
export { C as CheckCircledIcon, E as ErrorTriangleIcon, I as InfoIcon, L as LogsIcon,
|
|
7
|
+
export { C as CPlusPlusLogo, d as CSharpLogo, i as CheckCircledIcon, D as DotnetLogo, E as ElixirLogo, h as ErrorTriangleIcon, G as GoLogo, I as InfoIcon, J as JavaLogo, K as KafkaLogo, L as LogsIcon, g as MetricsIcon, M as MysqlLogo, N as NginxLogo, f as NodejsLogo, c as PhpLogo, P as PostgresLogo, e as PythonLogo, R as RedisLogo, b as RubyLogo, a as RustLogo, S as SwiftLogo, T as TracesIcon, W as WarningTriangleIcon } from './index-ixs381n-.js';
|
|
8
8
|
import './index-DIcomki-.js';
|
|
9
9
|
import './types.js';
|
|
10
10
|
import 'styled-components';
|
|
@@ -65,6 +65,13 @@ const TraceViewIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
65
65
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M2.66666 8.61719H6.66666M2.66666 12.6172H6.66666M2.66666 4.61719H13.3333M14 12.9505L13.0809 12.0315M13.0809 12.0315C13.4438 11.6686 13.6667 11.1686 13.6667 10.6172C13.6667 9.51147 12.7724 8.61719 11.6667 8.61719C10.5609 8.61719 9.66666 9.51147 9.66666 10.6172C9.66666 11.7229 10.5609 12.6172 11.6667 12.6172C12.2181 12.6172 12.7181 12.3943 13.0809 12.0315Z' })));
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
const ConnectionsIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
69
|
+
const theme = Theme.useTheme();
|
|
70
|
+
const fill = f || theme.text.secondary;
|
|
71
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
72
|
+
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M2 12H5.27924C5.70967 12 6.09181 11.7246 6.22792 11.3162L9 3L15 21L17.7721 12.6838C17.9082 12.2754 18.2903 12 18.7208 12H22' })));
|
|
73
|
+
};
|
|
74
|
+
|
|
68
75
|
const ErrorRoundIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
69
76
|
const theme = Theme.useTheme();
|
|
70
77
|
const fill = f || theme.text.error;
|
|
@@ -72,4 +79,4 @@ const ErrorRoundIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
72
79
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M7 8.33673V6.00339M7 10.3055V10.3061M12.25 7.97266C12.25 10.8722 9.89949 13.2227 7 13.2227C4.1005 13.2227 1.75 10.8721 1.75 7.97265C1.75 5.07316 4.10051 2.72266 7 2.72266C9.8995 2.72266 12.25 5.07316 12.25 7.97266Z' })));
|
|
73
80
|
};
|
|
74
81
|
|
|
75
|
-
export { CodeBracketsIcon, CommandIcon, ErrorRoundIcon, LightOffIcon, LightOnIcon, MoonIcon, ServiceMapIcon, SunIcon, TraceViewIcon };
|
|
82
|
+
export { CodeBracketsIcon, CommandIcon, ConnectionsIcon, ErrorRoundIcon, LightOffIcon, LightOnIcon, MoonIcon, ServiceMapIcon, SunIcon, TraceViewIcon };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PROGRAMMING_LANGUAGES, SIGNAL_TYPE,
|
|
1
|
+
import { PROGRAMMING_LANGUAGES, SIGNAL_TYPE, STATUS_TYPE } from './types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import './index-DIcomki-.js';
|
|
4
4
|
import 'styled-components';
|
|
5
|
-
import { T as TracesIcon, M as MetricsIcon, L as LogsIcon, I as InfoIcon, W as WarningTriangleIcon, E as ErrorTriangleIcon, C as CheckCircledIcon } from './index-DLKEpJJm.js';
|
|
6
5
|
import { O as OdigosLogo } from './index-BGlk5VhF.js';
|
|
6
|
+
import { K as KafkaLogo, R as RedisLogo, P as PostgresLogo, N as NginxLogo, M as MysqlLogo, E as ElixirLogo, S as SwiftLogo, a as RustLogo, b as RubyLogo, c as PhpLogo, C as CPlusPlusLogo, d as CSharpLogo, D as DotnetLogo, e as PythonLogo, f as NodejsLogo, G as GoLogo, J as JavaLogo, T as TracesIcon, g as MetricsIcon, L as LogsIcon, I as InfoIcon, W as WarningTriangleIcon, h as ErrorTriangleIcon, i as CheckCircledIcon } from './index-ixs381n-.js';
|
|
7
7
|
|
|
8
8
|
const capitalizeFirstLetter = (string) => {
|
|
9
9
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
@@ -72,31 +72,29 @@ const flattenObjectKeys = (obj, prefix = '', result = {}) => {
|
|
|
72
72
|
};
|
|
73
73
|
|
|
74
74
|
const getProgrammingLanguageIcon = (language) => {
|
|
75
|
-
// const BASE_URL = 'https://d1n7d4xz7fr8b4.cloudfront.net/'
|
|
76
|
-
const BASE_URL = 'https://odigos-sources.s3.us-east-1.amazonaws.com/';
|
|
77
75
|
const LOGOS = {
|
|
78
|
-
[PROGRAMMING_LANGUAGES.JAVA]:
|
|
79
|
-
[PROGRAMMING_LANGUAGES.GO]:
|
|
80
|
-
[PROGRAMMING_LANGUAGES.JAVASCRIPT]:
|
|
81
|
-
[PROGRAMMING_LANGUAGES.PYTHON]:
|
|
82
|
-
[PROGRAMMING_LANGUAGES.DOTNET]:
|
|
83
|
-
[PROGRAMMING_LANGUAGES.CSHARP]:
|
|
84
|
-
[PROGRAMMING_LANGUAGES.CPLUSPLUS]:
|
|
85
|
-
[PROGRAMMING_LANGUAGES.PHP]:
|
|
86
|
-
[PROGRAMMING_LANGUAGES.RUBY]:
|
|
87
|
-
[PROGRAMMING_LANGUAGES.RUST]:
|
|
88
|
-
[PROGRAMMING_LANGUAGES.SWIFT]:
|
|
89
|
-
[PROGRAMMING_LANGUAGES.ELIXIR]:
|
|
90
|
-
[PROGRAMMING_LANGUAGES.MYSQL]:
|
|
91
|
-
[PROGRAMMING_LANGUAGES.NGINX]:
|
|
92
|
-
[PROGRAMMING_LANGUAGES.POSTGRES]:
|
|
93
|
-
[PROGRAMMING_LANGUAGES.REDIS]:
|
|
94
|
-
[PROGRAMMING_LANGUAGES.KAFKA]:
|
|
95
|
-
[PROGRAMMING_LANGUAGES.IGNORED]:
|
|
96
|
-
[PROGRAMMING_LANGUAGES.UNKNOWN]:
|
|
97
|
-
[PROGRAMMING_LANGUAGES.PROCESSING]:
|
|
98
|
-
[PROGRAMMING_LANGUAGES.NO_CONTAINERS]:
|
|
99
|
-
[PROGRAMMING_LANGUAGES.NO_RUNNING_PODS]:
|
|
76
|
+
[PROGRAMMING_LANGUAGES.JAVA]: JavaLogo,
|
|
77
|
+
[PROGRAMMING_LANGUAGES.GO]: GoLogo,
|
|
78
|
+
[PROGRAMMING_LANGUAGES.JAVASCRIPT]: NodejsLogo,
|
|
79
|
+
[PROGRAMMING_LANGUAGES.PYTHON]: PythonLogo,
|
|
80
|
+
[PROGRAMMING_LANGUAGES.DOTNET]: DotnetLogo,
|
|
81
|
+
[PROGRAMMING_LANGUAGES.CSHARP]: CSharpLogo,
|
|
82
|
+
[PROGRAMMING_LANGUAGES.CPLUSPLUS]: CPlusPlusLogo,
|
|
83
|
+
[PROGRAMMING_LANGUAGES.PHP]: PhpLogo,
|
|
84
|
+
[PROGRAMMING_LANGUAGES.RUBY]: RubyLogo,
|
|
85
|
+
[PROGRAMMING_LANGUAGES.RUST]: RustLogo,
|
|
86
|
+
[PROGRAMMING_LANGUAGES.SWIFT]: SwiftLogo,
|
|
87
|
+
[PROGRAMMING_LANGUAGES.ELIXIR]: ElixirLogo,
|
|
88
|
+
[PROGRAMMING_LANGUAGES.MYSQL]: MysqlLogo,
|
|
89
|
+
[PROGRAMMING_LANGUAGES.NGINX]: NginxLogo,
|
|
90
|
+
[PROGRAMMING_LANGUAGES.POSTGRES]: PostgresLogo,
|
|
91
|
+
[PROGRAMMING_LANGUAGES.REDIS]: RedisLogo,
|
|
92
|
+
[PROGRAMMING_LANGUAGES.KAFKA]: KafkaLogo,
|
|
93
|
+
[PROGRAMMING_LANGUAGES.IGNORED]: OdigosLogo, // TODO: good icon
|
|
94
|
+
[PROGRAMMING_LANGUAGES.UNKNOWN]: OdigosLogo, // TODO: good icon
|
|
95
|
+
[PROGRAMMING_LANGUAGES.PROCESSING]: OdigosLogo, // TODO: good icon
|
|
96
|
+
[PROGRAMMING_LANGUAGES.NO_CONTAINERS]: OdigosLogo, // TODO: good icon
|
|
97
|
+
[PROGRAMMING_LANGUAGES.NO_RUNNING_PODS]: OdigosLogo, // TODO: good icon
|
|
100
98
|
};
|
|
101
99
|
return LOGOS[language];
|
|
102
100
|
};
|
|
@@ -112,11 +110,11 @@ const getMonitorIcon = (type) => {
|
|
|
112
110
|
|
|
113
111
|
const getStatusIcon = (type, theme) => {
|
|
114
112
|
const LOGOS = {
|
|
115
|
-
[
|
|
116
|
-
[
|
|
117
|
-
[
|
|
118
|
-
[
|
|
119
|
-
[
|
|
113
|
+
[STATUS_TYPE.SUCCESS]: (props) => CheckCircledIcon({ fill: theme.text[type], ...props }),
|
|
114
|
+
[STATUS_TYPE.ERROR]: (props) => ErrorTriangleIcon({ fill: theme.text[type], ...props }),
|
|
115
|
+
[STATUS_TYPE.WARNING]: (props) => WarningTriangleIcon({ fill: theme.text[type], ...props }),
|
|
116
|
+
[STATUS_TYPE.INFO]: (props) => InfoIcon({ fill: theme.text[type], ...props }),
|
|
117
|
+
[STATUS_TYPE.DEFAULT]: (props) => OdigosLogo({ fill: theme.text[type], ...props }),
|
|
120
118
|
};
|
|
121
119
|
return LOGOS[type];
|
|
122
120
|
};
|
|
@@ -29,6 +29,13 @@ const ExtendArrowIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
29
29
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4 5.06934C4.53103 5.80028 5.15354 6.45498 5.85106 7.01644C5.93869 7.08697 6.06131 7.08697 6.14894 7.01644C6.84646 6.45498 7.46897 5.80028 8 5.06934' })));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
const ImageErrorIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
33
|
+
const theme = Theme.useTheme();
|
|
34
|
+
const fill = f || theme.text.secondary;
|
|
35
|
+
return (React.createElement("svg", { width: size, height: size, viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', fill: 'none', style: { transform: `rotate(${rotate}deg)` }, onClick: onClick },
|
|
36
|
+
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M17.2 21.0002L19.6 18.6002M19.6 18.6002L22 16.2002M19.6 18.6002L17.2 16.2002M19.6 18.6002L22 21.0002M22 12.1944V11C22 10.6449 22 10.3123 21.9989 10M13.1992 21H10C9.24401 21 8.59006 21 8.01712 20.9893M21.9989 10H21C19.607 10 18.9104 10 18.324 10.0603C12.9031 10.6176 8.61758 14.9031 8.06029 20.324C8.03963 20.5249 8.02605 20.7388 8.01712 20.9893M21.9989 10C21.9912 7.84993 21.9309 6.66397 21.455 5.73005C20.9757 4.78924 20.2108 4.02433 19.27 3.54497C18.2004 3 16.8003 3 14 3H10C7.19974 3 5.79961 3 4.73005 3.54497C3.78924 4.02433 3.02433 4.78924 2.54497 5.73005C2 6.79961 2 8.19974 2 11V13C2 15.8003 2 17.2004 2.54497 18.27C3.02433 19.2108 3.78924 19.9757 4.73005 20.455C5.51086 20.8529 6.46784 20.9603 8.01712 20.9893M7.5 9.5C6.94772 9.5 6.5 9.05228 6.5 8.5C6.5 7.94772 6.94772 7.5 7.5 7.5C8.05228 7.5 8.5 7.94772 8.5 8.5C8.5 9.05228 8.05228 9.5 7.5 9.5Z' })));
|
|
37
|
+
};
|
|
38
|
+
|
|
32
39
|
const ListIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
33
40
|
const theme = Theme.useTheme();
|
|
34
41
|
const fill = f || theme.text.secondary;
|
|
@@ -128,4 +135,4 @@ const CrossIcon = ({ size = 16, fill: f, rotate = 0, onClick }) => {
|
|
|
128
135
|
React.createElement("path", { stroke: fill, strokeLinecap: 'round', strokeLinejoin: 'round', d: 'M4 12L8 8M8 8L12 4M8 8L4 4M8 8L12 12' })));
|
|
129
136
|
};
|
|
130
137
|
|
|
131
|
-
export { ArrowIcon as A, CodeIcon as C, ExtendArrowIcon as E, ListIcon as L, MinusIcon as M, NoDataIcon as N, PlusIcon as P, SearchIcon as S, TrashIcon as T, XIcon as X, CopyIcon as a, NotebookIcon as b, SortArrowsIcon as c, EyeClosedIcon as d, EyeOpenIcon as e, CheckIcon as f, CrossIcon as g };
|
|
138
|
+
export { ArrowIcon as A, CodeIcon as C, ExtendArrowIcon as E, ImageErrorIcon as I, ListIcon as L, MinusIcon as M, NoDataIcon as N, PlusIcon as P, SearchIcon as S, TrashIcon as T, XIcon as X, CopyIcon as a, NotebookIcon as b, SortArrowsIcon as c, EyeClosedIcon as d, EyeOpenIcon as e, CheckIcon as f, CrossIcon as g };
|
|
@@ -39,6 +39,7 @@ const DISPLAY_TITLES = {
|
|
|
39
39
|
DETECTED_CONTAINERS: 'Detected Containers',
|
|
40
40
|
DETECTED_CONTAINERS_DESCRIPTION: 'The system automatically instruments the containers it detects with a supported programming language.',
|
|
41
41
|
CONTAINER_NAME: 'Container Name',
|
|
42
|
+
FILTERED_COUNT_TOOLTIP: 'Represents filtered amount, out of total amount',
|
|
42
43
|
};
|
|
43
44
|
|
|
44
45
|
export { DISPLAY_TITLES as D, FORM_ALERTS as F };
|