-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(scaffold-navigation): upgrade to bootstrap v4 and fontawesome v5 (…
- Loading branch information
Showing
17 changed files
with
98 additions
and
190 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
@@ -1,30 +1,26 @@ | ||
<template bindable="router"> | ||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigation-navbar-collapse-1"> | ||
<span class="sr-only">Toggle Navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="#"> | ||
<i class="fa fa-home"></i> | ||
<span>${router.title}</span> | ||
</a> | ||
</div> | ||
|
||
<div class="collapse navbar-collapse" id="navigation-navbar-collapse-1"> | ||
<ul class="nav navbar-nav"> | ||
<li repeat.for="row of router.navigation" class="${row.isActive ? 'active' : ''}"> | ||
<a data-toggle="collapse" data-target="#navigation-navbar-collapse-1.in" href.bind="row.href">${row.title}</a> | ||
</li> | ||
</ul> | ||
|
||
<ul class="nav navbar-nav navbar-right"> | ||
<li class="loader" if.bind="router.isNavigating"> | ||
<i class="fa fa-spinner fa-spin fa-2x"></i> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</template> | ||
<nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-dark" role="navigation"> | ||
<a class="navbar-brand" href="#"> | ||
<i class="far fa-home"></i> | ||
<span>${router.title}</span> | ||
</a> | ||
|
||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation-navbar-collapse-1" aria-controls="navigation-navbar-collapse-1" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navigation-navbar-collapse-1"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li repeat.for="row of router.navigation" class="nav-item ${row.isActive ? 'active' : ''}"> | ||
<a class="nav-link" href.bind="row.href">${row.title}</a> | ||
</li> | ||
</ul> | ||
|
||
<ul class="navbar-nav"> | ||
<li class="nav-item" if.bind="router.isNavigating & debounce"> | ||
<i class="far fa-circle-notch fa-spin text-white fa-2x"></i> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</template> |
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.