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 2022/04/17 09:51:27 UTC
[incubator-streampipes] branch dev updated: [STREAMPIPES-531] Cleanup shared-ui library
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new e634a4445 [STREAMPIPES-531] Cleanup shared-ui library
e634a4445 is described below
commit e634a44454a852ce1dfc38bfcad82c314ea0566e
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Sun Apr 17 11:51:14 2022 +0200
[STREAMPIPES-531] Cleanup shared-ui library
---
ui/projects/streampipes/shared-ui/.browserslistrc | 16 -------------
ui/projects/streampipes/shared-ui/README.md | 18 +++++++++++++++
ui/projects/streampipes/shared-ui/karma.conf.js | 18 +++++++++++++++
.../shared-ui/src/lib/shared-ui.module.ts | 26 +++++++++++++++++----
.../streampipes/shared-ui/src/public-api.ts | 16 ++++++++++++-
ui/projects/streampipes/shared-ui/src/test.ts | 27 ----------------------
6 files changed, 73 insertions(+), 48 deletions(-)
diff --git a/ui/projects/streampipes/shared-ui/.browserslistrc b/ui/projects/streampipes/shared-ui/.browserslistrc
deleted file mode 100644
index 4f9ac2698..000000000
--- a/ui/projects/streampipes/shared-ui/.browserslistrc
+++ /dev/null
@@ -1,16 +0,0 @@
-# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
-# For additional information regarding the format and rule options, please see:
-# https://github.com/browserslist/browserslist#queries
-
-# For the full list of supported browsers by the Angular framework, please see:
-# https://angular.io/guide/browser-support
-
-# You can see what browsers were selected by your queries by running:
-# npx browserslist
-
-last 1 Chrome version
-last 1 Firefox version
-last 2 Edge major versions
-last 2 Safari major versions
-last 2 iOS major versions
-Firefox ESR
diff --git a/ui/projects/streampipes/shared-ui/README.md b/ui/projects/streampipes/shared-ui/README.md
index 539fde74d..309258b3f 100644
--- a/ui/projects/streampipes/shared-ui/README.md
+++ b/ui/projects/streampipes/shared-ui/README.md
@@ -1,3 +1,21 @@
+<!--
+ ~ 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.
+ ~
+ -->
+
# SharedUi
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.
diff --git a/ui/projects/streampipes/shared-ui/karma.conf.js b/ui/projects/streampipes/shared-ui/karma.conf.js
index 4358433bd..c5b1f445c 100644
--- a/ui/projects/streampipes/shared-ui/karma.conf.js
+++ b/ui/projects/streampipes/shared-ui/karma.conf.js
@@ -1,3 +1,21 @@
+/*
+ * 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.
+ *
+ */
+
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
diff --git a/ui/projects/streampipes/shared-ui/src/lib/shared-ui.module.ts b/ui/projects/streampipes/shared-ui/src/lib/shared-ui.module.ts
index a5672d731..f7102fcbc 100644
--- a/ui/projects/streampipes/shared-ui/src/lib/shared-ui.module.ts
+++ b/ui/projects/streampipes/shared-ui/src/lib/shared-ui.module.ts
@@ -1,11 +1,29 @@
+/*
+ * 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 { NgModule } from '@angular/core';
import { ConfirmDialogComponent } from './dialog/confirm-dialog/confirm-dialog.component';
import { PanelDialogComponent } from './dialog/panel-dialog/panel-dialog.component';
import { StandardDialogComponent } from './dialog/standard-dialog/standard-dialog.component';
-import { CommonModule } from "@angular/common";
-import { PortalModule } from "@angular/cdk/portal";
-import { MatButtonModule } from "@angular/material/button";
-import { OverlayModule } from "@angular/cdk/overlay";
+import { CommonModule } from '@angular/common';
+import { PortalModule } from '@angular/cdk/portal';
+import { MatButtonModule } from '@angular/material/button';
+import { OverlayModule } from '@angular/cdk/overlay';
@NgModule({
declarations: [
diff --git a/ui/projects/streampipes/shared-ui/src/public-api.ts b/ui/projects/streampipes/shared-ui/src/public-api.ts
index e84997fcc..b7b26edd9 100644
--- a/ui/projects/streampipes/shared-ui/src/public-api.ts
+++ b/ui/projects/streampipes/shared-ui/src/public-api.ts
@@ -1,5 +1,19 @@
/*
- * Public API Surface of shared-ui
+ * 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.
+ *
*/
export * from './lib/shared-ui.module';
diff --git a/ui/projects/streampipes/shared-ui/src/test.ts b/ui/projects/streampipes/shared-ui/src/test.ts
deleted file mode 100644
index bcca659d3..000000000
--- a/ui/projects/streampipes/shared-ui/src/test.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-// This file is required by karma.conf.js and loads recursively all the .spec and framework files
-
-import 'zone.js';
-import 'zone.js/testing';
-import { getTestBed } from '@angular/core/testing';
-import {
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting
-} from '@angular/platform-browser-dynamic/testing';
-
-declare const require: {
- context(path: string, deep?: boolean, filter?: RegExp): {
- <T>(id: string): T;
- keys(): string[];
- };
-};
-
-// First, initialize the Angular testing environment.
-getTestBed().initTestEnvironment(
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting(),
-);
-
-// Then we find all the tests.
-const context = require.context('./', true, /\.spec\.ts$/);
-// And load the modules.
-context.keys().map(context);