Skip to content

Commit

Permalink
batch-of-work-jan-2025
Browse files Browse the repository at this point in the history
  • Loading branch information
leomendoza123 committed Jan 27, 2025
1 parent 7f0be6f commit b4057cb
Show file tree
Hide file tree
Showing 30 changed files with 14,259 additions and 13,861 deletions.
5 changes: 4 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ const routes: Routes = [
},
{
path: '**',
redirectTo: '/',
loadChildren: () =>
import('./page-not-found-404/page-not-found-404.module').then(
(m) => m.PageNotFound404Module
),
},
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
[value]="selectedItem?.label"
matInput
[errorStateMatcher]="getMatcher()"
role="menu"
/>
<mat-icon matSuffix>arrow_drop_down</mat-icon>
<mat-error *ngIf="invalid" i18n="@@works.selectAWorkType">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ button.mat-button-wrap-text:not(.mobile):not(.secondaryItem) {

input {
cursor: pointer;
font-size: 16px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<app-modal-header>
<mat-icon class="material-icons-outlined info">info</mat-icon>
<ng-container i18n="@@topBar.pleaseVerifyYourPrimary">
Please verify your primary email address
Please verify your email addresses
</ng-container>
</app-modal-header>
<div
Expand All @@ -11,24 +11,22 @@
'orc-font-small-print': isMobile
}"
>
<div class="row">
<p i18n="@@topBar.youNeedToVerify">
You need to verify your primary email address in order to access all of
ORCID’s editing features.
</p>
<div class="text-content">
<p>
<ng-container i18n="@@topBar.youNeedToVerify"
>You need to verify at least one email address in order to access all
of ORCID’s editing features.</ng-container
>
<ng-container i18n="@@topBar.toVerifyYourEmail">
To verify your email please click the link in the message we have sent
to:
To verify your email address, click the link in the email sent to:
</ng-container>
<br />
<strong>
{{ primaryEmail }}
</strong>
</p>
<p>
{{ primaryEmail }}
</p>
<p>
<strong i18n="@@topBar.iDontHave">
I don’t have the verification email
Don’t have a verification email?
</strong>
<br />
<ng-container i18n="@@topBar.clickTheButton">
Expand All @@ -50,29 +48,16 @@
<p>
<strong i18n="@@side-bar.needHelp"> Need help?</strong>
<br />
<ng-container i18n="@@topBar.visitOur"> Visit our</ng-container>
<ng-container i18n="@@topBar.visitOur"> Visit the</ng-container>
<a
class="underline"
href="https://support.orcid.org/hc/articles/360006973793"
rel="noopener noreferrer"
target="_blank"
i18n="@@topBar.knowledge"
[attr.aria-label]="ariaLabelKnowledgeBase"
>knowledge base</a
>
<ng-container i18n="@@topBar.baseOrContact"
>or contact the support team at</ng-container
>
<br />
<a
class="underline"
href="https://support.orcid.org/"
rel="noopener noreferrer"
target="_blank"
[attr.aria-label]="ariaLabelKnowledgeSupport"
>ORCID help centre</a
>
https://support.orcid.org/
</a>
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ app-modal {

.need-help {
p {
display: block;
margin-top: 4px;
margin-inline-end: 0;
}
}

.text-content {
flex-direction: column;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
'state-notice-dark'
) !important;
}
:host button {
background: mat.get-color-from-palette($primary, 700);
}
}

@include top-bar-verification-modal-theme($orcid-app-theme);
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ <h3 title class="orc-font-body" i18n="@@topBar.thankYouForRegistering">
i18n="@@topBar.weHaveSent"
*ngIf="messageType === 'forManualEditing'"
>
We have sent verification messages to each of your registered email
addresses. You will need to verify your primary email address before you
can begin adding information manually to your ORCID record.
We have sent verification emails to each of your registered email
addresses. You need to verify at least one email address before you can
begin adding information manually to your ORCID record.
</p>
<p
class="orc-font-body-small"
i18n="@@topBar.weHaveSentForCredentials"
*ngIf="messageType === 'forCredentials'"
>
We have sent verification messages to each of your registered email
addresses. You will need to verify your primary email address before you
can register your ORCID Public API credentials.
We have sent verification emails to each of your registered email
addresses. You need to verify at least one email address before you can
register your ORCID Public API credentials.
</p>
<button
class="mat-button-wrap-text"
Expand All @@ -36,41 +36,31 @@ <h3 title class="orc-font-body" i18n="@@topBar.thankYouForRegistering">

<app-alert-message *ngIf="!emailVerified && verifyEmailSend">
<h3 title class="orc-font-body" i18n="@@side-bar.pleaseVerify">
Please verify your primary email address!
Please verify your email addresses
</h3>
<ng-container content>
<p class="orc-font-body-small">
<ng-container i18n="@@side-bar.youNeedToVerify">
You need to verify your primary email in order to access all of
ORCID’s editing features.
You need to verify at least one email address in order to access all
of ORCID’s editing features.
</ng-container>
<br />
<ng-container i18n="@@side-bar.youNeedToVerify2">
To verify your email, click the link in the message sent to:
To verify your email address, click the link in the email sent to:
</ng-container>
</p>
<div class="no-wrap orc-font-body-small">
<p class="email-container">{{ primaryEmail }}</p>
<p class="need-help">
<strong i18n="@@side-bar.needHelp"> Need help?</strong> <br />
<ng-container i18n="@@side-bar.visitOur"> Visit our </ng-container>
<ng-container i18n="@@side-bar.visitOur"> Visit the </ng-container>
<a
class="underline"
target="_blank"
rel="noopener noreferrer"
href="https://support.orcid.org/hc/articles/360006973793"
i18n="@@side-bar.knowledge"
>knowledge base
</a>
<ng-container i18n="@@side-bar.orContact"> or contact </ng-container>
<a
class="underline"
target="_blank"
rel="noopener noreferrer"
i18n="@@side-bar.support"
href="https://support.orcid.org/"
>
support.
>ORCID help centre
</a>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@
>
<img src="assets/vectors/orcid.logo.icon.svg" alt="orcid logo" />
<h2 class="orc-font-heading-small" i18n="@@record.notFound">
We’re really sorry, we can’t find the ORCID record you’re looking for.
We’re really sorry, we can’t find the page you’re looking for.
</h2>
<p class="orc-font-body-large" i18n="@@record.whatHappened">
What happened?
</p>
<div class="orc-font-body-small">
<div class="if-you">
<b i18n="@@record.ifYouTyped">
If you typed in the URL or ORCID iD by hand
If you typed in a URL or link by hand
</b>
<p i18n="@@record.pleaseCheck">
Please check that the ORCID iD - the 16-digit number at the end of
the URL - is correct. A correctly-formatted ORCID URL looks like
this: https://orcid.org/1234-5678-9101-1121
Please check the URL or link for typos or mistakes. If you are
looking for a specific ORCID record make sure the ORCID iD - the
16-digit number at the end of the URL - is right.A
correctly-formatted ORCID iD URL looks like this:
https://orcid.org/1234-5678-9101-1121
</p>
</div>
<div class="if-you">
Expand Down Expand Up @@ -62,6 +64,42 @@ <h2 class="orc-font-heading-small" i18n="@@record.notFound">
ORCID iD
</a>
</div>
<div class="search">
<a
class="underline orc-font-body-small"
i18n="@@record.headBackToMain"
(click)="goto('/')"
>
Head back to the main ORCID homepage
</a>
</div>
<div class="search">
<a
class="underline orc-font-body-small"
i18n="@@record.findOutMoreAboutOrcid"
href="https://info.orcid.org/"
>
Find out more about ORCID on our information site
</a>
</div>
<div class="search">
<a
class="underline orc-font-body-small"
i18n="@@record.signinToOricd"
(click)="goto('/login')"
>
Sign in to ORCID and manage your record
</a>
</div>
<div class="search">
<a
class="underline orc-font-body-small"
i18n="@@record.registerForAnOrcid"
(click)="goto('/register')"
>
Register for an ORCID record
</a>
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ img {

h2 {
margin-bottom: 32px;
text-align: center;
}

.if-you {
Expand All @@ -29,3 +30,7 @@ h2 {
.search {
margin-top: 16px;
}

.orc-font-body-large {
font-weight: 700;
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Component, OnDestroy, OnInit } from '@angular/core'
import { PlatformInfo, PlatformInfoService } from '../../../cdk/platform-info'
import { takeUntil } from 'rxjs/operators'
import { Subject } from 'rxjs'
import { Router } from '@angular/router'
import { Title } from '@angular/platform-browser'
import { PlatformInfo, PlatformInfoService } from 'src/app/cdk/platform-info'

@Component({
selector: 'app-not-found',
Expand Down
16 changes: 16 additions & 0 deletions src/app/page-not-found-404/page-not-found-404-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { PageNotFoundComponent } from './page-not-found/page-not-found.component'

const routes: Routes = [
{
path: '',
component: PageNotFoundComponent,
},
]

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
export class PageNotFound404RoutingModule {}
13 changes: 13 additions & 0 deletions src/app/page-not-found-404/page-not-found-404.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { NgModule } from '@angular/core'
import { CommonModule } from '@angular/common'

import { PageNotFound404RoutingModule } from './page-not-found-404-routing.module'
import { PageNotFoundComponent } from './page-not-found/page-not-found.component'
import { NotFoundComponent } from './not-found/not-found.component'

@NgModule({
declarations: [PageNotFoundComponent, NotFoundComponent],
imports: [CommonModule, PageNotFound404RoutingModule],
exports: [NotFoundComponent],
})
export class PageNotFound404Module {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<main id="main">
<div class="container">
<app-not-found></app-not-found>
</div>
</main>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:host {
width: 100%;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { PageNotFoundComponent } from './page-not-found.component'

describe('PageNotFoundComponent', () => {
let component: PageNotFoundComponent
let fixture: ComponentFixture<PageNotFoundComponent>

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [PageNotFoundComponent],
})
fixture = TestBed.createComponent(PageNotFoundComponent)
component = fixture.componentInstance
fixture.detectChanges()
})

it('should create', () => {
expect(component).toBeTruthy()
})
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Component } from '@angular/core'

@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
styleUrls: ['./page-not-found.component.scss'],
})
export class PageNotFoundComponent {}
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
>
<a
i18n="@@ngOrcid.returnToLoginPage"
(click)="navigateTo('/signin')"
(click)="navigateTo('/login')"
>return to the login page.</a
>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@
'orc-font-heading-small': !platform.columns12,
'orc-font-heading': platform.columns12
}"
class="thin-font-heading"
>
<ng-container i18n="@@record.noPublicInformation"
>No public information available
<ng-container i18n="@@record.nameIsPrivate"
>Name is private
</ng-container>
</h1>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,6 @@ svg {
position: absolute;
margin-top: 4px;
}
.thin-font-heading {
font-weight: 300;
}
Loading

0 comments on commit b4057cb

Please sign in to comment.