-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Fasguy/dev
v1.3.1
- Loading branch information
Showing
74 changed files
with
2,599 additions
and
10,135 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
23 changes: 23 additions & 0 deletions
23
projects/toolbox-main/src/app/common/directives/hold-event/hold-event.directive.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,23 @@ | ||
import { Directive, EventEmitter, HostListener, Output } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: '[holdEvent]' | ||
}) | ||
export class HoldEventDirective { | ||
private _holdInterval: any; | ||
|
||
@Output() | ||
protected hold = new EventEmitter(); | ||
|
||
@HostListener('pointerdown') | ||
private onPointerDown() { | ||
this._holdInterval = setInterval(() => { | ||
this.hold.emit(); | ||
}, 16); | ||
} | ||
|
||
@HostListener('pointerup') | ||
private onPointerUp() { | ||
clearInterval(this._holdInterval); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
projects/toolbox-main/src/app/common/elements/footer/footer.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
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
14 changes: 12 additions & 2 deletions
14
projects/toolbox-main/src/app/common/elements/header/header.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 |
---|---|---|
@@ -1,4 +1,14 @@ | ||
<p>Fasguy's Minecraft Toolbox v{{version}}</p> | ||
<div class="tool-selection-container"> | ||
<a *ngFor="let route of routes | filter: filterTitledRoutes" [routerLink]="route.path" routerLinkActive="is-active">{{route!.data!["title"]}}</a> | ||
<div class="overflow-helper"> | ||
<div class="overflow-container" #overflowContainer (wheel)="onWheel($event, overflowContainer)"> | ||
<div class="tool-selection-container"> | ||
<div class="outer-border" *ngFor="let route of routes | filter: filterTitledRoutes"> | ||
<a class="route" [routerLink]="route.path" routerLinkActive="is-active"><span class="route-title">{{route!.data!["title"]}}</span></a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="controls"> | ||
<button class="scroll left" holdEvent (hold)="scrollAlong(-50)"></button> | ||
<button class="scroll right" holdEvent (hold)="scrollAlong(50)"></button> | ||
</div> | ||
</div> |
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.