-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(interactiveTour + welcomeWindows): add new component and service (…
…#701) * tour * lint * feat add noBackButton on step Co-authored-by: Marc-André Barbeau <marc-andre.barbeau@msp.gouv.qc.ca> Co-authored-by: Josée Martel <josee.martel.9@ulaval.ca>
- Loading branch information
1 parent
156c3ac
commit 3e1a0c7
Showing
39 changed files
with
800 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
import { Component } from '@angular/core'; | ||
import { InteractiveTourService } from '@igo2/common'; | ||
|
||
@Component({ | ||
selector: 'app-home', | ||
templateUrl: './home.component.html', | ||
styleUrls: ['./home.component.scss'] | ||
}) | ||
export class AppHomeComponent {} | ||
export class AppHomeComponent { | ||
constructor(private interactiveTourService: InteractiveTourService) {} | ||
|
||
startTour() { | ||
this.interactiveTourService.startTour('global'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { MatTooltipModule } from '@angular/material/tooltip'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
|
||
import { AppHomeComponent } from './home.component'; | ||
import { AppHomeRoutingModule } from './home-routing.module'; | ||
import { IgoInteractiveTourModule } from '@igo2/common'; | ||
|
||
@NgModule({ | ||
declarations: [AppHomeComponent], | ||
imports: [AppHomeRoutingModule], | ||
imports: [ | ||
AppHomeRoutingModule, | ||
IgoInteractiveTourModule, | ||
MatTooltipModule, | ||
MatIconModule, | ||
MatButtonModule | ||
], | ||
exports: [AppHomeComponent] | ||
}) | ||
export class AppHomeModule {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"global": { | ||
"title": "interactiveTour.title", | ||
"highlightClass": "mat-form-field", | ||
"class": "mat-form-field", | ||
"steps": [ | ||
{ | ||
"element": "img.igo-logo", | ||
"text": "interactiveTour.selectByClass" | ||
}, | ||
{ | ||
"element": "#igo-title", | ||
"text": "interactiveTour.selectById", | ||
"noBackButton": true, | ||
"beforeShow": { | ||
"element": "a.mat-list-item[routerlink=\\.]", | ||
"action": "click" | ||
} | ||
}, | ||
{ | ||
"element": "a.mat-list-item[routerlink=context]", | ||
"text": "interactiveTour.changeTool", | ||
"onShow": { | ||
"action": "click" | ||
} | ||
}, | ||
{ | ||
"element": "igo-context-item:nth-of-type(3)", | ||
"text": "interactiveTour.context3" | ||
}, | ||
{ | ||
"element": "igo-context-item:nth-of-type(3)", | ||
"text": "Action 'onShow'", | ||
"onShow": { | ||
"action": "click" | ||
} | ||
}, | ||
{ | ||
"element": "igo-layer-item:nth-of-type(2) button", | ||
"text": "Action 'onHide'", | ||
"onHide": { | ||
"action": "click" | ||
} | ||
}, | ||
{ | ||
"text": "interactiveTour.end" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.