-
-
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.
Added station route and connection info for the online map
- Loading branch information
Showing
23 changed files
with
414 additions
and
451 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
buildSrc/src/main/resources/website/src/app/app.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,19 +1,19 @@ | ||
<app-side #sideDirections (closed)="onCloseDirections()"> | ||
<app-side #sideStation (closed)="onCloseStation()"> | ||
<app-side #sideMain> | ||
<app-sidenav #sideDirections (closed)="onCloseDirections()"> | ||
<app-sidenav #sideStation (closed)="onCloseStation()"> | ||
<app-sidenav #sideMain> | ||
<app-map (stationClicked)="onClickStation($event, sideStation, sideDirections, false)"/> | ||
<button mat-fab class="button-corner" aria-label="Menu" (click)="sideMain.open()" matTooltip="Menu"> | ||
<mat-icon>menu</mat-icon> | ||
</button> | ||
<div sidenav class="column gap wrapper"> | ||
<app-search label="Search for anything..." [includeRoutes]="true" (stationClicked)="onClickStation($event, sideStation, sideDirections, true)"/> | ||
<app-panel class="wrapper"/> | ||
<app-search label="Search for anything..." [includeRoutes]="true" (stationClicked)="onClickStation($event, sideStation, sideDirections, true)" (routeClicked)="onClickRoute($event)"/> | ||
<app-main-panel class="wrapper"/> | ||
</div> | ||
<div title>{{ getTitle() }}</div> | ||
</app-side> | ||
<app-station sidenav (directionsOpened)="sideDirections.open()"/> | ||
</app-sidenav> | ||
<app-station-panel sidenav (stationClicked)="onClickStation($event, sideStation, sideDirections, true)" (routeClicked)="onClickRoute($event)" (directionsOpened)="sideDirections.open()"/> | ||
<div title>Station Details</div> | ||
</app-side> | ||
</app-sidenav> | ||
<app-directions sidenav/> | ||
<div title>Directions</div> | ||
</app-side> | ||
</app-sidenav> |
39 changes: 13 additions & 26 deletions
39
buildSrc/src/main/resources/website/src/app/app.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
33 changes: 33 additions & 0 deletions
33
...rc/main/resources/website/src/app/component/data-list-entry/data-list-entry.component.css
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,33 @@ | ||
.clickable { | ||
cursor: pointer; | ||
transition: background-color 0.2s; | ||
} | ||
|
||
.clickable:hover { | ||
background-color: rgba(127, 127, 127, 10%); | ||
} | ||
|
||
.arrival { | ||
padding: 0.4em 0; | ||
} | ||
|
||
.title { | ||
font-weight: bold; | ||
} | ||
|
||
.subtitle { | ||
font-size: 0.6em; | ||
} | ||
|
||
.light-color { | ||
color: rgba(127, 127, 127, 50%); | ||
} | ||
|
||
.arrival-color { | ||
border-left: 4px solid; | ||
padding-left: 4px; | ||
} | ||
|
||
.align-right { | ||
text-align: right; | ||
} |
21 changes: 21 additions & 0 deletions
21
...c/main/resources/website/src/app/component/data-list-entry/data-list-entry.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,21 @@ | ||
<div matRipple class="column arrival clickable {{useLightColor ? 'light-color' : ''}}" (click)="entryClicked.emit()"> | ||
<div class="row gap center title arrival-color" [style.border-left-color]="color"> | ||
<div class="row center"> | ||
@for (icon of icons; track $index) { | ||
@if (icon) { | ||
<mat-icon>{{ icon }}</mat-icon> | ||
} | ||
} | ||
<div>{{ title[0] }}</div> | ||
</div> | ||
<div class="spacing"></div> | ||
<div class="align-right">{{ title[1] }}</div> | ||
</div> | ||
@for (subtitle of subtitles; track $index) { | ||
<div class="row gap center subtitle arrival-color" [style.border-left-color]="color"> | ||
<div>{{ subtitle[0] }}</div> | ||
<div class="spacing"></div> | ||
<div class="align-right">{{ subtitle[1] }}</div> | ||
</div> | ||
} | ||
</div> |
22 changes: 22 additions & 0 deletions
22
...src/main/resources/website/src/app/component/data-list-entry/data-list-entry.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,22 @@ | ||
import {Component, EventEmitter, Input, Output} from "@angular/core"; | ||
import {MatIconModule} from "@angular/material/icon"; | ||
import {MatRipple} from "@angular/material/core"; | ||
|
||
@Component({ | ||
selector: "app-data-list-entry", | ||
standalone: true, | ||
imports: [ | ||
MatIconModule, | ||
MatRipple, | ||
], | ||
templateUrl: "./data-list-entry.component.html", | ||
styleUrl: "./data-list-entry.component.css", | ||
}) | ||
export class DataListEntryComponent { | ||
@Input({required: true}) icons: string[] = []; | ||
@Input({required: true}) title: [string, string] = ["", ""]; | ||
@Input({required: true}) subtitles: [string, string][] = []; | ||
@Input({required: true}) color = ""; | ||
@Input({required: true}) useLightColor = false; | ||
@Output() entryClicked = new EventEmitter<void>; | ||
} |
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
15 changes: 4 additions & 11 deletions
15
.../src/app/component/side/side.component.ts → ...pp/component/sidenav/sidenav.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
File renamed without changes.
24 changes: 24 additions & 0 deletions
24
...rc/src/main/resources/website/src/app/component/station-panel/station-panel.component.css
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,24 @@ | ||
.station-name { | ||
font-family: "Noto Sans", "Noto Serif TC", "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", sans-serif; | ||
font-size: 1.5em; | ||
font-weight: 600; | ||
text-align: center; | ||
} | ||
|
||
.station-name.cjk { | ||
font-size: 3em; | ||
} | ||
|
||
.station-color-bar { | ||
border-radius: 0.2em; | ||
height: 0.4em; | ||
} | ||
|
||
.chip { | ||
--mdc-chip-outline-color: transparent; | ||
} | ||
|
||
.chip-text { | ||
font-size: 0.8em; | ||
line-height: 1.2em; | ||
} |
Oops, something went wrong.