@perses-dev/clickhouse-plugin 0.1.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 +41 -0
- package/__mf/css/async/1580.6b2b0c71.css +1 -0
- package/__mf/css/async/2341.6b2b0c71.css +1 -0
- package/__mf/css/async/6759.6b2b0c71.css +1 -0
- package/__mf/font/lato-all-300-normal.322bdf14.woff +0 -0
- package/__mf/font/lato-all-400-normal.63513b00.woff +0 -0
- package/__mf/font/lato-all-700-normal.bb27db94.woff +0 -0
- package/__mf/font/lato-all-900-normal.a27049a3.woff +0 -0
- package/__mf/font/lato-latin-300-normal.c5195215.woff2 +0 -0
- package/__mf/font/lato-latin-400-normal.b7ffde23.woff2 +0 -0
- package/__mf/font/lato-latin-700-normal.d5eb20bc.woff2 +0 -0
- package/__mf/font/lato-latin-900-normal.d884a71c.woff2 +0 -0
- package/__mf/font/lato-latin-ext-300-normal.abcc64a9.woff2 +0 -0
- package/__mf/font/lato-latin-ext-400-normal.6ebed106.woff2 +0 -0
- package/__mf/font/lato-latin-ext-700-normal.8697d1d5.woff2 +0 -0
- package/__mf/font/lato-latin-ext-900-normal.20a2b415.woff2 +0 -0
- package/__mf/js/ClickHouse.99e35ca2.js +5 -0
- package/__mf/js/async/1580.5bd6ed40.js +2 -0
- package/__mf/js/async/1580.5bd6ed40.js.LICENSE.txt +9 -0
- package/__mf/js/async/1964.dccce52b.js +2 -0
- package/__mf/js/async/1964.dccce52b.js.LICENSE.txt +9 -0
- package/__mf/js/async/2114.27f707a0.js +1 -0
- package/__mf/js/async/2292.248bd1ea.js +2 -0
- package/__mf/js/async/2292.248bd1ea.js.LICENSE.txt +24 -0
- package/__mf/js/async/2417.1f135170.js +2 -0
- package/__mf/js/async/2417.1f135170.js.LICENSE.txt +9 -0
- package/__mf/js/async/2448.e42be954.js +10 -0
- package/__mf/js/async/2448.e42be954.js.LICENSE.txt +17 -0
- package/__mf/js/async/2651.3bdd6b21.js +1 -0
- package/__mf/js/async/3224.5735a223.js +1 -0
- package/__mf/js/async/3431.54fb88df.js +1 -0
- package/__mf/js/async/3632.f88c5ced.js +101 -0
- package/__mf/js/async/3863.70d46fa8.js +2 -0
- package/__mf/js/async/3863.70d46fa8.js.LICENSE.txt +9 -0
- package/__mf/js/async/3960.e0eb27f3.js +2 -0
- package/__mf/js/async/3960.e0eb27f3.js.LICENSE.txt +8 -0
- package/__mf/js/async/3980.2a6bea70.js +2 -0
- package/__mf/js/async/3980.2a6bea70.js.LICENSE.txt +9 -0
- package/__mf/js/async/4075.598f1ee5.js +1 -0
- package/__mf/js/async/4168.af4fa8b3.js +2 -0
- package/__mf/js/async/4238.8c8282dc.js +1 -0
- package/__mf/js/async/4269.a389e8c6.js +2 -0
- package/__mf/js/async/4269.a389e8c6.js.LICENSE.txt +9 -0
- package/__mf/js/async/4368.8468ec0a.js +2 -0
- package/__mf/js/async/4368.8468ec0a.js.LICENSE.txt +15 -0
- package/__mf/js/async/4421.de18bb66.js +1 -0
- package/__mf/js/async/5035.8a983cd3.js +73 -0
- package/__mf/js/async/5035.8a983cd3.js.LICENSE.txt +19 -0
- package/__mf/js/async/5214.d1943ccc.js +1 -0
- package/__mf/js/async/5409.c4876520.js +1 -0
- package/__mf/js/async/56.9997e6f8.js +1 -0
- package/__mf/js/async/5713.92805154.js +1 -0
- package/__mf/js/async/5981.f3abf3c8.js +2 -0
- package/__mf/js/async/5981.f3abf3c8.js.LICENSE.txt +8 -0
- package/__mf/js/async/6292.4311054b.js +1 -0
- package/__mf/js/async/6333.dfeaf029.js +2 -0
- package/__mf/js/async/6333.dfeaf029.js.LICENSE.txt +9 -0
- package/__mf/js/async/6377.6c8c4e15.js +2 -0
- package/__mf/js/async/6377.6c8c4e15.js.LICENSE.txt +32 -0
- package/__mf/js/async/6411.3873365b.js +1 -0
- package/__mf/js/async/6467.f4e5b898.js +1 -0
- package/__mf/js/async/6569.f8ee50db.js +1 -0
- package/__mf/js/async/6714.e4b5281a.js +2 -0
- package/__mf/js/async/6714.e4b5281a.js.LICENSE.txt +21 -0
- package/__mf/js/async/6770.e50c0d08.js +1 -0
- package/__mf/js/async/694.c93f9cdf.js +1 -0
- package/__mf/js/async/7376.c01a7f82.js +1 -0
- package/__mf/js/async/738.0cdf47b4.js +1 -0
- package/__mf/js/async/7740.b3df297f.js +1 -0
- package/__mf/js/async/8216.44c6334e.js +1 -0
- package/__mf/js/async/8465.f4c53fef.js +7 -0
- package/__mf/js/async/8465.f4c53fef.js.LICENSE.txt +21 -0
- package/__mf/js/async/8488.16a69ea5.js +1 -0
- package/__mf/js/async/8709.6d909ac5.js +2 -0
- package/__mf/js/async/8709.6d909ac5.js.LICENSE.txt +9 -0
- package/__mf/js/async/9173.90ba4f20.js +2 -0
- package/__mf/js/async/9173.90ba4f20.js.LICENSE.txt +19 -0
- package/__mf/js/async/9654.ab803765.js +37 -0
- package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js +2 -0
- package/__mf/js/async/__federation_expose_ClickHouseDatasource.1ef730b1.js.LICENSE.txt +9 -0
- package/__mf/js/async/__federation_expose_ClickHouseLogQuery.3f312752.js +19 -0
- package/__mf/js/async/__federation_expose_ClickHouseTimeSeriesQuery.a3f88e6b.js +19 -0
- package/__mf/js/async/__federation_expose_Logs.88d56eeb.js +2 -0
- package/__mf/js/async/__federation_expose_Logs.88d56eeb.js.LICENSE.txt +9 -0
- package/__mf/js/main.b7c9a660.js +5 -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/components/ClickQLEditor.js +72 -0
- package/lib/cjs/components/constants.js +41 -0
- package/lib/cjs/components/index.js +30 -0
- package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasource.js +49 -0
- package/lib/cjs/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +51 -0
- package/lib/cjs/datasources/click-house-datasource/click-house-datasource-types.js +16 -0
- package/lib/cjs/datasources/click-house-datasource/index.js +32 -0
- package/lib/cjs/datasources/index.js +30 -0
- package/lib/cjs/env.d.js +14 -0
- package/lib/cjs/getPluginModule.js +39 -0
- package/lib/cjs/index-federation.js +55 -0
- package/lib/cjs/index.js +39 -0
- package/lib/cjs/model/click-house-client.js +66 -0
- package/lib/cjs/model/click-house-data-types.js +16 -0
- package/lib/cjs/panels/index.js +30 -0
- package/lib/cjs/panels/logs/Logs.js +37 -0
- package/lib/cjs/panels/logs/LogsComponent.js +47 -0
- package/lib/cjs/panels/logs/LogsSettingsEditor.js +57 -0
- package/lib/cjs/panels/logs/components/EmptyLogsState.js +49 -0
- package/lib/cjs/panels/logs/components/LogRow/LogDetailsTable.js +71 -0
- package/lib/cjs/panels/logs/components/LogRow/LogRow.js +163 -0
- package/lib/cjs/panels/logs/components/LogRow/LogTimestamp.js +45 -0
- package/lib/cjs/panels/logs/components/LogRow/LogsStyles.js +77 -0
- package/lib/cjs/panels/logs/components/LogRow/index.js +37 -0
- package/lib/cjs/panels/logs/components/LogsList.js +44 -0
- package/lib/cjs/panels/logs/components/VirtualizedLogsList.js +60 -0
- package/lib/cjs/panels/logs/components/hooks/useExpandedRows.js +45 -0
- package/lib/cjs/panels/logs/index.js +33 -0
- package/lib/cjs/panels/logs/logs-types.js +16 -0
- package/lib/cjs/queries/click-house-log-query/ClickHouseLogQuery.js +43 -0
- package/lib/cjs/queries/click-house-log-query/ClickHouseLogQueryEditor.js +113 -0
- package/lib/cjs/queries/click-house-log-query/click-house-log-query-types.js +16 -0
- package/lib/cjs/queries/click-house-log-query/get-click-house-log-data.js +89 -0
- package/lib/cjs/queries/click-house-log-query/index.js +33 -0
- package/lib/cjs/queries/click-house-log-query/log-query-plugin-interface.js +4 -0
- package/lib/cjs/queries/click-house-time-series-query/ClickHouseQuery.js +43 -0
- package/lib/cjs/queries/click-house-time-series-query/ClickHouseQueryEditor.js +113 -0
- package/lib/cjs/queries/click-house-time-series-query/click-house-query-types.js +16 -0
- package/lib/cjs/queries/click-house-time-series-query/get-click-house-data.js +69 -0
- package/lib/cjs/queries/click-house-time-series-query/index.js +33 -0
- package/lib/cjs/queries/constants.js +34 -0
- package/lib/cjs/queries/index.js +31 -0
- package/lib/cjs/setup-tests.js +19 -0
- package/lib/components/ClickQLEditor.d.ts +5 -0
- package/lib/components/ClickQLEditor.d.ts.map +1 -0
- package/lib/components/ClickQLEditor.js +59 -0
- package/lib/components/ClickQLEditor.js.map +1 -0
- package/lib/components/constants.d.ts +2 -0
- package/lib/components/constants.d.ts.map +1 -0
- package/lib/components/constants.js +33 -0
- package/lib/components/constants.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +15 -0
- package/lib/components/index.js.map +1 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts +4 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasource.d.ts.map +1 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasource.js +41 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasource.js.map +1 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts +9 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.d.ts.map +1 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js +43 -0
- package/lib/datasources/click-house-datasource/ClickHouseDatasourceEditor.js.map +1 -0
- package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts +26 -0
- package/lib/datasources/click-house-datasource/click-house-datasource-types.d.ts.map +1 -0
- package/lib/datasources/click-house-datasource/click-house-datasource-types.js +15 -0
- package/lib/datasources/click-house-datasource/click-house-datasource-types.js.map +1 -0
- package/lib/datasources/click-house-datasource/index.d.ts +4 -0
- package/lib/datasources/click-house-datasource/index.d.ts.map +1 -0
- package/lib/datasources/click-house-datasource/index.js +17 -0
- package/lib/datasources/click-house-datasource/index.js.map +1 -0
- package/lib/datasources/index.d.ts +2 -0
- package/lib/datasources/index.d.ts.map +1 -0
- package/lib/datasources/index.js +15 -0
- package/lib/datasources/index.js.map +1 -0
- package/lib/env.d.js +15 -0
- package/lib/env.d.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 +5 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/lib/model/click-house-client.d.ts +22 -0
- package/lib/model/click-house-client.d.ts.map +1 -0
- package/lib/model/click-house-client.js +58 -0
- package/lib/model/click-house-client.js.map +1 -0
- package/lib/model/click-house-data-types.d.ts +22 -0
- package/lib/model/click-house-data-types.d.ts.map +1 -0
- package/lib/model/click-house-data-types.js +15 -0
- package/lib/model/click-house-data-types.js.map +1 -0
- package/lib/panels/index.d.ts +2 -0
- package/lib/panels/index.d.ts.map +1 -0
- package/lib/panels/index.js +15 -0
- package/lib/panels/index.js.map +1 -0
- package/lib/panels/logs/Logs.d.ts +4 -0
- package/lib/panels/logs/Logs.d.ts.map +1 -0
- package/lib/panels/logs/Logs.js +29 -0
- package/lib/panels/logs/Logs.js.map +1 -0
- package/lib/panels/logs/LogsComponent.d.ts +4 -0
- package/lib/panels/logs/LogsComponent.d.ts.map +1 -0
- package/lib/panels/logs/LogsComponent.js +34 -0
- package/lib/panels/logs/LogsComponent.js.map +1 -0
- package/lib/panels/logs/LogsSettingsEditor.d.ts +7 -0
- package/lib/panels/logs/LogsSettingsEditor.d.ts.map +1 -0
- package/lib/panels/logs/LogsSettingsEditor.js +49 -0
- package/lib/panels/logs/LogsSettingsEditor.js.map +1 -0
- package/lib/panels/logs/components/EmptyLogsState.d.ts +7 -0
- package/lib/panels/logs/components/EmptyLogsState.d.ts.map +1 -0
- package/lib/panels/logs/components/EmptyLogsState.js +36 -0
- package/lib/panels/logs/components/EmptyLogsState.js.map +1 -0
- package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts +8 -0
- package/lib/panels/logs/components/LogRow/LogDetailsTable.d.ts.map +1 -0
- package/lib/panels/logs/components/LogRow/LogDetailsTable.js +58 -0
- package/lib/panels/logs/components/LogRow/LogDetailsTable.js.map +1 -0
- package/lib/panels/logs/components/LogRow/LogRow.d.ts +14 -0
- package/lib/panels/logs/components/LogRow/LogRow.d.ts.map +1 -0
- package/lib/panels/logs/components/LogRow/LogRow.js +109 -0
- package/lib/panels/logs/components/LogRow/LogRow.js.map +1 -0
- package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts +7 -0
- package/lib/panels/logs/components/LogRow/LogTimestamp.d.ts.map +1 -0
- package/lib/panels/logs/components/LogRow/LogTimestamp.js +32 -0
- package/lib/panels/logs/components/LogRow/LogTimestamp.js.map +1 -0
- package/lib/panels/logs/components/LogRow/LogsStyles.d.ts +22 -0
- package/lib/panels/logs/components/LogRow/LogsStyles.d.ts.map +1 -0
- package/lib/panels/logs/components/LogRow/LogsStyles.js +55 -0
- package/lib/panels/logs/components/LogRow/LogsStyles.js.map +1 -0
- package/lib/panels/logs/components/LogRow/index.d.ts +3 -0
- package/lib/panels/logs/components/LogRow/index.d.ts.map +1 -0
- package/lib/panels/logs/components/LogRow/index.js +16 -0
- package/lib/panels/logs/components/LogRow/index.js.map +1 -0
- package/lib/panels/logs/components/LogsList.d.ts +8 -0
- package/lib/panels/logs/components/LogsList.d.ts.map +1 -0
- package/lib/panels/logs/components/LogsList.js +31 -0
- package/lib/panels/logs/components/LogsList.js.map +1 -0
- package/lib/panels/logs/components/VirtualizedLogsList.d.ts +10 -0
- package/lib/panels/logs/components/VirtualizedLogsList.d.ts.map +1 -0
- package/lib/panels/logs/components/VirtualizedLogsList.js +47 -0
- package/lib/panels/logs/components/VirtualizedLogsList.js.map +1 -0
- package/lib/panels/logs/components/hooks/useExpandedRows.d.ts +6 -0
- package/lib/panels/logs/components/hooks/useExpandedRows.d.ts.map +1 -0
- package/lib/panels/logs/components/hooks/useExpandedRows.js +37 -0
- package/lib/panels/logs/components/hooks/useExpandedRows.js.map +1 -0
- package/lib/panels/logs/index.d.ts +5 -0
- package/lib/panels/logs/index.d.ts.map +1 -0
- package/lib/panels/logs/index.js +18 -0
- package/lib/panels/logs/index.js.map +1 -0
- package/lib/panels/logs/logs-types.d.ts +16 -0
- package/lib/panels/logs/logs-types.d.ts.map +1 -0
- package/lib/panels/logs/logs-types.js +15 -0
- package/lib/panels/logs/logs-types.js.map +1 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts +4 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQuery.d.ts.map +1 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQuery.js +35 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQuery.js.map +1 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts +7 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.d.ts.map +1 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js +105 -0
- package/lib/queries/click-house-log-query/ClickHouseLogQueryEditor.js.map +1 -0
- package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts +6 -0
- package/lib/queries/click-house-log-query/click-house-log-query-types.d.ts.map +1 -0
- package/lib/queries/click-house-log-query/click-house-log-query-types.js +15 -0
- package/lib/queries/click-house-log-query/click-house-log-query-types.js.map +1 -0
- package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts +4 -0
- package/lib/queries/click-house-log-query/get-click-house-log-data.d.ts.map +1 -0
- package/lib/queries/click-house-log-query/get-click-house-log-data.js +81 -0
- package/lib/queries/click-house-log-query/get-click-house-log-data.js.map +1 -0
- package/lib/queries/click-house-log-query/index.d.ts +5 -0
- package/lib/queries/click-house-log-query/index.d.ts.map +1 -0
- package/lib/queries/click-house-log-query/index.js +18 -0
- package/lib/queries/click-house-log-query/index.js.map +1 -0
- package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts +25 -0
- package/lib/queries/click-house-log-query/log-query-plugin-interface.d.ts.map +1 -0
- package/lib/queries/click-house-log-query/log-query-plugin-interface.js +3 -0
- package/lib/queries/click-house-log-query/log-query-plugin-interface.js.map +1 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts +4 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQuery.d.ts.map +1 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQuery.js +35 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQuery.js.map +1 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts +7 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.d.ts.map +1 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js +105 -0
- package/lib/queries/click-house-time-series-query/ClickHouseQueryEditor.js.map +1 -0
- package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts +11 -0
- package/lib/queries/click-house-time-series-query/click-house-query-types.d.ts.map +1 -0
- package/lib/queries/click-house-time-series-query/click-house-query-types.js +16 -0
- package/lib/queries/click-house-time-series-query/click-house-query-types.js.map +1 -0
- package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts +4 -0
- package/lib/queries/click-house-time-series-query/get-click-house-data.d.ts.map +1 -0
- package/lib/queries/click-house-time-series-query/get-click-house-data.js +61 -0
- package/lib/queries/click-house-time-series-query/get-click-house-data.js.map +1 -0
- package/lib/queries/click-house-time-series-query/index.d.ts +5 -0
- package/lib/queries/click-house-time-series-query/index.d.ts.map +1 -0
- package/lib/queries/click-house-time-series-query/index.js +18 -0
- package/lib/queries/click-house-time-series-query/index.js.map +1 -0
- package/lib/queries/constants.d.ts +5 -0
- package/lib/queries/constants.d.ts.map +1 -0
- package/lib/queries/constants.js +18 -0
- package/lib/queries/constants.js.map +1 -0
- package/lib/queries/index.d.ts +3 -0
- package/lib/queries/index.d.ts.map +1 -0
- package/lib/queries/index.js +16 -0
- package/lib/queries/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 +505 -0
- package/mf-stats.json +561 -0
- package/package.json +85 -0
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
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("./ClickHouseDatasource"), exports);
|
|
18
|
+
_export_star(require("./ClickHouseDatasourceEditor"), exports);
|
|
19
|
+
_export_star(require("./click-house-datasource-types"), exports);
|
|
20
|
+
function _export_star(from, to) {
|
|
21
|
+
Object.keys(from).forEach(function(k) {
|
|
22
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
23
|
+
Object.defineProperty(to, k, {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return from[k];
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return from;
|
|
32
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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("./click-house-datasource"), 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
|
+
}
|
package/lib/cjs/env.d.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
/// <reference types="@rsbuild/core/types" />
|
|
14
|
+
"use strict";
|
|
@@ -0,0 +1,39 @@
|
|
|
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, "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
|
+
// 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
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
15
|
+
if (typeof WeakMap !== "function") return null;
|
|
16
|
+
var cacheBabelInterop = new WeakMap();
|
|
17
|
+
var cacheNodeInterop = new WeakMap();
|
|
18
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
19
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
20
|
+
})(nodeInterop);
|
|
21
|
+
}
|
|
22
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
23
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
24
|
+
return obj;
|
|
25
|
+
}
|
|
26
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
27
|
+
return {
|
|
28
|
+
default: obj
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
32
|
+
if (cache && cache.has(obj)) {
|
|
33
|
+
return cache.get(obj);
|
|
34
|
+
}
|
|
35
|
+
var newObj = {
|
|
36
|
+
__proto__: null
|
|
37
|
+
};
|
|
38
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
39
|
+
for(var key in obj){
|
|
40
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
41
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
42
|
+
if (desc && (desc.get || desc.set)) {
|
|
43
|
+
Object.defineProperty(newObj, key, desc);
|
|
44
|
+
} else {
|
|
45
|
+
newObj[key] = obj[key];
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
newObj.default = obj;
|
|
50
|
+
if (cache) {
|
|
51
|
+
cache.set(obj, newObj);
|
|
52
|
+
}
|
|
53
|
+
return newObj;
|
|
54
|
+
}
|
|
55
|
+
Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
|
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
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, "getPluginModule", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return _getPluginModule.getPluginModule;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _getPluginModule = require("./getPluginModule");
|
|
24
|
+
_export_star(require("./panels"), exports);
|
|
25
|
+
_export_star(require("./queries"), exports);
|
|
26
|
+
_export_star(require("./datasources"), exports);
|
|
27
|
+
function _export_star(from, to) {
|
|
28
|
+
Object.keys(from).forEach(function(k) {
|
|
29
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
30
|
+
Object.defineProperty(to, k, {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function() {
|
|
33
|
+
return from[k];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
return from;
|
|
39
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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, "query", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return query;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
async function query(params, queryOptions) {
|
|
24
|
+
const { datasourceUrl, headers } = queryOptions;
|
|
25
|
+
const url = urlBuilder(datasourceUrl);
|
|
26
|
+
if (!params.query) {
|
|
27
|
+
throw new Error('No query provided in params');
|
|
28
|
+
}
|
|
29
|
+
let finalQuery = params.query.trim();
|
|
30
|
+
if (!finalQuery.toUpperCase().includes('FORMAT')) {
|
|
31
|
+
finalQuery += ' FORMAT JSON';
|
|
32
|
+
}
|
|
33
|
+
url.searchParams.set('query', finalQuery);
|
|
34
|
+
url.searchParams.set('database', params.database || 'default');
|
|
35
|
+
const init = {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
headers: {
|
|
38
|
+
...headers
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
try {
|
|
42
|
+
const response = await fetch(url.toString(), init);
|
|
43
|
+
if (!response.ok) {
|
|
44
|
+
const errorText = await response.text();
|
|
45
|
+
console.error('ClickHouse error response:', errorText);
|
|
46
|
+
return {
|
|
47
|
+
status: 'error',
|
|
48
|
+
data: []
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
const body = await response.json();
|
|
52
|
+
return {
|
|
53
|
+
status: 'success',
|
|
54
|
+
data: body.data || body
|
|
55
|
+
};
|
|
56
|
+
} catch (e) {
|
|
57
|
+
throw new Error(`ClickHouse query failed: ${e}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function urlBuilder(datasourceUrl) {
|
|
61
|
+
if (datasourceUrl.startsWith('http://') || datasourceUrl.startsWith('https://')) {
|
|
62
|
+
return new URL(datasourceUrl);
|
|
63
|
+
}
|
|
64
|
+
// if relative path (e.g. proxy url), resolve against window.location.origin
|
|
65
|
+
return new URL(datasourceUrl, window.location.origin);
|
|
66
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
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,37 @@
|
|
|
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, "Logs", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return Logs;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _LogsComponent = require("./LogsComponent");
|
|
24
|
+
const _LogsSettingsEditor = require("./LogsSettingsEditor");
|
|
25
|
+
const Logs = {
|
|
26
|
+
PanelComponent: _LogsComponent.LogsComponent,
|
|
27
|
+
panelOptionsEditorComponents: [
|
|
28
|
+
{
|
|
29
|
+
label: 'Settings',
|
|
30
|
+
content: _LogsSettingsEditor.LogsSettingsEditor
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
supportedQueryTypes: [
|
|
34
|
+
'LogQuery'
|
|
35
|
+
],
|
|
36
|
+
createInitialOptions: ()=>({})
|
|
37
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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, "LogsComponent", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return LogsComponent;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
+
const _material = require("@mui/material");
|
|
25
|
+
const _LogsList = /*#__PURE__*/ _interop_require_default(require("./components/LogsList"));
|
|
26
|
+
function _interop_require_default(obj) {
|
|
27
|
+
return obj && obj.__esModule ? obj : {
|
|
28
|
+
default: obj
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function LogsComponent(props) {
|
|
32
|
+
const { queryResults, spec } = props;
|
|
33
|
+
if (queryResults[0]?.data.logs === undefined) {
|
|
34
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
35
|
+
variant: "h3",
|
|
36
|
+
sx: {
|
|
37
|
+
textAlign: 'center',
|
|
38
|
+
marginTop: 4
|
|
39
|
+
},
|
|
40
|
+
children: "No logs to display"
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const logs = queryResults[0]?.data.logs.entries;
|
|
44
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_LogsList.default, {
|
|
45
|
+
logs: logs
|
|
46
|
+
});
|
|
47
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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, "LogsSettingsEditor", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return LogsSettingsEditor;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
+
const _components = require("@perses-dev/components");
|
|
25
|
+
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
26
|
+
function LogsSettingsEditor(props) {
|
|
27
|
+
const { onChange, value } = props;
|
|
28
|
+
const handleLegendChange = (newLegend)=>{
|
|
29
|
+
onChange({
|
|
30
|
+
...value,
|
|
31
|
+
legend: newLegend
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const handleThresholdsChange = (thresholds)=>{
|
|
35
|
+
onChange({
|
|
36
|
+
...value,
|
|
37
|
+
thresholds
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.OptionsEditorGrid, {
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorColumn, {
|
|
43
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_pluginsystem.LegendOptionsEditor, {
|
|
44
|
+
value: value.legend,
|
|
45
|
+
onChange: handleLegendChange
|
|
46
|
+
})
|
|
47
|
+
}),
|
|
48
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorColumn, {
|
|
49
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.ThresholdsEditor, {
|
|
50
|
+
hideDefault: true,
|
|
51
|
+
thresholds: value.thresholds,
|
|
52
|
+
onChange: handleThresholdsChange
|
|
53
|
+
})
|
|
54
|
+
})
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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, "EmptyLogsState", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return EmptyLogsState;
|
|
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 EmptyLogsState = ({ message = 'No logs to display' })=>{
|
|
32
|
+
const theme = (0, _material.useTheme)();
|
|
33
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Box, {
|
|
34
|
+
sx: {
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'center',
|
|
38
|
+
height: '200px'
|
|
39
|
+
},
|
|
40
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Typography, {
|
|
41
|
+
variant: "body2",
|
|
42
|
+
sx: {
|
|
43
|
+
color: theme.palette.text.secondary,
|
|
44
|
+
fontSize: '14px'
|
|
45
|
+
},
|
|
46
|
+
children: message
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
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, "LogDetailsTable", {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function() {
|
|
20
|
+
return LogDetailsTable;
|
|
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 LogDetailsTable = ({ log })=>{
|
|
32
|
+
const theme = (0, _material.useTheme)();
|
|
33
|
+
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Table, {
|
|
34
|
+
size: "small",
|
|
35
|
+
sx: {
|
|
36
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
37
|
+
'& .MuiTableCell-root': {
|
|
38
|
+
border: 'none',
|
|
39
|
+
padding: '6px 8px',
|
|
40
|
+
fontSize: '12px'
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableBody, {
|
|
44
|
+
children: Object.entries(log).map(([key, value])=>/*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.TableRow, {
|
|
45
|
+
sx: {
|
|
46
|
+
'&:hover': {
|
|
47
|
+
backgroundColor: (0, _material.alpha)(theme.palette.action.hover, 0.04)
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
children: [
|
|
51
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableCell, {
|
|
52
|
+
sx: {
|
|
53
|
+
color: theme.palette.text.secondary,
|
|
54
|
+
fontWeight: 500,
|
|
55
|
+
width: '33%'
|
|
56
|
+
},
|
|
57
|
+
children: key
|
|
58
|
+
}),
|
|
59
|
+
/*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TableCell, {
|
|
60
|
+
sx: {
|
|
61
|
+
color: theme.palette.text.primary,
|
|
62
|
+
wordBreak: 'break-word',
|
|
63
|
+
width: '67%'
|
|
64
|
+
},
|
|
65
|
+
children: value !== undefined && value !== null && value !== '' ? value : '--'
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
}, key))
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
};
|