ydb-embedded-ui 4.24.0 → 4.26.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/README.md +39 -0
- package/dist/components/BasicNodeViewer/BasicNodeViewer.scss +3 -11
- package/dist/components/CircularProgressBar/CircularProgressBar.scss +4 -4
- package/dist/components/DateRange/DateRange.scss +3 -3
- package/dist/components/DiagnosticCard/DiagnosticCard.scss +4 -4
- package/dist/components/Divider/Divider.scss +1 -1
- package/dist/components/EmptyState/EmptyState.scss +8 -9
- package/dist/components/EntityStatus/EntityStatus.scss +19 -29
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.tsx +2 -2
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +1 -4
- package/dist/components/Fullscreen/Fullscreen.scss +2 -9
- package/dist/components/Icon/Icon.tsx +1 -5
- package/dist/components/InfoViewer/InfoViewer.scss +6 -6
- package/dist/components/LabelWithPopover/LabelWithPopover.tsx +3 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.tsx +2 -2
- package/dist/components/PoolBar/PoolBar.scss +6 -6
- package/dist/components/PoolUsage/PoolUsage.scss +15 -17
- package/dist/components/ProgressViewer/ProgressViewer.scss +17 -16
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +3 -3
- package/dist/components/SpeedMultiMeter/SpeedMultiMeter.scss +5 -5
- package/dist/components/SpeedMultiMeter/SpeedMultiMeter.tsx +12 -13
- package/dist/components/SplitPane/SplitPane.scss +5 -5
- package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
- package/dist/components/Tablet/Tablet.scss +10 -10
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +13 -13
- package/dist/components/Tag/Tag.scss +3 -3
- package/dist/components/TruncatedQuery/TruncatedQuery.scss +1 -1
- package/dist/components/UsageLabel/UsageLabel.scss +2 -2
- package/dist/components/UsageLabel/UsageLabel.tsx +1 -1
- package/dist/components/VirtualTable/VirtualTable.scss +3 -3
- package/dist/containers/App/App.scss +20 -24
- package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -4
- package/dist/containers/Authentication/Authentication.scss +4 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -6
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +1 -1
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss +3 -3
- package/dist/containers/Cluster/VersionsBar/VersionsBar.tsx +1 -1
- package/dist/containers/Header/Header.scss +1 -1
- package/dist/containers/Heatmap/Heatmap.scss +3 -5
- package/dist/containers/Heatmap/Histogram/Histogram.scss +6 -6
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +10 -13
- package/dist/containers/Node/NodeStructure/Pdisk.tsx +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +1 -18
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +23 -23
- package/dist/containers/Storage/PDisk/PDisk.scss +4 -4
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.tsx +1 -1
- package/dist/containers/Storage/Storage.scss +1 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.scss +1 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +7 -6
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.scss +1 -1
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.tsx +1 -1
- package/dist/containers/Tablet/Tablet.scss +5 -5
- package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -3
- package/dist/containers/Tenant/Acl/Acl.scss +1 -15
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +0 -4
- package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +5 -4
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -6
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.tsx +11 -79
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +8 -10
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +8 -8
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +1 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +12 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +1 -36
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +3 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +7 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -53
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.scss +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +4 -8
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +3 -6
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +2 -5
- package/dist/containers/Tenant/Query/Issues/Issues.scss +11 -14
- package/dist/containers/Tenant/Query/Preview/Preview.scss +3 -7
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.tsx +5 -12
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -10
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +3 -9
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +3 -25
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +15 -40
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +5 -5
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +3 -3
- package/dist/containers/Tenant/Query/i18n/en.json +0 -2
- package/dist/containers/Tenant/Query/i18n/ru.json +0 -2
- package/dist/containers/Tenant/Tenant.scss +1 -2
- package/dist/containers/Tenant/utils/schemaActions.ts +11 -18
- package/dist/containers/Tenant/utils/schemaControls.tsx +2 -2
- package/dist/containers/UserSettings/Setting.tsx +5 -1
- package/dist/containers/UserSettings/i18n/en.json +1 -7
- package/dist/containers/UserSettings/i18n/ru.json +1 -7
- package/dist/containers/UserSettings/settings.ts +1 -19
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -3
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -1
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +1 -1
- package/dist/index.tsx +1 -0
- package/dist/services/api.ts +1 -0
- package/dist/store/reducers/settings/settings.ts +0 -10
- package/dist/styles/mixins.scss +37 -35
- package/dist/styles/themes/dark-hc.scss +296 -0
- package/dist/styles/themes/dark.scss +297 -0
- package/dist/styles/themes/light-hc.scss +289 -0
- package/dist/styles/themes/light.scss +291 -0
- package/dist/styles/themes.scss +73 -0
- package/dist/utils/constants.ts +0 -11
- package/dist/utils/hooks/useQueryModes.ts +3 -32
- package/dist/utils/query.ts +0 -4
- package/package.json +7 -6
- package/dist/containers/App/TipPopup/TipPopup.js +0 -66
- package/dist/containers/App/TipPopup/TipPopup.scss +0 -46
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Details/Details.tsx +0 -64
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Details/index.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Healthcheck.scss +0 -137
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Healthcheck.tsx +0 -92
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Preview/Preview.tsx +0 -82
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Preview/index.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/index.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/OldTenantOverview.tsx +0 -155
- package/dist/utils/hooks/i18n/en.json +0 -3
- package/dist/utils/hooks/i18n/index.ts +0 -11
- package/dist/utils/hooks/i18n/ru.json +0 -3
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
max-height: 100%;
|
11
11
|
|
12
|
-
background-color: var(--
|
12
|
+
background-color: var(--g-color-base-background);
|
13
13
|
|
14
14
|
&__table-content {
|
15
15
|
overflow: auto;
|
@@ -28,7 +28,7 @@
|
|
28
28
|
width: 100%;
|
29
29
|
padding: 10px 0;
|
30
30
|
|
31
|
-
background-color: var(--
|
31
|
+
background-color: var(--g-color-base-background);
|
32
32
|
}
|
33
33
|
&__loader {
|
34
34
|
display: flex;
|
@@ -9,8 +9,7 @@
|
|
9
9
|
max-width: 1305px;
|
10
10
|
height: 100%;
|
11
11
|
|
12
|
-
|
13
|
-
line-height: var(--yc-text-body-2-line-height);
|
12
|
+
@include body-2-typography();
|
14
13
|
|
15
14
|
&__nodes-row {
|
16
15
|
display: flex;
|
@@ -36,7 +35,7 @@
|
|
36
35
|
&__left {
|
37
36
|
height: 100%;
|
38
37
|
|
39
|
-
border-right: 1px solid var(--
|
38
|
+
border-right: 1px solid var(--g-color-base-generic-accent);
|
40
39
|
}
|
41
40
|
|
42
41
|
&__placeholder {
|
@@ -74,25 +73,24 @@
|
|
74
73
|
&__nodes-title {
|
75
74
|
margin: 0 0 15px;
|
76
75
|
|
77
|
-
|
78
|
-
|
76
|
+
color: var(--g-color-text-secondary);
|
77
|
+
border-bottom: 1px solid var(--g-color-base-generic-accent);
|
79
78
|
|
80
|
-
|
81
|
-
border-bottom: 1px solid var(--yc-color-base-generic-accent);
|
79
|
+
@include body-2-typography();
|
82
80
|
}
|
83
81
|
|
84
82
|
&__link {
|
85
83
|
text-decoration: none;
|
86
84
|
|
87
|
-
color: var(--
|
85
|
+
color: var(--g-color-base-brand);
|
88
86
|
}
|
89
87
|
|
90
88
|
&__title {
|
91
89
|
margin: 20px 0;
|
92
90
|
|
93
|
-
font-size: var(--yc-text-body-1-font-size);
|
94
91
|
font-weight: 500;
|
95
|
-
|
92
|
+
|
93
|
+
@include body-1-typography();
|
96
94
|
}
|
97
95
|
|
98
96
|
&__checkbox-wrapper {
|
@@ -14,7 +14,7 @@
|
|
14
14
|
text-align: center;
|
15
15
|
text-transform: uppercase;
|
16
16
|
|
17
|
-
color: var(--
|
17
|
+
color: var(--g-color-text-complementary);
|
18
18
|
border: 1px solid transparent;
|
19
19
|
border-radius: 4px;
|
20
20
|
|
@@ -28,27 +28,27 @@
|
|
28
28
|
}
|
29
29
|
|
30
30
|
&_gray {
|
31
|
-
background: var(--
|
31
|
+
background: var(--ydb-color-status-grey);
|
32
32
|
}
|
33
33
|
|
34
34
|
&_black {
|
35
|
-
color: var(--
|
36
|
-
background-color: var(--
|
35
|
+
color: var(--g-color-text-light-primary);
|
36
|
+
background-color: var(--ydb-color-status-black);
|
37
37
|
}
|
38
38
|
|
39
39
|
&_green {
|
40
|
-
background-color: var(--
|
40
|
+
background-color: var(--ydb-color-status-green);
|
41
41
|
}
|
42
42
|
|
43
43
|
&_yellow {
|
44
|
-
background-color: var(--
|
44
|
+
background-color: var(--ydb-color-status-yellow);
|
45
45
|
}
|
46
46
|
|
47
47
|
&_red {
|
48
|
-
background-color: var(--
|
48
|
+
background-color: var(--ydb-color-status-red);
|
49
49
|
}
|
50
50
|
|
51
51
|
&:hover {
|
52
|
-
border: 1px solid var(--
|
52
|
+
border: 1px solid var(--g-color-text-primary);
|
53
53
|
}
|
54
54
|
}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
}
|
18
18
|
|
19
19
|
&__select-option_empty {
|
20
|
-
color: var(--
|
20
|
+
color: var(--g-color-text-hint);
|
21
21
|
}
|
22
22
|
|
23
23
|
&__search {
|
@@ -30,10 +30,6 @@
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
33
|
-
&__table-settings .yc-icon {
|
34
|
-
width: 20px;
|
35
|
-
}
|
36
|
-
|
37
33
|
&__table-wrapper {
|
38
34
|
overflow: auto;
|
39
35
|
@include flex-container();
|
@@ -74,35 +74,35 @@
|
|
74
74
|
|
75
75
|
&_good,
|
76
76
|
&_green {
|
77
|
-
color: var(--
|
78
|
-
background-color: var(--
|
77
|
+
color: var(--g-color-text-positive);
|
78
|
+
background-color: var(--g-color-base-positive-light);
|
79
79
|
}
|
80
80
|
&_degraded,
|
81
81
|
&_yellow {
|
82
|
-
color: var(--
|
83
|
-
background-color: var(--
|
82
|
+
color: var(--g-color-text-warning);
|
83
|
+
background-color: var(--g-color-base-warning-light);
|
84
84
|
}
|
85
85
|
|
86
86
|
&_blue {
|
87
|
-
color: var(--
|
88
|
-
background-color: var(--
|
87
|
+
color: var(--g-color-text-info);
|
88
|
+
background-color: var(--g-color-base-info-light);
|
89
89
|
}
|
90
90
|
|
91
91
|
&_emergency,
|
92
92
|
&_red {
|
93
|
-
color: var(--
|
94
|
-
background-color: var(--
|
93
|
+
color: var(--g-color-text-danger);
|
94
|
+
background-color: var(--g-color-base-danger-light);
|
95
95
|
}
|
96
96
|
&_unspecified,
|
97
97
|
&_gray,
|
98
98
|
&_grey {
|
99
|
-
color: var(--
|
100
|
-
background-color: var(--
|
99
|
+
color: var(--g-color-text-misc);
|
100
|
+
background-color: var(--g-color-base-misc-light);
|
101
101
|
}
|
102
102
|
&_maintenance_required,
|
103
103
|
&_orange {
|
104
|
-
color: var(--
|
105
|
-
background-color: var(--
|
104
|
+
color: var(--g-color-text-warning-heavy);
|
105
|
+
background-color: var(--g-color-base-warning-light);
|
106
106
|
}
|
107
107
|
}
|
108
108
|
}
|
package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss
CHANGED
@@ -1,40 +1,5 @@
|
|
1
1
|
@import '../../../../../../styles/mixins.scss';
|
2
2
|
|
3
|
-
.indicator {
|
4
|
-
width: 12px;
|
5
|
-
height: 12px;
|
6
|
-
margin-right: 4px;
|
7
|
-
|
8
|
-
border-radius: 4px;
|
9
|
-
|
10
|
-
&_good,
|
11
|
-
&_green {
|
12
|
-
background-color: var(--yc-color-base-positive-heavy);
|
13
|
-
}
|
14
|
-
&_degraded,
|
15
|
-
&_yellow {
|
16
|
-
background-color: var(--yc-color-base-warning-heavy);
|
17
|
-
}
|
18
|
-
|
19
|
-
&_blue {
|
20
|
-
background-color: var(--yc-color-base-info-heavy);
|
21
|
-
}
|
22
|
-
|
23
|
-
&_emergency,
|
24
|
-
&_red {
|
25
|
-
background: var(--yc-color-base-danger-heavy);
|
26
|
-
}
|
27
|
-
&_unspecified,
|
28
|
-
&_gray,
|
29
|
-
&_grey {
|
30
|
-
background: var(--yc-color-text-complementary);
|
31
|
-
}
|
32
|
-
&_maintenance_required,
|
33
|
-
&_orange {
|
34
|
-
background: var(--yc-color-text-warning-heavy);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
3
|
.issue-tree {
|
39
4
|
display: flex;
|
40
5
|
|
@@ -54,7 +19,7 @@
|
|
54
19
|
padding: 8px 20px;
|
55
20
|
|
56
21
|
border-radius: 4px;
|
57
|
-
background: var(--
|
22
|
+
background: var(--g-color-base-generic);
|
58
23
|
}
|
59
24
|
|
60
25
|
&__inspector {
|
@@ -21,10 +21,10 @@
|
|
21
21
|
|
22
22
|
cursor: pointer;
|
23
23
|
|
24
|
-
color: var(--
|
24
|
+
color: var(--g-color-text-link);
|
25
25
|
|
26
26
|
&:hover {
|
27
|
-
color: var(--
|
27
|
+
color: var(--g-color-text-link-hover);
|
28
28
|
}
|
29
29
|
}
|
30
30
|
&_message {
|
@@ -45,6 +45,6 @@
|
|
45
45
|
}
|
46
46
|
|
47
47
|
&__field-label {
|
48
|
-
color: var(--
|
48
|
+
color: var(--g-color-text-secondary);
|
49
49
|
}
|
50
50
|
}
|
package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss
CHANGED
@@ -20,11 +20,11 @@
|
|
20
20
|
flex-direction: column;
|
21
21
|
align-items: center;
|
22
22
|
|
23
|
-
font-size: var(--yc-text-header-1-font-size);
|
24
|
-
line-height: var(--yc-text-header-1-line-height);
|
25
23
|
text-align: center;
|
26
24
|
|
27
|
-
color: var(--
|
25
|
+
color: var(--g-color-text-secondary);
|
26
|
+
|
27
|
+
@include header-1-typography();
|
28
28
|
}
|
29
29
|
|
30
30
|
&__progress {
|
@@ -35,18 +35,18 @@
|
|
35
35
|
}
|
36
36
|
|
37
37
|
&__resources {
|
38
|
-
font-size: var(--
|
38
|
+
font-size: var(--g-text-body-1-font-size);
|
39
39
|
|
40
|
-
color: var(--
|
40
|
+
color: var(--g-color-text-secondary);
|
41
41
|
}
|
42
42
|
|
43
43
|
&_active {
|
44
44
|
#{$b}__content {
|
45
|
-
color: var(--
|
45
|
+
color: var(--g-color-text-complementary);
|
46
46
|
}
|
47
47
|
|
48
48
|
#{$b}__progress-bar-circle-bg {
|
49
|
-
stroke: var(--
|
49
|
+
stroke: var(--g-color-base-float);
|
50
50
|
}
|
51
51
|
}
|
52
52
|
}
|
@@ -33,57 +33,6 @@
|
|
33
33
|
gap: 10px;
|
34
34
|
}
|
35
35
|
|
36
|
-
&__common-info {
|
37
|
-
display: flex;
|
38
|
-
gap: 20px;
|
39
|
-
|
40
|
-
flex-direction: column;
|
41
|
-
justify-content: flex-start;
|
42
|
-
align-items: stretch;
|
43
|
-
}
|
44
|
-
|
45
|
-
&__system-tablets {
|
46
|
-
display: flex;
|
47
|
-
flex-wrap: wrap;
|
48
|
-
align-items: center;
|
49
|
-
|
50
|
-
margin-bottom: 35px;
|
51
|
-
}
|
52
|
-
|
53
|
-
&__collapse-title {
|
54
|
-
font-size: var(--yc-text-body-2-font-size);
|
55
|
-
font-weight: 500;
|
56
|
-
line-height: var(--yc-text-body-2-line-height);
|
57
|
-
}
|
58
|
-
|
59
|
-
&__section {
|
60
|
-
border-radius: 10px;
|
61
|
-
|
62
|
-
&_metrics {
|
63
|
-
.info-viewer__label {
|
64
|
-
min-width: 150px;
|
65
|
-
}
|
66
|
-
.info-viewer__value {
|
67
|
-
min-width: 100px;
|
68
|
-
}
|
69
|
-
}
|
70
|
-
|
71
|
-
&_pools {
|
72
|
-
display: grid;
|
73
|
-
grid-gap: 7px 20px;
|
74
|
-
|
75
|
-
grid-template-columns: 110px 110px;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
|
-
&__section-title {
|
80
|
-
margin-bottom: 20px;
|
81
|
-
|
82
|
-
font-size: var(--yc-text-body-2-font-size);
|
83
|
-
font-weight: 600;
|
84
|
-
line-height: var(--yc-text-body-2-line-height);
|
85
|
-
}
|
86
|
-
|
87
36
|
&__info {
|
88
37
|
position: sticky;
|
89
38
|
left: 0;
|
@@ -94,9 +43,9 @@
|
|
94
43
|
&__title {
|
95
44
|
margin-bottom: 10px;
|
96
45
|
|
97
|
-
font-size: var(--yc-text-body-2-font-size);
|
98
46
|
font-weight: 700;
|
99
|
-
|
47
|
+
|
48
|
+
@include body-2-typography();
|
100
49
|
}
|
101
50
|
|
102
51
|
&__table {
|
@@ -29,7 +29,7 @@
|
|
29
29
|
top: 19px; // centered relative to the heading
|
30
30
|
right: 5px; // centered relative to the collapsed panel
|
31
31
|
|
32
|
-
background-color: var(--
|
32
|
+
background-color: var(--g-color-base-background);
|
33
33
|
&_hidden {
|
34
34
|
visibility: hidden;
|
35
35
|
}
|
@@ -86,14 +86,10 @@
|
|
86
86
|
&__info-controls {
|
87
87
|
display: flex;
|
88
88
|
gap: 4px;
|
89
|
-
|
90
|
-
.yc-button__text {
|
91
|
-
margin: 0 6px;
|
92
|
-
}
|
93
89
|
}
|
94
90
|
|
95
91
|
&__info-action-button {
|
96
|
-
background-color: var(--
|
92
|
+
background-color: var(--g-color-base-background);
|
97
93
|
&_hidden {
|
98
94
|
display: none;
|
99
95
|
}
|
@@ -116,7 +112,7 @@
|
|
116
112
|
|
117
113
|
padding: 12px 12px 10px;
|
118
114
|
|
119
|
-
border-bottom: 1px solid var(--
|
115
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
120
116
|
}
|
121
117
|
|
122
118
|
&__info-title {
|
@@ -144,7 +140,7 @@
|
|
144
140
|
text-transform: lowercase;
|
145
141
|
|
146
142
|
border-radius: 3px;
|
147
|
-
background-color: var(--
|
143
|
+
background-color: var(--g-color-base-generic);
|
148
144
|
|
149
145
|
&_error {
|
150
146
|
padding: 3px 0;
|
@@ -5,7 +5,8 @@ import {Link} from 'react-router-dom';
|
|
5
5
|
import qs from 'qs';
|
6
6
|
import cn from 'bem-cn-lite';
|
7
7
|
|
8
|
-
import {Button,
|
8
|
+
import {Button, Tabs} from '@gravity-ui/uikit';
|
9
|
+
import {HelpPopover} from '@gravity-ui/components';
|
9
10
|
|
10
11
|
import SplitPane from '../../../components/SplitPane';
|
11
12
|
import CopyToClipboard from '../../../components/CopyToClipboard/CopyToClipboard';
|
@@ -44,8 +44,8 @@
|
|
44
44
|
height: 53px;
|
45
45
|
padding: 12px 20px;
|
46
46
|
|
47
|
-
border-bottom: 1px solid var(--
|
48
|
-
background-color: var(--
|
47
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
48
|
+
background-color: var(--g-color-base-background);
|
49
49
|
}
|
50
50
|
|
51
51
|
&__controls-right {
|
@@ -57,9 +57,6 @@
|
|
57
57
|
&__controls-left {
|
58
58
|
display: flex;
|
59
59
|
gap: 4px;
|
60
|
-
.yc-button__text {
|
61
|
-
margin: 0 6px;
|
62
|
-
}
|
63
60
|
}
|
64
61
|
&__inspector {
|
65
62
|
max-width: calc(100% - 50px);
|
@@ -81,7 +78,7 @@
|
|
81
78
|
height: 100%;
|
82
79
|
margin: 20px;
|
83
80
|
|
84
|
-
background-color: var(--
|
81
|
+
background-color: var(--g-color-base-background);
|
85
82
|
@include table-styles();
|
86
83
|
table {
|
87
84
|
width: 100% !important;
|
@@ -22,8 +22,8 @@
|
|
22
22
|
height: 53px;
|
23
23
|
padding: 12px 20px;
|
24
24
|
|
25
|
-
border-bottom: 1px solid var(--
|
26
|
-
background-color: var(--
|
25
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
26
|
+
background-color: var(--g-color-base-background);
|
27
27
|
}
|
28
28
|
&__controls-right {
|
29
29
|
display: flex;
|
@@ -34,9 +34,6 @@
|
|
34
34
|
&__controls-left {
|
35
35
|
display: flex;
|
36
36
|
gap: 4px;
|
37
|
-
.yc-button__text {
|
38
|
-
margin: 0 6px;
|
39
|
-
}
|
40
37
|
}
|
41
38
|
&__explain-canvas-container {
|
42
39
|
overflow-y: auto;
|
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
padding: 10px 0;
|
14
14
|
|
15
|
-
background-color: var(--
|
15
|
+
background-color: var(--g-color-base-background);
|
16
16
|
}
|
17
17
|
|
18
18
|
&__error-message-text {
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
text-align: left;
|
50
50
|
|
51
|
-
color: var(--
|
51
|
+
color: var(--g-color-text-secondary);
|
52
52
|
}
|
53
53
|
|
54
54
|
&__message {
|
@@ -57,9 +57,9 @@
|
|
57
57
|
margin-right: auto;
|
58
58
|
margin-left: 10px;
|
59
59
|
|
60
|
-
font-family: var(--
|
61
|
-
font-size: var(--
|
62
|
-
line-height: var(--
|
60
|
+
font-family: var(--g-font-family-monospace);
|
61
|
+
font-size: var(--g-text-code-2-font-size);
|
62
|
+
line-height: var(--g-text-header-2-line-height);
|
63
63
|
}
|
64
64
|
|
65
65
|
&__message-text {
|
@@ -79,14 +79,11 @@
|
|
79
79
|
|
80
80
|
font-size: 12px;
|
81
81
|
|
82
|
-
color: var(--
|
82
|
+
color: var(--g-color-text-complementary);
|
83
83
|
}
|
84
84
|
|
85
85
|
&__arrow-toggle {
|
86
86
|
margin-right: 5px;
|
87
|
-
.yc-button__text {
|
88
|
-
margin: 0 5px;
|
89
|
-
}
|
90
87
|
}
|
91
88
|
}
|
92
89
|
|
@@ -98,19 +95,19 @@
|
|
98
95
|
white-space: nowrap;
|
99
96
|
|
100
97
|
&_severity_fatal &__icon {
|
101
|
-
color: var(--
|
98
|
+
color: var(--g-color-text-danger);
|
102
99
|
}
|
103
100
|
|
104
101
|
&_severity_error &__icon {
|
105
|
-
color: var(--
|
102
|
+
color: var(--g-color-text-danger);
|
106
103
|
}
|
107
104
|
|
108
105
|
&_severity_warning &__icon {
|
109
|
-
color: var(--
|
106
|
+
color: var(--g-color-text-warning);
|
110
107
|
}
|
111
108
|
|
112
109
|
&_severity_info &__icon {
|
113
|
-
color: var(--
|
110
|
+
color: var(--g-color-text-info);
|
114
111
|
}
|
115
112
|
|
116
113
|
&__title {
|
@@ -118,6 +115,6 @@
|
|
118
115
|
|
119
116
|
text-transform: capitalize;
|
120
117
|
|
121
|
-
color: var(--
|
118
|
+
color: var(--g-color-text-complementary);
|
122
119
|
}
|
123
120
|
}
|
@@ -4,10 +4,6 @@
|
|
4
4
|
height: 100%;
|
5
5
|
@include query-data-table;
|
6
6
|
|
7
|
-
.yc-button__text {
|
8
|
-
margin: 0 6px;
|
9
|
-
}
|
10
|
-
|
11
7
|
&__header {
|
12
8
|
position: sticky;
|
13
9
|
top: 0;
|
@@ -19,8 +15,8 @@
|
|
19
15
|
height: 53px;
|
20
16
|
padding: 0 20px;
|
21
17
|
|
22
|
-
border-bottom: 1px solid var(--
|
23
|
-
background-color: var(--
|
18
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
19
|
+
background-color: var(--g-color-base-background);
|
24
20
|
}
|
25
21
|
|
26
22
|
&__title {
|
@@ -30,7 +26,7 @@
|
|
30
26
|
&__table-name {
|
31
27
|
margin-left: 4px;
|
32
28
|
|
33
|
-
color: var(--
|
29
|
+
color: var(--g-color-text-complementary);
|
34
30
|
}
|
35
31
|
|
36
32
|
&__controls-left {
|
@@ -9,7 +9,7 @@ import {setQueryTab} from '../../../../store/reducers/tenant/tenant';
|
|
9
9
|
import {selectQueriesHistory} from '../../../../store/reducers/executeQuery';
|
10
10
|
import {TENANT_QUERY_TABS_ID} from '../../../../store/reducers/tenant/constants';
|
11
11
|
import {useQueryModes, useTypedSelector} from '../../../../utils/hooks';
|
12
|
-
import {QUERY_MODES,
|
12
|
+
import {QUERY_MODES, QUERY_SYNTAX} from '../../../../utils/query';
|
13
13
|
import {MAX_QUERY_HEIGHT, QUERY_TABLE_SETTINGS} from '../../utils/constants';
|
14
14
|
|
15
15
|
import i18n from '../i18n';
|
@@ -31,22 +31,15 @@ function QueriesHistory({changeUserInput}: QueriesHistoryProps) {
|
|
31
31
|
const reversedHistory = [...queriesHistory].reverse();
|
32
32
|
|
33
33
|
const onQueryClick = (query: QueryInHistory) => {
|
34
|
-
let isQueryModeSet = true;
|
35
|
-
|
36
34
|
if (query.syntax === QUERY_SYNTAX.pg && queryMode !== QUERY_MODES.pg) {
|
37
|
-
|
38
|
-
QUERY_MODES.pg,
|
39
|
-
i18n('history.cannot-set-mode', {mode: QUERY_MODES_TITLES[QUERY_MODES.pg]}),
|
40
|
-
);
|
35
|
+
setQueryMode(QUERY_MODES.pg);
|
41
36
|
} else if (query.syntax !== QUERY_SYNTAX.pg && queryMode === QUERY_MODES.pg) {
|
42
37
|
// Set query mode for queries with yql syntax
|
43
|
-
|
38
|
+
setQueryMode(QUERY_MODES.script);
|
44
39
|
}
|
45
40
|
|
46
|
-
|
47
|
-
|
48
|
-
dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
|
49
|
-
}
|
41
|
+
changeUserInput({input: query.queryText});
|
42
|
+
dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
|
50
43
|
};
|
51
44
|
|
52
45
|
const columns: Column<QueryInHistory>[] = [
|
@@ -23,12 +23,11 @@ import {
|
|
23
23
|
DEFAULT_IS_QUERY_RESULT_COLLAPSED,
|
24
24
|
DEFAULT_SIZE_RESULT_PANE_KEY,
|
25
25
|
SAVED_QUERIES_KEY,
|
26
|
-
ENABLE_ADDITIONAL_QUERY_MODES,
|
27
26
|
LAST_USED_QUERY_ACTION_KEY,
|
28
27
|
QUERY_USE_MULTI_SCHEMA_KEY,
|
29
28
|
} from '../../../../utils/constants';
|
30
29
|
import {useSetting, useQueryModes} from '../../../../utils/hooks';
|
31
|
-
import {QUERY_ACTIONS
|
30
|
+
import {QUERY_ACTIONS} from '../../../../utils/query';
|
32
31
|
|
33
32
|
import {
|
34
33
|
PaneVisibilityActionTypes,
|
@@ -85,16 +84,9 @@ function QueryEditor(props) {
|
|
85
84
|
|
86
85
|
const [isResultLoaded, setIsResultLoaded] = useState(false);
|
87
86
|
const [queryMode, setQueryMode] = useQueryModes();
|
88
|
-
const [enableAdditionalQueryModes] = useSetting(ENABLE_ADDITIONAL_QUERY_MODES);
|
89
87
|
const [useMultiSchema] = useSetting(QUERY_USE_MULTI_SCHEMA_KEY);
|
90
88
|
const [lastUsedQueryAction, setLastUsedQueryAction] = useSetting(LAST_USED_QUERY_ACTION_KEY);
|
91
89
|
|
92
|
-
useEffect(() => {
|
93
|
-
if (isNewQueryMode(queryMode) && !enableAdditionalQueryModes) {
|
94
|
-
setQueryMode(QUERY_MODES.script);
|
95
|
-
}
|
96
|
-
}, [enableAdditionalQueryModes, queryMode, setQueryMode]);
|
97
|
-
|
98
90
|
useEffect(() => {
|
99
91
|
if (savedPath !== path) {
|
100
92
|
if (savedPath) {
|
@@ -470,7 +462,6 @@ function QueryEditor(props) {
|
|
470
462
|
disabled={!executeQuery.input}
|
471
463
|
onUpdateQueryMode={setQueryMode}
|
472
464
|
queryMode={queryMode}
|
473
|
-
enableAdditionalQueryModes={enableAdditionalQueryModes}
|
474
465
|
highlitedAction={lastUsedQueryAction}
|
475
466
|
/>
|
476
467
|
);
|