Skip to content

Commit

Permalink
fix new BS scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lombardi-gux committed Dec 5, 2022
1 parent a86cc1a commit 8b11242
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 102 deletions.
3 changes: 1 addition & 2 deletions client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
],
"scripts": [
"node_modules/jquery/dist/jquery.slim.js",
"node_modules/popper.js/dist/umd/popper.js",
"node_modules/bootstrap/dist/js/bootstrap.js"
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
]
},
"configurations": {
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "starter",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
115 changes: 17 additions & 98 deletions client/src/app/shared/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,7 @@
<div class="row">
<div class="col">
<nav class="navbar navbar-expand-lg navbar-light">
<button
class="navbar-toggler p-0"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<button class="navbar-toggler p-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" routerLink="/home"> Product Name </a>
Expand All @@ -25,16 +17,7 @@
</li>

<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdownMenuLink"
role="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>Menu 1</a
>
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Menu 1</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" routerLink="">Menu Item 1</a>
<a class="dropdown-item" routerLink="">Menu Item 2</a>
Expand All @@ -43,15 +26,7 @@
</li>

<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
role="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false"
>Menu 2</a
>
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Menu 2</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" routerLink="">Menu Item 1</a>
<a class="dropdown-item" routerLink="">Menu Item 2</a>
Expand All @@ -63,13 +38,7 @@
<ul class="navbar-nav navbar-right" [ngClass]="{ 'search-active': searchActive }">
<li class="nav-item">
<!-- when search icon is clicked, search UI is displayed and the other menus are hidden -->
<a
#searchLink
class="nav-link d-none d-sm-block"
aria-label="Search"
href=""
(click)="toggleSearch($event)"
>
<a #searchLink class="nav-link d-none d-sm-block" aria-label="Search" href="" (click)="toggleSearch($event)">
<i class="pbi-icon-outline pbi-search d-none d-lg-inline" aria-hidden="true"></i>
</a>

Expand All @@ -90,14 +59,7 @@

<!-- Apps menu -->
<li class="nav-item dropdown">
<a
href="#"
class="nav-link dropdown-toggle"
data-toggle="dropdown"
aria-labelledby="app-offscreen"
aria-haspopup="true"
aria-expanded="false"
>
<a href="#" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-labelledby="app-offscreen" aria-haspopup="true" aria-expanded="false">
<i class="pbi-icon-outline pbi-apps d-none d-lg-inline" aria-hidden="true"></i>

<span class="d-lg-none" id="app-offscreen">
Expand All @@ -115,14 +77,7 @@

<!-- Support menu -->
<li class="nav-item dropdown menu-help">
<a
href=""
class="nav-link dropdown-toggle"
data-toggle="dropdown"
aria-labelledby="help-offscreen"
aria-expanded="false"
aria-haspopup="true"
>
<a href="" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-labelledby="help-offscreen" aria-expanded="false" aria-haspopup="true">
<i class="pbi-icon-outline pbi-help-circle d-none d-lg-inline" aria-hidden="true"></i>

<span class="d-lg-none" id="help-offscreen">
Expand All @@ -132,12 +87,7 @@

<div class="dropdown-menu" role="menu">
<div class="section-head hidden-xs">Support</div>
<input
type="text"
class="form-control form-control-sm dropdown-search-item"
placeholder="Search"
aria-label="Search"
/>
<input type="text" class="form-control form-control-sm dropdown-search-item" placeholder="Search" aria-label="Search" />
<a class="dropdown-item" href="">Support Topic 1</a>
<a class="dropdown-item" href="">Support Topic 2</a>
<a class="dropdown-item" href="">See All Support Topics</a>
Expand All @@ -148,25 +98,16 @@
</a>
<a class="dropdown-item" href=""> <i class="pbi-icon-mini pbi-mail" aria-hidden="true"></i> Email</a>
<a class="dropdown-item" href="tel:1-800-555-45678">
<i class="pbi-icon-mini pbi-phone" aria-hidden="true"></i> 1-800-555-45678</a
>
<i class="pbi-icon-mini pbi-phone" aria-hidden="true"></i> 1-800-555-45678</a>
<div class="divider" role="separator"></div>
<a class="dropdown-item" href="">
<i class="pbi-icon-mini pbi-download" aria-hidden="true"></i> Printer/Scale Drivers</a
>
<i class="pbi-icon-mini pbi-download" aria-hidden="true"></i> Printer/Scale Drivers</a>
</div>
</li>

<!-- settings menu -->
<li class="nav-item dropdown">
<a
href=""
class="nav-link dropdown-toggle"
data-toggle="dropdown"
aria-labelledby="settings-offscreen"
aria-expanded="false"
aria-haspopup="true"
>
<a href="" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-labelledby="settings-offscreen" aria-expanded="false" aria-haspopup="true">
<i class="pbi-icon-outline pbi-settings d-none d-lg-inline" aria-hidden="true"></i>

<span class="d-lg-none" id="settings-offscreen">
Expand All @@ -191,13 +132,7 @@

<!-- User menu -->
<li class="nav-item dropdown menu-user">
<a
href=""
class="nav-link dropdown-toggle"
data-toggle="dropdown"
aria-labelledby="username-offscreen"
aria-expanded="false"
>
<a href="" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" aria-labelledby="username-offscreen" aria-expanded="false">
<div class="d-none d-lg-block header-user-lockup">
<div class="header-username">Melanie Daniels</div>
</div>
Expand All @@ -208,12 +143,8 @@
</a>

<div class="dropdown-menu" role="menu">
<a class="dropdown-item" href=""
>Profile <br /><span class="menu-text-small">Email, Passwords</span></a
>
<a class="dropdown-item" href=""
>Your Account <br /><span class="menu-text-small">Financials, Usage, Products, Support</span></a
>
<a class="dropdown-item" href="">Profile <br /><span class="menu-text-small">Email, Passwords</span></a>
<a class="dropdown-item" href="">Your Account <br /><span class="menu-text-small">Financials, Usage, Products, Support</span></a>
<div class="divider" role="separator"></div>
<a class="dropdown-item" href="">Sign Out</a>
</div>
Expand All @@ -223,21 +154,9 @@
<!-- new search, appears when icon in right menus (above) is clicked -->
<div class="header-search d-none d-sm-block" [ngClass]="{ 'search-active': searchActive }">
<form class="search-ui">
<input
#searchInput
id="search-input"
class="form-control search"
type="text"
required=""
aria-label="Search"
/>

<button
class="search-clear border-0"
type="reset"
(click)="toggleSearch($event)"
aria-label="clear search"
>
<input #searchInput id="search-input" class="form-control search" type="text" required="" aria-label="Search" />

<button class="search-clear border-0" type="reset" (click)="toggleSearch($event)" aria-label="clear search">
<i class="pbi-icon-mini pbi-close" aria-hidden="true"></i>
</button>
</form>
Expand All @@ -247,4 +166,4 @@
</div>
</div>
</div>
</header>
</header>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-starter-app",
"version": "3.0.0-beta.1",
"version": "3.0.0-beta.2",
"description": "PBDS Angular Starter Application",
"main": "index.html",
"scripts": {
Expand Down

0 comments on commit 8b11242

Please sign in to comment.