154 lines
5.4 KiB
HTML
154 lines
5.4 KiB
HTML
<div id="sends" class="vault">
|
|
<div class="groupings">
|
|
<div class="content">
|
|
<div class="inner-content">
|
|
<h2 class="sr-only">{{ "filters" | i18n }}</h2>
|
|
<ul>
|
|
<li [ngClass]="{ active: selectedAll }">
|
|
<button
|
|
type="button"
|
|
appStopClick
|
|
(click)="selectAll()"
|
|
[attr.aria-pressed]="selectedAll"
|
|
>
|
|
<i class="bwi bwi-fw bwi-filter" aria-hidden="true"></i> {{ "allSends" | i18n }}
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
<h2>{{ "types" | i18n }}</h2>
|
|
<ul>
|
|
<li [ngClass]="{ active: selectedType === sendType.Text }">
|
|
<button
|
|
type="button"
|
|
appStopClick
|
|
(click)="selectType(sendType.Text)"
|
|
[attr.aria-pressed]="selectedType === sendType.Text"
|
|
>
|
|
<i class="bwi bwi-fw bwi-file-text" aria-hidden="true"></i> {{
|
|
"sendTypeText" | i18n
|
|
}}
|
|
</button>
|
|
</li>
|
|
<li [ngClass]="{ active: selectedType === sendType.File }">
|
|
<button
|
|
type="button"
|
|
appStopClick
|
|
(click)="selectType(sendType.File)"
|
|
[attr.aria-pressed]="selectedType === sendType.File"
|
|
>
|
|
<i class="bwi bwi-fw bwi-file" aria-hidden="true"></i> {{
|
|
"sendTypeFile" | i18n
|
|
}}
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer">
|
|
<app-nav class="nav"></app-nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="items" class="items">
|
|
<div class="content">
|
|
<div class="list" *ngIf="filteredSends.length">
|
|
<button
|
|
*ngFor="let s of filteredSends"
|
|
appStopClick
|
|
(click)="selectSend(s.id)"
|
|
title="{{ 'viewItem' | i18n }}"
|
|
(contextmenu)="viewSendMenu(s)"
|
|
[ngClass]="{ active: s.id === sendId }"
|
|
[attr.aria-pressed]="s.id === sendId"
|
|
class="flex-list-item"
|
|
>
|
|
<span class="item-icon" aria-hidden="true">
|
|
<i class="bwi bwi-fw bwi-lg" [ngClass]="s.type == 0 ? 'bwi-file-text' : 'bwi-file'"></i>
|
|
</span>
|
|
<span class="item-content">
|
|
<span class="item-title">
|
|
{{ s.name }}
|
|
<span class="title-badges">
|
|
<ng-container *ngIf="s.disabled">
|
|
<i
|
|
class="bwi bwi-exclamation-triangle"
|
|
appStopProp
|
|
title="{{ 'disabled' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span class="sr-only">{{ "disabled" | i18n }}</span>
|
|
</ng-container>
|
|
<ng-container *ngIf="s.password">
|
|
<i
|
|
class="bwi bwi-key"
|
|
appStopProp
|
|
title="{{ 'password' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span class="sr-only">{{ "password" | i18n }}</span>
|
|
</ng-container>
|
|
<ng-container *ngIf="s.maxAccessCountReached">
|
|
<i
|
|
class="bwi bwi-ban"
|
|
appStopProp
|
|
title="{{ 'maxAccessCountReached' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span class="sr-only">{{ "maxAccessCountReached" | i18n }}</span>
|
|
</ng-container>
|
|
<ng-container *ngIf="s.expired">
|
|
<i
|
|
class="bwi bwi-clock"
|
|
appStopProp
|
|
title="{{ 'expired' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span class="sr-only">{{ "expired" | i18n }}</span>
|
|
</ng-container>
|
|
<ng-container *ngIf="s.pendingDelete">
|
|
<i
|
|
class="bwi bwi-trash"
|
|
appStopProp
|
|
title="{{ 'pendingDeletion' | i18n }}"
|
|
aria-hidden="true"
|
|
></i>
|
|
<span class="sr-only">{{ "pendingDeletion" | i18n }}</span>
|
|
</ng-container>
|
|
</span>
|
|
</span>
|
|
<span class="item-details">{{ s.deletionDate | date }}</span>
|
|
</span>
|
|
</button>
|
|
</div>
|
|
<div class="no-items" *ngIf="!filteredSends.length">
|
|
<i class="bwi bwi-spinner bwi-spin bwi-3x" *ngIf="!loaded" aria-hidden="true"></i>
|
|
<ng-container *ngIf="loaded">
|
|
<img class="no-items-image" aria-hidden="true" />
|
|
<p>{{ "noItemsInList" | i18n }}</p>
|
|
</ng-container>
|
|
</div>
|
|
</div>
|
|
<div class="footer">
|
|
<button (click)="addSend()" class="block primary" appA11yTitle="{{ 'addItem' | i18n }}">
|
|
<i class="bwi bwi-plus bwi-lg" aria-hidden="true"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<app-send-add-edit
|
|
id="addEdit"
|
|
class="details"
|
|
*ngIf="action == 'add' || action == 'edit'"
|
|
[sendId]="sendId"
|
|
[type]="selectedSendType"
|
|
(onSavedSend)="savedSend($event)"
|
|
(onCancelled)="cancel($event)"
|
|
(onDeletedSend)="deletedSend($event)"
|
|
></app-send-add-edit>
|
|
<div class="logo" *ngIf="!action">
|
|
<div class="content">
|
|
<div class="inner-content">
|
|
<img class="logo-image" alt="Bitwarden" aria-hidden="true" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|