-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Notification Center (#2469)
* create notification center * add clock & backdrop * introduce new notification model * fix notification stack * notification center done * clean standby service and create swipe function * add setting to hide carret * remove test notifications
- Loading branch information
1 parent
a030d63
commit f479524
Showing
36 changed files
with
858 additions
and
430 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,58 @@ | ||
<app-notification></app-notification> | ||
<div class="container"> | ||
<app-notification-center | ||
*ngIf="initialized" | ||
[ngStyle]="{ top: notificationCenterTop }" | ||
(setNotificationCenterAnimation)="setNotificationCenterAnimation($event)" | ||
(setNotificationCenterPosition)="setNotificationCenterPosition($event)" | ||
[ngClass]="{ animateNotificationCenter: animateNotificationCenter }"></app-notification-center> | ||
<div | ||
class="container" | ||
(touchstart)="onTouchStart($event)" | ||
(touchmove)="onTouchMove($event)" | ||
(touchend)="onTouchEnd($event)"> | ||
<div *ngIf="!activated"> | ||
<img src="assets/icon/icon-main.svg" class="splash-screen__icon-small" /> | ||
<span class="splash-screen__text" | ||
[ngClass]="{ 'loading-dots': status === 'connecting' || status === 'initializing' }">{{ status }}</span> | ||
<span | ||
class="splash-screen__text" | ||
[ngClass]="{ 'loading-dots': status === 'connecting' || status === 'initializing' }" | ||
>{{ status }}</span | ||
> | ||
<span class="splash-screen__hint" *ngIf="showConnectionHint" i18n="@@long-init"> | ||
Initializing is taking longer than usual. <br /> | ||
Please make sure that OctoPrint is running and that CORS is enabled for the API. | ||
</span> | ||
</div> | ||
|
||
<fa-icon | ||
*ngIf="initialized && showNotificationCenterIcon()" | ||
[icon]="['fas', 'caret-down']" | ||
(click)="showNotificationCenter()" | ||
matRipple | ||
[matRippleUnbounded]="true" | ||
[matRippleCentered]="true"></fa-icon> | ||
<router-outlet (activate)="activated = true"></router-outlet> | ||
</div> | ||
|
||
<ng-container *ngIf="!loadingAnimationCached"> | ||
<ng-lottie id="loadingAnimationCache" [hidden]="true" [options]="loadingOptionsCache" | ||
<ng-lottie | ||
id="loadingAnimationCache" | ||
[hidden]="true" | ||
[options]="loadingOptionsCache" | ||
(dataReady)="loadingAnimationCacheDone()"></ng-lottie> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="!checkmarkAnimationCached"> | ||
<ng-lottie id="checkmarkAnimationCache" [hidden]="true" [options]="checkmarkOptionsCache" | ||
<ng-lottie | ||
id="checkmarkAnimationCache" | ||
[hidden]="true" | ||
[options]="checkmarkOptionsCache" | ||
(dataReady)="checkmarkAnimationCacheDone()"></ng-lottie> | ||
</ng-container> | ||
|
||
<ng-container *ngIf="!toggleSwitchAnimationCached"> | ||
<ng-lottie id="toggleSwitchAnimationCache" [hidden]="true" [options]="toggleSwitchOptionsCache" | ||
<ng-lottie | ||
id="toggleSwitchAnimationCache" | ||
[hidden]="true" | ||
[options]="toggleSwitchOptionsCache" | ||
(dataReady)="toggleSwitchAnimationCacheDone()"></ng-lottie> | ||
</ng-container> | ||
</ng-container> |
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
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
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.