1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-05 02:23:57 +00:00

Update dependencies for Rust and Admin interface.

- Updated Rust deps and one small change regarding chrono
- Updated bootstrap 5 css
- Updated datatables
- Replaced identicon.js with jdenticon.
  identicon.js is unmaintained ( https://github.com/stewartlord/identicon.js/issues/52 )
  The icon's are very different, but nice. It also doesn't need custom
  code to find and update the icons our selfs.
This commit is contained in:
BlackDex 2022-12-01 17:18:29 +01:00
parent 8feed2916f
commit 610b183cef
No known key found for this signature in database
GPG key ID: 58C80A2AA6C765E1
11 changed files with 1756 additions and 497 deletions

View file

@ -19,7 +19,7 @@
{{#each page_data}}
<tr>
<td>
<img class="float-start me-2 rounded identicon" data-src="{{Email}}">
<svg width="48" height="48" class="float-start me-2 rounded" data-jdenticon-value="{{Email}}">
<div class="float-start">
<strong>{{Name}}</strong>
<span class="d-block">{{Email}}</span>
@ -206,12 +206,6 @@
"3": { "name": "Manager", "color": "green" },
};
(async () => {
for (let e of document.querySelectorAll("img.identicon")) {
e.src = await identicon(e.dataset.src);
}
})();
document.querySelectorAll("[data-orgtype]").forEach(function (e) {
let orgtype = OrgTypes[e.dataset.orgtype];
e.style.backgroundColor = orgtype.color;