-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2386 from ORCID/lmendoza/9422-email-domains-inter…
…stitial-oauth Lmendoza/9422 email domains interstitial oauth
- Loading branch information
Showing
25 changed files
with
744 additions
and
14 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
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,11 @@ | ||
import { NgModule } from '@angular/core' | ||
import { CommonModule } from '@angular/common' | ||
import { InfoPanelComponent } from './info-panel/info-panel.component' | ||
import { MatIcon, MatIconModule } from '@angular/material/icon' | ||
|
||
@NgModule({ | ||
declarations: [InfoPanelComponent], | ||
imports: [CommonModule, MatIconModule], | ||
exports: [InfoPanelComponent], | ||
}) | ||
export class InfoPanelModule {} |
10 changes: 10 additions & 0 deletions
10
src/app/cdk/info-panel/info-panel/info-panel.component.html
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 @@ | ||
<div class="info"> | ||
<div class="col"> | ||
<img src="/assets/vectors/check-window.svg" role="presentation" /> | ||
</div> | ||
<div> | ||
<p> | ||
<ng-content></ng-content> | ||
</p> | ||
</div> | ||
</div> |
16 changes: 16 additions & 0 deletions
16
src/app/cdk/info-panel/info-panel/info-panel.component.scss
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,16 @@ | ||
.info { | ||
padding: 16px; | ||
margin-top: 16px; | ||
margin-bottom: 16px; | ||
border: solid 2px; | ||
border-radius: 4px; | ||
display: flex; | ||
|
||
p { | ||
margin: 0; | ||
} | ||
.col { | ||
align-items: start; | ||
padding-left: 0; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
src/app/cdk/info-panel/info-panel/info-panel.component.scss-theme.scss
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,23 @@ | ||
@use '@angular/material' as mat; | ||
@import 'src/assets/scss/material.orcid-theme.scss'; | ||
|
||
@mixin theme($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
$warn: map-get($theme, accent); | ||
$foreground: map-get($theme, foreground); | ||
$background: map-get($theme, background); | ||
|
||
.info { | ||
border-color: mat.get-color-from-palette( | ||
$foreground, | ||
'state-info-darkest' | ||
) !important; | ||
background-color: mat.get-color-from-palette( | ||
$background, | ||
'state-info-lightest' | ||
) !important; | ||
} | ||
} | ||
|
||
@include theme($orcid-app-theme); |
21 changes: 21 additions & 0 deletions
21
src/app/cdk/info-panel/info-panel/info-panel.component.spec.ts
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 { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { InfoPanelComponent } from './info-panel.component'; | ||
|
||
describe('InfoPanelComponent', () => { | ||
let component: InfoPanelComponent; | ||
let fixture: ComponentFixture<InfoPanelComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [InfoPanelComponent] | ||
}); | ||
fixture = TestBed.createComponent(InfoPanelComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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: 'app-info-panel', | ||
templateUrl: './info-panel.component.html', | ||
styleUrls: ['./info-panel.component.scss', './info-panel.component.scss-theme.scss'] | ||
}) | ||
export class InfoPanelComponent { | ||
|
||
} |
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,32 @@ | ||
import { NgModule } from '@angular/core' | ||
import { CommonModule } from '@angular/common' | ||
import { ShareEmailsDomainsComponent } from './share-emails-domains/share-emails-domains.component' | ||
import { MatLegacyCardModule } from '@angular/material/legacy-card' | ||
import { MatIconModule } from '@angular/material/icon' | ||
import { MatDividerModule } from '@angular/material/divider' | ||
import { InfoDropDownModule } from '../info-drop-down/info-drop-down.module' | ||
import { MatProgressBarModule } from '@angular/material/progress-bar' | ||
import { FormsModule, ReactiveFormsModule } from '@angular/forms' | ||
import { MatCheckboxModule } from '@angular/material/checkbox' | ||
import { MatLegacyCheckboxModule } from '@angular/material/legacy-checkbox' | ||
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button' | ||
import { InfoPanelModule } from '../info-panel/info-panel.module' | ||
|
||
@NgModule({ | ||
declarations: [ShareEmailsDomainsComponent], | ||
imports: [ | ||
CommonModule, | ||
MatLegacyCardModule, | ||
MatIconModule, | ||
MatDividerModule, | ||
InfoDropDownModule, | ||
MatProgressBarModule, | ||
ReactiveFormsModule, | ||
FormsModule, | ||
MatLegacyCheckboxModule, | ||
MatButtonModule, | ||
InfoPanelModule, | ||
], | ||
exports: [ShareEmailsDomainsComponent], | ||
}) | ||
export class InterstitialsModule {} |
Oops, something went wrong.