bitwarden-estensione-browser/src/app/vault/view.component.html

103 lines
5.0 KiB
HTML
Raw Normal View History

2018-01-24 04:21:14 +01:00
<div class="content">
2018-01-25 05:26:40 +01:00
<div class="inner-content" *ngIf="cipher">
2018-01-24 04:57:24 +01:00
<div class="box">
<div class="box-header">
2018-01-24 22:32:24 +01:00
{{'itemInformation' | i18n}}
2018-01-24 04:57:24 +01:00
</div>
2018-01-25 05:26:40 +01:00
<div class="box-content">
2018-01-24 04:57:24 +01:00
<div class="box-content-row">
2018-01-24 22:32:24 +01:00
<span class="row-label">{{'name' | i18n}}</span>
2018-01-24 06:06:05 +01:00
{{cipher.name}}
2018-01-24 04:57:24 +01:00
</div>
2018-01-24 20:59:03 +01:00
<div *ngIf="cipher.login">
2018-01-25 05:26:40 +01:00
<div class="box-content-row" *ngIf="cipher.login.uri">
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick title="{{'launch' | i18n}}"
*ngIf="cipher.login.canLaunch" (click)="launch()">
<i class="fa fa-lg fa-share-square-o"></i>
</a>
<a class="row-btn" href="#" appStopClick title="{{'copyValue' | i18n}}">
<i class="fa fa-lg fa-clipboard"></i>
</a>
</div>
<span class="row-label" *ngIf="!cipher.login.isWebsite">{{'uri' | i18n}}</span>
<span class="row-label" *ngIf="cipher.login.isWebsite">{{'website' | i18n}}</span>
{{cipher.login.domainOrUri}}
2018-01-24 20:59:03 +01:00
</div>
2018-01-25 05:26:40 +01:00
<div class="box-content-row" *ngIf="cipher.login.username">
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick title="{{'copyValue' | i18n}}">
<i class="fa fa-lg fa-clipboard"></i>
</a>
</div>
2018-01-24 22:32:24 +01:00
<span class="row-label">{{'username' | i18n}}</span>
2018-01-24 20:59:03 +01:00
{{cipher.login.username}}
</div>
2018-01-25 05:26:40 +01:00
<div class="box-content-row" *ngIf="cipher.login.password">
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick title="{{'toggleVisibility' | i18n}}"
(click)="togglePassword()">
<i class="fa fa-lg"
[ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</a>
<a class="row-btn" href="#" appStopClick title="{{'copyValue' | i18n}}">
<i class="fa fa-lg fa-clipboard"></i>
</a>
</div>
2018-01-24 22:32:24 +01:00
<span class="row-label">{{'password' | i18n}}</span>
2018-01-25 05:26:40 +01:00
<span [hidden]="showPassword" class="monospaced">{{cipher.login.maskedPassword}}</span>
<span [hidden]="!showPassword" class="monospaced">{{cipher.login.password}}</span>
</div>
<div class="box-content-row totp" [ngClass]="{'low': totpLow}"
*ngIf="cipher.login.totp && totpCode">
<div class="action-buttons">
<a class="row-btn" href="#" appStopClick title="{{'copyValue' | i18n}}">
<i class="fa fa-lg fa-clipboard"></i>
</a>
</div>
<span class="totp-countdown">
<span class="totp-sec">{{totpSec}}</span>
<svg>
<g>
<circle class="totp-circle inner" r="12.6" cy="16" cx="16"
[ngStyle]="{'stroke-dashoffset.px': totpDash}"></circle>
<circle class="totp-circle outer" r="14" cy="16" cx="16"></circle>
</g>
</svg>
</span>
<span class="row-label">{{'verificationCodeTotp' | i18n}}</span>
<span class="totp-code">{{totpCodeFormatted}}</span>
2018-01-24 20:59:03 +01:00
</div>
2018-01-24 04:57:24 +01:00
</div>
</div>
2018-01-25 05:26:40 +01:00
</div>
<div class="box" *ngIf="cipher.notes">
<div class="box-header">
{{'notes' | i18n}}
</div>
<div class="box-content">
<div class="box-content-row pre">{{cipher.notes}}</div>
</div>
</div>
<div class="box" *ngIf="cipher.hasFields">
<div class="box-header">
{{'customFields' | i18n}}
</div>
<div class="box-content">
todo
</div>
</div>
<div class="box" *ngIf="cipher.hasAttachments && isPremium">
<div class="box-header">
{{'attachments' | i18n}}
</div>
<div class="box-content">
todo
2018-01-24 04:57:24 +01:00
</div>
</div>
</div>
2018-01-24 04:21:14 +01:00
</div>
<div class="footer">
2018-01-24 23:41:57 +01:00
<button (click)="edit()">{{'editItem' | i18n}}</button>
2018-01-24 04:21:14 +01:00
</div>