-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
800 additions
and
1,103 deletions.
There are no files selected for viewing
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
4 changes: 4 additions & 0 deletions
4
frontend/projects/ui/src/app/components/app-wizard/alert/alert.component.html
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,4 @@ | ||
<h1> | ||
<ion-text color="warning">Warning</ion-text> | ||
</h1> | ||
<div class="ion-text-left" [innerHTML]="params.message | markdown"></div> |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
frontend/projects/ui/src/app/components/app-wizard/alert/alert.component.ts
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,17 @@ | ||
import { Component, Input } from '@angular/core' | ||
import { BaseSlide } from '../wizard-types' | ||
|
||
@Component({ | ||
selector: 'alert', | ||
templateUrl: './alert.component.html', | ||
styleUrls: ['../app-wizard.component.scss'], | ||
}) | ||
export class AlertComponent implements BaseSlide { | ||
@Input() params: { | ||
message: string | ||
} | ||
|
||
async load() {} | ||
|
||
loading = false | ||
} |
90 changes: 90 additions & 0 deletions
90
frontend/projects/ui/src/app/components/app-wizard/app-wizard.component.html
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,90 @@ | ||
<ion-header> | ||
<ion-toolbar> | ||
<div style="padding: 10px 0"> | ||
<ion-title style="font-size: 32px">{{ params.title }}</ion-title> | ||
<div class="underline"></div> | ||
<ion-title> | ||
<i | ||
>{{ params.action | titlecase | ||
}}<span *ngIf="params.version" | ||
>: {{ params.version | displayEmver }}</span | ||
></i | ||
> | ||
</ion-title> | ||
</div> | ||
<ion-buttons slot="end"> | ||
<ion-button (click)="dismiss()"> | ||
<ion-icon slot="icon-only" name="close"></ion-icon> | ||
</ion-button> | ||
</ion-buttons> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<div style="padding: 36px; height: 100%"> | ||
<swiper | ||
*ngIf="!error; else hasError" | ||
(swiper)="setSwiperInstance($event)" | ||
(slideNextTransitionStart)="loadSlide()" | ||
> | ||
<ng-template swiperSlide *ngFor="let slide of params.slides"> | ||
<alert | ||
#components | ||
*ngIf="slide.selector === 'alert'" | ||
[params]="slide.params" | ||
></alert> | ||
<notes | ||
#components | ||
*ngIf="slide.selector === 'notes'" | ||
[params]="slide.params" | ||
></notes> | ||
<dependents | ||
#components | ||
*ngIf="slide.selector === 'dependents'" | ||
[params]="slide.params" | ||
(onSuccess)="next()" | ||
(onError)="setError($event)" | ||
></dependents> | ||
<complete | ||
#components | ||
*ngIf="slide.selector === 'complete'" | ||
[params]="slide.params" | ||
(onSuccess)="dismiss('success')" | ||
(onError)="setError($event)" | ||
></complete> | ||
</ng-template> | ||
</swiper> | ||
|
||
<ng-template #hasError> | ||
<p> | ||
<ion-text color="danger">{{ error }}</ion-text> | ||
</p> | ||
</ng-template> | ||
</div> | ||
</ion-content> | ||
|
||
<ion-footer> | ||
<ion-toolbar> | ||
<ng-container *ngIf="!initializing && swiper"> | ||
<ion-buttons slot="end" style="padding-right: 8px"> | ||
<ion-button | ||
*ngIf="error; else noError" | ||
(click)="dismiss()" | ||
class="enter-click" | ||
> | ||
<b>Dismiss</b> | ||
</ion-button> | ||
<ng-template #noError> | ||
<ion-button | ||
*ngIf="!currentSlide.loading && !swiper.isEnd" | ||
(click)="next()" | ||
class="enter-click" | ||
[class.no-click]="currentSlide.loading" | ||
> | ||
<b>Continue</b> | ||
</ion-button> | ||
</ng-template> | ||
</ion-buttons> | ||
</ng-container> | ||
</ion-toolbar> | ||
</ion-footer> |
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
6 changes: 6 additions & 0 deletions
6
frontend/projects/ui/src/app/components/app-wizard/app-wizard.component.scss
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,6 @@ | ||
.underline { | ||
margin: 6px 0 8px 16px; | ||
border-style: solid; | ||
border-width: 0px 0px 1px 0px; | ||
border-color: #404040; | ||
} |
Oops, something went wrong.