You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/07/30 07:11:19 UTC

[incubator-streampipes] 04/08: [STREAMPIPES-402] Remove unsused widget config classes

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-319
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 3a903bd713e7a978fac7044f75b9e34d90b56c7e
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Wed Jul 28 22:24:34 2021 +0200

    [STREAMPIPES-402] Remove unsused widget config classes
---
 .../components/widgets/base/base-config.ts         | 26 --------------
 .../components/widgets/image/image-config.ts       | 41 ----------------------
 .../widgets/line-chart/line-chart-config.ts        | 41 ----------------------
 .../components/widgets/table/table-config.ts       | 41 ----------------------
 4 files changed, 149 deletions(-)

diff --git a/ui/src/app/data-explorer/components/widgets/base/base-config.ts b/ui/src/app/data-explorer/components/widgets/base/base-config.ts
deleted file mode 100644
index e2a078c..0000000
--- a/ui/src/app/data-explorer/components/widgets/base/base-config.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-
-
-import {DashboardWidgetSettings} from "../../../../core-model/gen/streampipes-model";
-
-export abstract class WidgetConfig {
-
-    abstract getConfig(): DashboardWidgetSettings;
-}
diff --git a/ui/src/app/data-explorer/components/widgets/image/image-config.ts b/ui/src/app/data-explorer/components/widgets/image/image-config.ts
deleted file mode 100644
index 806a855..0000000
--- a/ui/src/app/data-explorer/components/widgets/image/image-config.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-import { WidgetConfig } from '../base/base-config';
-import {DashboardWidgetSettings} from "../../../../core-model/gen/streampipes-model";
-import {WidgetConfigBuilder} from "../../../../dashboard/registry/widget-config-builder";
-import {SchemaRequirementsBuilder} from "../../../../dashboard/sdk/schema-requirements-builder";
-
-export class ImageConfig extends WidgetConfig {
-
-    static readonly NUMBER_MAPPING_KEY: string = 'number-mapping';
-
-    constructor() {
-        super();
-    }
-
-    getConfig(): DashboardWidgetSettings {
-        return WidgetConfigBuilder.createWithSelectableColorsAndTitlePanel('image', 'image')
-            .requiredSchema(SchemaRequirementsBuilder
-                .create()
-                // .requiredPropertyWithUnaryMapping(TableConfig.NUMBER_MAPPING_KEY, 'Select property', '', EpRequirements.numberReq())
-                .build())
-            .build();
-    }
-
-}
diff --git a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-config.ts b/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-config.ts
deleted file mode 100644
index db2afa5..0000000
--- a/ui/src/app/data-explorer/components/widgets/line-chart/line-chart-config.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-import { WidgetConfig } from '../base/base-config';
-import {DashboardWidgetSettings} from "../../../../core-model/gen/streampipes-model";
-import {WidgetConfigBuilder} from "../../../../dashboard/registry/widget-config-builder";
-import {SchemaRequirementsBuilder} from "../../../../dashboard/sdk/schema-requirements-builder";
-
-export class LineChartConfig extends WidgetConfig {
-
-    static readonly NUMBER_MAPPING_KEY: string = 'number-mapping';
-
-    constructor() {
-        super();
-    }
-
-    getConfig(): DashboardWidgetSettings {
-        return WidgetConfigBuilder.createWithSelectableColorsAndTitlePanel('Line Chart', 'line-chart')
-            .requiredSchema(SchemaRequirementsBuilder
-                .create()
-                // .requiredPropertyWithUnaryMapping(TableConfig.NUMBER_MAPPING_KEY, 'Select property', '', EpRequirements.numberReq())
-                .build())
-            .build();
-    }
-
-}
diff --git a/ui/src/app/data-explorer/components/widgets/table/table-config.ts b/ui/src/app/data-explorer/components/widgets/table/table-config.ts
deleted file mode 100644
index 7bbbfef..0000000
--- a/ui/src/app/data-explorer/components/widgets/table/table-config.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-import { WidgetConfig } from '../base/base-config';
-import {WidgetConfigBuilder} from "../../../../dashboard/registry/widget-config-builder";
-import {SchemaRequirementsBuilder} from "../../../../dashboard/sdk/schema-requirements-builder";
-import {DashboardWidgetSettings} from "../../../../core-model/gen/streampipes-model";
-
-export class TableConfig extends WidgetConfig {
-
-    static readonly NUMBER_MAPPING_KEY: string = 'number-mapping';
-
-    constructor() {
-        super();
-    }
-
-    getConfig(): DashboardWidgetSettings {
-        return WidgetConfigBuilder.createWithSelectableColorsAndTitlePanel('table', 'table')
-            .requiredSchema(SchemaRequirementsBuilder
-                .create()
-                // .requiredPropertyWithUnaryMapping(TableConfig.NUMBER_MAPPING_KEY, 'Select property', '', EpRequirements.numberReq())
-                .build())
-            .build();
-    }
-
-}