Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@


public class FileUtil {
public static final String PATH = "/home/negilbabu/Desktop/project/LibraryRepository/FrontEnd/Library/src/assets/BooksImage/item_pics/";
public static final String PATH = "/home/negilbabu/Desktop/project/LibraryRepository/FrontEnd/Library/src/assets/BooksImage/";


public static final String PROFILE_PIC_DIR = "item_pics/";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class AdminNavbarComponent implements OnInit {
}
}
dash() {
throw new Error('Method not implemented.');

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
body, html {
/* fixed */
position: relative;
margin: 0;
font-family: arial;
height: 0vh;
background: #ccc;
}
*, *:before, *:after {
box-sizing: border-box;
}
.nav-mobile {
position: fixed;
width: 100%;
z-index: 1;
background: #1c032e;
/* background: #9f3800; */
color: #fff;
padding: 0;
/* border:10px; */
/* border-color: black; */
margin: 0;
cursor: auto;
font-size: 18px;
list-style-type: none;
/* box-shadow: 0 5px 5px -5px #333; */
}
.nav-mobile:after {
content: "";
display: table;
clear: both;
}


.nav-mobile li {
width: 90%;
height: 4%;
line-height: 46px;
text-align: center;
/* float: right; */
}
.nav-mobile li a {
display: block;
color: #333;
width: 100%;
height: 100%;
text-decoration: none;
}

.main {
height: 100%;
width: 100%;
overflow: hidden;
overflow-y: scroll;
}
.button{
border: none;
background-color: transparent;
color: rgb(150, 40, 180);
}
.button:hover {color: #ffffff}


Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@

<ul class="nav-mobile" >
<li class="cls">
<label style="position: relative;text-align: center; left: 8%;">LIBRARY</label>
<button type="button" style="position: relative;float: right;" class="button" (click)="Login()">LOGIN</button>
<div class="right">

<!-- <button mat-icon-button > <i class="material-icons" style="color:rgb(30, 237, 213);float:right; " (click)="Login()">logout</i></button> <br> -->

</div>
</li>
</ul>


<body>
<div>
<br><br><br>
<form [formGroup]="ObjForm" (ngSubmit)="openPopup()">

<div style="text-align: center;"><br><br>
Expand All @@ -20,7 +32,7 @@



<div class="modal" tabindex="-1" role="dialog" [ngStyle]="{'display':displayStyle}" *ngIf="this.rslt!=1">
<div class="modal" tabindex="-1" role="dialog" [ngStyle]="{'display':displayStyle}" *ngIf="this.rslt!=1" style="margin-top: 13%;">
<div class="modal-dialog" role="document" >
<div class="modal-content">
<div class="modal-header">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ export class ForgotpasswordComponent implements OnInit {
}

}

Login()
{
this.router.navigate(['/login'])
}




Expand Down
6 changes: 5 additions & 1 deletion FrontEnd/Library/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ export class LoginComponent implements OnInit {
//alert("login not sucessful");
this.toast.warning({detail:'success msg',summary:'LogIn failed',duration:5000});
}
})
}, (error: any) =>{
this.toast.error({detail:'Login Failed',summary:'Invalid Credentials',duration:5000});
console.log(error)});


// }


Expand Down
68 changes: 61 additions & 7 deletions FrontEnd/Library/src/app/user-reg/user-reg.component.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,64 @@
p{
padding: 0px 0px 30px 1000px;
margin: 0px;
background-color: rgb(0, 0, 0);
/* background-image: url('../../../a.png'); */

}
body, html {
/* fixed */
position: relative;
margin: 0;
font-family: arial;
height: 0vh;
background: #ccc;
}
*, *:before, *:after {
box-sizing: border-box;
}
.nav-mobile {
position: fixed;
width: 100%;
z-index: 1;
background: #1c032e;
/* background: #9f3800; */
color: #fff;
padding: 0;
/* border:10px; */
/* border-color: black; */
margin: 0;
cursor: auto;
font-size: 18px;
list-style-type: none;
/* box-shadow: 0 5px 5px -5px #333; */
}
.nav-mobile:after {
content: "";
display: table;
clear: both;
}


.nav-mobile li {
width: 90%;
height: 4%;
line-height: 46px;
text-align: center;
/* float: right; */
}
.nav-mobile li a {
display: block;
color: #333;
width: 100%;
height: 100%;
text-decoration: none;
}

.main {
height: 100%;
width: 100%;
overflow: hidden;
overflow-y: scroll;
}
.button{
border: none;
background-color: transparent;
color: rgb(150, 40, 180);
}
.button:hover {color: #ffffff}


.text-danger1{
Expand Down
40 changes: 20 additions & 20 deletions FrontEnd/Library/src/app/user-reg/user-reg.component.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
<p > <br>
<input type="button" style = "position:absolute; left:1200px; top:20px;" class="btnhome" name="LogIn" value="LogIn" (click)="Login()">
<br><br>
</p>

<ul class="nav-mobile" >
<li class="cls">
<label style="position: relative;text-align: center; left: 8%;">LIBRARY</label>
<button type="button" style="position: relative;float: right;" class="button" (click)="Login()">LOGIN</button>

<div class="right">

<!-- <button mat-icon-button > <i class="material-icons" style="color:rgb(30, 237, 213);float:right; " (click)="Login()">logout</i></button> <br> -->

</div>
</li>
</ul>



<router-outlet></router-outlet>

<div class="text-center">
<form [formGroup]="ObjSampleForm" (ngSubmit)="onSubmit()">

<div style="width: 160px; margin:0 auto;" class="example-container" ><br>
<div style="width: 180px; margin:0 auto;" class="example-container" ><br>
<div style="width: 50px; margin:0 auto;"> <label ><h2>SignUp</h2></label></div>
<br>

Expand Down Expand Up @@ -56,21 +64,13 @@
</div> <br><br>



<input class="btn" type="submit" name="onSubmit" value="Submit" [disabled]="ObjSampleForm.invalid" ><br><br><br><br>
<!-- <br> [disabled]="!ObjSampleForm.valid" -->
<br><br>
<br>
<br>
<br>
<br><br>
<br>
<br>
<button mat-raised-button color="warn" (click)="clear()">Clear</button>
&nbsp; &nbsp;
<button mat-raised-button (click)="onSubmit()" color="primary" [disabled]="ObjSampleForm.invalid" >Submit</button>


</div>
<br>
<br><br>
<br>
<br>

</form>

</div>
Expand Down
4 changes: 3 additions & 1 deletion FrontEnd/Library/src/app/user-reg/user-reg.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ var:any;
this.router.navigate(['/login'])
}


clear(){
window.location.reload()
}



Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.