Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
2,929 additions
and
86 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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule } from '@angular/router'; | ||
|
||
import { LoginPageComponent } from './login-page.component'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
RouterModule.forChild([ | ||
{ path: '', component: LoginPageComponent, data: { title: 'login.title' } } | ||
]) | ||
] | ||
}) | ||
export class LoginPageRoutingModule { } |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="text-center mt-5"> | ||
<img class="mb-4" src="assets/images/dspace-logo.png" alt="" width="72" height="72"> | ||
<h1 class="h3 mb-0 font-weight-normal">{{"login.form.header" | translate}}</h1> | ||
<ds-log-in></ds-log-in> | ||
</div> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Component, OnDestroy } from '@angular/core'; | ||
|
||
import { Store } from '@ngrx/store'; | ||
|
||
import { AppState } from '../app.reducer'; | ||
import { ResetAuthenticationMessagesAction } from '../core/auth/auth.actions'; | ||
|
||
@Component({ | ||
selector: 'ds-login-page', | ||
styleUrls: ['./login-page.component.scss'], | ||
templateUrl: './login-page.component.html' | ||
}) | ||
export class LoginPageComponent implements OnDestroy { | ||
|
||
constructor(private store: Store<AppState>) {} | ||
|
||
ngOnDestroy() { | ||
// Clear all authentication messages when leaving login page | ||
this.store.dispatch(new ResetAuthenticationMessagesAction()); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { SharedModule } from '../shared/shared.module'; | ||
import { LoginPageComponent } from './login-page.component'; | ||
import { LoginPageRoutingModule } from './login-page-routing.module'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
LoginPageRoutingModule, | ||
CommonModule, | ||
SharedModule, | ||
], | ||
declarations: [ | ||
LoginPageComponent | ||
] | ||
}) | ||
export class LoginPageModule { | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule } from '@angular/router'; | ||
|
||
import { LogoutPageComponent } from './logout-page.component'; | ||
import { AuthenticatedGuard } from '../core/auth/authenticated.guard'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
RouterModule.forChild([ | ||
{ | ||
canActivate: [AuthenticatedGuard], | ||
path: '', | ||
component: LogoutPageComponent, | ||
data: { title: 'logout.title' } | ||
} | ||
]) | ||
] | ||
}) | ||
export class LogoutPageRoutingModule { } |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class="text-center mt-5"> | ||
<img class="mb-4" src="assets/images/dspace-logo.png" alt="" width="72" height="72"> | ||
<h1 class="h3 mb-0 font-weight-normal">{{"logout.form.header" | translate}}</h1> | ||
<ds-log-out></ds-log-out> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.login-container { | ||
height: 100%; | ||
display: -ms-flexbox; | ||
display: -webkit-box; | ||
display: flex; | ||
-ms-flex-align: center; | ||
-ms-flex-pack: center; | ||
-webkit-box-align: center; | ||
align-items: center; | ||
-webkit-box-pack: center; | ||
justify-content: center; | ||
padding-top: 40px; | ||
padding-bottom: 40px; | ||
background-color: #f5f5f5; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'ds-logout-page', | ||
styleUrls: ['./logout-page.component.scss'], | ||
templateUrl: './logout-page.component.html' | ||
}) | ||
export class LogoutPageComponent { | ||
|
||
} |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
import { SharedModule } from '../shared/shared.module'; | ||
import { LogoutPageComponent } from './logout-page.component'; | ||
import { LogoutPageRoutingModule } from './logout-page-routing.module'; | ||
|
||
@NgModule({ | ||
imports: [ | ||
LogoutPageRoutingModule, | ||
CommonModule, | ||
SharedModule, | ||
], | ||
declarations: [ | ||
LogoutPageComponent | ||
] | ||
}) | ||
export class LogoutPageModule { | ||
|
||
} |
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
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,32 +1,34 @@ | ||
import { ActionReducerMap } from '@ngrx/store'; | ||
import * as fromRouter from '@ngrx/router-store'; | ||
|
||
import { headerReducer, HeaderState } from './header/header.reducer'; | ||
import { hostWindowReducer, HostWindowState } from './shared/host-window.reducer'; | ||
import { | ||
SearchSidebarState, | ||
sidebarReducer | ||
} from './+search-page/search-sidebar/search-sidebar.reducer'; | ||
import { | ||
filterReducer, | ||
SearchFiltersState | ||
} from './+search-page/search-filters/search-filter/search-filter.reducer'; | ||
import { truncatableReducer, TruncatablesState } from './shared/truncatable/truncatable.reducer'; | ||
|
||
export interface AppState { | ||
router: fromRouter.RouterReducerState; | ||
hostWindow: HostWindowState; | ||
header: HeaderState; | ||
searchSidebar: SearchSidebarState; | ||
searchFilter: SearchFiltersState; | ||
truncatable: TruncatablesState; | ||
} | ||
|
||
export const appReducers: ActionReducerMap<AppState> = { | ||
router: fromRouter.routerReducer, | ||
hostWindow: hostWindowReducer, | ||
header: headerReducer, | ||
searchSidebar: sidebarReducer, | ||
searchFilter: filterReducer, | ||
truncatable: truncatableReducer | ||
}; | ||
import { ActionReducerMap } from '@ngrx/store'; | ||
import * as fromRouter from '@ngrx/router-store'; | ||
|
||
import { headerReducer, HeaderState } from './header/header.reducer'; | ||
import { hostWindowReducer, HostWindowState } from './shared/host-window.reducer'; | ||
import { | ||
SearchSidebarState, | ||
sidebarReducer | ||
} from './+search-page/search-sidebar/search-sidebar.reducer'; | ||
import { | ||
filterReducer, | ||
SearchFiltersState | ||
} from './+search-page/search-filters/search-filter/search-filter.reducer'; | ||
import { truncatableReducer, TruncatablesState } from './shared/truncatable/truncatable.reducer'; | ||
|
||
export interface AppState { | ||
router: fromRouter.RouterReducerState; | ||
hostWindow: HostWindowState; | ||
header: HeaderState; | ||
searchSidebar: SearchSidebarState; | ||
searchFilter: SearchFiltersState; | ||
truncatable: TruncatablesState; | ||
} | ||
|
||
export const appReducers: ActionReducerMap<AppState> = { | ||
router: fromRouter.routerReducer, | ||
hostWindow: hostWindowReducer, | ||
header: headerReducer, | ||
searchSidebar: sidebarReducer, | ||
searchFilter: filterReducer, | ||
truncatable: truncatableReducer | ||
}; | ||
|
||
export const routerStateSelector = (state: AppState) => state.router; |
Oops, something went wrong.