@perses-dev/clickhouse-plugin 0.2.0 → 0.4.0
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/README.md +1 -1
- package/__mf/css/async/1580.d3010b86.css +1 -0
- package/__mf/css/async/2341.d3010b86.css +1 -0
- package/__mf/js/{ClickHouse.f6211ab5.js → ClickHouse.fef0738b.js} +3 -3
- package/__mf/js/async/1360.33f7e672.js +10 -0
- package/__mf/js/async/1398.f2193c83.js +2 -0
- package/__mf/js/async/2226.1d4436dc.js +1 -0
- package/__mf/js/async/2652.fd27ec3f.js +101 -0
- package/__mf/js/async/{4075.598f1ee5.js → 4075.b85e5581.js} +1 -1
- package/__mf/js/async/{4238.8c8282dc.js → 4238.a8170f41.js} +1 -1
- package/__mf/js/async/4421.d9d48d4f.js +1 -0
- package/__mf/js/async/4557.aa037aea.js +2 -0
- package/__mf/js/async/4676.cae72135.js +22 -0
- package/__mf/js/async/58.c1431e49.js +2 -0
- package/__mf/js/async/6134.a0f2d3c5.js +38 -0
- package/__mf/js/async/7797.36d938e5.js +1 -0
- package/__mf/js/async/7991.11320a4d.js +7 -0
- package/__mf/js/async/__federation_expose_ClickHouseDatasource.b909c7ef.js +2 -0
- package/__mf/js/async/__federation_expose_ClickHouseLogQuery.8e9aa83b.js +20 -0
- package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.b3723b8b.js +20 -0
- package/__mf/js/{main.91d879ed.js → main.56f92cce.js} +3 -3
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/queries/click-house-log-query/ClickHouseLogQueryEditor.js +4 -15
- package/lib/cjs/queries/click-house-time-series-query/ClickHouseQueryEditor.js +4 -15
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/model/click-house-data-types.d.ts +2 -15
- package/lib/model/click-house-data-types.d.ts.map +1 -1
- package/lib/model/click-house-data-types.js.map +1 -1
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js +4 -15
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js.map +1 -1
- package/lib/queries/click-house-log-query/get-click-house-log-data.js.map +1 -1
- package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts +2 -4
- package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts.map +1 -1
- package/lib/queries/click-house-log-query/log-query-plugin-interface.js.map +1 -1
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts.map +1 -1
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js +4 -15
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js.map +1 -1
- package/mf-manifest.json +44 -104
- package/mf-stats.json +44 -106
- package/package.json +6 -15
- package/__mf/css/async/1580.6b2b0c71.css +0 -1
- package/__mf/css/async/2341.6b2b0c71.css +0 -1
- package/__mf/css/async/6759.6b2b0c71.css +0 -1
- package/__mf/js/async/2226.332707ca.js +0 -1
- package/__mf/js/async/2417.1f135170.js +0 -2
- package/__mf/js/async/2448.e42be954.js +0 -10
- package/__mf/js/async/3632.f88c5ced.js +0 -101
- package/__mf/js/async/4168.af4fa8b3.js +0 -2
- package/__mf/js/async/4368.8468ec0a.js +0 -2
- package/__mf/js/async/4421.de18bb66.js +0 -1
- package/__mf/js/async/5035.8a983cd3.js +0 -73
- package/__mf/js/async/56.9997e6f8.js +0 -1
- package/__mf/js/async/5713.92805154.js +0 -1
- package/__mf/js/async/6467.f4e5b898.js +0 -1
- package/__mf/js/async/6569.f8ee50db.js +0 -1
- package/__mf/js/async/6714.e4b5281a.js +0 -2
- package/__mf/js/async/8465.f4c53fef.js +0 -7
- package/__mf/js/async/9654.ab803765.js +0 -37
- package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js +0 -2
- package/__mf/js/async/__federation_expose_ClickHouseLogQuery.4c608fd8.js +0 -20
- package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.12307d25.js +0 -20
- package/__mf/js/async/__federation_expose_Logs.88d56eeb.js +0 -2
- package/__mf/js/async/__federation_expose_Logs.88d56eeb.js.LICENSE.txt +0 -9
- package/lib/cjs/panels/index.js +0 -30
- package/lib/cjs/panels/logs/Logs.js +0 -37
- package/lib/cjs/panels/logs/LogsComponent.js +0 -47
- package/lib/cjs/panels/logs/LogsSettingsEditor.js +0 -57
- package/lib/cjs/panels/logs/components/EmptyLogsState.js +0 -49
- package/lib/cjs/panels/logs/components/LogRow/LogDetailsTable.js +0 -71
- package/lib/cjs/panels/logs/components/LogRow/LogRow.js +0 -163
- package/lib/cjs/panels/logs/components/LogRow/LogTimestamp.js +0 -45
- package/lib/cjs/panels/logs/components/LogRow/LogsStyles.js +0 -77
- package/lib/cjs/panels/logs/components/LogRow/index.js +0 -37
- package/lib/cjs/panels/logs/components/LogsList.js +0 -44
- package/lib/cjs/panels/logs/components/VirtualizedLogsList.js +0 -60
- package/lib/cjs/panels/logs/components/hooks/useExpandedRows.js +0 -45
- package/lib/cjs/panels/logs/index.js +0 -33
- package/lib/cjs/panels/logs/logs-types.js +0 -16
- package/lib/panels/index.d.ts +0 -2
- package/lib/panels/index.d.ts.map +0 -1
- package/lib/panels/index.js +0 -15
- package/lib/panels/index.js.map +0 -1
- package/lib/panels/logs/Logs.d.ts +0 -4
- package/lib/panels/logs/Logs.d.ts.map +0 -1
- package/lib/panels/logs/Logs.js +0 -29
- package/lib/panels/logs/Logs.js.map +0 -1
- package/lib/panels/logs/LogsComponent.d.ts +0 -4
- package/lib/panels/logs/LogsComponent.d.ts.map +0 -1
- package/lib/panels/logs/LogsComponent.js +0 -34
- package/lib/panels/logs/LogsComponent.js.map +0 -1
- package/lib/panels/logs/LogsSettingsEditor.d.ts +0 -7
- package/lib/panels/logs/LogsSettingsEditor.d.ts.map +0 -1
- package/lib/panels/logs/LogsSettingsEditor.js +0 -49
- package/lib/panels/logs/LogsSettingsEditor.js.map +0 -1
- package/lib/panels/logs/components/EmptyLogsState.d.ts +0 -7
- package/lib/panels/logs/components/EmptyLogsState.d.ts.map +0 -1
- package/lib/panels/logs/components/EmptyLogsState.js +0 -36
- package/lib/panels/logs/components/EmptyLogsState.js.map +0 -1
- package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts +0 -8
- package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts.map +0 -1
- package/lib/panels/logs/components/LogRow/LogDetailsTable.js +0 -58
- package/lib/panels/logs/components/LogRow/LogDetailsTable.js.map +0 -1
- package/lib/panels/logs/components/LogRow/LogRow.d.ts +0 -14
- package/lib/panels/logs/components/LogRow/LogRow.d.ts.map +0 -1
- package/lib/panels/logs/components/LogRow/LogRow.js +0 -109
- package/lib/panels/logs/components/LogRow/LogRow.js.map +0 -1
- package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts +0 -7
- package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts.map +0 -1
- package/lib/panels/logs/components/LogRow/LogTimestamp.js +0 -32
- package/lib/panels/logs/components/LogRow/LogTimestamp.js.map +0 -1
- package/lib/panels/logs/components/LogRow/LogsStyles.d.ts +0 -22
- package/lib/panels/logs/components/LogRow/LogsStyles.d.ts.map +0 -1
- package/lib/panels/logs/components/LogRow/LogsStyles.js +0 -55
- package/lib/panels/logs/components/LogRow/LogsStyles.js.map +0 -1
- package/lib/panels/logs/components/LogRow/index.d.ts +0 -3
- package/lib/panels/logs/components/LogRow/index.d.ts.map +0 -1
- package/lib/panels/logs/components/LogRow/index.js +0 -16
- package/lib/panels/logs/components/LogRow/index.js.map +0 -1
- package/lib/panels/logs/components/LogsList.d.ts +0 -8
- package/lib/panels/logs/components/LogsList.d.ts.map +0 -1
- package/lib/panels/logs/components/LogsList.js +0 -31
- package/lib/panels/logs/components/LogsList.js.map +0 -1
- package/lib/panels/logs/components/VirtualizedLogsList.d.ts +0 -10
- package/lib/panels/logs/components/VirtualizedLogsList.d.ts.map +0 -1
- package/lib/panels/logs/components/VirtualizedLogsList.js +0 -47
- package/lib/panels/logs/components/VirtualizedLogsList.js.map +0 -1
- package/lib/panels/logs/components/hooks/useExpandedRows.d.ts +0 -6
- package/lib/panels/logs/components/hooks/useExpandedRows.d.ts.map +0 -1
- package/lib/panels/logs/components/hooks/useExpandedRows.js +0 -37
- package/lib/panels/logs/components/hooks/useExpandedRows.js.map +0 -1
- package/lib/panels/logs/index.d.ts +0 -5
- package/lib/panels/logs/index.d.ts.map +0 -1
- package/lib/panels/logs/index.js +0 -18
- package/lib/panels/logs/index.js.map +0 -1
- package/lib/panels/logs/logs-types.d.ts +0 -16
- package/lib/panels/logs/logs-types.d.ts.map +0 -1
- package/lib/panels/logs/logs-types.js +0 -15
- package/lib/panels/logs/logs-types.js.map +0 -1
- /package/__mf/js/async/{2448.e42be954.js.LICENSE.txt → 1360.33f7e672.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2417.1f135170.js.LICENSE.txt → 1398.f2193c83.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4368.8468ec0a.js.LICENSE.txt → 4557.aa037aea.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5035.8a983cd3.js.LICENSE.txt → 4676.cae72135.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6714.e4b5281a.js.LICENSE.txt → 58.c1431e49.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8465.f4c53fef.js.LICENSE.txt → 7991.11320a4d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_ClickHouseDatasource.1ef730b1.js.LICENSE.txt → __federation_expose_ClickHouseDatasource.b909c7ef.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_ClickHouseLogQuery.4c608fd8.js.LICENSE.txt → __federation_expose_ClickHouseLogQuery.8e9aa83b.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_ClickHouseTimeSeriesQuery.12307d25.js.LICENSE.txt → __federation_expose_ClickHouseTimeSeriesQuery.b3723b8b.js.LICENSE.txt} +0 -0
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// You may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "LogRow", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return LogRow;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
25
|
-
const _material = require("@mui/material");
|
|
26
|
-
const _ChevronRight = /*#__PURE__*/ _interop_require_default(require("mdi-material-ui/ChevronRight"));
|
|
27
|
-
const _LogTimestamp = require("./LogTimestamp");
|
|
28
|
-
const _LogsStyles = require("./LogsStyles");
|
|
29
|
-
const _LogDetailsTable = require("./LogDetailsTable");
|
|
30
|
-
function _interop_require_default(obj) {
|
|
31
|
-
return obj && obj.__esModule ? obj : {
|
|
32
|
-
default: obj
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
36
|
-
if (typeof WeakMap !== "function") return null;
|
|
37
|
-
var cacheBabelInterop = new WeakMap();
|
|
38
|
-
var cacheNodeInterop = new WeakMap();
|
|
39
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
40
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
41
|
-
})(nodeInterop);
|
|
42
|
-
}
|
|
43
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
44
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
45
|
-
return obj;
|
|
46
|
-
}
|
|
47
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
48
|
-
return {
|
|
49
|
-
default: obj
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
53
|
-
if (cache && cache.has(obj)) {
|
|
54
|
-
return cache.get(obj);
|
|
55
|
-
}
|
|
56
|
-
var newObj = {
|
|
57
|
-
__proto__: null
|
|
58
|
-
};
|
|
59
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
60
|
-
for(var key in obj){
|
|
61
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
62
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
63
|
-
if (desc && (desc.get || desc.set)) {
|
|
64
|
-
Object.defineProperty(newObj, key, desc);
|
|
65
|
-
} else {
|
|
66
|
-
newObj[key] = obj[key];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
newObj.default = obj;
|
|
71
|
-
if (cache) {
|
|
72
|
-
cache.set(obj, newObj);
|
|
73
|
-
}
|
|
74
|
-
return newObj;
|
|
75
|
-
}
|
|
76
|
-
const LogRow = /*#__PURE__*/ (0, _react.memo)(({ log, isExpanded, index, onToggle, isExpandable = true, time = false, wrap = false })=>{
|
|
77
|
-
const theme = (0, _material.useTheme)();
|
|
78
|
-
const severityColor = theme.palette.text.secondary;
|
|
79
|
-
const handleToggle = (0, _react.useCallback)(()=>{
|
|
80
|
-
if (isExpandable) {
|
|
81
|
-
onToggle(index);
|
|
82
|
-
}
|
|
83
|
-
}, [
|
|
84
|
-
isExpandable,
|
|
85
|
-
onToggle,
|
|
86
|
-
index
|
|
87
|
-
]);
|
|
88
|
-
if (!log) return null;
|
|
89
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_LogsStyles.LogRowContainer, {
|
|
90
|
-
severityColor: severityColor,
|
|
91
|
-
children: [
|
|
92
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_LogsStyles.LogRowContent, {
|
|
93
|
-
onClick: handleToggle,
|
|
94
|
-
isExpandable: isExpandable,
|
|
95
|
-
time: time,
|
|
96
|
-
children: [
|
|
97
|
-
isExpandable && /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
98
|
-
sx: {
|
|
99
|
-
display: 'flex',
|
|
100
|
-
alignItems: 'center',
|
|
101
|
-
width: '16px',
|
|
102
|
-
justifyContent: 'center'
|
|
103
|
-
},
|
|
104
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogsStyles.ExpandButton, {
|
|
105
|
-
size: "small",
|
|
106
|
-
isExpanded: isExpanded,
|
|
107
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ChevronRight.default, {
|
|
108
|
-
sx: {
|
|
109
|
-
fontSize: '12px'
|
|
110
|
-
}
|
|
111
|
-
})
|
|
112
|
-
})
|
|
113
|
-
}),
|
|
114
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_LogTimestamp.LogTimestamp, {
|
|
115
|
-
timestamp: log?.timestamp
|
|
116
|
-
}),
|
|
117
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
118
|
-
sx: {
|
|
119
|
-
display: 'flex',
|
|
120
|
-
gap: '10px',
|
|
121
|
-
marginLeft: '36px'
|
|
122
|
-
},
|
|
123
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogsStyles.LogText, {
|
|
124
|
-
variant: "body2",
|
|
125
|
-
wrap: wrap,
|
|
126
|
-
children: log?.line
|
|
127
|
-
})
|
|
128
|
-
})
|
|
129
|
-
]
|
|
130
|
-
}),
|
|
131
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Collapse, {
|
|
132
|
-
in: isExpanded,
|
|
133
|
-
timeout: 200,
|
|
134
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
135
|
-
sx: {
|
|
136
|
-
padding: '8px'
|
|
137
|
-
},
|
|
138
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
|
|
139
|
-
sx: {
|
|
140
|
-
display: 'grid',
|
|
141
|
-
gridTemplateColumns: !time ? '1fr' : '8px minmax(160px, max-content) 1fr',
|
|
142
|
-
gap: '12px'
|
|
143
|
-
},
|
|
144
|
-
children: [
|
|
145
|
-
time && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
146
|
-
children: [
|
|
147
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {}),
|
|
148
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {})
|
|
149
|
-
]
|
|
150
|
-
}),
|
|
151
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
152
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogDetailsTable.LogDetailsTable, {
|
|
153
|
-
log: log.labels
|
|
154
|
-
})
|
|
155
|
-
})
|
|
156
|
-
]
|
|
157
|
-
})
|
|
158
|
-
})
|
|
159
|
-
})
|
|
160
|
-
]
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
LogRow.displayName = 'LogRow';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "LogTimestamp", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return LogTimestamp;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
25
|
-
const _material = require("@mui/material");
|
|
26
|
-
function _interop_require_default(obj) {
|
|
27
|
-
return obj && obj.__esModule ? obj : {
|
|
28
|
-
default: obj
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const LogTimestamp = ({ timestamp })=>{
|
|
32
|
-
const theme = (0, _material.useTheme)();
|
|
33
|
-
const isDarkMode = theme.palette.mode === 'dark';
|
|
34
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
35
|
-
variant: "caption",
|
|
36
|
-
sx: {
|
|
37
|
-
color: isDarkMode ? '#000000' : theme.palette.text.secondary,
|
|
38
|
-
fontSize: '12px',
|
|
39
|
-
whiteSpace: 'nowrap',
|
|
40
|
-
minWidth: 'max-content',
|
|
41
|
-
backgroundColor: '#FFF3E0'
|
|
42
|
-
},
|
|
43
|
-
children: timestamp
|
|
44
|
-
});
|
|
45
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
function _export(target, all) {
|
|
18
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: all[name]
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
ExpandButton: function() {
|
|
25
|
-
return ExpandButton;
|
|
26
|
-
},
|
|
27
|
-
LogRowContainer: function() {
|
|
28
|
-
return LogRowContainer;
|
|
29
|
-
},
|
|
30
|
-
LogRowContent: function() {
|
|
31
|
-
return LogRowContent;
|
|
32
|
-
},
|
|
33
|
-
LogText: function() {
|
|
34
|
-
return LogText;
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
const _material = require("@mui/material");
|
|
38
|
-
const LogRowContainer = (0, _material.styled)(_material.Box)(({ severityColor })=>({
|
|
39
|
-
borderLeft: `4px solid ${severityColor}`,
|
|
40
|
-
transition: 'all 0.2s ease',
|
|
41
|
-
marginBottom: '4px',
|
|
42
|
-
fontFamily: '"DejaVu Sans Mono", monospace'
|
|
43
|
-
}));
|
|
44
|
-
const LogRowContent = (0, _material.styled)(_material.Box)(({ theme, isExpandable })=>({
|
|
45
|
-
display: 'grid',
|
|
46
|
-
gridTemplateColumns: isExpandable ? '16px minmax(160px, max-content) 1fr' : 'minmax(160px, max-content) 1fr',
|
|
47
|
-
alignItems: 'flex-start',
|
|
48
|
-
padding: '4px 8px',
|
|
49
|
-
cursor: isExpandable ? 'pointer' : 'default',
|
|
50
|
-
gap: '12px',
|
|
51
|
-
'&:hover': {
|
|
52
|
-
backgroundColor: theme.palette.action.hover
|
|
53
|
-
}
|
|
54
|
-
}));
|
|
55
|
-
const ExpandButton = (0, _material.styled)(_material.IconButton)(({ theme, isExpanded })=>({
|
|
56
|
-
padding: 0,
|
|
57
|
-
width: '16px',
|
|
58
|
-
height: '16px',
|
|
59
|
-
color: theme.palette.text.secondary,
|
|
60
|
-
transform: isExpanded ? 'rotate(90deg)' : 'rotate(0deg)',
|
|
61
|
-
transition: 'transform 0.2s ease'
|
|
62
|
-
}));
|
|
63
|
-
const LogText = (0, _material.styled)(_material.Typography)(({ wrap })=>({
|
|
64
|
-
fontSize: '12px',
|
|
65
|
-
flex: 1,
|
|
66
|
-
lineHeight: 1.4,
|
|
67
|
-
textAlign: 'left',
|
|
68
|
-
...wrap ? {
|
|
69
|
-
wordBreak: 'break-word',
|
|
70
|
-
whiteSpace: 'pre-wrap',
|
|
71
|
-
overflow: 'visible',
|
|
72
|
-
textOverflow: 'unset'
|
|
73
|
-
} : {
|
|
74
|
-
wordBreak: 'normal',
|
|
75
|
-
whiteSpace: 'nowrap'
|
|
76
|
-
}
|
|
77
|
-
}));
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "LogRow", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return _LogRow.LogRow;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _LogRow = require("./LogRow");
|
|
24
|
-
_export_star(require("./LogsStyles"), exports);
|
|
25
|
-
function _export_star(from, to) {
|
|
26
|
-
Object.keys(from).forEach(function(k) {
|
|
27
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
28
|
-
Object.defineProperty(to, k, {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function() {
|
|
31
|
-
return from[k];
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
return from;
|
|
37
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "default", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return _default;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
25
|
-
const _EmptyLogsState = require("./EmptyLogsState");
|
|
26
|
-
const _useExpandedRows = require("./hooks/useExpandedRows");
|
|
27
|
-
const _VirtualizedLogsList = require("./VirtualizedLogsList");
|
|
28
|
-
function _interop_require_default(obj) {
|
|
29
|
-
return obj && obj.__esModule ? obj : {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const LogsList = ({ logs })=>{
|
|
34
|
-
const { expandedRows, toggleExpand } = (0, _useExpandedRows.useExpandedRows)();
|
|
35
|
-
if (!logs.length) {
|
|
36
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_EmptyLogsState.EmptyLogsState, {});
|
|
37
|
-
}
|
|
38
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_VirtualizedLogsList.VirtualizedLogsList, {
|
|
39
|
-
logs: logs,
|
|
40
|
-
expandedRows: expandedRows,
|
|
41
|
-
onToggleExpand: toggleExpand
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
const _default = LogsList;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "VirtualizedLogsList", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return VirtualizedLogsList;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
25
|
-
const _material = require("@mui/material");
|
|
26
|
-
const _reactvirtuoso = require("react-virtuoso");
|
|
27
|
-
const _LogRow = require("./LogRow/LogRow");
|
|
28
|
-
function _interop_require_default(obj) {
|
|
29
|
-
return obj && obj.__esModule ? obj : {
|
|
30
|
-
default: obj
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
const VirtualizedLogsList = ({ logs, expandedRows, onToggleExpand })=>{
|
|
34
|
-
const theme = (0, _material.useTheme)();
|
|
35
|
-
const renderLogRow = (index)=>{
|
|
36
|
-
const log = logs[index];
|
|
37
|
-
if (!log) return null;
|
|
38
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogRow.LogRow, {
|
|
39
|
-
log: log,
|
|
40
|
-
index: index,
|
|
41
|
-
isExpanded: expandedRows.has(index),
|
|
42
|
-
onToggle: onToggleExpand
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
46
|
-
sx: {
|
|
47
|
-
height: '100%',
|
|
48
|
-
backgroundColor: theme.palette.background.default,
|
|
49
|
-
overflow: 'hidden',
|
|
50
|
-
boxShadow: theme.shadows[1]
|
|
51
|
-
},
|
|
52
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_reactvirtuoso.Virtuoso, {
|
|
53
|
-
style: {
|
|
54
|
-
height: '100%'
|
|
55
|
-
},
|
|
56
|
-
totalCount: logs.length,
|
|
57
|
-
itemContent: renderLogRow
|
|
58
|
-
})
|
|
59
|
-
});
|
|
60
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "useExpandedRows", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return useExpandedRows;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _react = require("react");
|
|
24
|
-
const useExpandedRows = ()=>{
|
|
25
|
-
const [expandedRows, setExpandedRows] = (0, _react.useState)(new Set());
|
|
26
|
-
const toggleExpand = (0, _react.useCallback)((index)=>{
|
|
27
|
-
setExpandedRows((prev)=>{
|
|
28
|
-
const newSet = new Set(prev);
|
|
29
|
-
if (newSet.has(index)) {
|
|
30
|
-
newSet.delete(index);
|
|
31
|
-
} else {
|
|
32
|
-
newSet.add(index);
|
|
33
|
-
}
|
|
34
|
-
return newSet;
|
|
35
|
-
});
|
|
36
|
-
}, []);
|
|
37
|
-
const clearExpanded = (0, _react.useCallback)(()=>{
|
|
38
|
-
setExpandedRows(new Set());
|
|
39
|
-
}, []);
|
|
40
|
-
return {
|
|
41
|
-
expandedRows,
|
|
42
|
-
toggleExpand,
|
|
43
|
-
clearExpanded
|
|
44
|
-
};
|
|
45
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
_export_star(require("./Logs"), exports);
|
|
18
|
-
_export_star(require("./LogsComponent"), exports);
|
|
19
|
-
_export_star(require("./LogsSettingsEditor"), exports);
|
|
20
|
-
_export_star(require("./logs-types"), exports);
|
|
21
|
-
function _export_star(from, to) {
|
|
22
|
-
Object.keys(from).forEach(function(k) {
|
|
23
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
24
|
-
Object.defineProperty(to, k, {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function() {
|
|
27
|
-
return from[k];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
return from;
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
package/lib/panels/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panels/index.ts"],"names":[],"mappings":"AAaA,cAAc,QAAQ,CAAC"}
|
package/lib/panels/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
export * from './logs';
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=index.js.map
|
package/lib/panels/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/panels/index.ts"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './logs';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,SAAS"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Logs.d.ts","sourceRoot":"","sources":["../../../../src/panels/logs/Logs.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,WAAW,EAAE,SAAS,CAKpD,CAAC"}
|
package/lib/panels/logs/Logs.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
import { LogsComponent } from './LogsComponent';
|
|
14
|
-
import { LogsSettingsEditor } from './LogsSettingsEditor';
|
|
15
|
-
export const Logs = {
|
|
16
|
-
PanelComponent: LogsComponent,
|
|
17
|
-
panelOptionsEditorComponents: [
|
|
18
|
-
{
|
|
19
|
-
label: 'Settings',
|
|
20
|
-
content: LogsSettingsEditor
|
|
21
|
-
}
|
|
22
|
-
],
|
|
23
|
-
supportedQueryTypes: [
|
|
24
|
-
'LogQuery'
|
|
25
|
-
],
|
|
26
|
-
createInitialOptions: ()=>({})
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=Logs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/panels/logs/Logs.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { LogsComponent } from './LogsComponent';\nimport { LogsOptions, LogsProps } from './logs-types';\nimport { PanelPlugin } from '@perses-dev/plugin-system';\nimport { LogsSettingsEditor } from './LogsSettingsEditor';\n\nexport const Logs: PanelPlugin<LogsOptions, LogsProps> = {\n PanelComponent: LogsComponent,\n panelOptionsEditorComponents: [{ label: 'Settings', content: LogsSettingsEditor }],\n supportedQueryTypes: ['LogQuery'],\n createInitialOptions: () => ({}),\n};\n"],"names":["LogsComponent","LogsSettingsEditor","Logs","PanelComponent","panelOptionsEditorComponents","label","content","supportedQueryTypes","createInitialOptions"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,aAAa,QAAQ,kBAAkB;AAGhD,SAASC,kBAAkB,QAAQ,uBAAuB;AAE1D,OAAO,MAAMC,OAA4C;IACvDC,gBAAgBH;IAChBI,8BAA8B;QAAC;YAAEC,OAAO;YAAYC,SAASL;QAAmB;KAAE;IAClFM,qBAAqB;QAAC;KAAW;IACjCC,sBAAsB,IAAO,CAAA,CAAC,CAAA;AAChC,EAAE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogsComponent.d.ts","sourceRoot":"","sources":["../../../../src/panels/logs/LogsComponent.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,GAAG,YAAY,GAAG,IAAI,CAmBnE"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// Copyright 2025 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { Typography } from '@mui/material';
|
|
15
|
-
import LogsList from './components/LogsList';
|
|
16
|
-
export function LogsComponent(props) {
|
|
17
|
-
const { queryResults, spec } = props;
|
|
18
|
-
if (queryResults[0]?.data.logs === undefined) {
|
|
19
|
-
return /*#__PURE__*/ _jsx(Typography, {
|
|
20
|
-
variant: "h3",
|
|
21
|
-
sx: {
|
|
22
|
-
textAlign: 'center',
|
|
23
|
-
marginTop: 4
|
|
24
|
-
},
|
|
25
|
-
children: "No logs to display"
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
const logs = queryResults[0]?.data.logs.entries;
|
|
29
|
-
return /*#__PURE__*/ _jsx(LogsList, {
|
|
30
|
-
logs: logs
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//# sourceMappingURL=LogsComponent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/panels/logs/LogsComponent.tsx"],"sourcesContent":["// Copyright 2025 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { ReactElement } from 'react';\nimport { LogsProps } from './logs-types';\nimport { Typography } from '@mui/material';\nimport LogsList from './components/LogsList';\n\nexport function LogsComponent(props: LogsProps): ReactElement | null {\n const { queryResults, spec } = props;\n\n if (queryResults[0]?.data.logs === undefined) {\n return (\n <Typography\n variant=\"h3\"\n sx={{\n textAlign: 'center',\n marginTop: 4,\n }}\n >\n No logs to display\n </Typography>\n );\n }\n const logs = queryResults[0]?.data.logs.entries;\n\n return <LogsList logs={logs} />;\n}\n"],"names":["Typography","LogsList","LogsComponent","props","queryResults","spec","data","logs","undefined","variant","sx","textAlign","marginTop","entries"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAIjC,SAASA,UAAU,QAAQ,gBAAgB;AAC3C,OAAOC,cAAc,wBAAwB;AAE7C,OAAO,SAASC,cAAcC,KAAgB;IAC5C,MAAM,EAAEC,YAAY,EAAEC,IAAI,EAAE,GAAGF;IAE/B,IAAIC,YAAY,CAAC,EAAE,EAAEE,KAAKC,SAASC,WAAW;QAC5C,qBACE,KAACR;YACCS,SAAQ;YACRC,IAAI;gBACFC,WAAW;gBACXC,WAAW;YACb;sBACD;;IAIL;IACA,MAAML,OAAOH,YAAY,CAAC,EAAE,EAAEE,KAAKC,KAAKM;IAExC,qBAAO,KAACZ;QAASM,MAAMA;;AACzB"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { OptionsEditorProps } from '@perses-dev/plugin-system';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
|
-
import { LogsOptions } from './logs-types';
|
|
4
|
-
type LogsSettingsEditorProps = OptionsEditorProps<LogsOptions>;
|
|
5
|
-
export declare function LogsSettingsEditor(props: LogsSettingsEditorProps): ReactElement;
|
|
6
|
-
export {};
|
|
7
|
-
//# sourceMappingURL=LogsSettingsEditor.d.ts.map
|