@perses-dev/log-explorer-plugin 0.1.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/LICENSE +201 -0
- package/README.md +41 -0
- package/__mf/css/async/1122.85c2cbf6.css +1 -0
- package/__mf/font/inter-cyrillic-300-normal.432f2b21.woff +0 -0
- package/__mf/font/inter-cyrillic-300-normal.9da91009.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.372704ff.woff2 +0 -0
- package/__mf/font/inter-cyrillic-400-normal.a6b6ef6f.woff +0 -0
- package/__mf/font/inter-cyrillic-500-normal.7c15bba8.woff2 +0 -0
- package/__mf/font/inter-cyrillic-500-normal.b9f8c929.woff +0 -0
- package/__mf/font/inter-cyrillic-600-normal.2f42892a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-600-normal.c3987adc.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.93eba3c3.woff +0 -0
- package/__mf/font/inter-cyrillic-700-normal.e9e5b2dc.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.f285bd7a.woff2 +0 -0
- package/__mf/font/inter-cyrillic-900-normal.ffbd8a3a.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.95bb9038.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-300-normal.cfc143a9.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.2a31c04b.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-400-normal.f572b170.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.5a6bb1da.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-500-normal.fe0d9b14.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.ecbdecad.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-600-normal.f7b3c15b.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.4b4022a6.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-700-normal.74b516d2.woff2 +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.9970ddb5.woff +0 -0
- package/__mf/font/inter-cyrillic-ext-900-normal.a0d59adc.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.0d7be683.woff2 +0 -0
- package/__mf/font/inter-greek-300-normal.8f0b988e.woff +0 -0
- package/__mf/font/inter-greek-400-normal.cc58c11b.woff +0 -0
- package/__mf/font/inter-greek-400-normal.d7020e3c.woff2 +0 -0
- package/__mf/font/inter-greek-500-normal.d9a33207.woff +0 -0
- package/__mf/font/inter-greek-500-normal.f41f43db.woff2 +0 -0
- package/__mf/font/inter-greek-600-normal.4ec0c1c1.woff +0 -0
- package/__mf/font/inter-greek-600-normal.cc532937.woff2 +0 -0
- package/__mf/font/inter-greek-700-normal.5ec6c758.woff +0 -0
- package/__mf/font/inter-greek-700-normal.97f0eeeb.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.46b66369.woff2 +0 -0
- package/__mf/font/inter-greek-900-normal.9ae3a3c5.woff +0 -0
- package/__mf/font/inter-greek-ext-300-normal.10247a66.woff2 +0 -0
- package/__mf/font/inter-greek-ext-300-normal.4668e5cb.woff +0 -0
- package/__mf/font/inter-greek-ext-400-normal.4ce1df5d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-400-normal.88ede1ea.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.7a4aa726.woff +0 -0
- package/__mf/font/inter-greek-ext-500-normal.cbd51e2d.woff2 +0 -0
- package/__mf/font/inter-greek-ext-600-normal.089a95ee.woff +0 -0
- package/__mf/font/inter-greek-ext-600-normal.1f33d317.woff2 +0 -0
- package/__mf/font/inter-greek-ext-700-normal.31f1075d.woff +0 -0
- package/__mf/font/inter-greek-ext-700-normal.827cd618.woff2 +0 -0
- package/__mf/font/inter-greek-ext-900-normal.531bcee7.woff +0 -0
- package/__mf/font/inter-greek-ext-900-normal.8a9b36b9.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.15fb600d.woff2 +0 -0
- package/__mf/font/inter-latin-300-normal.6f95f590.woff +0 -0
- package/__mf/font/inter-latin-400-normal.2c7a775c.woff +0 -0
- package/__mf/font/inter-latin-400-normal.ef6d3f52.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.b7b43ace.woff2 +0 -0
- package/__mf/font/inter-latin-500-normal.cb4c8ceb.woff +0 -0
- package/__mf/font/inter-latin-600-normal.8fb1a964.woff2 +0 -0
- package/__mf/font/inter-latin-600-normal.ce0f5f43.woff +0 -0
- package/__mf/font/inter-latin-700-normal.953b7aa5.woff2 +0 -0
- package/__mf/font/inter-latin-700-normal.9c21d4dc.woff +0 -0
- package/__mf/font/inter-latin-900-normal.2a8028ec.woff2 +0 -0
- package/__mf/font/inter-latin-900-normal.fa252135.woff +0 -0
- package/__mf/font/inter-latin-ext-300-normal.167cc8c9.woff2 +0 -0
- package/__mf/font/inter-latin-ext-300-normal.f695be66.woff +0 -0
- package/__mf/font/inter-latin-ext-400-normal.32a25442.woff2 +0 -0
- package/__mf/font/inter-latin-ext-400-normal.4edcaace.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.a19a84a6.woff +0 -0
- package/__mf/font/inter-latin-ext-500-normal.d9b491de.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.38b075d8.woff2 +0 -0
- package/__mf/font/inter-latin-ext-600-normal.49faa47a.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.93534b50.woff +0 -0
- package/__mf/font/inter-latin-ext-700-normal.b63daa1a.woff2 +0 -0
- package/__mf/font/inter-latin-ext-900-normal.0efdb307.woff +0 -0
- package/__mf/font/inter-latin-ext-900-normal.9c0fc2c7.woff2 +0 -0
- package/__mf/font/inter-vietnamese-300-normal.aad496d8.woff +0 -0
- package/__mf/font/inter-vietnamese-300-normal.ad9ef503.woff2 +0 -0
- package/__mf/font/inter-vietnamese-400-normal.a9dd2faf.woff +0 -0
- package/__mf/font/inter-vietnamese-400-normal.de4fc44f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.7c0a695f.woff2 +0 -0
- package/__mf/font/inter-vietnamese-500-normal.a3a73b95.woff +0 -0
- package/__mf/font/inter-vietnamese-600-normal.9d518599.woff2 +0 -0
- package/__mf/font/inter-vietnamese-600-normal.c5ce3fcb.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.bc68b199.woff +0 -0
- package/__mf/font/inter-vietnamese-700-normal.faf12809.woff2 +0 -0
- package/__mf/font/inter-vietnamese-900-normal.2b782045.woff +0 -0
- package/__mf/font/inter-vietnamese-900-normal.e639b65a.woff2 +0 -0
- package/__mf/js/LogExplorer.187eb19a.js +7 -0
- package/__mf/js/async/1122.0e6768e6.js +7 -0
- package/__mf/js/async/1122.0e6768e6.js.LICENSE.txt +39 -0
- package/__mf/js/async/1616.395e3ca2.js +1 -0
- package/__mf/js/async/1629.362e7ce6.js +10 -0
- package/__mf/js/async/1629.362e7ce6.js.LICENSE.txt +27 -0
- package/__mf/js/async/1728.7875b4f9.js +1 -0
- package/__mf/js/async/1918.4e1beebc.js +1 -0
- package/__mf/js/async/1969.0997d1af.js +1 -0
- package/__mf/js/async/2043.9b38749d.js +2 -0
- package/__mf/js/async/2043.9b38749d.js.LICENSE.txt +24 -0
- package/__mf/js/async/2377.f0459e09.js +1 -0
- package/__mf/js/async/3059.5da6749f.js +1 -0
- package/__mf/js/async/392.186a8d93.js +2 -0
- package/__mf/js/async/392.186a8d93.js.LICENSE.txt +8 -0
- package/__mf/js/async/4121.fa36ad03.js +2 -0
- package/__mf/js/async/4121.fa36ad03.js.LICENSE.txt +9 -0
- package/__mf/js/async/4350.899dcf32.js +1 -0
- package/__mf/js/async/4540.ac074e48.js +101 -0
- package/__mf/js/async/5071.ae015049.js +1 -0
- package/__mf/js/async/5440.4b68d7db.js +2 -0
- package/__mf/js/async/5440.4b68d7db.js.LICENSE.txt +32 -0
- package/__mf/js/async/5587.18509444.js +1 -0
- package/__mf/js/async/6274.684a77e6.js +2 -0
- package/__mf/js/async/6274.684a77e6.js.LICENSE.txt +8 -0
- package/__mf/js/async/6593.4138d7b7.js +3 -0
- package/__mf/js/async/6854.77621c34.js +1 -0
- package/__mf/js/async/7177.f68e42bf.js +1 -0
- package/__mf/js/async/7192.083e20fa.js +1 -0
- package/__mf/js/async/7862.0e8d351f.js +2 -0
- package/__mf/js/async/7862.0e8d351f.js.LICENSE.txt +9 -0
- package/__mf/js/async/7880.c1245219.js +2 -0
- package/__mf/js/async/7880.c1245219.js.LICENSE.txt +37 -0
- package/__mf/js/async/7968.39f513d3.js +1 -0
- package/__mf/js/async/7978.418f4fba.js +1 -0
- package/__mf/js/async/7984.7a0dbfd9.js +22 -0
- package/__mf/js/async/7984.7a0dbfd9.js.LICENSE.txt +19 -0
- package/__mf/js/async/8356.edd5de8e.js +1 -0
- package/__mf/js/async/8470.ef582b4c.js +2 -0
- package/__mf/js/async/8470.ef582b4c.js.LICENSE.txt +19 -0
- package/__mf/js/async/873.038fc7b8.js +1 -0
- package/__mf/js/async/9235.6b36b50f.js +1 -0
- package/__mf/js/async/941.998a8cf0.js +2 -0
- package/__mf/js/async/941.998a8cf0.js.LICENSE.txt +9 -0
- package/__mf/js/async/9558.9155c53c.js +1 -0
- package/__mf/js/async/9588.d892e127.js +1 -0
- package/__mf/js/async/9836.769f0f5b.js +1 -0
- package/__mf/js/async/9877.9d2de522.js +38 -0
- package/__mf/js/async/__federation_expose_LogExplorer.dc0eb723.js +1 -0
- package/__mf/js/main.3e8b5d88.js +7 -0
- package/lib/bootstrap.d.ts +2 -0
- package/lib/bootstrap.d.ts.map +1 -0
- package/lib/bootstrap.js +19 -0
- package/lib/bootstrap.js.map +1 -0
- package/lib/cjs/bootstrap.js +26 -0
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/explore/index.js +30 -0
- package/lib/cjs/explore/log-explorer/LogExplorer.js +173 -0
- package/lib/cjs/explore/log-explorer/index.js +30 -0
- package/lib/cjs/getPluginModule.js +39 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +37 -0
- package/lib/cjs/setup-tests.js +19 -0
- package/lib/env.d.js +15 -0
- package/lib/env.d.js.map +1 -0
- package/lib/explore/index.d.ts +2 -0
- package/lib/explore/index.d.ts.map +1 -0
- package/lib/explore/index.js +15 -0
- package/lib/explore/index.js.map +1 -0
- package/lib/explore/log-explorer/LogExplorer.d.ts +3 -0
- package/lib/explore/log-explorer/LogExplorer.d.ts.map +1 -0
- package/lib/explore/log-explorer/LogExplorer.js +165 -0
- package/lib/explore/log-explorer/LogExplorer.js.map +1 -0
- package/lib/explore/log-explorer/index.d.ts +2 -0
- package/lib/explore/log-explorer/index.d.ts.map +1 -0
- package/lib/explore/log-explorer/index.js +15 -0
- package/lib/explore/log-explorer/index.js.map +1 -0
- package/lib/getPluginModule.d.ts +6 -0
- package/lib/getPluginModule.d.ts.map +1 -0
- package/lib/getPluginModule.js +28 -0
- package/lib/getPluginModule.js.map +1 -0
- package/lib/index-federation.d.ts +1 -0
- package/lib/index-federation.d.ts.map +1 -0
- package/lib/index-federation.js +15 -0
- package/lib/index-federation.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/setup-tests.d.ts +2 -0
- package/lib/setup-tests.d.ts.map +1 -0
- package/lib/setup-tests.js +17 -0
- package/lib/setup-tests.js.map +1 -0
- package/mf-manifest.json +388 -0
- package/mf-stats.json +454 -0
- package/package.json +71 -0
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
_export_star(require("./LogExplorer"), exports);
|
|
18
|
+
function _export_star(from, to) {
|
|
19
|
+
Object.keys(from).forEach(function(k) {
|
|
20
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
+
Object.defineProperty(to, k, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function() {
|
|
24
|
+
return from[k];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return from;
|
|
30
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
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("./explore"), 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
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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');
|
package/lib/env.d.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
|
|
15
|
+
//# sourceMappingURL=env.d.js.map
|
package/lib/env.d.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/env.d.ts"],"sourcesContent":["// Copyright 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\n/// <reference types=\"@rsbuild/core/types\" />\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,6CAA6C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/explore/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export * from './log-explorer';
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/explore/index.ts"],"sourcesContent":["// Copyright 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 './log-explorer';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,iBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogExplorer.d.ts","sourceRoot":"","sources":["../../../../src/explore/log-explorer/LogExplorer.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,YAAY,EAAqB,MAAM,OAAO,CAAC;AAuExD,wBAAgB,WAAW,IAAI,YAAY,CAqE1C"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// Copyright The Perses Authors
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
import { Box, Stack } from '@mui/material';
|
|
15
|
+
import { DataQueriesProvider, MultiQueryEditor, useAllVariableValues, useDatasourceStore, useListPluginMetadata, usePluginRegistry, useTimeRange } from '@perses-dev/plugin-system';
|
|
16
|
+
import { useState, useMemo } from 'react';
|
|
17
|
+
import { Panel } from '@perses-dev/dashboards';
|
|
18
|
+
import { useExplorerManagerContext } from '@perses-dev/explore';
|
|
19
|
+
import { useQuery } from '@tanstack/react-query';
|
|
20
|
+
const PANEL_PREVIEW_HEIGHT = 700;
|
|
21
|
+
const HISTOGRAM_HEIGHT = 200;
|
|
22
|
+
const EMPTY_QUERIES = [];
|
|
23
|
+
function LogsTablePanel({ queries }) {
|
|
24
|
+
const height = PANEL_PREVIEW_HEIGHT;
|
|
25
|
+
return /*#__PURE__*/ _jsx(Box, {
|
|
26
|
+
height: height,
|
|
27
|
+
children: /*#__PURE__*/ _jsx(DataQueriesProvider, {
|
|
28
|
+
definitions: queries,
|
|
29
|
+
children: /*#__PURE__*/ _jsx(Panel, {
|
|
30
|
+
panelOptions: {
|
|
31
|
+
hideHeader: true
|
|
32
|
+
},
|
|
33
|
+
definition: {
|
|
34
|
+
kind: 'Panel',
|
|
35
|
+
spec: {
|
|
36
|
+
queries: queries,
|
|
37
|
+
display: {
|
|
38
|
+
name: ''
|
|
39
|
+
},
|
|
40
|
+
plugin: {
|
|
41
|
+
kind: 'LogsTable',
|
|
42
|
+
spec: {}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function VolumeHistogramPanel({ queries }) {
|
|
51
|
+
return /*#__PURE__*/ _jsx(Box, {
|
|
52
|
+
height: HISTOGRAM_HEIGHT,
|
|
53
|
+
children: /*#__PURE__*/ _jsx(DataQueriesProvider, {
|
|
54
|
+
definitions: queries,
|
|
55
|
+
children: /*#__PURE__*/ _jsx(Panel, {
|
|
56
|
+
panelOptions: {
|
|
57
|
+
hideHeader: true
|
|
58
|
+
},
|
|
59
|
+
definition: {
|
|
60
|
+
kind: 'Panel',
|
|
61
|
+
spec: {
|
|
62
|
+
queries: queries,
|
|
63
|
+
display: {
|
|
64
|
+
name: 'Log Volume'
|
|
65
|
+
},
|
|
66
|
+
plugin: {
|
|
67
|
+
kind: 'TimeSeriesChart',
|
|
68
|
+
spec: {
|
|
69
|
+
legend: {
|
|
70
|
+
position: 'bottom',
|
|
71
|
+
mode: 'list'
|
|
72
|
+
},
|
|
73
|
+
visual: {
|
|
74
|
+
display: 'bar',
|
|
75
|
+
stack: 'all'
|
|
76
|
+
},
|
|
77
|
+
yAxis: {
|
|
78
|
+
label: 'Logs per second'
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
export function LogExplorer() {
|
|
89
|
+
const { data: { queries = EMPTY_QUERIES }, setData } = useExplorerManagerContext();
|
|
90
|
+
const [queryDefinitions, setQueryDefinitions] = useState(queries);
|
|
91
|
+
const { getPlugin } = usePluginRegistry();
|
|
92
|
+
const { absoluteTimeRange } = useTimeRange();
|
|
93
|
+
const datasourceStore = useDatasourceStore();
|
|
94
|
+
const variableState = useAllVariableValues();
|
|
95
|
+
const logQueryContext = useMemo(()=>({
|
|
96
|
+
timeRange: absoluteTimeRange,
|
|
97
|
+
variableState,
|
|
98
|
+
datasourceStore,
|
|
99
|
+
refreshKey: ''
|
|
100
|
+
}), [
|
|
101
|
+
absoluteTimeRange,
|
|
102
|
+
variableState,
|
|
103
|
+
datasourceStore
|
|
104
|
+
]);
|
|
105
|
+
// Get all datasource plugins that support LogQuery
|
|
106
|
+
const { data: datasourcePlugins } = useListPluginMetadata([
|
|
107
|
+
'Datasource'
|
|
108
|
+
]);
|
|
109
|
+
const logDatasourcePlugins = useMemo(()=>datasourcePlugins?.filter((plugin)=>{
|
|
110
|
+
const pluginSpec = plugin.spec;
|
|
111
|
+
return pluginSpec?.supportedQueryTypes?.includes('LogQuery');
|
|
112
|
+
}).map((p)=>p.kind) ?? [], [
|
|
113
|
+
datasourcePlugins
|
|
114
|
+
]);
|
|
115
|
+
const { data: volumeQueries = EMPTY_QUERIES } = useQuery({
|
|
116
|
+
queryKey: [
|
|
117
|
+
'logexplorer-volume-queries',
|
|
118
|
+
queries,
|
|
119
|
+
logQueryContext
|
|
120
|
+
],
|
|
121
|
+
queryFn: async ()=>{
|
|
122
|
+
const results = await Promise.all(queries.map(async (query)=>{
|
|
123
|
+
if (query.kind !== 'LogQuery') return null;
|
|
124
|
+
try {
|
|
125
|
+
const plugin = await getPlugin({
|
|
126
|
+
kind: 'LogQuery',
|
|
127
|
+
name: query.spec.plugin.kind
|
|
128
|
+
});
|
|
129
|
+
return plugin?.createVolumeQuery?.(query.spec.plugin.spec, logQueryContext) ?? null;
|
|
130
|
+
} catch (error) {
|
|
131
|
+
console.error(`[LogExplorer] Failed to create volume query for ${query.spec.plugin.kind}:`, error);
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
}));
|
|
135
|
+
return results.filter((q)=>q !== null);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return /*#__PURE__*/ _jsxs(Stack, {
|
|
139
|
+
gap: 2,
|
|
140
|
+
sx: {
|
|
141
|
+
width: '100%'
|
|
142
|
+
},
|
|
143
|
+
children: [
|
|
144
|
+
/*#__PURE__*/ _jsx(MultiQueryEditor, {
|
|
145
|
+
queryTypes: [
|
|
146
|
+
'LogQuery'
|
|
147
|
+
],
|
|
148
|
+
filteredQueryPlugins: logDatasourcePlugins,
|
|
149
|
+
queries: queryDefinitions,
|
|
150
|
+
onChange: (state)=>setQueryDefinitions(state),
|
|
151
|
+
onQueryRun: ()=>setData({
|
|
152
|
+
queries: queryDefinitions
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
volumeQueries.length > 0 && /*#__PURE__*/ _jsx(VolumeHistogramPanel, {
|
|
156
|
+
queries: volumeQueries
|
|
157
|
+
}),
|
|
158
|
+
/*#__PURE__*/ _jsx(LogsTablePanel, {
|
|
159
|
+
queries: queries
|
|
160
|
+
})
|
|
161
|
+
]
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
//# sourceMappingURL=LogExplorer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/explore/log-explorer/LogExplorer.tsx"],"sourcesContent":["// Copyright 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 { Box, Stack } from '@mui/material';\nimport {\n DataQueriesProvider,\n LogQueryContext,\n MultiQueryEditor,\n useAllVariableValues,\n useDatasourceStore,\n useListPluginMetadata,\n usePluginRegistry,\n useTimeRange,\n} from '@perses-dev/plugin-system';\nimport { ReactElement, useState, useMemo } from 'react';\nimport { QueryDefinition } from '@perses-dev/spec';\nimport { Panel } from '@perses-dev/dashboards';\nimport { useExplorerManagerContext } from '@perses-dev/explore';\nimport { useQuery } from '@tanstack/react-query';\n\ninterface LogExplorerQueryParams {\n queries?: QueryDefinition[];\n}\n\nconst PANEL_PREVIEW_HEIGHT = 700;\nconst HISTOGRAM_HEIGHT = 200;\nconst EMPTY_QUERIES: QueryDefinition[] = [];\n\nfunction LogsTablePanel({ queries }: { queries: QueryDefinition[] }): ReactElement {\n const height = PANEL_PREVIEW_HEIGHT;\n\n return (\n <Box height={height}>\n <DataQueriesProvider definitions={queries}>\n <Panel\n panelOptions={{\n hideHeader: true,\n }}\n definition={{\n kind: 'Panel',\n spec: { queries: queries, display: { name: '' }, plugin: { kind: 'LogsTable', spec: {} } },\n }}\n />\n </DataQueriesProvider>\n </Box>\n );\n}\n\nfunction VolumeHistogramPanel({ queries }: { queries: QueryDefinition[] }): ReactElement {\n return (\n <Box height={HISTOGRAM_HEIGHT}>\n <DataQueriesProvider definitions={queries}>\n <Panel\n panelOptions={{\n hideHeader: true,\n }}\n definition={{\n kind: 'Panel',\n spec: {\n queries: queries,\n display: { name: 'Log Volume' },\n plugin: {\n kind: 'TimeSeriesChart',\n spec: {\n legend: {\n position: 'bottom',\n mode: 'list',\n },\n visual: {\n display: 'bar',\n stack: 'all',\n },\n yAxis: {\n label: 'Logs per second',\n },\n },\n },\n },\n }}\n />\n </DataQueriesProvider>\n </Box>\n );\n}\n\nexport function LogExplorer(): ReactElement {\n const {\n data: { queries = EMPTY_QUERIES },\n setData,\n } = useExplorerManagerContext<LogExplorerQueryParams>();\n\n const [queryDefinitions, setQueryDefinitions] = useState<QueryDefinition[]>(queries);\n\n const { getPlugin } = usePluginRegistry();\n const { absoluteTimeRange } = useTimeRange();\n const datasourceStore = useDatasourceStore();\n const variableState = useAllVariableValues();\n\n const logQueryContext: LogQueryContext = useMemo(\n () => ({\n timeRange: absoluteTimeRange,\n variableState,\n datasourceStore,\n refreshKey: '',\n }),\n [absoluteTimeRange, variableState, datasourceStore]\n );\n\n // Get all datasource plugins that support LogQuery\n const { data: datasourcePlugins } = useListPluginMetadata(['Datasource']);\n\n const logDatasourcePlugins = useMemo(\n () =>\n datasourcePlugins\n ?.filter((plugin) => {\n const pluginSpec = plugin.spec as { supportedQueryTypes?: string[] };\n return pluginSpec?.supportedQueryTypes?.includes('LogQuery');\n })\n .map((p) => p.kind) ?? [],\n [datasourcePlugins]\n );\n\n const { data: volumeQueries = EMPTY_QUERIES } = useQuery({\n queryKey: ['logexplorer-volume-queries', queries, logQueryContext],\n queryFn: async (): Promise<QueryDefinition[]> => {\n const results = await Promise.all(\n queries.map(async (query) => {\n if (query.kind !== 'LogQuery') return null;\n try {\n const plugin = await getPlugin({ kind: 'LogQuery', name: query.spec.plugin.kind });\n return plugin?.createVolumeQuery?.(query.spec.plugin.spec, logQueryContext) ?? null;\n } catch (error) {\n console.error(`[LogExplorer] Failed to create volume query for ${query.spec.plugin.kind}:`, error);\n return null;\n }\n })\n );\n return results.filter((q): q is QueryDefinition => q !== null);\n },\n });\n\n return (\n <Stack gap={2} sx={{ width: '100%' }}>\n <MultiQueryEditor\n queryTypes={['LogQuery']}\n filteredQueryPlugins={logDatasourcePlugins}\n queries={queryDefinitions}\n onChange={(state) => setQueryDefinitions(state)}\n onQueryRun={() => setData({ queries: queryDefinitions })}\n />\n {volumeQueries.length > 0 && <VolumeHistogramPanel queries={volumeQueries} />}\n <LogsTablePanel queries={queries} />\n </Stack>\n );\n}\n"],"names":["Box","Stack","DataQueriesProvider","MultiQueryEditor","useAllVariableValues","useDatasourceStore","useListPluginMetadata","usePluginRegistry","useTimeRange","useState","useMemo","Panel","useExplorerManagerContext","useQuery","PANEL_PREVIEW_HEIGHT","HISTOGRAM_HEIGHT","EMPTY_QUERIES","LogsTablePanel","queries","height","definitions","panelOptions","hideHeader","definition","kind","spec","display","name","plugin","VolumeHistogramPanel","legend","position","mode","visual","stack","yAxis","label","LogExplorer","data","setData","queryDefinitions","setQueryDefinitions","getPlugin","absoluteTimeRange","datasourceStore","variableState","logQueryContext","timeRange","refreshKey","datasourcePlugins","logDatasourcePlugins","filter","pluginSpec","supportedQueryTypes","includes","map","p","volumeQueries","queryKey","queryFn","results","Promise","all","query","createVolumeQuery","error","console","q","gap","sx","width","queryTypes","filteredQueryPlugins","onChange","state","onQueryRun","length"],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/explore/log-explorer/index.ts"],"names":[],"mappings":"AAaA,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
export * from './LogExplorer';
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/explore/log-explorer/index.ts"],"sourcesContent":["// Copyright 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 './LogExplorer';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,oBAAoB,EAAoB,MAAM,2BAA2B,CAAC;AAGnF;;GAEG;AACH,wBAAgB,eAAe,IAAI,oBAAoB,CAUtD"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
import packageJson from '../package.json';
|
|
14
|
+
/**
|
|
15
|
+
* Returns the plugin module information from package.json
|
|
16
|
+
*/ export function getPluginModule() {
|
|
17
|
+
const { name, version, perses } = packageJson;
|
|
18
|
+
return {
|
|
19
|
+
kind: 'PluginModule',
|
|
20
|
+
metadata: {
|
|
21
|
+
name,
|
|
22
|
+
version
|
|
23
|
+
},
|
|
24
|
+
spec: perses
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=getPluginModule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/getPluginModule.ts"],"sourcesContent":["// Copyright 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 { PluginModuleResource, PluginModuleSpec } from '@perses-dev/plugin-system';\nimport packageJson from '../package.json';\n\n/**\n * Returns the plugin module information from package.json\n */\nexport function getPluginModule(): PluginModuleResource {\n const { name, version, perses } = packageJson;\n return {\n kind: 'PluginModule',\n metadata: {\n name,\n version,\n },\n spec: perses as PluginModuleSpec,\n };\n}\n"],"names":["packageJson","getPluginModule","name","version","perses","kind","metadata","spec"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,OAAOA,iBAAiB,kBAAkB;AAE1C;;CAEC,GACD,OAAO,SAASC;IACd,MAAM,EAAEC,IAAI,EAAEC,OAAO,EAAEC,MAAM,EAAE,GAAGJ;IAClC,OAAO;QACLK,MAAM;QACNC,UAAU;YACRJ;YACAC;QACF;QACAI,MAAMH;IACR;AACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index-federation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-federation.d.ts","sourceRoot":"","sources":["../../src/index-federation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import('./bootstrap');
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index-federation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index-federation.ts"],"sourcesContent":["// Copyright 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('./bootstrap');\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,WAAW,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
export { getPluginModule } from './getPluginModule';
|
|
14
|
+
export * from './explore';
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["// Copyright 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 { getPluginModule } from './getPluginModule';\nexport * from './explore';\n"],"names":["getPluginModule"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,eAAe,QAAQ,oBAAoB;AACpD,cAAc,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-tests.d.ts","sourceRoot":"","sources":["../../src/setup-tests.ts"],"names":[],"mappings":"AAaA,OAAO,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import '@testing-library/jest-dom';
|
|
14
|
+
// Always mock e-charts during tests since we don't have a proper canvas in jsdom
|
|
15
|
+
jest.mock('echarts/core');
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=setup-tests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/setup-tests.ts"],"sourcesContent":["// Copyright 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 '@testing-library/jest-dom';\n\n// Always mock e-charts during tests since we don't have a proper canvas in jsdom\njest.mock('echarts/core');\n"],"names":["jest","mock"],"mappings":"AAAA,+BAA+B;AAC/B,oEAAoE;AACpE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,sEAAsE;AACtE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,4BAA4B;AAEnC,iFAAiF;AACjFA,KAAKC,IAAI,CAAC"}
|