@perses-dev/logs-table-plugin 0.3.0 → 0.4.0-beta.1
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/__mf/js/{LogsTable.f8cdc769.js → LogsTable.5f90fc7a.js} +3 -3
- package/__mf/js/async/10.bcca0993.js +1 -0
- package/__mf/js/async/121.0b393209.js +2 -0
- package/__mf/js/async/141.32e969e2.js +1 -0
- package/__mf/js/async/192.fc13839d.js +1 -0
- package/__mf/js/async/2.9fe1a207.js +1 -0
- package/__mf/js/async/205.68d26c79.js +1 -0
- package/__mf/js/async/235.b7fd9fbd.js +1 -0
- package/__mf/js/async/274.2b0ee3e5.js +2 -0
- package/__mf/js/async/356.2f0b1efb.js +1 -0
- package/__mf/js/async/358.d7e737b5.js +111 -0
- package/__mf/js/async/392.ed78da9c.js +2 -0
- package/__mf/js/async/413.22923ee3.js +1 -0
- package/__mf/js/async/432.481e486b.js +1 -0
- package/__mf/js/async/458.84b877ba.js +1 -0
- package/__mf/js/async/470.3af71569.js +2 -0
- package/__mf/js/async/522.0ab2b630.js +1 -0
- package/__mf/js/async/587.7956e241.js +1 -0
- package/__mf/js/async/597.a6830f1c.js +2 -0
- package/__mf/js/async/608.79199272.js +1 -0
- package/__mf/js/async/612.265f875c.js +3 -0
- package/__mf/js/async/616.04a2fde6.js +1 -0
- package/__mf/js/async/634.f0773d52.js +2 -0
- package/__mf/js/async/663.0b1c854a.js +1 -0
- package/__mf/js/async/705.d5f9313a.js +22 -0
- package/__mf/js/async/72.be3fbcf8.js +7 -0
- package/__mf/js/async/72.be3fbcf8.js.LICENSE.txt +102 -0
- package/__mf/js/async/77.8b8e4afd.js +1 -0
- package/__mf/js/async/802.f980a2b2.js +1 -0
- package/__mf/js/async/923.60207cc2.js +1 -0
- package/__mf/js/async/941.1064117a.js +2 -0
- package/__mf/js/async/968.21668c0c.js +1 -0
- package/__mf/js/async/985.5af87994.js +37 -0
- package/__mf/js/async/__federation_expose_LogsTable.c8f94043.js +1 -0
- package/__mf/js/async/lib-router.edb1af73.js +2 -0
- package/__mf/js/{main.4253925a.js → main.e5de84d3.js} +3 -3
- package/lib/LogsTable.d.ts +2 -2
- package/lib/LogsTable.d.ts.map +1 -1
- package/lib/LogsTable.js +5 -5
- package/lib/LogsTable.js.map +1 -1
- package/lib/LogsTableComponent.d.ts +2 -2
- package/lib/LogsTableComponent.d.ts.map +1 -1
- package/lib/LogsTableComponent.js +4 -4
- package/lib/LogsTableComponent.js.map +1 -1
- package/lib/LogsTableCsvExportAction.d.ts +2 -2
- package/lib/LogsTableCsvExportAction.d.ts.map +1 -1
- package/lib/LogsTableCsvExportAction.js +7 -7
- package/lib/LogsTableCsvExportAction.js.map +1 -1
- package/lib/LogsTableExportAction.d.ts +1 -1
- package/lib/LogsTableExportAction.d.ts.map +1 -1
- package/lib/LogsTableExportAction.js +5 -5
- package/lib/LogsTableExportAction.js.map +1 -1
- package/lib/LogsTableItemSelectionActionsEditor.d.ts +2 -2
- package/lib/LogsTableItemSelectionActionsEditor.d.ts.map +1 -1
- package/lib/LogsTableItemSelectionActionsEditor.js +2 -2
- package/lib/LogsTableItemSelectionActionsEditor.js.map +1 -1
- package/lib/LogsTablePanel.d.ts +2 -2
- package/lib/LogsTablePanel.d.ts.map +1 -1
- package/lib/LogsTablePanel.js +3 -3
- package/lib/LogsTablePanel.js.map +1 -1
- package/lib/LogsTableSettingsEditor.d.ts +3 -3
- package/lib/LogsTableSettingsEditor.d.ts.map +1 -1
- package/lib/LogsTableSettingsEditor.js +3 -3
- package/lib/LogsTableSettingsEditor.js.map +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/components/EmptyLogsState.d.ts.map +1 -1
- package/lib/components/EmptyLogsState.js +2 -2
- package/lib/components/EmptyLogsState.js.map +1 -1
- package/lib/components/LogRow/LogDetailsTable.d.ts +2 -2
- package/lib/components/LogRow/LogDetailsTable.d.ts.map +1 -1
- package/lib/components/LogRow/LogDetailsTable.js +4 -4
- package/lib/components/LogRow/LogDetailsTable.js.map +1 -1
- package/lib/components/LogRow/LogRow.d.ts +3 -2
- package/lib/components/LogRow/LogRow.d.ts.map +1 -1
- package/lib/components/LogRow/LogRow.js +15 -15
- package/lib/components/LogRow/LogRow.js.map +1 -1
- package/lib/components/LogRow/LogTimestamp.js +1 -1
- package/lib/components/LogRow/LogsStyles.d.ts.map +1 -1
- package/lib/components/LogRow/LogsStyles.js +2 -2
- package/lib/components/LogRow/LogsStyles.js.map +1 -1
- package/lib/components/LogRow/index.js +2 -2
- package/lib/components/LogRow/index.js.map +1 -1
- package/lib/components/LogsList.d.ts +2 -2
- package/lib/components/LogsList.d.ts.map +1 -1
- package/lib/components/LogsList.js +5 -5
- package/lib/components/LogsList.js.map +1 -1
- package/lib/components/VirtualizedLogsList.d.ts +2 -2
- package/lib/components/VirtualizedLogsList.d.ts.map +1 -1
- package/lib/components/VirtualizedLogsList.js +18 -13
- package/lib/components/VirtualizedLogsList.js.map +1 -1
- package/lib/components/hooks/useExpandedRows.js +1 -1
- package/lib/components/hooks/useSeverity.d.ts +1 -1
- package/lib/components/hooks/useSeverity.d.ts.map +1 -1
- package/lib/components/hooks/useSeverity.js +2 -2
- package/lib/components/hooks/useSeverity.js.map +1 -1
- package/lib/components/utils.d.ts +1 -1
- package/lib/components/utils.d.ts.map +1 -1
- package/lib/components/utils.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/model.d.ts +3 -3
- package/lib/model.d.ts.map +1 -1
- package/lib/model.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/test/mock-query-results.d.ts +1 -1
- package/lib/test/mock-query-results.d.ts.map +1 -1
- package/lib/test/mock-query-results.js.map +1 -1
- package/lib/utils/ansi.js +2 -2
- package/lib/utils/copyHelpers.d.ts +1 -1
- package/lib/utils/copyHelpers.d.ts.map +1 -1
- package/lib/utils/copyHelpers.js +1 -1
- package/lib/utils/copyHelpers.js.map +1 -1
- package/mf-manifest.json +43 -86
- package/mf-stats.json +43 -94
- package/package.json +11 -11
- package/__mf/js/async/1603.89bfb1ad.js +0 -2
- package/__mf/js/async/1616.c3be409a.js +0 -1
- package/__mf/js/async/2043.dba84aa4.js +0 -2
- package/__mf/js/async/2043.dba84aa4.js.LICENSE.txt +0 -24
- package/__mf/js/async/2546.6b3aab40.js +0 -3
- package/__mf/js/async/2842.610cb74b.js +0 -1
- package/__mf/js/async/304.21c30c64.js +0 -37
- package/__mf/js/async/3332.ab0338e8.js +0 -7
- package/__mf/js/async/3332.ab0338e8.js.LICENSE.txt +0 -39
- package/__mf/js/async/392.5cb44640.js +0 -2
- package/__mf/js/async/4077.32e3919d.js +0 -1
- package/__mf/js/async/4121.d4c9b3e3.js +0 -2
- package/__mf/js/async/4869.80345aa7.js +0 -1
- package/__mf/js/async/5002.1d6e3559.js +0 -1
- package/__mf/js/async/5071.be3352f1.js +0 -1
- package/__mf/js/async/5587.9e49a823.js +0 -1
- package/__mf/js/async/6274.fe68ed99.js +0 -2
- package/__mf/js/async/6458.de33906b.js +0 -1
- package/__mf/js/async/7177.8dd90707.js +0 -1
- package/__mf/js/async/7192.017cbe40.js +0 -1
- package/__mf/js/async/7250.05494519.js +0 -1
- package/__mf/js/async/7413.c2661694.js +0 -1
- package/__mf/js/async/7445.009cf084.js +0 -110
- package/__mf/js/async/7968.ec249f6f.js +0 -1
- package/__mf/js/async/7978.026a8b19.js +0 -1
- package/__mf/js/async/8356.f736e620.js +0 -1
- package/__mf/js/async/8470.f0bbed7d.js +0 -2
- package/__mf/js/async/8542.aa0c5fe3.js +0 -1
- package/__mf/js/async/8608.618e49dc.js +0 -1
- package/__mf/js/async/8634.231e1601.js +0 -2
- package/__mf/js/async/873.4fd8a061.js +0 -1
- package/__mf/js/async/8964.3e308de6.js +0 -2
- package/__mf/js/async/8964.3e308de6.js.LICENSE.txt +0 -37
- package/__mf/js/async/9126.a313fc37.js +0 -22
- package/__mf/js/async/9235.b68f4586.js +0 -1
- package/__mf/js/async/9293.ee3265d4.js +0 -2
- package/__mf/js/async/941.ad1062bb.js +0 -2
- package/__mf/js/async/9588.b214b983.js +0 -1
- package/__mf/js/async/__federation_expose_LogsTable.e6a243de.js +0 -1
- package/__mf/js/async/lib-router.c5e3aef3.js +0 -2
- package/lib/cjs/LogsTable.js +0 -58
- package/lib/cjs/LogsTableComponent.js +0 -47
- package/lib/cjs/LogsTableCsvExportAction.js +0 -124
- package/lib/cjs/LogsTableExportAction.js +0 -80
- package/lib/cjs/LogsTableItemSelectionActionsEditor.js +0 -44
- package/lib/cjs/LogsTablePanel.js +0 -42
- package/lib/cjs/LogsTableSettingsEditor.js +0 -57
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/EmptyLogsState.js +0 -49
- package/lib/cjs/components/LogRow/LogDetailsTable.js +0 -126
- package/lib/cjs/components/LogRow/LogRow.js +0 -421
- package/lib/cjs/components/LogRow/LogTimestamp.js +0 -44
- package/lib/cjs/components/LogRow/LogsStyles.js +0 -87
- package/lib/cjs/components/LogRow/index.js +0 -37
- package/lib/cjs/components/LogsList.js +0 -44
- package/lib/cjs/components/VirtualizedLogsList.js +0 -547
- package/lib/cjs/components/hooks/useExpandedRows.js +0 -45
- package/lib/cjs/components/hooks/useSeverity.js +0 -47
- package/lib/cjs/components/utils.js +0 -78
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -38
- package/lib/cjs/model.js +0 -16
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/test/mock-query-results.js +0 -133
- package/lib/cjs/utils/ansi.js +0 -60
- package/lib/cjs/utils/copyHelpers.js +0 -72
- /package/__mf/css/async/{3332.85c2cbf6.css → 72.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{4121.d4c9b3e3.js.LICENSE.txt → 121.0b393209.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.fe68ed99.js.LICENSE.txt → 274.2b0ee3e5.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{7445.009cf084.js.LICENSE.txt → 358.d7e737b5.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.5cb44640.js.LICENSE.txt → 392.ed78da9c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.f0bbed7d.js.LICENSE.txt → 470.3af71569.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1603.89bfb1ad.js.LICENSE.txt → 597.a6830f1c.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8634.231e1601.js.LICENSE.txt → 634.f0773d52.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9126.a313fc37.js.LICENSE.txt → 705.d5f9313a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.ad1062bb.js.LICENSE.txt → 941.1064117a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{lib-router.c5e3aef3.js.LICENSE.txt → lib-router.edb1af73.js.LICENSE.txt} +0 -0
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// Copyright 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: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get getSeverity () {
|
|
25
|
-
return getSeverity;
|
|
26
|
-
},
|
|
27
|
-
get severityAbbreviations () {
|
|
28
|
-
return severityAbbreviations;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const severityAbbreviations = {
|
|
32
|
-
critical: [
|
|
33
|
-
'critical',
|
|
34
|
-
'emerg',
|
|
35
|
-
'fatal',
|
|
36
|
-
'alert',
|
|
37
|
-
'crit'
|
|
38
|
-
],
|
|
39
|
-
error: [
|
|
40
|
-
'error',
|
|
41
|
-
'err',
|
|
42
|
-
'eror'
|
|
43
|
-
],
|
|
44
|
-
debug: [
|
|
45
|
-
'debug',
|
|
46
|
-
'dbug'
|
|
47
|
-
],
|
|
48
|
-
info: [
|
|
49
|
-
'info',
|
|
50
|
-
'inf',
|
|
51
|
-
'information',
|
|
52
|
-
'notice'
|
|
53
|
-
],
|
|
54
|
-
trace: [
|
|
55
|
-
'trace'
|
|
56
|
-
],
|
|
57
|
-
warning: [
|
|
58
|
-
'warn',
|
|
59
|
-
'warning'
|
|
60
|
-
],
|
|
61
|
-
unknown: [
|
|
62
|
-
'unknown'
|
|
63
|
-
],
|
|
64
|
-
other: [
|
|
65
|
-
''
|
|
66
|
-
]
|
|
67
|
-
};
|
|
68
|
-
const getSeverity = (log)=>{
|
|
69
|
-
const level = log.labels?.level?.toLowerCase();
|
|
70
|
-
if (level) {
|
|
71
|
-
for (const [severity, abbreviations] of Object.entries(severityAbbreviations)){
|
|
72
|
-
if (abbreviations.some((abbr)=>abbr && level.includes(abbr))) {
|
|
73
|
-
return severity;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return 'unknown';
|
|
78
|
-
};
|
package/lib/cjs/env.d.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright 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
|
-
/// <reference types="@rsbuild/core/types" />
|
|
14
|
-
"use strict";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Copyright 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, "getPluginModule", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return getPluginModule;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _packagejson = /*#__PURE__*/ _interop_require_default(require("../package.json"));
|
|
24
|
-
function _interop_require_default(obj) {
|
|
25
|
-
return obj && obj.__esModule ? obj : {
|
|
26
|
-
default: obj
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function getPluginModule() {
|
|
30
|
-
const { name, version, perses } = _packagejson.default;
|
|
31
|
-
return {
|
|
32
|
-
kind: 'PluginModule',
|
|
33
|
-
metadata: {
|
|
34
|
-
name,
|
|
35
|
-
version
|
|
36
|
-
},
|
|
37
|
-
spec: perses
|
|
38
|
-
};
|
|
39
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
3
|
-
if (typeof WeakMap !== "function") return null;
|
|
4
|
-
var cacheBabelInterop = new WeakMap();
|
|
5
|
-
var cacheNodeInterop = new WeakMap();
|
|
6
|
-
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
7
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
8
|
-
})(nodeInterop);
|
|
9
|
-
}
|
|
10
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
11
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
12
|
-
return obj;
|
|
13
|
-
}
|
|
14
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
15
|
-
return {
|
|
16
|
-
default: obj
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
20
|
-
if (cache && cache.has(obj)) {
|
|
21
|
-
return cache.get(obj);
|
|
22
|
-
}
|
|
23
|
-
var newObj = {
|
|
24
|
-
__proto__: null
|
|
25
|
-
};
|
|
26
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
27
|
-
for(var key in obj){
|
|
28
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
29
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
30
|
-
if (desc && (desc.get || desc.set)) {
|
|
31
|
-
Object.defineProperty(newObj, key, desc);
|
|
32
|
-
} else {
|
|
33
|
-
newObj[key] = obj[key];
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
newObj.default = obj;
|
|
38
|
-
if (cache) {
|
|
39
|
-
cache.set(obj, newObj);
|
|
40
|
-
}
|
|
41
|
-
return newObj;
|
|
42
|
-
}
|
|
43
|
-
// Copyright The Perses Authors
|
|
44
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
-
// you may not use this file except in compliance with the License.
|
|
46
|
-
// You may obtain a copy of the License at
|
|
47
|
-
//
|
|
48
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
-
//
|
|
50
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
51
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
-
// See the License for the specific language governing permissions and
|
|
54
|
-
// limitations under the License.
|
|
55
|
-
Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
|
package/lib/cjs/index.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Copyright 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, "getPluginModule", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return _getPluginModule.getPluginModule;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _getPluginModule = require("./getPluginModule");
|
|
24
|
-
_export_star(require("./model"), exports);
|
|
25
|
-
_export_star(require("./LogsTable"), exports);
|
|
26
|
-
function _export_star(from, to) {
|
|
27
|
-
Object.keys(from).forEach(function(k) {
|
|
28
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
29
|
-
Object.defineProperty(to, k, {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function() {
|
|
32
|
-
return from[k];
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
return from;
|
|
38
|
-
}
|
package/lib/cjs/model.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright 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/cjs/setup-tests.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
// Copyright 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
|
-
require("@testing-library/jest-dom");
|
|
18
|
-
// Always mock e-charts during tests since we don't have a proper canvas in jsdom
|
|
19
|
-
jest.mock('echarts/core');
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
// Copyright 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: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get MOCK_LOGS_QUERY_DEFINITION () {
|
|
25
|
-
return MOCK_LOGS_QUERY_DEFINITION;
|
|
26
|
-
},
|
|
27
|
-
get MOCK_LOGS_QUERY_RESULT () {
|
|
28
|
-
return MOCK_LOGS_QUERY_RESULT;
|
|
29
|
-
},
|
|
30
|
-
get MOCK_LOGS_QUERY_RESULTS () {
|
|
31
|
-
return MOCK_LOGS_QUERY_RESULTS;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const MOCK_LOGS_QUERY_RESULT = {
|
|
35
|
-
logs: {
|
|
36
|
-
hasMore: false,
|
|
37
|
-
timeRange: {
|
|
38
|
-
start: new Date(1666625490),
|
|
39
|
-
end: new Date(1666625535)
|
|
40
|
-
},
|
|
41
|
-
entries: [
|
|
42
|
-
{
|
|
43
|
-
timestamp: 1666625491,
|
|
44
|
-
line: 'foo',
|
|
45
|
-
labels: {
|
|
46
|
-
device: '/dev/vda1',
|
|
47
|
-
env: 'demo',
|
|
48
|
-
fstype: 'ext4',
|
|
49
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
50
|
-
job: 'node',
|
|
51
|
-
mountpoint: '/'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
timestamp: 1666625490,
|
|
56
|
-
line: 'bar',
|
|
57
|
-
labels: {
|
|
58
|
-
device: '/dev/vda15',
|
|
59
|
-
env: 'demo',
|
|
60
|
-
fstype: 'vfat',
|
|
61
|
-
instance: 'demo.do.prometheus.io:9100',
|
|
62
|
-
job: 'node',
|
|
63
|
-
mountpoint: '/boot/efi'
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const MOCK_LOGS_QUERY_RESULTS = [
|
|
70
|
-
{
|
|
71
|
-
logs: {
|
|
72
|
-
entries: [
|
|
73
|
-
{
|
|
74
|
-
timestamp: 1769009811.4465687,
|
|
75
|
-
line: '{"host":"120.180.160.121", "user-identifier":"-", "datetime":"21/Jan/2026:15:32:31 +0000", "method": "DELETE", "request": "/killer/pixy", "protocol":"HTTP/2.0", "status":200, "bytes":9821, "referer": "http://www.internationalend-to-end.com/e-business/web services"}',
|
|
76
|
-
labels: {
|
|
77
|
-
app: 'log-generator',
|
|
78
|
-
bytes: '9821',
|
|
79
|
-
datetime: '21/Jan/2026:15:32:31 +0000',
|
|
80
|
-
detected_level: 'unknown',
|
|
81
|
-
filename: '/var/log/fake/fake.log',
|
|
82
|
-
host: '120.180.160.121',
|
|
83
|
-
method: 'DELETE',
|
|
84
|
-
protocol: 'HTTP/2.0',
|
|
85
|
-
referer: 'http://www.internationalend-to-end.com/e-business/web services',
|
|
86
|
-
request: '/killer/pixy',
|
|
87
|
-
service_name: 'log-generator',
|
|
88
|
-
status: '200',
|
|
89
|
-
user_identifier: '-'
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
totalCount: 1
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
logs: {
|
|
98
|
-
entries: [
|
|
99
|
-
{
|
|
100
|
-
timestamp: 1769009890.5294495,
|
|
101
|
-
line: '{"host":"18.178.231.77", "user-identifier":"cormier2584", "datetime":"21/Jan/2026:15:33:49 +0000", "method": "POST", "request": "/facilitate/mesh/methodologies/deploy", "protocol":"HTTP/1.1", "status":503, "bytes":9892, "referer": "http://www.direct.com/holistic"}',
|
|
102
|
-
labels: {
|
|
103
|
-
app: 'log-generator',
|
|
104
|
-
bytes: '9892',
|
|
105
|
-
datetime: '21/Jan/2026:15:33:49 +0000',
|
|
106
|
-
detected_level: 'unknown',
|
|
107
|
-
filename: '/var/log/fake/fake.log',
|
|
108
|
-
host: '18.178.231.77',
|
|
109
|
-
method: 'POST',
|
|
110
|
-
protocol: 'HTTP/1.1',
|
|
111
|
-
referer: 'http://www.direct.com/holistic',
|
|
112
|
-
request: '/facilitate/mesh/methodologies/deploy',
|
|
113
|
-
service_name: 'log-generator',
|
|
114
|
-
status: '503',
|
|
115
|
-
user_identifier: 'cormier2584'
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
totalCount: 1
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
];
|
|
123
|
-
const MOCK_LOGS_QUERY_DEFINITION = {
|
|
124
|
-
kind: 'LogsQuery',
|
|
125
|
-
spec: {
|
|
126
|
-
plugin: {
|
|
127
|
-
kind: 'LokiLogsQuery',
|
|
128
|
-
spec: {
|
|
129
|
-
query: ''
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
};
|
package/lib/cjs/utils/ansi.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
// Copyright 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: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get ansiToSanitizedHtml () {
|
|
25
|
-
return ansiToSanitizedHtml;
|
|
26
|
-
},
|
|
27
|
-
get stripAnsi () {
|
|
28
|
-
return stripAnsi;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const _ansi_up = require("ansi_up");
|
|
32
|
-
const _dompurify = /*#__PURE__*/ _interop_require_default(require("dompurify"));
|
|
33
|
-
function _interop_require_default(obj) {
|
|
34
|
-
return obj && obj.__esModule ? obj : {
|
|
35
|
-
default: obj
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
const ansiUp = new _ansi_up.AnsiUp();
|
|
39
|
-
ansiUp.use_classes = true;
|
|
40
|
-
const ESC = String.fromCharCode(27);
|
|
41
|
-
const ANSI_REGEX = new RegExp(ESC + '\\[[0-9;]*m');
|
|
42
|
-
function ansiToSanitizedHtml(text) {
|
|
43
|
-
if (!ANSI_REGEX.test(text)) {
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
const html = ansiUp.ansi_to_html(text);
|
|
47
|
-
return _dompurify.default.sanitize(html, {
|
|
48
|
-
ALLOWED_TAGS: [
|
|
49
|
-
'span'
|
|
50
|
-
],
|
|
51
|
-
ALLOWED_ATTR: [
|
|
52
|
-
'class',
|
|
53
|
-
'style'
|
|
54
|
-
]
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
const ANSI_STRIP_REGEX = new RegExp(ESC + '\\[[0-9;]*m', 'g');
|
|
58
|
-
function stripAnsi(text) {
|
|
59
|
-
return text.replace(ANSI_STRIP_REGEX, '');
|
|
60
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
// Copyright 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: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get formatLabels () {
|
|
25
|
-
return formatLabels;
|
|
26
|
-
},
|
|
27
|
-
get formatLogAsJson () {
|
|
28
|
-
return formatLogAsJson;
|
|
29
|
-
},
|
|
30
|
-
get formatLogEntries () {
|
|
31
|
-
return formatLogEntries;
|
|
32
|
-
},
|
|
33
|
-
get formatLogEntry () {
|
|
34
|
-
return formatLogEntry;
|
|
35
|
-
},
|
|
36
|
-
get formatLogMessage () {
|
|
37
|
-
return formatLogMessage;
|
|
38
|
-
},
|
|
39
|
-
get formatTimestamp () {
|
|
40
|
-
return formatTimestamp;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
const _ansi = require("./ansi");
|
|
44
|
-
function formatTimestamp(timestamp) {
|
|
45
|
-
const date = typeof timestamp === 'number' ? new Date(timestamp * 1000) : parseTimestamp(timestamp);
|
|
46
|
-
return date.toISOString();
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Parses a timestamp string to a Date object
|
|
50
|
-
*/ function parseTimestamp(timestamp) {
|
|
51
|
-
return /^\d+$/.test(timestamp) ? new Date(parseInt(timestamp) * 1000) : new Date(Date.parse(timestamp));
|
|
52
|
-
}
|
|
53
|
-
function formatLabels(labels) {
|
|
54
|
-
const entries = Object.entries(labels);
|
|
55
|
-
if (entries.length === 0) return '';
|
|
56
|
-
return entries.map(([key, value])=>`${key}="${value}"`).join(' ');
|
|
57
|
-
}
|
|
58
|
-
function formatLogEntry(log) {
|
|
59
|
-
const timestamp = formatTimestamp(log.timestamp);
|
|
60
|
-
const labels = formatLabels(log.labels || {});
|
|
61
|
-
const cleanLine = (0, _ansi.stripAnsi)(log.line);
|
|
62
|
-
return labels ? `${timestamp} ${labels} ${cleanLine}` : `${timestamp} ${cleanLine}`;
|
|
63
|
-
}
|
|
64
|
-
function formatLogMessage(log) {
|
|
65
|
-
return (0, _ansi.stripAnsi)(log.line);
|
|
66
|
-
}
|
|
67
|
-
function formatLogAsJson(log) {
|
|
68
|
-
return JSON.stringify(log, null, 2);
|
|
69
|
-
}
|
|
70
|
-
function formatLogEntries(logs) {
|
|
71
|
-
return logs.map(formatLogEntry).join('\n');
|
|
72
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/__mf/js/async/{lib-router.c5e3aef3.js.LICENSE.txt → lib-router.edb1af73.js.LICENSE.txt}
RENAMED
|
File without changes
|