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

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


The following commit(s) were added to refs/heads/STREAMPIPES-145 by this push:
     new 7b622d1  Remove AppLinks module
7b622d1 is described below

commit 7b622d1bcc3b8e4311827f5fd3228d11a6d23c5e
Author: Dominik Riemer <[email protected]>
AuthorDate: Fri Jul 31 23:52:42 2020 +0200

    Remove AppLinks module
---
 ui/deployment/app.module.mst               |  2 -
 ui/deployment/state.config.mst             | 10 -----
 ui/src/app/applinks/applinks.controller.ts | 50 -----------------------
 ui/src/app/applinks/applinks.module.ts     | 27 -------------
 ui/src/app/applinks/applinks.tmpl.html     | 65 ------------------------------
 5 files changed, 154 deletions(-)

diff --git a/ui/deployment/app.module.mst b/ui/deployment/app.module.mst
index 80e44b0..4b2f3e1 100644
--- a/ui/deployment/app.module.mst
+++ b/ui/deployment/app.module.mst
@@ -30,7 +30,6 @@ import spServices from './services/services.module';
 import spCore from './core/core.module';
 import spLayout from './layout/layout.module';
 import spLogin from './login/login.module';
-import spAppLinks from './applinks/applinks.module';
 import { SpButtonDirective } from "./core/button/button.directive";
 import mdThemingProviderConfig from "./core/md-theming-provider.config";
 import rootScopeDelegate from "./core/root-scope-delegate.decorator";
@@ -49,7 +48,6 @@ export const Ng1AppModule = angular
         spCore,
         spLayout,
         spLogin,
-        spAppLinks,
         'ui.router',
         'ui.router.upgrade',
         'ngAnimate',
diff --git a/ui/deployment/state.config.mst b/ui/deployment/state.config.mst
index 8191d85..292736c 100644
--- a/ui/deployment/state.config.mst
+++ b/ui/deployment/state.config.mst
@@ -104,16 +104,6 @@ export default function stateConfig($stateProvider, 
$urlRouterProvider) {
                 }
             }
         })
-        /*
-        .state('streampipes.applinks', {
-            url: '/applinks',
-            views: {
-                "spMain@streampipes": {
-                    template: require('../applinks/applinks.tmpl.html')
-                }
-            }
-        })
-        */
         .state('register', {
             url: '/register',
             views: {
diff --git a/ui/src/app/applinks/applinks.controller.ts 
b/ui/src/app/applinks/applinks.controller.ts
deleted file mode 100644
index 0c5f8b3..0000000
--- a/ui/src/app/applinks/applinks.controller.ts
+++ /dev/null
@@ -1,50 +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 {RestApi} from "../services/rest-api.service";
-
-export class AppLinksCtrl {
-
-    RestApi: RestApi;
-    $window: any;
-    applicationLinks: any;
-
-    constructor(RestApi, $window) {
-        this.RestApi = RestApi;
-        this.$window = $window;
-        this.applicationLinks = [];
-    }
-
-    $onInit() {
-        this.loadApplicationLinks();
-    }
-
-    loadApplicationLinks() {
-        this.RestApi.getApplicationLinks()
-            .then(applicationLinks => {
-                this.applicationLinks = applicationLinks.data;
-            });
-    }
-
-    openApp(applicationUrl) {
-        this.$window.open(applicationUrl, "_blank");
-    }
-
-}
-
-AppLinksCtrl.$inject = ['RestApi', '$window'];
\ No newline at end of file
diff --git a/ui/src/app/applinks/applinks.module.ts 
b/ui/src/app/applinks/applinks.module.ts
deleted file mode 100644
index 6020aea..0000000
--- a/ui/src/app/applinks/applinks.module.ts
+++ /dev/null
@@ -1,27 +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 * as angular from 'angular';
-
-import spServices from '../services/services.module';
-
-import {AppLinksCtrl} from './applinks.controller';
-
-export default angular.module('sp.applinks', [spServices])
-    .controller('AppLinksCtrl', AppLinksCtrl)
-    .name;
diff --git a/ui/src/app/applinks/applinks.tmpl.html 
b/ui/src/app/applinks/applinks.tmpl.html
deleted file mode 100644
index f69265c..0000000
--- a/ui/src/app/applinks/applinks.tmpl.html
+++ /dev/null
@@ -1,65 +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.
-  ~
-  -->
-
-<div flex class="page-container page-container-padding" 
ng-controller="AppLinksCtrl as ctrl">
-    <div flex="100" layout="column" 
style="padding:0px;background-color:#f6f6f6">
-        <div flex layout-fill layout="row" layout-align="start center"
-             
style="height:48px;padding-left:10px;font-size:14px;line-height:24px;border-bottom:1px
 solid #ccc">
-            <h5>APPLICATION LINKS</h5>
-        </div>
-    </div>
-
-    <div flex layout="row" layout-align="center center">
-        <div flex="80">
-            <md-content class="md-padding">
-                <h2>Application Links</h2>
-
-                <div flex="100" layout="row" layout-align="start center"
-                     style="border:1px solid darkblue;margin-bottom:10px;" 
ng-repeat="applink in ctrl.applicationLinks">
-
-                    <div flex="20" layout="row" layout-align="center center" 
style="margin:10px;">
-                        <img class="md-card-image" 
ng-src="{{applink.applicationIconUrl}}"/>
-                    </div>
-                    <div flex="80" layout="row" layout-align="start center" 
style="margin:10px;">
-                        <div flex="100" layout="column">
-                            <div layout="column">
-                                <div flex layout="column">
-                                    <h2 
class="md-title">{{applink.applicationName}}</h2>
-                                    <p>{{applink.applicationDescription}}</p>
-                                </div>
-                            </div>
-
-                            <div flex layout="row" layout-align="end end">
-                                <div flex layout="row" layout-align="end end">
-                                               <span flex flex-order="1" 
layout="row" layout-align="end end">
-                                                       <sp-button 
sp-button-flat aria-label="As Favorite"
-                                       
ng-click="openApp(applink.applicationUrl)">
-                                                               
&nbsp;&nbsp;Open Application&nbsp;&nbsp;
-                                                       </sp-button>
-                                               </span>
-
-                                </div>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            </md-content>
-        </div>
-    </div>
-
-</div>

Reply via email to