-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(help): Simplify help component setup
* Help component now use normal routing vs. dynamically creating components by topic param * No longer requires registering help topics. They can be discovered via router config. * UI updates to help component
- Loading branch information
Showing
13 changed files
with
71 additions
and
176 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
<div class="help-header"> | ||
<breadcrumb [homeBreadcrumb]="homeBreadcrumb"></breadcrumb> | ||
</div> | ||
|
||
<div class="help-content row"> | ||
<div class="col-lg-3 col-xl-2 help-menu" role="complementary"> | ||
<nav class="card nav"> | ||
@for (topic of helpTopics; track topic) { | ||
<a | ||
class="nav-link btn-link" | ||
routerLinkActive="active" | ||
[routerLink]="['/help/' + topic.id]" | ||
>{{ topic.title }}</a | ||
> | ||
<section class="page-header"> | ||
<h3> | ||
Help | ||
@if (childRoute(); as route) { | ||
- {{ route.title ?? (route.path | titlecase) }} | ||
} | ||
</h3> | ||
</section> | ||
<section class="page-body anchored-page-body flex-row row h-100"> | ||
<div class="col-lg-3 col-xl-2 h-100" role="complementary"> | ||
<nav class="card nav h-100 overflow-auto align-items-stretch flex-nowrap"> | ||
@for (route of childRoutes; track route) { | ||
<a class="nav-link" routerLinkActive="active" [routerLink]="['/help/', route.path]"> | ||
{{ route.title ?? (route.path | titlecase) }} | ||
</a> | ||
} | ||
</nav> | ||
</div> | ||
|
||
<div class="col-lg-9 col-xl-10 help-main" role="main"> | ||
<section class="card"> | ||
<div class="card-body"> | ||
<div class="col-lg-9 col-xl-10 h-100" role="main"> | ||
<section class="card h-100"> | ||
<div class="card-body overflow-auto"> | ||
<router-outlet></router-outlet> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
</section> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Routes } from '@angular/router'; | ||
|
||
import { TeamsHelpComponent } from './help/teams-help.component'; | ||
|
||
export const TEAMS_HELP_ROUTES: Routes = [ | ||
{ | ||
path: 'teams', | ||
component: TeamsHelpComponent | ||
} | ||
]; |
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,10 @@ | ||
import { Routes } from '@angular/router'; | ||
|
||
import { ExampleHelpComponent } from './help/example-help.component'; | ||
|
||
export const EXAMPLE_HELP_ROUTES: Routes = [ | ||
{ | ||
path: 'example', | ||
component: ExampleHelpComponent | ||
} | ||
]; |
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