mirror of
https://github.com/bitwarden/web
synced 2025-12-10 13:23:15 +00:00
cipher type icons
This commit is contained in:
@@ -86,7 +86,8 @@ angular
|
|||||||
favorite: encryptedCipher.Favorite,
|
favorite: encryptedCipher.Favorite,
|
||||||
edit: encryptedCipher.Edit,
|
edit: encryptedCipher.Edit,
|
||||||
organizationUseTotp: encryptedCipher.OrganizationUseTotp,
|
organizationUseTotp: encryptedCipher.OrganizationUseTotp,
|
||||||
attachments: null
|
attachments: null,
|
||||||
|
icon: null
|
||||||
};
|
};
|
||||||
|
|
||||||
var cipherData = encryptedCipher.Data;
|
var cipherData = encryptedCipher.Data;
|
||||||
@@ -103,10 +104,12 @@ angular
|
|||||||
dataObj.password = _service.decryptProperty(cipherData.Password, key, true, false);
|
dataObj.password = _service.decryptProperty(cipherData.Password, key, true, false);
|
||||||
dataObj.totp = _service.decryptProperty(cipherData.Totp, key, true, false);
|
dataObj.totp = _service.decryptProperty(cipherData.Totp, key, true, false);
|
||||||
cipher.login = dataObj;
|
cipher.login = dataObj;
|
||||||
|
cipher.icon = 'fa-globe';
|
||||||
break;
|
break;
|
||||||
case constants.cipherType.secureNote:
|
case constants.cipherType.secureNote:
|
||||||
dataObj.type = cipherData.Type;
|
dataObj.type = cipherData.Type;
|
||||||
cipher.secureNote = dataObj;
|
cipher.secureNote = dataObj;
|
||||||
|
cipher.icon = 'fa-sticky-note-o';
|
||||||
break;
|
break;
|
||||||
case constants.cipherType.card:
|
case constants.cipherType.card:
|
||||||
dataObj.cardholderName = _service.decryptProperty(cipherData.CardholderName, key, true, false);
|
dataObj.cardholderName = _service.decryptProperty(cipherData.CardholderName, key, true, false);
|
||||||
@@ -116,6 +119,7 @@ angular
|
|||||||
dataObj.expYear = _service.decryptProperty(cipherData.ExpYear, key, true, false);
|
dataObj.expYear = _service.decryptProperty(cipherData.ExpYear, key, true, false);
|
||||||
dataObj.code = _service.decryptProperty(cipherData.Code, key, true, false);
|
dataObj.code = _service.decryptProperty(cipherData.Code, key, true, false);
|
||||||
cipher.card = dataObj;
|
cipher.card = dataObj;
|
||||||
|
cipher.icon = 'fa-credit-card';
|
||||||
break;
|
break;
|
||||||
case constants.cipherType.identity:
|
case constants.cipherType.identity:
|
||||||
dataObj.title = _service.decryptProperty(cipherData.Title, key, true, false);
|
dataObj.title = _service.decryptProperty(cipherData.Title, key, true, false);
|
||||||
@@ -135,6 +139,7 @@ angular
|
|||||||
dataObj.ssn = _service.decryptProperty(cipherData.SSN, key, true, false);
|
dataObj.ssn = _service.decryptProperty(cipherData.SSN, key, true, false);
|
||||||
dataObj.username = _service.decryptProperty(cipherData.Username, key, true, false);
|
dataObj.username = _service.decryptProperty(cipherData.Username, key, true, false);
|
||||||
cipher.identity = dataObj;
|
cipher.identity = dataObj;
|
||||||
|
cipher.icon = 'fa-id-card-o';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@@ -200,7 +205,8 @@ angular
|
|||||||
edit: encryptedCipher.Edit,
|
edit: encryptedCipher.Edit,
|
||||||
organizationUseTotp: encryptedCipher.OrganizationUseTotp,
|
organizationUseTotp: encryptedCipher.OrganizationUseTotp,
|
||||||
hasAttachments: !!encryptedCipher.Attachments && encryptedCipher.Attachments.length > 0,
|
hasAttachments: !!encryptedCipher.Attachments && encryptedCipher.Attachments.length > 0,
|
||||||
meta: {}
|
meta: {},
|
||||||
|
icon: null
|
||||||
};
|
};
|
||||||
|
|
||||||
var cipherData = encryptedCipher.Data;
|
var cipherData = encryptedCipher.Data;
|
||||||
@@ -212,9 +218,11 @@ angular
|
|||||||
case constants.cipherType.login:
|
case constants.cipherType.login:
|
||||||
cipher.subTitle = _service.decryptProperty(cipherData.Username, key, true, true);
|
cipher.subTitle = _service.decryptProperty(cipherData.Username, key, true, true);
|
||||||
cipher.meta.password = _service.decryptProperty(cipherData.Password, key, true, true);
|
cipher.meta.password = _service.decryptProperty(cipherData.Password, key, true, true);
|
||||||
|
cipher.icon = 'fa-globe';
|
||||||
break;
|
break;
|
||||||
case constants.cipherType.secureNote:
|
case constants.cipherType.secureNote:
|
||||||
cipher.subTitle = null;
|
cipher.subTitle = null;
|
||||||
|
cipher.icon = 'fa-sticky-note-o';
|
||||||
break;
|
break;
|
||||||
case constants.cipherType.card:
|
case constants.cipherType.card:
|
||||||
cipher.subTitle = '';
|
cipher.subTitle = '';
|
||||||
@@ -229,6 +237,7 @@ angular
|
|||||||
}
|
}
|
||||||
cipher.subTitle += ('*' + cipher.meta.number.substr(cipher.meta.number.length - 4));
|
cipher.subTitle += ('*' + cipher.meta.number.substr(cipher.meta.number.length - 4));
|
||||||
}
|
}
|
||||||
|
cipher.icon = 'fa-credit-card';
|
||||||
break;
|
break;
|
||||||
case constants.cipherType.identity:
|
case constants.cipherType.identity:
|
||||||
var firstName = _service.decryptProperty(cipherData.FirstName, key, true, true);
|
var firstName = _service.decryptProperty(cipherData.FirstName, key, true, true);
|
||||||
@@ -243,6 +252,7 @@ angular
|
|||||||
}
|
}
|
||||||
cipher.subTitle += lastName;
|
cipher.subTitle += lastName;
|
||||||
}
|
}
|
||||||
|
cipher.icon = 'fa-id-card-o';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -115,8 +115,11 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="action-select">
|
<td class="action-select" ng-click="select($event)">
|
||||||
<input type="checkbox" value="{{::cipher.id}}" name="cipherSelection" />
|
<input type="checkbox" value="{{::cipher.id}}" name="cipherSelection" stop-prop />
|
||||||
|
</td>
|
||||||
|
<td class="vault-icon" ng-click="select($event)">
|
||||||
|
<i class="fa fa-fw fa-lg {{::cipher.icon}}"></i>
|
||||||
</td>
|
</td>
|
||||||
<td ng-click="select($event)">
|
<td ng-click="select($event)">
|
||||||
<a href="#" stop-click ng-click="editCipher(cipher)" stop-prop>{{cipher.name}}</a>
|
<a href="#" stop-click ng-click="editCipher(cipher)" stop-prop>{{cipher.name}}</a>
|
||||||
@@ -228,6 +231,9 @@
|
|||||||
<td class="action-select" ng-click="select($event)">
|
<td class="action-select" ng-click="select($event)">
|
||||||
<input type="checkbox" value="{{::cipher.id}}" name="cipherSelection" stop-prop />
|
<input type="checkbox" value="{{::cipher.id}}" name="cipherSelection" stop-prop />
|
||||||
</td>
|
</td>
|
||||||
|
<td class="vault-icon" ng-click="select($event)">
|
||||||
|
<i class="fa fa-fw fa-lg {{::cipher.icon}}"></i>
|
||||||
|
</td>
|
||||||
<td ng-click="select($event)">
|
<td ng-click="select($event)">
|
||||||
<a href="#" stop-click ng-click="editCipher(cipher)" stop-prop>{{cipher.name}}</a>
|
<a href="#" stop-click ng-click="editCipher(cipher)" stop-prop>{{cipher.name}}</a>
|
||||||
<i class="fa fa-star text-muted" title="Favorite" ng-show="cipher.favorite" stop-prop></i>
|
<i class="fa fa-star text-muted" title="Favorite" ng-show="cipher.favorite" stop-prop></i>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title"><i class="fa fa-globe"></i> Add New Item</h4>
|
<h4 class="modal-title"><i class="fa fa-plus-circle"></i> Add New Item</h4>
|
||||||
</div>
|
</div>
|
||||||
<form name="form" ng-submit="form.$valid && save()" api-form="savePromise" autocomplete="off">
|
<form name="form" ng-submit="form.$valid && save()" api-form="savePromise" autocomplete="off">
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close" ng-click="close()" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||||
<h4 class="modal-title">
|
<h4 class="modal-title">
|
||||||
<i class="fa fa-globe"></i> Item Information <small>{{cipher.name}}</small>
|
<i class="fa {{cipher.icon}}"></i> Item Information <small>{{cipher.name}}</small>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<form name="form" ng-submit="form.$valid && save(cipher)" api-form="savePromise" autocomplete="off">
|
<form name="form" ng-submit="form.$valid && save(cipher)" api-form="savePromise" autocomplete="off">
|
||||||
|
|||||||
@@ -437,6 +437,16 @@ form .btn .loading-icon {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table td.vault-icon {
|
||||||
|
text-align: center;
|
||||||
|
width: 41px;
|
||||||
|
color: @text-muted;
|
||||||
|
|
||||||
|
@media (max-width: @screen-sm-max) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
/* Callouts */
|
/* Callouts */
|
||||||
.callout.callout-default {
|
.callout.callout-default {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|||||||
Reference in New Issue
Block a user