Skip to content

Commit

Permalink
Remove Jdenticon (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
JSKitty authored Aug 27, 2024
1 parent 7e9be40 commit ed67792
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 87 deletions.
80 changes: 20 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"hdkey": "^2.0.1",
"idb": "^7.1.1",
"ip-address": "^8.1.0",
"jdenticon": "^3.2.0",
"jquery": "^3.6.3",
"pinia": "^2.1.7",
"pivx-promos": "^0.2.0",
Expand Down
3 changes: 0 additions & 3 deletions scripts/dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const { advancedMode, displayDecimals, autoLockWallet } = useSettings();
const showExportModal = ref(false);
const showEncryptModal = ref(false);
const keyToBackup = ref('');
const jdenticonValue = ref('');
const transferAddress = ref('');
const transferDescription = ref('');
const transferAmount = ref('');
Expand Down Expand Up @@ -111,7 +110,6 @@ async function importWallet({ type, secret, password = '' }) {
if (parsedSecret) {
await wallet.setMasterKey({ mk: parsedSecret.masterKey });
wallet.setShield(parsedSecret.shield);
jdenticonValue.value = wallet.getAddress();
if (needsToEncrypt.value) showEncryptModal.value = true;
Expand Down Expand Up @@ -874,7 +872,6 @@ defineExpose({
:shieldBalance="shieldBalance"
:pendingShieldBalance="pendingShieldBalance"
:immatureBalance="immatureBalance"
:jdenticonValue="jdenticonValue"
:isHdWallet="wallet.isHD"
:isViewOnly="wallet.isViewOnly"
:isEncrypted="wallet.isEncrypted"
Expand Down
3 changes: 0 additions & 3 deletions scripts/dashboard/WalletBalance.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { tr, translation } from '../i18n';
import { ref, computed, toRefs, onMounted, watch } from 'vue';
import { beautifyNumber } from '../misc';
import { getEventEmitter } from '../event_bus';
import * as jdenticon from 'jdenticon';
import { optimiseCurrencyLocale, openExplorer } from '../global';
import { renderWalletBreakdown } from '../charting.js';
import {
Expand All @@ -28,7 +27,6 @@ import pShieldCheck from '../../assets/icons/icon-shield-check.svg';
import pRefresh from '../../assets/icons/icon-refresh.svg';
const props = defineProps({
jdenticonValue: String,
balance: Number,
shieldBalance: Number,
pendingShieldBalance: Number,
Expand All @@ -46,7 +44,6 @@ const props = defineProps({
publicMode: Boolean,
});
const {
jdenticonValue,
balance,
shieldBalance,
pendingShieldBalance,
Expand Down
20 changes: 0 additions & 20 deletions scripts/dashboard/WalletButtons.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup>
import { toRefs, onMounted, watch } from 'vue';
import * as jdenticon from 'jdenticon';
import { renderWalletBreakdown } from '../charting.js';
import { openExplorer } from '../global';
import { guiRenderContacts } from '../contacts-book';
Expand All @@ -12,24 +10,6 @@ import pGift from '../../assets/icons/icon-gift.svg';
import { useWallet } from '../composables/use_wallet.js';
const wallet = useWallet();
const props = defineProps({
jdenticonValue: String,
});
const { jdenticonValue } = toRefs(props);
onMounted(() => {
jdenticon.configure();
watch(
jdenticonValue,
() => {
jdenticon.update('#identicon', jdenticonValue.value);
},
{
immediate: true,
}
);
});
</script>

<template>
Expand Down

0 comments on commit ed67792

Please sign in to comment.