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

zehnder 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 a9ec6a0  Remove beta ribbon from connect and added to data explorer
a9ec6a0 is described below

commit a9ec6a053d3c29aa1c074330d6e91d2c706fcaf8
Author: Philipp Zehnder <[email protected]>
AuthorDate: Mon Aug 3 16:52:40 2020 +0200

    Remove beta ribbon from connect and added to data explorer
---
 .../data-marketplace.component.css                 | 41 ---------------------
 .../data-marketplace.component.html                | 11 ------
 .../app/data-explorer/data-explorer.component.css  | 43 ++++++++++++++++++++++
 .../app/data-explorer/data-explorer.component.html |  1 +
 4 files changed, 44 insertions(+), 52 deletions(-)

diff --git a/ui/src/app/connect/data-marketplace/data-marketplace.component.css 
b/ui/src/app/connect/data-marketplace/data-marketplace.component.css
index d8ff933..04df07a 100644
--- a/ui/src/app/connect/data-marketplace/data-marketplace.component.css
+++ b/ui/src/app/connect/data-marketplace/data-marketplace.component.css
@@ -38,47 +38,6 @@
   border: 1px solid #BBB;
   background: #EEE;
 }
-.ribbon {
-  position: absolute;
-  right: 5px; top: 5px;
-  z-index: 1;
-  overflow: hidden;
-  width: 75px; height: 75px;
-  text-align: right;
-}
-.ribbon span {
-  font-weight: bold;
-  color: #FFF;
-  text-transform: uppercase;
-  text-align: center;
-  line-height: 20px;
-  transform: rotate(45deg);
-  -webkit-transform: rotate(45deg);
-  width: 100px;
-  display: block;
-  background: #f5b53f;
-  background: linear-gradient(#f5b53f 0%, #f5b53f 100%);
-  position: absolute;
-  top: 19px; right: -21px;
-}
-.ribbon span::before {
-  content: "";
-  position: absolute; left: 0px; top: 100%;
-  z-index: -1;
-  border-left: 3px solid #f5b53f;
-  border-right: 3px solid transparent;
-  border-bottom: 3px solid transparent;
-  border-top: 3px solid #f5b53f;
-}
-.ribbon span::after {
-  content: "";
-  position: absolute; right: 0px; top: 100%;
-  z-index: -1;
-  border-left: 3px solid transparent;
-  border-right: 3px solid #f5b53f;
-  border-bottom: 3px solid transparent;
-  border-top: 3px solid #f5b53f;
-}
 
 #categoryFilter {
   margin-top: 20px;
diff --git 
a/ui/src/app/connect/data-marketplace/data-marketplace.component.html 
b/ui/src/app/connect/data-marketplace/data-marketplace.component.html
index 2e47f54..723fb18 100644
--- a/ui/src/app/connect/data-marketplace/data-marketplace.component.html
+++ b/ui/src/app/connect/data-marketplace/data-marketplace.component.html
@@ -30,16 +30,6 @@
         </div>
         <div fxFlex="100" fxLayout="row" fxLayoutAlign="end center" 
style="padding-left:10px;padding-right: 
50px;font-size:14px;line-height:24px;border-bottom:1px solid #ccc"
             *ngIf="selectedIndex === 0 && newAdapterFromDescription === 
undefined">
-            <!--<button mat-icon-button id="startAdapterTutorial1" 
(click)="startAdapterTutorial()" matTooltip="Tutorial 1: Specific Adapter 
OpenSenseMap">-->
-                <!--<i class="material-icons">-->
-                    <!--school-->
-                <!--</i>-->
-            <!--</button>-->
-            <!--<button  mat-icon-button 
id="startAdapterTutorial2"(click)="startAdapterTutorial2()" 
matTooltip="Tutorial 2: Generic Adapter LUBW">-->
-            <!--<i class="material-icons">-->
-            <!--school-->
-            <!--</i>-->
-            <!--</button>-->
             <button mat-icon-button id="startAdapterTutorial3" 
(click)="startAdapterTutorial3()" matTooltip="Tutorial: Generic Adapter">
                 <i class="material-icons">
                     school
@@ -106,7 +96,6 @@
                     
(updateAdapterEmitter)="updateDescriptionsAndRunningAdatpers()"></sp-adapter-description>
             </div>
         </div>
-        <div class="ribbon"><span>Beta</span></div>
         <div *ngIf="selectedIndex === 2">
             <div fxLayout="row wrap" fxLayoutAlign="start stretch" 
class="adapter-container">
                 <sp-file-management fxFlex="100" 
fxLayout="column"></sp-file-management>
diff --git a/ui/src/app/data-explorer/data-explorer.component.css 
b/ui/src/app/data-explorer/data-explorer.component.css
index 1837aff..5a1c565 100644
--- a/ui/src/app/data-explorer/data-explorer.component.css
+++ b/ui/src/app/data-explorer/data-explorer.component.css
@@ -28,3 +28,46 @@
     flex: 1 1 100%;
     overflow-y: auto;
 }
+
+.ribbon {
+    position: absolute;
+    right: 5px; top: 5px;
+    z-index: 1;
+    overflow: hidden;
+    width: 75px; height: 75px;
+    text-align: right;
+}
+.ribbon span {
+    font-weight: bold;
+    color: #FFF;
+    text-transform: uppercase;
+    text-align: center;
+    line-height: 20px;
+    transform: rotate(45deg);
+    -webkit-transform: rotate(45deg);
+    width: 100px;
+    display: block;
+    background: #f5b53f;
+    background: linear-gradient(#f5b53f 0%, #f5b53f 100%);
+    position: absolute;
+    top: 19px; right: -21px;
+}
+.ribbon span::before {
+    content: "";
+    position: absolute; left: 0px; top: 100%;
+    z-index: -1;
+    border-left: 3px solid #f5b53f;
+    border-right: 3px solid transparent;
+    border-bottom: 3px solid transparent;
+    border-top: 3px solid #f5b53f;
+}
+
+.ribbon span::after {
+    content: "";
+    position: absolute; right: 0px; top: 100%;
+    z-index: -1;
+    border-left: 3px solid transparent;
+    border-right: 3px solid #f5b53f;
+    border-bottom: 3px solid transparent;
+    border-top: 3px solid #f5b53f;
+}
diff --git a/ui/src/app/data-explorer/data-explorer.component.html 
b/ui/src/app/data-explorer/data-explorer.component.html
index 00c5b19..5c8921f 100644
--- a/ui/src/app/data-explorer/data-explorer.component.html
+++ b/ui/src/app/data-explorer/data-explorer.component.html
@@ -40,6 +40,7 @@
     </div>
 
     <div class="page-container-padding-inner" fxLayout="column" fxFlex="100" 
*ngIf="dashboardsLoaded">
+        <div class="ribbon"><span>Beta</span></div>
         <sp-data-explorer-dashboard-overview 
(selectDashboardEmitter)="openDashboard($event)"
                                              
(reloadDashboardsEmitter)="getDashboards()"
                                              
[dataViewDashboards]="dataViewDashboards"

Reply via email to