Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
feat(component): priority-nav added
Browse files Browse the repository at this point in the history
  • Loading branch information
BehnooshShiva committed Sep 2, 2020
1 parent 12dbdc1 commit 1340f4e
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { DocStepbarComponent } from './docs/stepbar.component';
import { DocCollapseComponent } from './docs/collapse.component';
import { DocDatepickerComponent } from './docs/datepicker.component';
import { DocProgressBarComponent } from './docs/progress-bar.component';
import { DocPriorityNavComponent } from './docs/priority-nav.component';
import { DocNavbarComponent } from './docs/navbar.component';
import { DocONavbarComponent } from './docs/o-navbar.component';
import { DocOScrollTopComponent } from './docs/o-scroll-top.component';
Expand Down Expand Up @@ -168,6 +169,10 @@ const routes: Routes = [{
path: 'documentation/progress',
component: DocProgressBarComponent
},
{
path: 'documentation/priority-nav',
component: DocPriorityNavComponent
},
{
path: 'documentation/navbar',
component: DocNavbarComponent
Expand Down
4 changes: 4 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { DemoCarouselComponent } from './demos/carousel.component';
import { DemoOCalendarComponent } from './demos/o-calendar.component';
import { DemoCollapseComponent } from './demos/collapse.component';
import { DemoDatepickerComponent } from './demos/datepicker.component';
import { DemoPriorityNavComponent } from './demos/priority-nav.component';
import { DemoProgressBarComponent } from './demos/progress-bar.component';
import { DemoDropdownComponent } from './demos/dropdown.component';
import { DemoOSwitchComponent } from './demos/o-switch.component';
Expand Down Expand Up @@ -78,6 +79,7 @@ import { DocStepbarComponent } from './docs/stepbar.component';
import { DocCollapseComponent } from './docs/collapse.component';
import { DocDatepickerComponent } from './docs/datepicker.component';
import { DocProgressBarComponent } from './docs/progress-bar.component';
import { DocPriorityNavComponent } from './docs/priority-nav.component';
import { DocNavbarComponent } from './docs/navbar.component';
import { DocONavbarComponent } from './docs/o-navbar.component';
import { DocScrollUpComponent } from './docs/scroll-up.component';
Expand Down Expand Up @@ -123,6 +125,7 @@ import { ScrollTopModule } from 'ng-boosted';
DemoOToggleComponent,
DemoPaginationComponent,
DemoPopoverComponent,
DemoPriorityNavComponent,
DemoProgressBarComponent,
DemoRatingComponent,
DemoScrollspyComponent,
Expand Down Expand Up @@ -166,6 +169,7 @@ import { ScrollTopModule } from 'ng-boosted';
DocScrollspyComponent,
DocStepbarComponent,
DocProgressBarComponent,
DocPriorityNavComponent,
DocNavbarComponent,
DocONavbarComponent,
DocOScrollTopComponent,
Expand Down
4 changes: 4 additions & 0 deletions src/app/boostwatch/boostwatch.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { DemoOCalendarComponent } from '../demos/o-calendar.component';
import { DemoCollapseComponent } from '../demos/collapse.component';
import { DemoDatepickerComponent } from '../demos/datepicker.component';
import { DemoProgressBarComponent } from '../demos/progress-bar.component';
import { DemoPriorityNavComponent } from '../demos/priority-nav.component';
import { DemoDropdownComponent } from '../demos/dropdown.component';
import { DemoOSwitchComponent } from '../demos/o-switch.component';
import { DemoOToggleComponent } from '../demos/o-toggle.component';
Expand Down Expand Up @@ -80,6 +81,7 @@ import { DocSpinnerComponent } from '../docs/spinner.component';
import { DocScrollspyComponent } from '../docs/scrollspy.component';
import { DocStepbarComponent } from '../docs/stepbar.component';
import { DocProgressBarComponent } from '../docs/progress-bar.component';
import { DocPriorityNavComponent } from '../docs/priority-nav.component';
import { DocONavbarComponent } from '../docs/o-navbar.component';
import { DocScrollUpComponent } from '../docs/scroll-up.component';
import { DocOScrollTopComponent } from '../docs/o-scroll-top.component';
Expand Down Expand Up @@ -129,6 +131,7 @@ describe('BoostwatchComponent', () => {
DemoOToggleComponent,
DemoPaginationComponent,
DemoPopoverComponent,
DemoPriorityNavComponent,
DemoProgressBarComponent,
DemoRatingComponent,
DemoScrollspyComponent,
Expand Down Expand Up @@ -178,6 +181,7 @@ describe('BoostwatchComponent', () => {
DocScrollspyComponent,
DocStepbarComponent,
DocProgressBarComponent,
DocPriorityNavComponent,
DocONavbarComponent,
DocOScrollTopComponent,
DocScrollUpComponent,
Expand Down
12 changes: 12 additions & 0 deletions src/app/demos/priority-nav.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<nav id="o-nav-local" role="navigation" class="o-nav-local navbar-light">
<ul class="container nav">
<li class="nav-item"><a class="nav-link active" aria-current="page" href="#">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#">Introduction</a></li>
<li class="nav-item"><a class="nav-link" href="#">Usage</a></li>
<li class="nav-item"><a class="nav-link" href="#">References</a></li>
<li class="nav-item"><a class="nav-link" href="#">Shopping</a></li>
<li class="nav-item"><a class="nav-link" href="#">Organisation</a></li>
<li class="nav-item"><a class="nav-link" href="#">Worldwilde</a></li>
<li class="nav-item"><a class="nav-link" href="#">Contact Us</a></li>
</ul>
</nav>
12 changes: 12 additions & 0 deletions src/app/demos/priority-nav.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { Component, OnInit } from '@angular/core';
declare var $: any;

@Component ({
selector: 'demo-priority-nav',
templateUrl: './priority-nav.component.html'
})
export class DemoPriorityNavComponent implements OnInit {
ngOnInit(){
$('.o-nav-local').prioritynav();
}
}
1 change: 1 addition & 0 deletions src/app/docs-menu/docs-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/pagination">Pagination</a></li>
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/popover">Popover</a></li>
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/progress">Progressbar</a></li>
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/priority-nav">priority-nav</a></li>
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/rating">Rating</a></li>
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/scrollspy">Scrollspy</a></li>
<li class="nav-item"><a class="nav-link py-md-2 px-md-0" routerLinkActive="active" routerLink="/documentation/scroll-up">Scroll Up</a></li>
Expand Down
1 change: 1 addition & 0 deletions src/app/docs/priority-nav.component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
information
22 changes: 22 additions & 0 deletions src/app/docs/priority-nav.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Component } from '@angular/core';

@Component({
selector: 'doc-priority-nav',
template: `
<docs-wrapper component="Priority Nav">
<p class="mt-4">Check the <a target="_blank" rel="noopener noreferrer"
href="https://boosted.orange.com/docs/4.5/components/priority-nav">boosted's original component documentation</a>.</p>
<h3>Demo</h3>
<div [innerHtml]=docContent></div>
<demo-priority-nav></demo-priority-nav>
<code-box [snippets]="demoSnippets"></code-box>
</docs-wrapper>
`
})
export class DocPriorityNavComponent {
public docContent = require('html-loader!markdown-loader!./priority-nav.component.md');
public demoSnippets = {
markup: require('!!prismjs-loader?lang=html!../demos/priority-nav.component.html'),
typescript: require('!!prismjs-loader?lang=typescript!../demos/priority-nav.component.ts')
};
}

0 comments on commit 1340f4e

Please sign in to comment.