Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
Requirement Formalization Tool
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thodoris Nestoridis
Requirement Formalization Tool
Commits
85f0cbb4
Commit
85f0cbb4
authored
Mar 09, 2023
by
Thodoris Nestoridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login changes
parent
8d8ed690
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
7 deletions
+50
-7
app.component.html
reqtool/ReqmanAngular11/src/app/app.component.html
+12
-1
app.component.ts
reqtool/ReqmanAngular11/src/app/app.component.ts
+5
-1
login.component.html
...anAngular11/src/app/components/login/login.component.html
+7
-3
login.component.scss
...anAngular11/src/app/components/login/login.component.scss
+15
-1
login.component.ts
...qmanAngular11/src/app/components/login/login.component.ts
+11
-1
No files found.
reqtool/ReqmanAngular11/src/app/app.component.html
View file @
85f0cbb4
<div
*
ngIf=
"!LoggedIn()"
>
<router-outlet></router-outlet>
<!-- Footer -->
<footer
class=
"footer page-footer font-small "
>
<!-- Copyright -->
<div
class=
"footer-copyright text-center py-3"
>
© {{ getCurrentYear() }} Copyright:
<a
href=
"https://depend.csd.auth.gr/"
>
Depend Research Team
</a>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</div>
<div
*
ngIf=
"LoggedIn()"
>
...
...
@@ -19,7 +30,7 @@
<footer
class=
"footer page-footer font-small "
>
<!-- Copyright -->
<div
class=
"footer-copyright text-center py-3"
>
©
2022
Copyright:
<div
class=
"footer-copyright text-center py-3"
>
©
{{ getCurrentYear() }}
Copyright:
<a
href=
"https://depend.csd.auth.gr/"
>
Depend Research Team
</a>
</div>
<!-- Copyright -->
...
...
reqtool/ReqmanAngular11/src/app/app.component.ts
View file @
85f0cbb4
...
...
@@ -11,10 +11,14 @@ import { AuthService } from './services/auth.service';
export
class
AppComponent
{
constructor
(
private
authService
:
AuthService
){}
title
=
'ReqmanAngular11'
;
LoggedIn
()
{
console
.
log
(
this
.
authService
.
isLoggedIn
())
return
this
.
authService
.
isLoggedIn
();
}
getCurrentYear
():
number
{
return
new
Date
().
getFullYear
();
}
};
\ No newline at end of file
reqtool/ReqmanAngular11/src/app/components/login/login.component.html
View file @
85f0cbb4
...
...
@@ -9,7 +9,8 @@
<button (click)="login(username.value, password.value)">login</button>
<p>{{ error?.message }}</p>
<p *ngIf="error">{{ error?.error | json }}</p> -->
<div
class=
"container"
[@
fadeInOut
]
>
<h1
class=
"app-name"
>
Requirement Formalization Tool
</h1>
<!-- Default form login -->
<div
class=
"main-wrapper"
fxLayout=
"row"
fxLayoutAlign=
"center center"
>
...
...
@@ -37,9 +38,12 @@
<button
mat-stroked-button
color=
"primary"
class=
"btn-block"
type=
"submit"
(
click
)="
login
(
email
.
value
,
password
.
value
)"
>
Log in
</button>
<!-- Register -->
<p>
Not a member?
<a
mat-menu-item
(
click
)="
btnRegister
()
"
>
Register
</a>
<a
mat-menu-item
routerLink=
"/signup
"
>
Register
</a>
</p>
</form>
</mat-card>
</div>
<!-- Default form login -->
</div>
\ No newline at end of file
reqtool/ReqmanAngular11/src/app/components/login/login.component.scss
View file @
85f0cbb4
...
...
@@ -95,3 +95,17 @@
.main-wrapper
.mat-form-field-appearance-legacy
.mat-form-field-infix
{
padding
:
0
.8375em
0
;
}
.container
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.app-name
{
padding
:
2rem
;
font-size
:
4rem
;
margin-bottom
:
2rem
;
color
:
#333
;
}
\ No newline at end of file
reqtool/ReqmanAngular11/src/app/components/login/login.component.ts
View file @
85f0cbb4
...
...
@@ -3,11 +3,21 @@ import { Router } from '@angular/router';
import
{
AuthService
}
from
'./../../services/auth.service'
;
import
{
NotifierService
}
from
"angular-notifier"
;
import
{
FormControl
,
Validators
}
from
'@angular/forms'
;
import
{
trigger
,
state
,
style
,
transition
,
animate
}
from
'@angular/animations'
;
@
Component
({
selector
:
'app-login'
,
templateUrl
:
'./login.component.html'
,
styleUrls
:
[
'./login.component.scss'
]
styleUrls
:
[
'./login.component.scss'
],
animations
:
[
trigger
(
'fadeInOut'
,
[
state
(
'void'
,
style
({
opacity
:
0
})),
transition
(
':enter'
,
animate
(
'0.5s ease-in-out'
)),
transition
(
':leave'
,
animate
(
'0.5s ease-in-out'
))
])
]
})
export
class
LoginComponent
implements
OnInit
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment