Skip to content

Commit c94bcad

Browse files
committed
feat(web): add link to tutorial in toolbar
1 parent 4c0be1a commit c94bcad

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

apps/web/src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { BrowserModule } from '@angular/platform-browser';
66
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
77
import { AppRoutingModule } from './app-routing.module';
88
import { AppComponent } from './components/app/app.component';
9-
import { OverviewComponent } from './components/overview/overview.component';
109
import { TutorialComponent } from './components/tutorial/tutorial.component';
1110
import { PlotsService } from './services/plots.service';
1211
import { MatSidenavModule } from '@angular/material/sidenav';
@@ -16,12 +15,12 @@ import { PlotsComponent } from './components/plots/plots.component';
1615
import { SocketService } from './services/socket.service';
1716
import { DragDropModule } from '@angular/cdk/drag-drop';
1817
import { MatCardModule } from '@angular/material/card';
18+
import { MatIconModule } from '@angular/material/icon';
1919

2020
@NgModule({
2121
declarations: [
2222
AppComponent,
2323
TutorialComponent,
24-
OverviewComponent,
2524
PlotComponent,
2625
PlotsComponent,
2726
],
@@ -36,6 +35,7 @@ import { MatCardModule } from '@angular/material/card';
3635
MatListModule,
3736
DragDropModule,
3837
MatCardModule,
38+
MatIconModule,
3939
],
4040
providers: [PlotsService, SocketService],
4141
bootstrap: [AppComponent],

apps/web/src/app/components/app/app.component.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ main {
1818
justify-content: stretch;
1919
}
2020

21-
:host ::ng-deep .main-router-outlet + * {
22-
flex: 1 1 0;
23-
}
24-
2521
mat-toolbar {
2622
flex: 0 0 auto;
2723
justify-content: space-between;
Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
<mat-toolbar color="primary">
2-
<span class="brand">
2+
<span class="brand" routerLink="/">
33
<button mat-flat-button color="primary">NodePlotLib</button>
44
</span>
55
<span class="info-icons">
6-
<a href="https://github.com/ngfelixl/nodeplotlib" target="_blank"
7-
><button mat-icon-button>
8-
<img src="/assets/github-light-32px.png" /></button
9-
></a>
6+
<button mat-icon-button routerLink="tutorial">
7+
<mat-icon>tips_and_updates</mat-icon>
8+
</button>
109
<a href="https://plotly.com/javascript/" target="_blank"
1110
><button mat-icon-button>
1211
<img src="/assets/plotly.svg" /></button
1312
></a>
13+
<a href="https://github.com/ngfelixl/nodeplotlib" target="_blank"
14+
><button mat-icon-button>
15+
<img src="/assets/github-light-32px.png" /></button
16+
></a>
1417
</span>
1518
</mat-toolbar>
1619
<main>
17-
<router-outlet class="main-router-outlet"></router-outlet>
20+
<router-outlet></router-outlet>
1821
</main>

0 commit comments

Comments
 (0)