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/01/26 21:08:10 UTC

[incubator-streampipes] 03/06: [hotfix] Update gitignore file to exclude files from prebuild script

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

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

commit df04911f428f0653e677c3d1883b60e06ab2e3ed
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed Jan 26 21:51:30 2022 +0100

    [hotfix] Update gitignore file to exclude files from prebuild script
---
 ui/src/app/app-routing.module.ts                   |  94 --------
 .../core/components/base-navigation.component.ts   | 164 --------------
 ui/src/assets/img/favicon/favicon-96x96.png        | Bin 5353 -> 0 bytes
 ui/src/assets/img/login/logo.png                   | Bin 24942 -> 0 bytes
 ui/src/assets/img/sp/logo-navigation.png           | Bin 19196 -> 0 bytes
 ui/src/scss/sp/sp-theme.scss                       | 242 ---------------------
 ui/webpack.partial.dev.js                          |  58 -----
 7 files changed, 558 deletions(-)

diff --git a/ui/src/app/app-routing.module.ts b/ui/src/app/app-routing.module.ts
deleted file mode 100644
index f29e84f..0000000
--- a/ui/src/app/app-routing.module.ts
+++ /dev/null
@@ -1,94 +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 {NgModule} from '@angular/core';
-import {RouterModule, Routes} from '@angular/router';
-import {HomeComponent} from "./home/home.component";
-import {LoginComponent} from "./login/components/login/login.component";
-import {SetupComponent} from "./login/components/setup/setup.component";
-import {StreampipesComponent} from "./core/components/streampipes/streampipes.component";
-import {PipelineDetailsComponent} from "./pipeline-details/pipeline-details.component";
-import {StandaloneDashboardComponent} from "./dashboard/components/standalone/standalone-dashboard.component";
-import {AuthCanActivateChildrenGuard} from "./_guards/auth.can-activate-children.guard";
-import {ConfiguredCanActivateGuard} from "./_guards/configured.can-activate.guard";
-import {StartupComponent} from "./login/components/startup/startup.component";
-import {AlreadyConfiguredCanActivateGuard} from "./_guards/already-configured.can-activate.guard";
-import {InfoComponent} from "./info/info.component";
-import {NotificationsComponent} from "./notifications/notifications.component";
-import {ProfileComponent} from "./profile/profile.component";
-import {ApidocsComponent} from "./apidocs/apidocs.component";
-import { PageName } from './_enums/page-name.enum';
-import { PageAuthGuard } from './_guards/page-auth.can-active.guard';
-import { RegisterComponent } from './login/components/register/register.component';
-import { RestorePasswordComponent } from './login/components/restore-password/restore-password.component';
-import { RegistrationAllowedCanActivateGuard } from './_guards/registration-allowed.can-activate.guard';
-import { RestorePasswordAllowedCanActivateGuard } from './_guards/restore-password-allowed.can-activate.guard';
-import { SetNewPasswordComponent } from './login/components/set-new-password/set-new-password.component';
-import { ActivateAccountComponent } from './login/components/activate-account/activate-account.component';
-
-import { EditorComponent } from './editor/editor.component';
-import { PipelinesComponent } from './pipelines/pipelines.component';
-import { ConnectComponent } from './connect/connect.component';
-import { DashboardComponent } from './dashboard/dashboard.component';
-import { DataExplorerComponent } from './data-explorer/data-explorer.component';
-import { AppOverviewComponent } from './app-overview/app-overview.component';
-import { AddComponent } from './add/add.component';
-import { FilesComponent } from './files/files.component';
-import { ConfigurationComponent } from './configuration/configuration.component';
-
-const routes: Routes = [
-  { path: 'apidocs', component: ApidocsComponent, canActivate: [ConfiguredCanActivateGuard]},
-  { path: 'login', component: LoginComponent, canActivate: [ConfiguredCanActivateGuard],
-  data: {animation: 'LoginPage'}},
-  { path: 'register', component: RegisterComponent, canActivate: [RegistrationAllowedCanActivateGuard] },
-  { path: 'activate-account', component: ActivateAccountComponent, canActivate: [RegistrationAllowedCanActivateGuard] },
-  { path: 'restore-password', component: RestorePasswordComponent, canActivate: [RestorePasswordAllowedCanActivateGuard] },
-  { path: 'set-new-password', component: SetNewPasswordComponent, canActivate: [RestorePasswordAllowedCanActivateGuard] },
-  { path: 'startup', component: StartupComponent },
-  { path: 'standalone/:dashboardId', component: StandaloneDashboardComponent },
-  { path: '', component: StreampipesComponent, children: [
-      { path: '', component: HomeComponent, canActivate: [ConfiguredCanActivateGuard] },
-      { path: 'editor', component: EditorComponent, data: { authPageNames: [PageName.PIPELINE_EDITOR]}},
-      { path: 'pipelines', component: PipelinesComponent, data: { authPageNames: [PageName.PIPELINE_OVERVIEW]}},
-      { path: 'connect', component: ConnectComponent, data: { authPageNames: [PageName.CONNECT]}},
-      { path: 'dashboard', component: DashboardComponent, data: { authPageNames: [PageName.DASHBOARD]}},
-      { path: 'dataexplorer', component: DataExplorerComponent, data: { authPageNames: [PageName.DATA_EXPLORER]}},
-      { path: 'app-overview', component: AppOverviewComponent, data: { authPageNames: [PageName.APPS]}},
-      { path: 'add', component: AddComponent, data: { authPageNames: [PageName.INSTALL_PIPELINE_ELEMENTS]}},
-      { path: 'files', component: FilesComponent, data: { authPageNames: [PageName.FILE_UPLOAD]}},
-      { path: 'configuration', component: ConfigurationComponent, data: { authPageNames: [PageName.SETTINGS]}},
-      { path: 'notifications', component: NotificationsComponent },
-      { path: 'info', component: InfoComponent },
-      { path: 'pipeline-details', component: PipelineDetailsComponent },
-      { path: 'profile', component: ProfileComponent},
-    ], canActivateChild: [AuthCanActivateChildrenGuard, PageAuthGuard] }
-];
-
-@NgModule({
-  imports: [RouterModule.forRoot(routes, {useHash: true})],
-  exports: [RouterModule],
-  providers: [
-      AuthCanActivateChildrenGuard,
-      AlreadyConfiguredCanActivateGuard,
-      ConfiguredCanActivateGuard,
-      PageAuthGuard,
-      RegistrationAllowedCanActivateGuard,
-      RestorePasswordAllowedCanActivateGuard,
-  ]
-})
-export class AppRoutingModule { }
diff --git a/ui/src/app/core/components/base-navigation.component.ts b/ui/src/app/core/components/base-navigation.component.ts
deleted file mode 100644
index 98f431c..0000000
--- a/ui/src/app/core/components/base-navigation.component.ts
+++ /dev/null
@@ -1,164 +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 {NavigationEnd, Router} from "@angular/router";
-import { PageName } from '../../_enums/page-name.enum';
-import { AuthService } from '../../services/auth.service';
-
-export abstract class BaseNavigationComponent {
-
-  activePageName: string;
-  activePage: any;
-
-  authenticated: boolean = true;
-
-  public menu = [
-    {
-      link: '',
-      title: 'Home',
-      icon: 'home',
-      pagesNames: [PageName.HOME],
-      visible: false
-    },
-    {
-        link: 'editor',
-        title: 'Pipeline Editor',
-        icon: 'dashboard',
-        pageNames: [PageName.PIPELINE_EDITOR],
-        visible: false
-    },
-    {
-        link: 'pipelines',
-        title: 'Pipelines',
-        icon: 'play_arrow',
-        pageNames: [PageName.PIPELINE_OVERVIEW],
-        visible: false
-    },
-    {
-        link: 'connect',
-        title: 'Connect',
-        icon: 'power',
-        pageNames: [PageName.CONNECT],
-        visible: false
-    },
-    {
-        link: 'dashboard',
-        title: 'Dashboard',
-        icon: 'insert_chart',
-        pageNames: [PageName.DASHBOARD],
-        visible: false
-    },
-    {
-        link: 'dataexplorer',
-        title: 'Data Explorer',
-        icon: 'search',
-        pageNames: [PageName.DATA_EXPLORER],
-        visible: false
-    },
-    {
-        link: 'app-overview',
-        title: 'Apps',
-        icon: 'apps',
-        pageNames: [PageName.APPS],
-        visible: false
-    },
-  ];
-
-  admin = [
-    {
-        link: 'add',
-        title: 'Install Pipeline Elements',
-        icon: 'cloud_download',
-        pageNames: [PageName.INSTALL_PIPELINE_ELEMENTS],
-        visible: false
-    },
-    {
-        link: 'files',
-        title: 'File Management',
-        icon: 'folder',
-        pageNames: [PageName.FILE_UPLOAD],
-        visible: false
-    },
-    {
-        link: 'configuration',
-        title: 'Configuration',
-        icon: 'settings',
-        pageNames: [PageName.SETTINGS],
-        visible: false
-    },
-  ];
-
-  notificationsVisible = false;
-
-
-  constructor(protected authService: AuthService,
-                protected router: Router) {
-
-    }
-
-    onInit() {
-      this.authService.user$.subscribe(user => {
-        this.menu.forEach(m => m.visible = this.isNavItemVisible(m.pageNames));
-        this.admin.forEach(m => m.visible = this.isNavItemVisible(m.pageNames));
-        this.notificationsVisible = this.isNavItemVisible([PageName.NOTIFICATIONS]);
-      });
-      this.activePage = this.router.url.replace('/', '');
-      this.activePageName = this.getPageTitle(this.activePage);
-      this.router.events.subscribe(event => {
-        if (event instanceof NavigationEnd) {
-          this.activePage = event.url.replace('/', '');
-          this.activePageName = this.getPageTitle(this.activePage);
-        }
-      });
-    }
-
-    getActivePage() {
-      return this.activePage;
-    }
-
-    getPageTitle(path) {
-      const allMenuItems = this.menu.concat(this.admin);
-      let currentTitle = 'StreamPipes';
-      allMenuItems.forEach(m => {
-        if (m.link === path) {
-          currentTitle = m.title;
-        }
-      });
-      if (path === 'pipeline-details') {
-        currentTitle = 'Pipeline Details';
-      }
-      return currentTitle;
-    }
-
-    go(path, payload?) {
-      if (payload === undefined) {
-        this.router.navigateByUrl(path);
-        this.activePage = path;
-      } else {
-        this.router.navigateByUrl(path, payload);
-        this.activePage = path;
-      }
-      this.activePageName = this.getPageTitle(this.activePage);
-    }
-
-    public isNavItemVisible(pageNames?: PageName[]): boolean {
-      return this.authService.isAnyAccessGranted(pageNames);
-    }
-
-}
diff --git a/ui/src/assets/img/favicon/favicon-96x96.png b/ui/src/assets/img/favicon/favicon-96x96.png
deleted file mode 100644
index 92f2f5a..0000000
Binary files a/ui/src/assets/img/favicon/favicon-96x96.png and /dev/null differ
diff --git a/ui/src/assets/img/login/logo.png b/ui/src/assets/img/login/logo.png
deleted file mode 100644
index 1bef5cd..0000000
Binary files a/ui/src/assets/img/login/logo.png and /dev/null differ
diff --git a/ui/src/assets/img/sp/logo-navigation.png b/ui/src/assets/img/sp/logo-navigation.png
deleted file mode 100644
index 35ee8aa..0000000
Binary files a/ui/src/assets/img/sp/logo-navigation.png and /dev/null differ
diff --git a/ui/src/scss/sp/sp-theme.scss b/ui/src/scss/sp/sp-theme.scss
deleted file mode 100644
index 894fc16..0000000
--- a/ui/src/scss/sp/sp-theme.scss
+++ /dev/null
@@ -1,242 +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 '~@angular/material/theming';
-@import '../variables';
-
-@include mat-core();
-
-$mat-streampipes-primary: (
-        50: #ffebee,
-        100: #ffcdd2,
-        200: #72e879,
-        300: #49e750,
-        400: #49e750,
-        500: $sp-color-primary,
-        600: #06c12a,
-        700: #01a51d,
-        800: #00841b,
-        900: #005818,
-        A100: #ff8a80,
-        A200: #ff5252,
-        A400: #ff1744,
-        A700: #d50000,
-        contrast: (
-                50: $black-87-opacity,
-                100: $black-87-opacity,
-                200: $black-87-opacity,
-                300: $black-87-opacity,
-                400: $black-87-opacity,
-                500: white,
-                600: white,
-                700: white,
-                800: $white-87-opacity,
-                900: $white-87-opacity,
-                A100: $black-87-opacity,
-                A200: white,
-                A400: white,
-                A700: white,
-        )
-);
-
-$mat-streampipes-accent: (
-        50: #ffebee,
-        100: #ffcdd2,
-        200: #4e3c93,
-        300: #2a0c9a,
-        400: #395481,
-        500: $sp-color-accent,
-        600: #0303a3,
-        700: #01016a,
-        800: #000039,
-        900: #00002b,
-        A100: #ff8a80,
-        A200: #ff5252,
-        A400: #ff1744,
-        A700: #d50000,
-        contrast: (
-                50: $black-87-opacity,
-                100: $black-87-opacity,
-                200: $black-87-opacity,
-                300: $black-87-opacity,
-                400: $black-87-opacity,
-                500: white,
-                600: white,
-                700: white,
-                800: $white-87-opacity,
-                900: $white-87-opacity,
-                A100: $black-87-opacity,
-                A200: white,
-                A400: white,
-                A700: white,
-        )
-);
-
-$mat-streampipes-accent-dark: (
-        50: #ffebee,
-        100: #ffcdd2,
-        200: #4e3c93,
-        300: #2a0c9a,
-        400: #395481,
-        500: #83a3de,
-        600: #0303a3,
-        700: #01016a,
-        800: #000039,
-        900: #00002b,
-        A100: #ff8a80,
-        A200: #ff5252,
-        A400: #ff1744,
-        A700: #d50000,
-        contrast: (
-                50: $black-87-opacity,
-                100: $black-87-opacity,
-                200: $black-87-opacity,
-                300: $black-87-opacity,
-                400: $black-87-opacity,
-                500: white,
-                600: white,
-                700: white,
-                800: $white-87-opacity,
-                900: $white-87-opacity,
-                A100: $black-87-opacity,
-                A200: white,
-                A400: white,
-                A700: white,
-        )
-);
-
-$custom-theme-primary: mat-palette($mat-streampipes-primary);
-$custom-theme-accent-dark: mat-palette($mat-streampipes-accent-dark);
-$custom-theme-accent: mat-palette($mat-streampipes-accent);
-$custom-theme-warn: mat-palette($mat-red);
-
-$custom-theme-light: mat-light-theme($custom-theme-primary, $custom-theme-accent, $custom-theme-warn);
-$custom-theme-dark: mat-dark-theme($custom-theme-primary, $custom-theme-accent-dark, $custom-theme-warn);
-
-$custom-typography: mat-typography-config($font-family: 'Roboto, Arial');
-
-
-@include angular-material-typography($custom-typography);
-
-$primary: map-get($custom-theme-light, primary);
-$accent-dark: map-get($custom-theme-dark, accent);
-$accent: map-get($custom-theme-light, accent);
-
-
-.small .mat-tab-label {
-  height: 24px;
-  padding: 0 12px;
-  cursor: pointer;
-  box-sizing: border-box;
-  opacity: .6;
-  min-width: 80px;
-  text-align: center;
-  display: inline-flex;
-  justify-content: center;
-  align-items: center;
-  white-space: nowrap;
-  position: relative;
-}
-
-.small .mat-tab-label-content {
-  text-transform: none;
-  font-size: 11pt;
-
-}
-
-.dark-mode {
-  @include angular-material-theme($custom-theme-dark);
-
-  .base-style {
-    color: rgba(255, 255, 255, 0.87);
-    background: #121212;
-  }
-
-  .mat-toolbar.mat-primary {
-    color: #121212;
-  }
-
-  .mat-tooltip.tooltip {
-    background-color: rgba(255, 255, 255, 0.87);
-    font-size: 12px;
-  }
-
-  --color-primary: #{mat-color($primary)};
-  --color-accent: #{mat-color($accent-dark)};
-  --color-bg-0: #121212;
-  --color-bg-1: #282828;
-  --color-bg-2: #404040;
-  --color-bg-3: #424242;
-  --color-bg-4: #5f5f5f;
-  --color-bg-dialog: rgb(66, 66, 66);
-  --color-shadow: #c4c4c4;
-  --color-pe: #404040;
-  --color-default-text: rgba(255, 255, 255, 0.87);
-  --color-warn: #b36161;
-
-  --color-tab-border : #cccccc;
-
-  --color-navigation-bg: #{mat-color($primary)};
-  --color-navigation-link-text: #121212;
-  --color-navigation-text: #121212;
-  --color-navigation-selected: #{mat-color($primary)};
-  --color-navigation-hover: #{mat-color($primary, 600)};
-  --color-navigation-bg-selected: #121212;
-  --color-navigation-divider: #{mat-color($primary)};
-
-  --content-box-color: #404040;
-  --canvas-color: linear-gradient(90deg, rgba(50, 50, 50, 0.5) 10%, transparent 0%), linear-gradient(rgba(50, 50, 50, 0.5) 10%, transparent 0%);
-
-}
-
-.light-mode {
-  @include angular-material-theme($custom-theme-light);
-
-  .base-style {
-    color: #121212;
-    background: #FFFFFF;
-  }
-
-
-  --color-primary: #{mat-color($primary)};
-  --color-accent: #{mat-color($accent)};
-  --color-bg-0: #FFFFFF;
-  --color-bg-1: #FAFAFA;
-  --color-bg-2: #f1f1f1;
-  --color-bg-3: rgb(224, 224, 224);
-  --color-bg-4: rgb(212, 212, 212);
-  --color-bg-dialog: #FFFFFF;
-  --color-shadow: #555;
-  --color-pe: #FFFFFF;
-  --color-default-text: #121212;
-  --color-warn: #B71C1C;
-
-  --color-tab-border : #cccccc;
-
-  --color-navigation-bg: #{mat-color($primary)};
-  --color-navigation-link-text: #FFFFFF;
-  --color-navigation-text: #FFFFFF;
-  --color-navigation-selected: #{mat-color($primary)};
-  --color-navigation-hover: #{mat-color($primary, 600)};
-  --color-navigation-bg-selected: #FFFFFF;
-  --color-navigation-divider: #{mat-color($primary)};
-
-  --content-box-color: rgb(156, 156, 156);
-  --canvas-color: linear-gradient(90deg, rgba(208, 208, 208, 0.5) 10%, transparent 0%), linear-gradient(rgba(208, 208, 208, 0.5) 10%, transparent 0%);
-
-}
diff --git a/ui/webpack.partial.dev.js b/ui/webpack.partial.dev.js
deleted file mode 100644
index 1013515..0000000
--- a/ui/webpack.partial.dev.js
+++ /dev/null
@@ -1,58 +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.
- */
-
-const { merge } = require('webpack-merge');
-const baseConfig = require('./webpack.partial.base.js');
-
-module.exports = merge(baseConfig, {
-    devServer: {
-        compress: true,
-        port: 8082,
-        proxy: {
-            '/streampipes-connect': {
-                target: 'http://localhost:8030',
-                // pathRewrite: { '^/streampipes-connect': '' },
-                secure: false,
-            },
-            '/streampipes-backend': {
-                target: 'http://localhost:8030',
-                secure: false,
-            },
-            '/visualizablepipeline': {
-                target: 'http://localhost:5984',
-                secure: false,
-            },
-            '/dashboard': {
-                target: 'http://localhost:5984',
-                secure: false,
-            },
-            '/widget': {
-                target: 'http://localhost:5984',
-                secure: false,
-            },
-            '/pipeline': {
-                target: 'http://localhost:5984',
-                secure: false,
-            },
-            '/streampipes/ws': {
-                target: 'ws://localhost:61614',
-                ws: true,
-                secure: false,
-            },
-        },
-    },
-});