[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[reclaim-ui] 318/459: remove all i18n
From: |
gnunet |
Subject: |
[reclaim-ui] 318/459: remove all i18n |
Date: |
Fri, 11 Jun 2021 23:26:50 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository reclaim-ui.
commit ac59f42d65ce71a0dbc7b146943302cfd7008406
Author: anna wimbauer <anna.wibauer@gmx.de>
AuthorDate: Mon Oct 5 08:40:29 2020 +0200
remove all i18n
---
src/_locales/en/messages.json | 152 ---------------------
src/app/app.component.html | 2 +-
.../authorization-request.component.html | 18 +--
.../authorization-request.component.ts | 2 +
.../edit-authorizations.component.html | 14 +-
.../edit-credentials.component.html | 32 ++---
src/app/edit-identity/edit-identity.component.html | 42 +++---
src/app/identity-list/identity-list.component.html | 28 ++--
src/app/new-identity/new-identity.component.html | 12 +-
9 files changed, 76 insertions(+), 226 deletions(-)
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
deleted file mode 100644
index 55d9b9b..0000000
--- a/src/_locales/en/messages.json
+++ /dev/null
@@ -1,152 +0,0 @@
-{
-
- "authorization-request.html:3":{
- "message": "Personal information request"
- },
- "authorization-request.html:7":{
- "message": "Verifying request, please stand by..."
- },
- "authorization-request.html:14":{
- "message": "asks you to share personal information.\n Choose an
identity to let it access the following information:"
- },
- "authorization-request.html:20":{
- "message": "as well as the following additional attributes:."
- },
- "authorization-request.html:29":{
- "message": "Be careful when sharing personal data with third parties!"
- },
- "authorization-request.html:30":{
- "message": "If you do not want to share information from any of your
identities with \n $CLIENTNAME$, you may decline the request. \nYou may also
permanently remove or edit information from an identity before\nsharing.",
- "placeholders": {
- "clientname" : {
- "content" : "$1",
- "example" : "admin"
- }
- }
- },
- "authorization-request.html:37":{
- "message": "Decline"
- },
- "authorization-request.html:40":{
- "message": "Select identity..."
- },
- "authorization-request.html:46":{
- "message": "Authorization failed."
- },
- "authorization-request.html:48":{
- "message": "Retry"
- },
- "authorization-request.html:54":{
- "message": "Cancel verification request"
- },
- "authorization-request.ts:33":{
- "message": "Request cancelled"
- },
-
-
- "edit-authorizations.html:5":{
- "message": "Manage authorizations for "
- },
- "edit-authorizations.html:16":{
- "message": "Authorized Entity:"
- },
- "edit-authorizations.html:21":{
- "message": "Shared attributes:"
- },
- "edit-authorizations.html:41":{
- "message": "Revoke"
- },
- "edit-authorizations.html:44":{
- "message": "Do you really want to revoke this authorization?"
- },
- "edit-authorizations.html:46":{
- "message": "Yes"
- },
- "edit-authorizations.html:49":{
- "message": "No"
- },
- "edit-authorizations.html:60":{
- "message": "Back to $IDENTITYNAME",
- "placeholders": {
- "identityname" : {
- "content" : "$1",
- "example" : "myFirstIdentity"
- }
- }
- },
- "edit-authorizations.ts:57":{
- "message": "Unknown"
- },
-
-
- "edit-credentials.html:5":{
- "message": "Third party credentials for"
- },
- "edit-credentials.html:10":{
- "message": "Link account:"
- },
- "edit-credentials.html:20":{
- "message": "This account is not compatible with re:claimID."
- },
- "edit-credentials.html:25":{
- "message": "It is possible to link your external \naccounts with a
re:claimID identity. To do so, enter you email address \nbelow and click
\"Check compatibility\". \nNOTE: Not all external accounts \nsupport linking to
re:claimID identities."
- },
- "edit-credentials.html:33":{
- "message": "Check compatibility"
- },
- "edit-credentials.html:39":{
- "message": "Available claims to request:"
- },
- "edit-credentials.html:47":{
- "message": "Link"
- },
- "edit-credentials.html:50":{
- "message": "Cancel"
- },
- "edit-credentials.html:56":{
- "message": "Credentials:"
- },
- "edit-credentials.html:61":{
- "message": "Note:"
- },
- "edit-credentials.html:63":{
- "message": "Only use alphanumeric credential names."
- },
- "edit-credentials.html:64":{
- "message": "You cannot define the same name twice."
- },
- "edit-credentials.html:65":{
- "message": "Types and values may not be empty!"
- },
- "edit-credentials.html:73":{
- "message": "Name"
- },
- "edit-credentials.html:74":{
- "message": "Type"
- },
- "edit-credentials.html:75":{
- "message": "Expires"
- },
- "edit-credentials.html:76":{
- "message": "Issuer"
- },
- "edit-credentials.html:104":{
- "message": "Expired"
- },
- "edit-credentials.html:137":{
- "message": "Back"
- },
- "edit-credentials.ts:278":{
- "message": "No account found with this email"
- },
- "edit-credentials.ts:281":{
- "message": "An Error has occured - This may have been caused by a
wrong e-mail address"
- },
-
-
-
-
-
-
-
-}
\ No newline at end of file
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 3298adc..10bb6fa 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,6 +1,6 @@
<div class="logo"><img src="assets/reclaim_icon.png"/></div>
<router-outlet></router-outlet>
-<div style="margin: 1em" (click)="toggleExperimental()" i18n>
+<div style="margin: 1em" (click)="toggleExperimental()">
<i [className]="isExperimental() ? 'fa fa-toggle-on' : 'fa
fa-toggle-off'"></i>
Exerimental features <b *ngIf="isExperimental()">enabled</b><span
*ngIf="!isExperimental()">disabled</span>
</div>
diff --git a/src/app/authorization-request/authorization-request.component.html
b/src/app/authorization-request/authorization-request.component.html
index 6a0a21f..3f80249 100644
--- a/src/app/authorization-request/authorization-request.component.html
+++ b/src/app/authorization-request/authorization-request.component.html
@@ -1,15 +1,15 @@
<div style="text-align: center;">
<i class="fa fa-2x fa-openid"></i>
- <b class="fa-2x" i18n> Personal information request </b>
+ <b class="fa-2x" >
{{browser.i18n.getMessage("authorization-request.html:3")}} </b>
<br/>
<span *ngIf="isClientVerified() === undefined">
<i class="fa fa-2x fa-circle-o-notch fa-spin fa-fw"></i>
- <b class="fa-2x" i18n> Verifying request, please stand by...</b>
+ <b class="fa-2x" > Verifying request, please stand by...</b>
</span>
<br/>
</div>
<div class="card" *ngIf="isClientVerified()" style="margin-left:30%;
width:40%;">
- <div class="card-body" i18n>
+ <div class="card-body" >
<strong>{{ oidcService.clientName }}</strong>
asks you to share personal information.<br/>
Choose an identity to let it access the following information:
@@ -24,7 +24,7 @@
</div>
</div>
<!-- Sharing disclaimer -->
- <div class="alert alert-warning alert-dismissible fade show mb-1"
role="alert" i18n>
+ <div class="alert alert-warning alert-dismissible fade show mb-1"
role="alert">
<i class="fa fa-exclamation-triangle mr-2"></i>
<strong>Be careful when sharing personal data with third parties!</strong>
If you do not want to share information from any of your identities with
@@ -33,24 +33,24 @@
sharing.
</div>
<div style="margin: 1em;">
- <button class="btn btn-danger m-1 mt-4" *ngIf="isClientVerified()"
(click)="cancelRequest()" style="margin-bottom: -4%;" i18n>
+ <button class="btn btn-danger m-1 mt-4" *ngIf="isClientVerified()"
(click)="cancelRequest()" style="margin-bottom: -4%;">
<span class="fa fa-ban"></span> Decline
</button>
- <button class="btn btn-primary m-1 mt-4" [routerLink]="['/']"
*ngIf="isClientVerified()" i18n>
+ <button class="btn btn-primary m-1 mt-4" [routerLink]="['/']"
*ngIf="isClientVerified()">
<span class="fa fa-arrow-circle-right"></span> Select identity...
</button>
</div>
</div>
<div *ngIf="isClientVerified() !== undefined && !isClientVerified()"
style="text-align: center;">
<div class="alert alert-danger show" role="alert">
- <b i18n>Authorization failed.</b><br/>
- <button class="btn btn-primary mt-4" *ngIf="!isClientVerified()"
(click)="retryVerify();" i18n>
+ <b >Authorization failed.</b><br/>
+ <button class="btn btn-primary mt-4" *ngIf="!isClientVerified()"
(click)="retryVerify();">
<span class="fa fa-openid"></span> Retry
</button>
</div>
</div>
<div *ngIf="isClientVerified() === undefined" style="text-align: center;">
- <button class="btn btn-danger mt-4" *ngIf="isClientVerified() === undefined"
(click)="cancelRequest()" i18n>
+ <button class="btn btn-danger mt-4" *ngIf="isClientVerified() === undefined"
(click)="cancelRequest()">
<span class="fa fa-ban"></span> Cancel verification request
</button>
</div>
diff --git a/src/app/authorization-request/authorization-request.component.ts
b/src/app/authorization-request/authorization-request.component.ts
index 1b5bfe4..51de344 100644
--- a/src/app/authorization-request/authorization-request.component.ts
+++ b/src/app/authorization-request/authorization-request.component.ts
@@ -9,6 +9,8 @@ import { OpenIdService } from '../open-id.service';
})
export class AuthorizationRequestComponent implements OnInit {
+ browser: typeof browser;
+
constructor(private oidcService: OpenIdService,
private router: Router) { }
diff --git a/src/app/edit-authorizations/edit-authorizations.component.html
b/src/app/edit-authorizations/edit-authorizations.component.html
index 0f288f1..87dfe55 100644
--- a/src/app/edit-authorizations/edit-authorizations.component.html
+++ b/src/app/edit-authorizations/edit-authorizations.component.html
@@ -1,7 +1,7 @@
<!-- Identity edit screen -->
<div class="m-2 card">
<div class="card-avatar card-img-top">
- <div class="card-avatar-character text-dark" i18n>
+ <div class="card-avatar-character text-dark" >
Manage authorizations for <i>{{ identity.name }}</i>
</div>
</div>
@@ -12,12 +12,12 @@
<thead style="border-top-style: hidden">
<tr>
<th scope="col">
- <h6 class="card-subtitle mb-2" i18n>
+ <h6 class="card-subtitle mb-2">
Authorized Entity:
</h6>
</th>
<th scope="col">
- <h6 class="card-subtitle mb-2" i18n>
+ <h6 class="card-subtitle mb-2">
Shared attributes:
</h6>
</th>
@@ -37,15 +37,15 @@
</div>
</td>
<td>
- <button class="btn btn-primary" *ngIf="showConfirmRevoke !=
ticket" (click)="confirmRevoke(ticket)" i18n>
+ <button class="btn btn-primary" *ngIf="showConfirmRevoke !=
ticket" (click)="confirmRevoke(ticket)">
<span class="fa fa-unlink"></span> Revoke
</button>
- <div class="alert alert-danger fade show"
*ngIf="showConfirmRevoke == ticket" i18n>
+ <div class="alert alert-danger fade show"
*ngIf="showConfirmRevoke == ticket">
Do you really want to revoke this authorization?<br/><br/>
<button class="btn btn-primary m-2"
(click)="revokeTicket(ticket)">
<span class="fa fa-check"></span> Yes
</button>
- <button class="btn btn-primary m-2"
(click)="hideConfirmRevoke()" >
+ <button class="btn btn-primary m-2"
(click)="hideConfirmRevoke()">
<span class="fa fa-close"></span> No
</button>
</div>
@@ -56,7 +56,7 @@
</div>
<!-- Edit card buttons -->
<div>
- <button class="btn btn-primary" [routerLink]="['/edit-identity',
identity.name]" i18n>
+ <button class="btn btn-primary" [routerLink]="['/edit-identity',
identity.name]">
<span class="fa fa-back"></span> Back to {{identity.name}}
</button>
</div>
diff --git a/src/app/edit-credentials/edit-credentials.component.html
b/src/app/edit-credentials/edit-credentials.component.html
index 960b675..4e53513 100644
--- a/src/app/edit-credentials/edit-credentials.component.html
+++ b/src/app/edit-credentials/edit-credentials.component.html
@@ -1,13 +1,13 @@
<!-- Identity edit screen -->
<div class="m-2 card">
<div class="card-avatar card-img-top">
- <div class="card-avatar-character text-dark" i18n>
+ <div class="card-avatar-character text-dark" >
Third party credentials for <i>{{ identity.name }}</i>
</div>
</div>
<!-- Credential management -->
<div class="card-body">
- <h3 i18n>Link account:</h3>
+ <h3 >Link account:</h3>
<!--IdProvider-Discovery-->
<div>
<!--Email not found Warning-->
@@ -16,11 +16,11 @@
<span class="fa fa-warning"></span> {{errorMassage}}
</div>
<!--Issuer Discovery Warning-->
- <div *ngIf="!isValidEmailforDiscovery()" class="alert alert-primary
alert-dismissible fade show" role="alert" i18n>
+ <div *ngIf="!isValidEmailforDiscovery()" class="alert alert-primary
alert-dismissible fade show" role="alert" >
<span class="fa fa-warning"></span> This account is not compatible
with re:claimID.
</div>
<div *ngIf="!newIdProviderDiscovered() && !loggedIn()"
- class="alert alert-secondary alert-dismissible fade show my-2"
role="alert" i18n>
+ class="alert alert-secondary alert-dismissible fade show my-2"
role="alert" >
<span class="fa fa-info"> </span> <b class="ml-2">INFO</b><br/>
It is possible to link your external
accounts with a re:claimID identity. To do so, enter you email address
@@ -29,35 +29,35 @@
</div>
<div *ngIf="!newIdProviderDiscovered()" class="my-2 col-lg-4">
<input placeholder="user@example.com" [(ngModel)]="webfingerEmail">
- <button *ngIf="!newIdProviderDiscovered()" class="btn btn-primary
fhg-link" (click)="discoverIdProvider()" i18n>
+ <button *ngIf="!newIdProviderDiscovered()" class="btn btn-primary
fhg-link" (click)="discoverIdProvider()" >
<span class="fa fa-search"></span> Check compatibility
</button>
</div>
<!--Description-->
<!--Link account-->
<div *ngIf="newIdProviderDiscovered() && !loggedIn()" class="mb-3 px-2">
- <div class="mx-n2" i18n>Available claims to request:</div>
+ <div class="mx-n2" >Available claims to request:</div>
<div *ngFor="let scope of scopes" class="mx-2">
<i class="fa text-primary" [class.fa-toggle-off]="!scope.chosen"
[class.fa-toggle-on]="scope.chosen"
[class.text-muted]="necessaryScope(scope.scope)"
(click)="!necessaryScope(scope.scope) && scope.chosen = !scope.chosen"></i>
<span class="ml-1"
[class.text-muted]="necessaryScope(scope.scope)">{{scope.scope}}</span>
<!--<input type="checkbox" class="form-check-input" id="scopes"
[disabled]="necessaryScope(scope.scope)" [(ngModel)]="scope.chosen">-->
<!--<label class="form-check-label"
for="scope.chosen">{{scope.scope}}</label>-->
</div>
- <button class="btn btn-primary mb-1 mt-2 fhg-link"
(click)="loginFhgAccount()" i18n>
+ <button class="btn btn-primary mb-1 mt-2 fhg-link"
(click)="loginFhgAccount()" >
<span class="fa fa-link"></span> Link
</button>
- <button class="btn btn-primary mb-1 fhg-link"
(click)="cancelLinking()" i18n>
+ <button class="btn btn-primary mb-1 fhg-link"
(click)="cancelLinking()" >
<span class="fa fa-close"></span> Cancel
</button>
</div>
</div>
<hr />
- <h3 i18n>Credentials:</h3>
+ <h3 >Credentials:</h3>
<!-- Credential creation warning -->
<div
*ngIf="loggedIn() && !credentialNameValid(newCredential) ||
!credentialTypeValid(newCredential) || !credentialValueValid(newCredential)"
- class="alert alert-primary alert-dismissible fade show" role="alert"
i18n>
+ class="alert alert-primary alert-dismissible fade show" role="alert" >
<span class="fa fa-warning"></span> Note:
<ul>
<li>Only use alphanumeric credential names.</li>
@@ -70,10 +70,10 @@
<table class="table pb-1" style="">
<thead>
<tr>
- <th i18n>Name</th>
- <th i18n>Type</th>
- <th i18n>Expires</th>
- <th i18n>Issuer</th>
+ <th >Name</th>
+ <th >Type</th>
+ <th >Expires</th>
+ <th >Issuer</th>
</tr>
</thead>
<tbody>
@@ -101,7 +101,7 @@
</button>
</td>
<td>
- <div *ngIf="!isCredentialValid(credential)"> <span
style="color:#f00" i18n> Expired </span> <span
+ <div *ngIf="!isCredentialValid(credential)"> <span
style="color:#f00" > Expired </span> <span
class="fa fa-times"></span> </div>
</td>
</tr>
@@ -133,7 +133,7 @@
<!-- Edit card buttons -->
<div>
- <button class="btn btn-primary" (click)="goBack()"
[disabled]="!canGoBack()" i18n>
+ <button class="btn btn-primary" (click)="goBack()"
[disabled]="!canGoBack()">
<span class="fa fa-save"></span> Back
</button>
</div>
diff --git a/src/app/edit-identity/edit-identity.component.html
b/src/app/edit-identity/edit-identity.component.html
index e6605d9..cb98c17 100644
--- a/src/app/edit-identity/edit-identity.component.html
+++ b/src/app/edit-identity/edit-identity.component.html
@@ -12,8 +12,8 @@
<!-- Attribute table -->
<div class="card-body">
<div>
- <h3 class="card-subtitle mb-2" i18n>Basic user information <span
(click)="showGeneralInfo = !showGeneralInfo" class="fa
fa-question-circle"></span></h3>
- <div class="alert alert-secondary fade show" *ngIf="showGeneralInfo"
i18n>
+ <h3 class="card-subtitle mb-2" >Basic user information <span
(click)="showGeneralInfo = !showGeneralInfo" class="fa
fa-question-circle"></span></h3>
+ <div class="alert alert-secondary fade show" *ngIf="showGeneralInfo" >
The attributes below correspond to the standard scopes of the OpenID
Connect
specification: ``profile'', ``email'', ``phone'' and ``address''.
</div>
@@ -30,7 +30,7 @@
</div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -71,7 +71,7 @@
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -114,7 +114,7 @@
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -156,7 +156,7 @@
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCred(claim)" placeholder="Value"
[(ngModel)]="claim.value">
- <span *ngIf="isClaimCred(claim)" i18n>{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
+ <span *ngIf="isClaimCred(claim)" >{{ getCredValue(claim) }}
issued by <i>{{ getIssuer(claim) }}</i> as attribute for ``{{ claim.value
}}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary" (click)="deleteAttribute(claim)"
*ngIf="!isClaimCred(claim)">
@@ -175,14 +175,14 @@
<div class="col-sm"><div style="min-width: 15em">
<i *ngIf="isClaimRequested(claim)" class="fa
fa-openid"></i><b> {{ getDescription(claim) }}</b></div></div>
<div class="col-sm">
- <select *ngIf="isExperimental()" class="custom-select"
(change)="claim.flag=$event.target.value; " i18n>
+ <select *ngIf="isExperimental()" class="custom-select"
(change)="claim.flag=$event.target.value; ">
<option value="0">Plain</option>
<option value="1">Credential</option>
</select>
<input *ngIf="claim.flag == '0'" placeholder="Value"
[(ngModel)]="claim.value">
<select *ngIf="claim.flag == '1'" class="custom-select"
- (change)="claim.credential=$event.target.value; " i18n>
+ (change)="claim.credential=$event.target.value; " >
<option value="">Select credential source</option>
<option *ngFor="let cred of credentials" value={{cred.id}}>
{{cred.name}}
@@ -190,7 +190,7 @@
</select>
<select class="custom-select"
- *ngIf="(claim.credential !== '') && (claim.flag == '1')"
(change)="claim.value=$event.target.value" i18n>
+ *ngIf="(claim.credential !== '') && (claim.flag == '1')"
(change)="claim.value=$event.target.value">
<option value="">Select claim</option>
<option *ngFor="let att of credentialValuesForClaim(claim)"
value={{att.name}}>
{{att.value}} <i>({{att.name}})</i>
@@ -207,8 +207,8 @@
</div>
- <h3 class="card-subtitle mb-2" i18n>Additional information <span
(click)="showExtraInfo = !showExtraInfo" class="fa
fa-question-circle"></span></h3>
- <div class="alert alert-secondary fade show" *ngIf="showExtraInfo" i18n>
+ <h3 class="card-subtitle mb-2" >Additional information <span
(click)="showExtraInfo = !showExtraInfo" class="fa
fa-question-circle"></span></h3>
+ <div class="alert alert-secondary fade show" *ngIf="showExtraInfo" >
Non-standard claims which are not explicitly covered in the OpenID
Connect core specification.
</div>
@@ -222,14 +222,14 @@
<i *ngIf="isClaimRequested(missing)" class="fa
fa-openid"></i><b> {{missing.name}}</b></div></div>
<div class="col-sm">
<input *ngIf="!isClaimCredentialRequested(missing)"
placeholder="Value" [(ngModel)]="missing.value">
- <select *ngIf="isClaimCredentialRequested(missing)"
class="custom-select" (change)="missing.credential=$event.target.value; " i18n>
+ <select *ngIf="isClaimCredentialRequested(missing)"
class="custom-select" (change)="missing.credential=$event.target.value; ">
<option value="">Select credential source</option>
<option *ngFor="let cred of credentials" value={{cred.id}}>
{{cred.name}}
</option>
</select>
- <select *ngIf="isClaimCredentialRequested(missing) &&
missing.credential !== ''" class="custom-select"
(change)="missing.value=$event.target.value" i18n>
+ <select *ngIf="isClaimCredentialRequested(missing) &&
missing.credential !== ''" class="custom-select"
(change)="missing.value=$event.target.value">
<option value="">Select claim</option>
<option *ngFor="let claim of credentialValuesForCred(missing)"
value={{claim.name}}>
{{claim.value}} <i>({{claim.name}})</i>
@@ -253,7 +253,7 @@
</div>
<div class="col-sm">
<input *ngIf="!isClaimCred(attribute)" placeholder="Value"
[(ngModel)]="attribute.value">
- <span *ngIf="isClaimCred(attribute)" i18n>{{
getCredValue(attribute) }} issued by <i>{{ getIssuer(attribute) }}</i> as
attribute for ``{{ attribute.value }}''</span>
+ <span *ngIf="isClaimCred(attribute)" >{{ getCredValue(attribute)
}} issued by <i>{{ getIssuer(attribute) }}</i> as attribute for ``{{
attribute.value }}''</span>
</div>
<div class="col-sm">
<button class="btn btn-primary"
(click)="deleteAttribute(attribute)" *ngIf="!isClaimCred(attribute)">
@@ -271,13 +271,13 @@
</div>
<div class="col-sm">
- <select *ngIf="isExperimental()" class="custom-select"
(change)="newAttribute.flag=$event.target.value; " i18n>
+ <select *ngIf="isExperimental()" class="custom-select"
(change)="newAttribute.flag=$event.target.value; ">
<option value="0">Plain</option>
<option value="1">Credential</option>
</select>
<input *ngIf="newAttribute.flag == '0'" placeholder="Value"
[class.text-danger]="!attributeValueValid(newAttribute)"
[(ngModel)]="newAttribute.value">
<select *ngIf="newAttribute.flag == '1'" class="custom-select"
- (change)="newAttribute.credential=$event.target.value; " i18n>
+ (change)="newAttribute.credential=$event.target.value; " >
<option value="">Select credential source</option>
<option *ngFor="let cred of credentials" value={{cred.id}}>
{{cred.name}}
@@ -286,7 +286,7 @@
<select class="custom-select"
*ngIf="newAttribute.credential !== '' && newAttribute.flag ==
'1'" (change)="newAttribute.value=$event.target.value">
- <option value="" i18n>Select claim</option>
+ <option value="" >Select claim</option>
<option *ngFor="let claim of
credentialValuesForClaim(newAttribute)" value={{claim.name}}>
{{claim.value}} <i>({{claim.name}})</i>
</option>
@@ -301,7 +301,7 @@
</div>
</div>
<!-- Attribute creation warning -->
- <div *ngIf="!attributeNameValid(newAttribute) ||
!attributeValueValid(newAttribute)" class="alert alert-primary
alert-dismissible fade show" role="alert" i18n>
+ <div *ngIf="!attributeNameValid(newAttribute) ||
!attributeValueValid(newAttribute)" class="alert alert-primary
alert-dismissible fade show" role="alert">
<span class="fa fa-warning"></span> Note:
<ul>
<li>Only use alphanumeric attribute names.</li>
@@ -314,14 +314,14 @@
<!-- Edit card buttons -->
<div>
- <button class="btn btn-primary" (click)="saveIdentity()"
[disabled]="!canSaveIdentity()" i18n>
+ <button class="btn btn-primary" (click)="saveIdentity()"
[disabled]="!canSaveIdentity()">
<span class="fa fa-save"></span> Save and Back
</button>
- <button *ngIf="!inOpenIdFlow()" class="btn btn-primary"
[routerLink]="['/edit-authorizations', identity.name]" [style.float]="'right'"
i18n>
+ <button *ngIf="!inOpenIdFlow()" class="btn btn-primary"
[routerLink]="['/edit-authorizations', identity.name]" [style.float]="'right'">
<span class="fa fa-openid"></span>
Manage authorizations
</button>
- <button *ngIf="!inOpenIdFlow() && isExperimental()" class="btn
btn-primary" [routerLink]="['/edit-credentials', identity.name]"
[style.float]="'right'" i18n>
+ <button *ngIf="!inOpenIdFlow() && isExperimental()" class="btn
btn-primary" [routerLink]="['/edit-credentials', identity.name]"
[style.float]="'right'">
<span class="fa fa-openid"></span>
Manage credentials
</button>
diff --git a/src/app/identity-list/identity-list.component.html
b/src/app/identity-list/identity-list.component.html
index 6df1a46..704ba99 100644
--- a/src/app/identity-list/identity-list.component.html
+++ b/src/app/identity-list/identity-list.component.html
@@ -2,7 +2,7 @@
<oid-modal id="GnunetInfo">
<div class="logo"><img src="assets/reclaim_icon.png"/></div>
<hr>
- <div style="text-align: center; font-size: 18px;" i18n>
+ <div style="text-align: center; font-size: 18px;">
<strong> Unable to connect to GNUnet. <br/> Maybe it is not running?
</strong>
</div>
</oid-modal>
@@ -15,7 +15,7 @@
<div class="search-wrapper">
<input class="form-control mr-sm-2" type="search" [(ngModel)]="searchTerm"
name="searchTerm" placeholder="Search identities" style="border-radius: 2em;">
</div>
- <button class="btn btn-primary" [routerLink]="['/new-identity']" i18n>
+ <button class="btn btn-primary" [routerLink]="['/new-identity']" >
<span class="fa fa-user-plus"></span> New identity
</button>
</div>
@@ -24,13 +24,13 @@
<!-- Cancel authorization -->
<div style="margin-bottom: 1em; text-align: center;" *ngIf="inOpenIdFlow()">
- <button *ngIf="inOpenIdFlow()" class="btn btn-danger mt-2"
(click)="cancelRequest()" i18n>
+ <button *ngIf="inOpenIdFlow()" class="btn btn-danger mt-2"
(click)="cancelRequest()">
<span class="fa fa-ban"></span> Decline authorization request
</button>
</div>
<!-- error infos -->
-<div *ngFor="let err of errorInfos" class="alert alert-danger show"
role="alert" i18n>
+<div *ngFor="let err of errorInfos" class="alert alert-danger show"
role="alert">
<b>ERROR</b>
<button class="btn btn-primary ml-4"
(click)="errorInfos.splice(errorInfos.indexOf(err,0), 1)">
<span>Dismiss</span>
@@ -40,7 +40,7 @@
</div>
<!-- No identities present -->
-<div *ngIf="isConnected() && 0 == identities.length" style="text-align:
center;" class="alert alert-secondary alert-dismissible fade show" role="alert"
i18n>
+<div *ngIf="isConnected() && 0 == identities.length" style="text-align:
center;" class="alert alert-secondary alert-dismissible fade show" role="alert">
You don't have any identities yet.<br/><br/>
<button class="btn btn-primary" [routerLink]="['/new-identity']">
<span class="fa fa-plus"></span> Add your first identity!
@@ -50,7 +50,7 @@
<!-- Identity cards -->
<!-- No match -->
<div *ngIf="canSearch()">
- <div *ngIf="(identities | search: searchTerm).length == 0"
style="text-align: center;" class="alert alert-secondary alert-dismissible fade
show" role="alert" i18n>No matching identities.</div>
+ <div *ngIf="(identities | search: searchTerm).length == 0"
style="text-align: center;" class="alert alert-secondary alert-dismissible fade
show" role="alert" >No matching identities.</div>
</div>
<!-- Cards -->
<div class="card-columns p-2 mr-5 ml-5" [ngStyle]="{'column-count': '1'}"
style="display: flex; flex-direction:column; align-items:center">
@@ -78,14 +78,14 @@
</button>
</div>
<!-- Maybe add some info to identities? - dialog -->
- <div class="alert alert-secondary fade show"
[hidden]="hasAttributes(identity)" i18n>
+ <div class="alert alert-secondary fade show"
[hidden]="hasAttributes(identity)" >
This identity has no attributes. Maybe try <a class="buttonlink"
[routerLink]="['/edit-identity', identity.name]">adding some?</a>
</div>
<div [hidden]="!isAnyRequestedClaimMissing(identity)"
class="alert alert-warning alert-dismissible fade show"
[class.alert-warning]="!isAnyRequiredClaimMissing(identity)"
[class.alert-danger]="isAnyRequiredClaimMissing(identity)"
- role="alert" i18n>
+ role="alert" >
<span class="fa fa-openid"></span> This identity is missing some
requested information:
<ul>
<li *ngIf="isProfileRequested() && isProfileMissing(identity)"><b>{{
getProfileDescription() }}</b></li>
@@ -119,14 +119,14 @@
<div *ngIf="getAttributeValue(identity, attribute).length > 20"
style="min-width: 15em">{{getAttributeValue(identity, attribute).substring(0,
20)}}<span style="color:#eee">[...]</span></div>
</div>
</div>
- <div *ngIf="(openIdentity != identity) &&
hasLotsOfAttributes(identity)" class="ml-4" i18n>
+ <div *ngIf="(openIdentity != identity) &&
hasLotsOfAttributes(identity)" class="ml-4">
<div>
<i>... and {{ attributes[identity.pubkey].length - 5 }} more
attributes</i><br/>
</div>
</div>
</div>
</div>
- <button class="btn btn-primary mt-3" (click)="openIdentity = identity"
*ngIf="(openIdentity != identity) && hasLotsOfAttributes(identity)" i18n>
+ <button class="btn btn-primary mt-3" (click)="openIdentity = identity"
*ngIf="(openIdentity != identity) && hasLotsOfAttributes(identity)">
<i class="fa fa-expand"></i>
Show all attributes
</button>
@@ -136,8 +136,8 @@
<button [disabled]="!isClientVerified() ||
isAnyRequiredClaimMissing(identity)"
(click)="loginIdentity(identity)"
class="btn btn-primary mr-1 openid-login">
- <span *ngIf="isClientVerified()" i18n>Share information marked with <i
class="fa fa-openid text-primary"></i> from this identity.</span>
- <span *ngIf="!isClientVerified()" i18n><i class="fa
fa-exclamation-circle"></i> Sharing disabled</span>
+ <span *ngIf="isClientVerified()" >Share information marked with <i
class="fa fa-openid text-primary"></i> from this identity.</span>
+ <span *ngIf="!isClientVerified()" ><i class="fa
fa-exclamation-circle"></i> Sharing disabled</span>
</button>
</div>
</div>
@@ -148,11 +148,11 @@
<div class="card-avatar-character text-dark">
<!--<div class="icon m-1 text-uppercase"
[style.background-color]="intToRGB(identity.pubkey)">{{
identity.name[0]}}</div>-->
<i class="fa fa-user-circle"></i>
- <span class="m-1" style="display: inline-block" i18n><i> New
Identity</i></span>
+ <span class="m-1" style="display: inline-block" ><i> New
Identity</i></span>
</div>
</div>
<div class="card-body">
- <div style="text-align:center" class="mb-4" i18n>
+ <div style="text-align:center" class="mb-4">
<i>Click to add a new identity.</i>
</div>
<div style="text-align:center">
diff --git a/src/app/new-identity/new-identity.component.html
b/src/app/new-identity/new-identity.component.html
index f369a34..83a8805 100644
--- a/src/app/new-identity/new-identity.component.html
+++ b/src/app/new-identity/new-identity.component.html
@@ -2,30 +2,30 @@
<div style="display: flex; flex-direction:column; align-items:center">
<div class="m-2 card" style="text-align:center; width:100%; max-width:
50em;">
<div class="card-avatar card-img-top">
- <div class="card-avatar-character text-dark" i18n>
+ <div class="card-avatar-character text-dark">
New identity
</div>
</div>
<!-- Invalid input -->
- <div *ngIf="'' !== newIdentity.name && !canSave() && !isDuplicate()"
class="alert alert-danger alert-dismissible fade show" role="alert" i18n>
+ <div *ngIf="'' !== newIdentity.name && !canSave() && !isDuplicate()"
class="alert alert-danger alert-dismissible fade show" role="alert">
Only Alphanumeric input. No spaces or special characters allowed.
</div>
<!--Identity already exists -->
- <div *ngIf="isDuplicate()" class="alert alert-warning alert-dismissible
fade show" role="alert" i18n>
+ <div *ngIf="isDuplicate()" class="alert alert-warning alert-dismissible
fade show" role="alert">
An identity with this username already exists.
</div>
<!-- Input text -->
- <div *ngIf="'' === newIdentity.name || canSave()" class="alert
alert-secondary alert-dismissible fade show" role="alert" i18n>
+ <div *ngIf="'' === newIdentity.name || canSave()" class="alert
alert-secondary alert-dismissible fade show" role="alert">
Enter a username for your new identity
</div>
<div class="card-body">
<input [class.text-danger]="'' !== newIdentity.name && !canSave()"
style="text-align: center; border: 1px solid #111;"
(keyup.enter)="saveIdentity()" pattern="^[a-zA-Z0-9-]+" placeholder="Username"
title="Only Alphanumeric input. No spaces or special characters allowed."
class="mr-2" [(ngModel)]="newIdentity.name" autofocus>
<br/>
<br/>
- <button [disabled]="!canSave()" [style.inactive]="!canSave()" class="-1
btn btn-primary" (click)="saveIdentity()" i18n>
+ <button [disabled]="!canSave()" [style.inactive]="!canSave()" class="-1
btn btn-primary" (click)="saveIdentity()">
<span class="fa fa-save"></span> Save
</button>
- <button class="m-1 btn btn-danger" (click)="cancelAddIdentity()" i18n>
+ <button class="m-1 btn btn-danger" (click)="cancelAddIdentity()">
<span class="fa fa-close"></span> Cancel
</button>
</div>
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [reclaim-ui] 284/459: attested values, (continued)
- [reclaim-ui] 284/459: attested values, gnunet, 2021/06/11
- [reclaim-ui] 289/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 325/459: Merge branch 'i18n' into 'master', gnunet, 2021/06/11
- [reclaim-ui] 324/459: Merge branch 'master' into 'i18n', gnunet, 2021/06/11
- [reclaim-ui] 322/459: Merge branch 'i18n' into 'master', gnunet, 2021/06/11
- [reclaim-ui] 290/459: move info alert, gnunet, 2021/06/11
- [reclaim-ui] 314/459: start i18n, gnunet, 2021/06/11
- [reclaim-ui] 328/459: fix, gnunet, 2021/06/11
- [reclaim-ui] 295/459: better responsiveness, gnunet, 2021/06/11
- [reclaim-ui] 330/459: replace service, gnunet, 2021/06/11
- [reclaim-ui] 318/459: remove all i18n,
gnunet <=
- [reclaim-ui] 308/459: style for buttons, gnunet, 2021/06/11
- [reclaim-ui] 339/459: Translated using Weblate (German), gnunet, 2021/06/11
- [reclaim-ui] 302/459: better info, gnunet, 2021/06/11
- [reclaim-ui] 331/459: more i18n, gnunet, 2021/06/11
- [reclaim-ui] 311/459: fix experimental credential selection, gnunet, 2021/06/11
- [reclaim-ui] 341/459: remove template, gnunet, 2021/06/11
- [reclaim-ui] 301/459: more fixes, gnunet, 2021/06/11
- [reclaim-ui] 293/459: make tables responsive, gnunet, 2021/06/11
- [reclaim-ui] 332/459: copy locale, gnunet, 2021/06/11
- [reclaim-ui] 327/459: new localesService, gnunet, 2021/06/11