@perses-dev/victorialogs-plugin 0.2.0 → 0.3.0-rc.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/VictoriaLogs.c7d074d4.js +6 -0
- package/__mf/js/async/1170.1ace5903.js +101 -0
- package/__mf/js/async/1430.bac7994c.js +1 -0
- package/__mf/js/async/1616.44d9fc39.js +1 -0
- package/__mf/js/async/1728.c9fc8da6.js +1 -0
- package/__mf/js/async/1969.4f0fc9ef.js +1 -0
- package/__mf/js/async/2043.a03fc64f.js +2 -0
- package/__mf/js/async/{8930.fa15926d.js → 2377.443a1b22.js} +1 -1
- package/__mf/js/async/2386.21b9bb32.js +2 -0
- package/__mf/js/async/2749.edab3f5e.js +2 -0
- package/__mf/js/async/3059.bd425bfb.js +1 -0
- package/__mf/js/async/3181.0e31aa90.js +2 -0
- package/__mf/js/async/392.2a915032.js +2 -0
- package/__mf/js/async/3954.dbc4d4c5.js +1 -0
- package/__mf/js/async/{1964.6d84f735.js → 4121.db798067.js} +2 -2
- package/__mf/js/async/4225.43367877.js +10 -0
- package/__mf/js/async/4248.ce5ffe03.js +1 -0
- package/__mf/js/async/5071.b48bd1f7.js +1 -0
- package/__mf/js/async/54.b0728da4.js +22 -0
- package/__mf/js/async/5440.9338b9ea.js +2 -0
- package/__mf/js/async/{6377.e48abaa5.js.LICENSE.txt → 5440.9338b9ea.js.LICENSE.txt} +3 -3
- package/__mf/js/async/{5214.bcb7530e.js → 5587.dfbc3ebc.js} +1 -1
- package/__mf/js/async/5706.a7fb5c1b.js +1 -0
- package/__mf/js/async/6274.f6456c87.js +2 -0
- package/__mf/js/async/6283.5edb374e.js +2 -0
- package/__mf/js/async/6854.efd1a0a6.js +1 -0
- package/__mf/js/async/{8488.9eb8e6dc.js → 7177.0fe1dff0.js} +1 -1
- package/__mf/js/async/7192.cb6ffe0e.js +1 -0
- package/__mf/js/async/7370.ef522250.js +2 -0
- package/__mf/js/async/7576.bfd4659f.js +2 -0
- package/__mf/js/async/7793.06fe240f.js +1 -0
- package/__mf/js/async/7958.11c8b9fb.js +7 -0
- package/__mf/js/async/7968.5fed5183.js +1 -0
- package/__mf/js/async/7978.c5b22459.js +1 -0
- package/__mf/js/async/8356.2b39af38.js +1 -0
- package/__mf/js/async/8470.32cf23b6.js +2 -0
- package/__mf/js/async/8482.6c4d64de.js +1 -0
- package/__mf/js/async/873.f5cf5a02.js +1 -0
- package/__mf/js/async/9010.c2b659be.js +2 -0
- package/__mf/js/async/9071.720986e2.js +2 -0
- package/__mf/js/async/9235.543bd352.js +1 -0
- package/__mf/js/async/941.6f8e368d.js +2 -0
- package/__mf/js/async/9588.b67d84aa.js +1 -0
- package/__mf/js/async/9836.bbf150b2.js +1 -0
- package/__mf/js/async/9877.73cfc5dd.js +38 -0
- package/__mf/js/async/9944.34a79f7c.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.c8ad37a6.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.9d1b2e5f.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.4abd81e1.js +2 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.7bfaa758.js +1 -0
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.ee3ac90f.js +1 -0
- package/__mf/js/main.5b55b7ef.js +6 -0
- package/lib/bootstrap.js +15 -3
- package/lib/bootstrap.js.map +1 -1
- package/lib/cjs/bootstrap.js +13 -1
- package/lib/cjs/components/index.js +1 -1
- package/lib/cjs/components/logsql-editor.js +1 -1
- package/lib/cjs/components/logsql-extension.js +1 -1
- package/lib/cjs/components/logsql-highlight.js +1 -1
- package/lib/cjs/datasources/index.js +1 -1
- package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +1 -1
- package/lib/cjs/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +1 -1
- package/lib/cjs/datasources/victorialogs-datasource/index.js +1 -1
- package/lib/cjs/datasources/victorialogs-datasource/types.js +1 -1
- package/lib/cjs/env.d.js +12 -0
- package/lib/cjs/getPluginModule.js +12 -0
- package/lib/cjs/index-federation.js +12 -0
- package/lib/cjs/index.js +12 -0
- package/lib/cjs/model/client.js +15 -15
- package/lib/cjs/model/index.js +1 -1
- package/lib/cjs/model/selectors.js +6 -6
- package/lib/cjs/model/types.js +1 -1
- package/lib/cjs/queries/constants.js +15 -3
- package/lib/cjs/queries/index.js +1 -1
- package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +12 -0
- package/lib/cjs/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +1 -1
- package/lib/cjs/queries/victorialogs-log-query/index.js +12 -0
- package/lib/cjs/queries/victorialogs-log-query/interface.js +12 -0
- package/lib/cjs/queries/victorialogs-log-query/query.js +13 -1
- package/lib/cjs/queries/victorialogs-log-query/types.js +12 -0
- package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +1 -1
- package/lib/cjs/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +1 -1
- package/lib/cjs/queries/victorialogs-time-series-query/index.js +1 -1
- package/lib/cjs/queries/victorialogs-time-series-query/query.js +2 -2
- package/lib/cjs/queries/victorialogs-time-series-query/types.js +1 -1
- package/lib/cjs/setup-tests.js +12 -0
- package/lib/cjs/variables/index.js +1 -1
- package/lib/cjs/variables/types.js +12 -0
- package/lib/cjs/variables/utils.js +17 -5
- package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +13 -1
- package/lib/cjs/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +1 -1
- package/lib/cjs/variables/victorialogs-field-names/index.js +1 -1
- package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +13 -1
- package/lib/cjs/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +1 -1
- package/lib/cjs/variables/victorialogs-field-values/index.js +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/logsql-editor.js +2 -2
- package/lib/components/logsql-editor.js.map +1 -1
- package/lib/components/logsql-extension.js +1 -1
- package/lib/components/logsql-extension.js.map +1 -1
- package/lib/components/logsql-highlight.js +1 -1
- package/lib/components/logsql-highlight.js.map +1 -1
- package/lib/datasources/index.js +1 -1
- package/lib/datasources/index.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.d.ts.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasource.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js +2 -2
- package/lib/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/index.js +1 -1
- package/lib/datasources/victorialogs-datasource/index.js.map +1 -1
- package/lib/datasources/victorialogs-datasource/types.js +1 -1
- package/lib/datasources/victorialogs-datasource/types.js.map +1 -1
- package/lib/env.d.js +12 -0
- package/lib/env.d.js.map +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +12 -0
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +12 -0
- package/lib/index-federation.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -0
- package/lib/index.js.map +1 -1
- package/lib/model/client.d.ts.map +1 -1
- package/lib/model/client.js +10 -10
- package/lib/model/client.js.map +1 -1
- package/lib/model/index.js +1 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/selectors.d.ts.map +1 -1
- package/lib/model/selectors.js +1 -1
- package/lib/model/selectors.js.map +1 -1
- package/lib/model/types.d.ts.map +1 -1
- package/lib/model/types.js +1 -1
- package/lib/model/types.js.map +1 -1
- package/lib/queries/constants.d.ts.map +1 -1
- package/lib/queries/constants.js +12 -0
- package/lib/queries/constants.js.map +1 -1
- package/lib/queries/index.js +1 -1
- package/lib/queries/index.js.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js +12 -0
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQuery.js.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js +2 -2
- package/lib/queries/victorialogs-log-query/VictoriaLogsLogQueryEditor.js.map +1 -1
- package/lib/queries/victorialogs-log-query/index.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/index.js +12 -0
- package/lib/queries/victorialogs-log-query/index.js.map +1 -1
- package/lib/queries/victorialogs-log-query/interface.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/interface.js +12 -0
- package/lib/queries/victorialogs-log-query/interface.js.map +1 -1
- package/lib/queries/victorialogs-log-query/query.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/query.js +13 -1
- package/lib/queries/victorialogs-log-query/query.js.map +1 -1
- package/lib/queries/victorialogs-log-query/types.d.ts.map +1 -1
- package/lib/queries/victorialogs-log-query/types.js +12 -0
- package/lib/queries/victorialogs-log-query/types.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQuery.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js +2 -2
- package/lib/queries/victorialogs-time-series-query/VictoriaLogsTimeSeriesQueryEditor.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/index.js +1 -1
- package/lib/queries/victorialogs-time-series-query/index.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/query.d.ts.map +1 -1
- package/lib/queries/victorialogs-time-series-query/query.js +2 -2
- package/lib/queries/victorialogs-time-series-query/query.js.map +1 -1
- package/lib/queries/victorialogs-time-series-query/types.js +1 -1
- package/lib/queries/victorialogs-time-series-query/types.js.map +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +12 -0
- package/lib/setup-tests.js.map +1 -1
- package/lib/variables/index.js +1 -1
- package/lib/variables/index.js.map +1 -1
- package/lib/variables/types.d.ts +1 -1
- package/lib/variables/types.d.ts.map +1 -1
- package/lib/variables/types.js +12 -0
- package/lib/variables/types.js.map +1 -1
- package/lib/variables/utils.d.ts +1 -1
- package/lib/variables/utils.d.ts.map +1 -1
- package/lib/variables/utils.js +12 -0
- package/lib/variables/utils.js.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js +13 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariable.js.map +1 -1
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js +2 -2
- package/lib/variables/victorialogs-field-names/VictoriaLogsFieldNamesVariableEditor.js.map +1 -1
- package/lib/variables/victorialogs-field-names/index.js +1 -1
- package/lib/variables/victorialogs-field-names/index.js.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.d.ts.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js +13 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariable.js.map +1 -1
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js +2 -2
- package/lib/variables/victorialogs-field-values/VictoriaLogsFieldValuesVariableEditor.js.map +1 -1
- package/lib/variables/victorialogs-field-values/index.js +1 -1
- package/lib/variables/victorialogs-field-values/index.js.map +1 -1
- package/mf-manifest.json +159 -159
- package/mf-stats.json +159 -159
- package/package.json +7 -6
- package/__mf/js/VictoriaLogs.52130265.js +0 -5
- package/__mf/js/async/1398.34d5ed30.js +0 -2
- package/__mf/js/async/158.c35084cf.js +0 -10
- package/__mf/js/async/1580.ace454a9.js +0 -2
- package/__mf/js/async/2292.0696771a.js +0 -2
- package/__mf/js/async/2558.beff8442.js +0 -101
- package/__mf/js/async/3224.858fb6d6.js +0 -1
- package/__mf/js/async/3431.358ac817.js +0 -1
- package/__mf/js/async/3863.66f8659b.js +0 -2
- package/__mf/js/async/3960.bbacac1d.js +0 -2
- package/__mf/js/async/3980.03396afa.js +0 -2
- package/__mf/js/async/4075.8aae8af4.js +0 -1
- package/__mf/js/async/4238.cd5e3d1f.js +0 -1
- package/__mf/js/async/4269.f9191848.js +0 -2
- package/__mf/js/async/4310.9ddfd236.js +0 -7
- package/__mf/js/async/4421.b3e6be64.js +0 -1
- package/__mf/js/async/4557.4ca5a213.js +0 -2
- package/__mf/js/async/4676.db842b1a.js +0 -22
- package/__mf/js/async/5348.aa77f629.js +0 -2
- package/__mf/js/async/5388.92f525c5.js +0 -1
- package/__mf/js/async/5409.5d25f1db.js +0 -1
- package/__mf/js/async/5628.f229b9f6.js +0 -1
- package/__mf/js/async/5682.a317ee96.js +0 -1
- package/__mf/js/async/5790.f7a41a40.js +0 -1
- package/__mf/js/async/58.8a4336f8.js +0 -2
- package/__mf/js/async/5981.e54ec80b.js +0 -2
- package/__mf/js/async/6134.6f58094d.js +0 -38
- package/__mf/js/async/6292.fda8a9af.js +0 -1
- package/__mf/js/async/6333.031c68b4.js +0 -2
- package/__mf/js/async/6374.e9650306.js +0 -1
- package/__mf/js/async/6377.e48abaa5.js +0 -2
- package/__mf/js/async/6770.5c90a318.js +0 -1
- package/__mf/js/async/694.663f3faf.js +0 -1
- package/__mf/js/async/7376.91743064.js +0 -1
- package/__mf/js/async/738.b4e8c361.js +0 -1
- package/__mf/js/async/7740.82b38509.js +0 -1
- package/__mf/js/async/7797.2bda5f99.js +0 -1
- package/__mf/js/async/8216.3417496f.js +0 -1
- package/__mf/js/async/8537.a7ed2e24.js +0 -1
- package/__mf/js/async/8727.e54ca5fd.js +0 -1
- package/__mf/js/async/9173.d784dd69.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsDatasource.f8412079.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldNamesVariable.e900c02f.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsFieldValuesVariable.82b66c29.js +0 -2
- package/__mf/js/async/__federation_expose_VictoriaLogsLogQuery.906cc07c.js +0 -1
- package/__mf/js/async/__federation_expose_VictoriaLogsTimeSeriesQuery.37c3a83e.js +0 -1
- package/__mf/js/main.0293cd8e.js +0 -5
- /package/__mf/css/async/{1580.d3010b86.css → 3061.d3010b86.css} +0 -0
- /package/__mf/css/async/{2341.d3010b86.css → 7370.d3010b86.css} +0 -0
- /package/__mf/js/async/{2292.0696771a.js.LICENSE.txt → 2043.a03fc64f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1398.34d5ed30.js.LICENSE.txt → 2386.21b9bb32.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1580.ace454a9.js.LICENSE.txt → 2749.edab3f5e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3863.66f8659b.js.LICENSE.txt → 3181.0e31aa90.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5981.e54ec80b.js.LICENSE.txt → 392.2a915032.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1964.6d84f735.js.LICENSE.txt → 4121.db798067.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{158.c35084cf.js.LICENSE.txt → 4225.43367877.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4676.db842b1a.js.LICENSE.txt → 54.b0728da4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3960.bbacac1d.js.LICENSE.txt → 6274.f6456c87.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3980.03396afa.js.LICENSE.txt → 6283.5edb374e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4269.f9191848.js.LICENSE.txt → 7370.ef522250.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{58.8a4336f8.js.LICENSE.txt → 7576.bfd4659f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4310.9ddfd236.js.LICENSE.txt → 7958.11c8b9fb.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9173.d784dd69.js.LICENSE.txt → 8470.32cf23b6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4557.4ca5a213.js.LICENSE.txt → 9010.c2b659be.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5348.aa77f629.js.LICENSE.txt → 9071.720986e2.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6333.031c68b4.js.LICENSE.txt → 941.6f8e368d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsDatasource.f8412079.js.LICENSE.txt → __federation_expose_VictoriaLogsDatasource.c8ad37a6.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldNamesVariable.e900c02f.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldNamesVariable.9d1b2e5f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_VictoriaLogsFieldValuesVariable.82b66c29.js.LICENSE.txt → __federation_expose_VictoriaLogsFieldValuesVariable.4abd81e1.js.LICENSE.txt} +0 -0
package/lib/cjs/queries/index.js
CHANGED
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -17,7 +29,7 @@ function convertStreamToLogs(data, defaultTime) {
|
|
|
17
29
|
const time = !_time && !_msg ? defaultTime : Date.parse(_time);
|
|
18
30
|
entries.push({
|
|
19
31
|
timestamp: Number(time) / 1000,
|
|
20
|
-
line: _msg ||
|
|
32
|
+
line: _msg || '',
|
|
21
33
|
labels: labels
|
|
22
34
|
});
|
|
23
35
|
});
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -63,7 +63,7 @@ function convertMatrixToTimeSeries(matrix) {
|
|
|
63
63
|
if (_stream) {
|
|
64
64
|
const match = _stream.match(/{([^}]+)}/);
|
|
65
65
|
if (match && match[1]) {
|
|
66
|
-
|
|
66
|
+
match[1].split(',').forEach((labelPair)=>{
|
|
67
67
|
const [key, val] = labelPair.split('=').map((s)=>s.trim().replace(/^"|"$/g, ''));
|
|
68
68
|
if (key && val) labels[key] = val;
|
|
69
69
|
});
|
package/lib/cjs/setup-tests.js
CHANGED
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -5,20 +17,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
17
|
function _export(target, all) {
|
|
6
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
19
|
enumerable: true,
|
|
8
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
21
|
});
|
|
10
22
|
}
|
|
11
23
|
_export(exports, {
|
|
12
|
-
fieldItemsToVariableOptions
|
|
24
|
+
get fieldItemsToVariableOptions () {
|
|
13
25
|
return fieldItemsToVariableOptions;
|
|
14
26
|
},
|
|
15
|
-
getVictoriaLogsTimeRange
|
|
27
|
+
get getVictoriaLogsTimeRange () {
|
|
16
28
|
return getVictoriaLogsTimeRange;
|
|
17
29
|
},
|
|
18
|
-
useFieldNames
|
|
30
|
+
get useFieldNames () {
|
|
19
31
|
return useFieldNames;
|
|
20
32
|
},
|
|
21
|
-
useFieldValues
|
|
33
|
+
get useFieldValues () {
|
|
22
34
|
return useFieldValues;
|
|
23
35
|
}
|
|
24
36
|
});
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -10,8 +22,8 @@ Object.defineProperty(exports, "VictoriaLogsFieldNamesVariable", {
|
|
|
10
22
|
});
|
|
11
23
|
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
12
24
|
const _model = require("../../model");
|
|
13
|
-
const _VictoriaLogsFieldNamesVariableEditor = require("./VictoriaLogsFieldNamesVariableEditor");
|
|
14
25
|
const _utils = require("../utils");
|
|
26
|
+
const _VictoriaLogsFieldNamesVariableEditor = require("./VictoriaLogsFieldNamesVariableEditor");
|
|
15
27
|
const VictoriaLogsFieldNamesVariable = {
|
|
16
28
|
getVariableOptions: async (spec, ctx)=>{
|
|
17
29
|
const datasourceSelector = (0, _pluginsystem.datasourceSelectValueToSelector)(spec.datasource ?? _model.DEFAULT_VICTORIALOGS, ctx.variables, await ctx.datasourceStore.listDatasourceSelectItems(_model.VICTORIALOGS_DATASOURCE_KIND)) ?? _model.DEFAULT_VICTORIALOGS;
|
|
@@ -1,3 +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.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -10,8 +22,8 @@ Object.defineProperty(exports, "VictoriaLogsFieldValuesVariable", {
|
|
|
10
22
|
});
|
|
11
23
|
const _pluginsystem = require("@perses-dev/plugin-system");
|
|
12
24
|
const _model = require("../../model");
|
|
13
|
-
const _VictoriaLogsFieldValuesVariableEditor = require("./VictoriaLogsFieldValuesVariableEditor");
|
|
14
25
|
const _utils = require("../utils");
|
|
26
|
+
const _VictoriaLogsFieldValuesVariableEditor = require("./VictoriaLogsFieldValuesVariableEditor");
|
|
15
27
|
const VictoriaLogsFieldValuesVariable = {
|
|
16
28
|
getVariableOptions: async (spec, ctx)=>{
|
|
17
29
|
const datasourceSelector = (0, _pluginsystem.datasourceSelectValueToSelector)(spec.datasource ?? _model.DEFAULT_VICTORIALOGS, ctx.variables, await ctx.datasourceStore.listDatasourceSelectItems(_model.VICTORIALOGS_DATASOURCE_KIND)) ?? _model.DEFAULT_VICTORIALOGS;
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../src/components/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 { LogsQLEditor } from './logsql-editor';\nexport type { LogsQLEditorProps } from './logsql-editor';\n"],"names":["LogsQLEditor"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,YAAY,QAAQ,kBAAkB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright The Perses Authors
|
|
2
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
4
|
// you may not use this file except in compliance with the License.
|
|
4
5
|
// You may obtain a copy of the License at
|
|
@@ -10,7 +11,6 @@
|
|
|
10
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
12
|
// See the License for the specific language governing permissions and
|
|
12
13
|
// limitations under the License.
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { useMemo } from 'react';
|
|
15
15
|
import { useTheme } from '@mui/material';
|
|
16
16
|
import CodeMirror, { EditorView } from '@uiw/react-codemirror';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/logsql-editor.tsx"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../src/components/logsql-editor.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 { ReactElement, useMemo } from 'react';\nimport { useTheme } from '@mui/material';\nimport CodeMirror, { EditorView, ReactCodeMirrorProps } from '@uiw/react-codemirror';\nimport { LogsQLExtension } from './logsql-extension';\n\nexport type LogsQLEditorProps = Omit<ReactCodeMirrorProps, 'theme' | 'extensions'>;\n\nexport function LogsQLEditor(props: LogsQLEditorProps): ReactElement {\n const theme = useTheme();\n const isDarkMode = theme.palette.mode === 'dark';\n\n const logsqlExtension = useMemo(() => {\n return LogsQLExtension();\n }, []);\n\n const codemirrorTheme = useMemo(() => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n\n return EditorView.theme({\n '&': {\n backgroundColor: 'transparent !important', // required for dark mode\n border: `1px solid ${borderColor}`,\n borderRadius: `${theme.shape.borderRadius}px`,\n },\n '&.cm-focused.cm-editor': {\n outline: 'none',\n },\n '.cm-content': {\n padding: '8px',\n },\n });\n }, [theme]);\n\n return (\n <CodeMirror\n {...props}\n theme={isDarkMode ? 'dark' : 'light'}\n basicSetup={{\n lineNumbers: false,\n highlightActiveLine: false,\n highlightActiveLineGutter: false,\n foldGutter: false,\n syntaxHighlighting: true,\n }}\n extensions={[EditorView.lineWrapping, logsqlExtension, codemirrorTheme]}\n placeholder='Example: {job=\"my-service\"} |= \"error\"'\n />\n );\n}\n"],"names":["useMemo","useTheme","CodeMirror","EditorView","LogsQLExtension","LogsQLEditor","props","theme","isDarkMode","palette","mode","logsqlExtension","codemirrorTheme","borderColor","backgroundColor","border","borderRadius","shape","outline","padding","basicSetup","lineNumbers","highlightActiveLine","highlightActiveLineGutter","foldGutter","syntaxHighlighting","extensions","lineWrapping","placeholder"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAAuBA,OAAO,QAAQ,QAAQ;AAC9C,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,OAAOC,cAAcC,UAAU,QAA8B,wBAAwB;AACrF,SAASC,eAAe,QAAQ,qBAAqB;AAIrD,OAAO,SAASC,aAAaC,KAAwB;IACnD,MAAMC,QAAQN;IACd,MAAMO,aAAaD,MAAME,OAAO,CAACC,IAAI,KAAK;IAE1C,MAAMC,kBAAkBX,QAAQ;QAC9B,OAAOI;IACT,GAAG,EAAE;IAEL,MAAMQ,kBAAkBZ,QAAQ;QAC9B,MAAMa,cAAcN,MAAME,OAAO,CAACC,IAAI,KAAK,UAAU,wBAAwB;QAE7E,OAAOP,WAAWI,KAAK,CAAC;YACtB,KAAK;gBACHO,iBAAiB;gBACjBC,QAAQ,CAAC,UAAU,EAAEF,aAAa;gBAClCG,cAAc,GAAGT,MAAMU,KAAK,CAACD,YAAY,CAAC,EAAE,CAAC;YAC/C;YACA,0BAA0B;gBACxBE,SAAS;YACX;YACA,eAAe;gBACbC,SAAS;YACX;QACF;IACF,GAAG;QAACZ;KAAM;IAEV,qBACE,KAACL;QACE,GAAGI,KAAK;QACTC,OAAOC,aAAa,SAAS;QAC7BY,YAAY;YACVC,aAAa;YACbC,qBAAqB;YACrBC,2BAA2B;YAC3BC,YAAY;YACZC,oBAAoB;QACtB;QACAC,YAAY;YAACvB,WAAWwB,YAAY;YAAEhB;YAAiBC;SAAgB;QACvEgB,aAAY;;AAGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/logsql-extension.ts"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../src/components/logsql-extension.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 { LRLanguage } from '@codemirror/language';\nimport { parser } from '@grafana/lezer-logql';\nimport { Extension } from '@uiw/react-codemirror';\nimport { logsqlHighlight } from './logsql-highlight';\n\nfunction logsqlLanguage(): LRLanguage {\n return LRLanguage.define({\n parser: parser.configure({\n props: [logsqlHighlight],\n }),\n languageData: {\n closeBrackets: { brackets: ['(', '[', '{', \"'\", '\"', '`'] },\n commentTokens: { line: '#' },\n },\n });\n}\n\nexport function LogsQLExtension(): Array<LRLanguage | Extension> {\n const language = logsqlLanguage();\n return [language];\n}\n"],"names":["LRLanguage","parser","logsqlHighlight","logsqlLanguage","define","configure","props","languageData","closeBrackets","brackets","commentTokens","line","LogsQLExtension","language"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,UAAU,QAAQ,uBAAuB;AAClD,SAASC,MAAM,QAAQ,uBAAuB;AAE9C,SAASC,eAAe,QAAQ,qBAAqB;AAErD,SAASC;IACP,OAAOH,WAAWI,MAAM,CAAC;QACvBH,QAAQA,OAAOI,SAAS,CAAC;YACvBC,OAAO;gBAACJ;aAAgB;QAC1B;QACAK,cAAc;YACZC,eAAe;gBAAEC,UAAU;oBAAC;oBAAK;oBAAK;oBAAK;oBAAK;oBAAK;iBAAI;YAAC;YAC1DC,eAAe;gBAAEC,MAAM;YAAI;QAC7B;IACF;AACF;AAEA,OAAO,SAASC;IACd,MAAMC,WAAWV;IACjB,OAAO;QAACU;KAAS;AACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/logsql-highlight.ts"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../src/components/logsql-highlight.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 { styleTags, tags } from '@lezer/highlight';\n\nexport const logsqlHighlight = styleTags({\n LineComment: tags.comment,\n 'Identifier StreamSelector': tags.labelName,\n 'LabelName LabelMatcher': tags.labelName,\n String: tags.string,\n 'Number Float Duration': tags.number,\n 'LogRangeAggregation VectorAggregation': tags.function(tags.keyword),\n 'And Or Unless': tags.logicOperator,\n 'Eq Neq Re Nre Gt Lt Gte Lte': tags.compareOperator,\n 'Add Sub Mul Div Mod Pow': tags.arithmeticOperator,\n Pipe: tags.operator,\n 'By Without': tags.keyword,\n '( )': tags.paren,\n '[ ]': tags.squareBracket,\n '{ }': tags.brace,\n '⚠': tags.invalid,\n});\n"],"names":["styleTags","tags","logsqlHighlight","LineComment","comment","labelName","String","string","number","function","keyword","logicOperator","compareOperator","arithmeticOperator","Pipe","operator","paren","squareBracket","brace","invalid"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,SAAS,EAAEC,IAAI,QAAQ,mBAAmB;AAEnD,OAAO,MAAMC,kBAAkBF,UAAU;IACvCG,aAAaF,KAAKG,OAAO;IACzB,6BAA6BH,KAAKI,SAAS;IAC3C,0BAA0BJ,KAAKI,SAAS;IACxCC,QAAQL,KAAKM,MAAM;IACnB,yBAAyBN,KAAKO,MAAM;IACpC,yCAAyCP,KAAKQ,QAAQ,CAACR,KAAKS,OAAO;IACnE,iBAAiBT,KAAKU,aAAa;IACnC,+BAA+BV,KAAKW,eAAe;IACnD,2BAA2BX,KAAKY,kBAAkB;IAClDC,MAAMb,KAAKc,QAAQ;IACnB,cAAcd,KAAKS,OAAO;IAC1B,OAAOT,KAAKe,KAAK;IACjB,OAAOf,KAAKgB,aAAa;IACzB,OAAOhB,KAAKiB,KAAK;IACjB,KAAKjB,KAAKkB,OAAO;AACnB,GAAG"}
|
package/lib/datasources/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/datasources/index.ts"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../src/datasources/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 './victorialogs-datasource';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VictoriaLogsDatasource.d.ts","sourceRoot":"","sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasource.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"VictoriaLogsDatasource.d.ts","sourceRoot":"","sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasource.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAA8D,MAAM,oBAAoB,CAAC;AACpH,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AA4BrD,eAAO,MAAM,sBAAsB,EAAE,gBAAgB,CAAC,0BAA0B,EAAE,kBAAkB,CAInG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasource.tsx"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasource.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 { DatasourcePlugin } from '@perses-dev/plugin-system';\nimport { VictoriaLogsClient, streamQueryRange, statsQueryRange, fieldNames, fieldValues } from '../../model/client';\nimport { VictoriaLogsDatasourceSpec } from './types';\nimport { VictoriaLogsDatasourceEditor } from './VictoriaLogsDatasourceEditor';\n\nconst createClient: DatasourcePlugin<VictoriaLogsDatasourceSpec, VictoriaLogsClient>['createClient'] = (\n spec,\n options\n) => {\n const { directUrl, proxy } = spec;\n const { proxyUrl } = options;\n\n const datasourceUrl = directUrl ?? proxyUrl;\n if (datasourceUrl === undefined) {\n throw new Error('No URL specified for VictoriaLogs client. You can use directUrl in the spec to configure it.');\n }\n\n const specHeaders = proxy?.spec.headers;\n\n return {\n options: {\n datasourceUrl,\n },\n streamQueryRange: (params, headers) => streamQueryRange(params, { datasourceUrl, headers: headers ?? specHeaders }),\n statsQueryRange: (params, headers) => statsQueryRange(params, { datasourceUrl, headers: headers ?? specHeaders }),\n fieldNames: (params, headers) => fieldNames(params, { datasourceUrl, headers: headers ?? specHeaders }),\n fieldValues: (params, headers) => fieldValues(params, { datasourceUrl, headers: headers ?? specHeaders }),\n };\n};\n\nexport const VictoriaLogsDatasource: DatasourcePlugin<VictoriaLogsDatasourceSpec, VictoriaLogsClient> = {\n createClient,\n OptionsEditorComponent: VictoriaLogsDatasourceEditor,\n createInitialOptions: () => ({ directUrl: '' }),\n};\n"],"names":["streamQueryRange","statsQueryRange","fieldNames","fieldValues","VictoriaLogsDatasourceEditor","createClient","spec","options","directUrl","proxy","proxyUrl","datasourceUrl","undefined","Error","specHeaders","headers","params","VictoriaLogsDatasource","OptionsEditorComponent","createInitialOptions"],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAA6BA,gBAAgB,EAAEC,eAAe,EAAEC,UAAU,EAAEC,WAAW,QAAQ,qBAAqB;AAEpH,SAASC,4BAA4B,QAAQ,iCAAiC;AAE9E,MAAMC,eAAiG,CACrGC,MACAC;IAEA,MAAM,EAAEC,SAAS,EAAEC,KAAK,EAAE,GAAGH;IAC7B,MAAM,EAAEI,QAAQ,EAAE,GAAGH;IAErB,MAAMI,gBAAgBH,aAAaE;IACnC,IAAIC,kBAAkBC,WAAW;QAC/B,MAAM,IAAIC,MAAM;IAClB;IAEA,MAAMC,cAAcL,OAAOH,KAAKS;IAEhC,OAAO;QACLR,SAAS;YACPI;QACF;QACAX,kBAAkB,CAACgB,QAAQD,UAAYf,iBAAiBgB,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QACjHb,iBAAiB,CAACe,QAAQD,UAAYd,gBAAgBe,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QAC/GZ,YAAY,CAACc,QAAQD,UAAYb,WAAWc,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;QACrGX,aAAa,CAACa,QAAQD,UAAYZ,YAAYa,QAAQ;gBAAEL;gBAAeI,SAASA,WAAWD;YAAY;IACzG;AACF;AAEA,OAAO,MAAMG,yBAA2F;IACtGZ;IACAa,wBAAwBd;IACxBe,sBAAsB,IAAO,CAAA;YAAEX,WAAW;QAAG,CAAA;AAC/C,EAAE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
// Copyright The Perses Authors
|
|
2
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
4
|
// you may not use this file except in compliance with the License.
|
|
4
5
|
// You may obtain a copy of the License at
|
|
@@ -10,7 +11,6 @@
|
|
|
10
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
12
|
// See the License for the specific language governing permissions and
|
|
12
13
|
// limitations under the License.
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import { HTTPSettingsEditor } from '@perses-dev/plugin-system';
|
|
15
15
|
export function VictoriaLogsDatasourceEditor(props) {
|
|
16
16
|
const { value, onChange, isReadonly } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.tsx"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/VictoriaLogsDatasourceEditor.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 { HTTPSettingsEditor } from '@perses-dev/plugin-system';\nimport { ReactElement } from 'react';\nimport { VictoriaLogsDatasourceSpec } from './types';\n\nexport interface VictoriaLogsDatasourceEditorProps {\n value: VictoriaLogsDatasourceSpec;\n onChange: (next: VictoriaLogsDatasourceSpec) => void;\n isReadonly?: boolean;\n}\n\nexport function VictoriaLogsDatasourceEditor(props: VictoriaLogsDatasourceEditorProps): ReactElement {\n const { value, onChange, isReadonly } = props;\n\n const initialSpecDirect: VictoriaLogsDatasourceSpec = {\n directUrl: '',\n };\n\n const initialSpecProxy: VictoriaLogsDatasourceSpec = {\n proxy: {\n kind: 'HTTPProxy',\n spec: {\n allowedEndpoints: [\n {\n endpointPattern: '/select/logsql/stats_query',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stats_query_range',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/field_names',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/field_values',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/tail',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/query',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/hits',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/facets',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_ids',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/streams',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_field_names',\n method: 'POST',\n },\n {\n endpointPattern: '/select/logsql/stream_field_values',\n method: 'POST',\n },\n ],\n url: '',\n },\n },\n };\n\n return (\n <HTTPSettingsEditor\n value={value}\n onChange={onChange}\n isReadonly={isReadonly}\n initialSpecDirect={initialSpecDirect}\n initialSpecProxy={initialSpecProxy}\n />\n );\n}\n"],"names":["HTTPSettingsEditor","VictoriaLogsDatasourceEditor","props","value","onChange","isReadonly","initialSpecDirect","directUrl","initialSpecProxy","proxy","kind","spec","allowedEndpoints","endpointPattern","method","url"],"mappings":";AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,kBAAkB,QAAQ,4BAA4B;AAU/D,OAAO,SAASC,6BAA6BC,KAAwC;IACnF,MAAM,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,EAAE,GAAGH;IAExC,MAAMI,oBAAgD;QACpDC,WAAW;IACb;IAEA,MAAMC,mBAA+C;QACnDC,OAAO;YACLC,MAAM;YACNC,MAAM;gBACJC,kBAAkB;oBAChB;wBACEC,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;oBACA;wBACED,iBAAiB;wBACjBC,QAAQ;oBACV;iBACD;gBACDC,KAAK;YACP;QACF;IACF;IAEA,qBACE,KAACf;QACCG,OAAOA;QACPC,UAAUA;QACVC,YAAYA;QACZC,mBAAmBA;QACnBE,kBAAkBA;;AAGxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/index.ts"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/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 './VictoriaLogsDatasource';\nexport * from './VictoriaLogsDatasourceEditor';\nexport * from './types';\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,2BAA2B;AACzC,cAAc,iCAAiC;AAC/C,cAAc,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/types.ts"],"sourcesContent":["// Copyright
|
|
1
|
+
{"version":3,"sources":["../../../../src/datasources/victorialogs-datasource/types.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 { HTTPProxy } from '@perses-dev/core';\n\nexport interface VictoriaLogsDatasourceSpec {\n directUrl?: string;\n proxy?: HTTPProxy;\n}\n"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAIjC,WAGC"}
|
package/lib/env.d.js
CHANGED
|
@@ -1,3 +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.
|
|
1
13
|
/// <reference types="@rsbuild/core/types" />
|
|
2
14
|
|
|
3
15
|
//# sourceMappingURL=env.d.js.map
|
package/lib/env.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/env.d.ts"],"sourcesContent":["/// <reference types=\"@rsbuild/core/types\" />\n"],"names":[],"mappings":"AAAA,6CAA6C"}
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPluginModule.d.ts","sourceRoot":"","sources":["../../src/getPluginModule.ts"],"names":[],"mappings":"
|
|
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"}
|
package/lib/getPluginModule.js
CHANGED
|
@@ -1,3 +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.
|
|
1
13
|
import packageJson from '../package.json';
|
|
2
14
|
/**
|
|
3
15
|
* Returns the plugin module information from package.json
|