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
commit e5d0e76a24440db77a0d834870e0c79c2eb6a685 Author: Dominik Riemer <[email protected]> AuthorDate: Sat Jul 18 10:51:58 2020 +0200 [STREAMPIPES-145] Fix CSS bug in welcome screen --- .../welcome-tour/welcome-tour.component.scss | 24 +++++++++++++++++++++- ui/src/app/editor-v2/editor.component.ts | 6 ++++-- ui/src/scss/sp/main.scss | 23 --------------------- 3 files changed, 27 insertions(+), 26 deletions(-) diff --git a/ui/src/app/editor-v2/dialog/welcome-tour/welcome-tour.component.scss b/ui/src/app/editor-v2/dialog/welcome-tour/welcome-tour.component.scss index 0a776e5..b097813 100644 --- a/ui/src/app/editor-v2/dialog/welcome-tour/welcome-tour.component.scss +++ b/ui/src/app/editor-v2/dialog/welcome-tour/welcome-tour.component.scss @@ -16,4 +16,26 @@ * */ -@import '../../../../scss/sp/sp-dialog.scss'; \ No newline at end of file +@import '../../../../scss/sp/sp-dialog.scss'; + +.welcome-animation { + font-family: Arial; + border-right: .1em solid black; + width: 5ch; + white-space: nowrap; + overflow: hidden; + -webkit-animation: typing 1s steps(5, end), + blink-caret .5s step-end infinite alternate; +} + +@keyframes typing { + from { + width: 0; + } +} + +@keyframes blink-caret { + 50% { + border-color: transparent; + } +} \ No newline at end of file diff --git a/ui/src/app/editor-v2/editor.component.ts b/ui/src/app/editor-v2/editor.component.ts index 04e09f3..ec30fa8 100644 --- a/ui/src/app/editor-v2/editor.component.ts +++ b/ui/src/app/editor-v2/editor.component.ts @@ -37,6 +37,7 @@ import {PanelType} from "../core-ui/dialog/base-dialog/base-dialog.model"; import {WelcomeTourComponent} from "./dialog/welcome-tour/welcome-tour.component"; import {DialogService} from "../core-ui/dialog/base-dialog/base-dialog.service"; import {MissingElementsForTutorialComponent} from "./dialog/missing-elements-for-tutorial/missing-elements-for-tutorial.component"; +import {ShepherdService} from "../services/tour/shepherd.service"; @Component({ selector: 'editor', @@ -93,7 +94,8 @@ export class EditorComponent implements OnInit { constructor(private editorService: EditorService, private pipelineElementService: PipelineElementService, private AuthStatusService: AuthStatusService, - private dialogService: DialogService) { + private dialogService: DialogService, + private shepherdService: ShepherdService) { } ngOnInit() { @@ -176,7 +178,7 @@ export class EditorComponent implements OnInit { startCreatePipelineTour() { if (this.requiredPipelineElementsForTourPresent()) { - //this.ShepherdService.startCreatePipelineTour(); + this.shepherdService.startCreatePipelineTour(); } else { this.missingElementsForTutorial = []; if (!this.requiredStreamForTourPresent()) { diff --git a/ui/src/scss/sp/main.scss b/ui/src/scss/sp/main.scss index 9b3b20a..d5e87ff 100644 --- a/ui/src/scss/sp/main.scss +++ b/ui/src/scss/sp/main.scss @@ -18,18 +18,6 @@ @import '../_variables'; -@-webkit-keyframes typing { - from { - width: 0; - } -} - -@-webkit-keyframes blink-caret { - 50% { - border-color: transparent; - } -} - md-progress-linear.md-accent .md-container { background-color: rgb(168, 168, 168); } @@ -86,17 +74,6 @@ md-dialog-actions { background-color: $sp-color-accent; } -.welcome-animation { - font-family: Arial; - border-right: .1em solid black; - width: 16.5em; - width: 5ch; - white-space: nowrap; - overflow: hidden; - -webkit-animation: typing 1s steps(5, end), - blink-caret .5s step-end infinite alternate; -} - .cv-wrapper { font-size: 1em; width: 320px;
