chore: other changes added in changelog

This commit is contained in:
Andrei O 2024-02-11 21:21:16 +02:00
parent 7a187cd0cf
commit 97d37021f0
No known key found for this signature in database
GPG Key ID: B961E5B68389457E
3 changed files with 64 additions and 14 deletions

View File

@ -5,6 +5,8 @@
- improved eth_call and eth_blockNumber to be more compatible with older websites - improved eth_call and eth_blockNumber to be more compatible with older websites
- better error internal handling - better error internal handling
- modify the receipt returned to resamble more the one from Metamask - modify the receipt returned to resamble more the one from Metamask
- change some notes in about
- refactored account name edit to be more user friendly
## Manifest Version 1.3.2 ## Manifest Version 1.3.2

View File

@ -42,9 +42,16 @@
</template> </template>
<ion-item> <ion-item>
<ion-button @click="onCancel">Cancel</ion-button> <ion-button @click="onCancel">Cancel</ion-button>
<ion-button @click="onAddAccount">{{ <ion-button
isEdit ? "Edit Account" : "Add Account" @click="
}}</ion-button> () => {
isEdit ? onEditAccount() : onAddAccount();
}
"
expand="full"
color="primary"
>{{ isEdit ? "Edit Account" : "Add Account" }}</ion-button
>
</ion-item> </ion-item>
<ion-alert <ion-alert
:is-open="alertOpen" :is-open="alertOpen"
@ -120,6 +127,7 @@ import {
smallRandomString, smallRandomString,
paste, paste,
getSettings, getSettings,
replaceAccounts,
} from "@/utils/platform"; } from "@/utils/platform";
import router from "@/router"; import router from "@/router";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
@ -192,8 +200,48 @@ export default defineComponent({
} }
}); });
const deleteAccount = async (address: string, accounts: Account[]) => {
const findIndex = accounts.findIndex((a) => a.address === address);
const pArr: Array<Promise<void>> = [];
if (findIndex !== -1) {
accounts.splice(findIndex, 1);
pArr.push(replaceAccounts([...accounts]));
}
await Promise.all(pArr);
};
const onEditAccount = async () => {
if (name.value.length < 1) {
alertMsg.value = "Name cannot be empty.";
alertOpen.value = true;
return;
}
const accounts = (await accountsProm) as Account[];
const account = accounts.find((acc) => acc.address === paramAddress);
if (!account) {
alertMsg.value = "Account not found.";
alertOpen.value = true;
return;
}
const savedAcc = {
address: account.address,
name: name.value,
pk: account.pk,
encPk: account.encPk,
};
await deleteAccount(account.address, accounts);
await saveAccount(savedAcc);
router.push("/tabs/accounts");
};
const onAddAccount = async () => { const onAddAccount = async () => {
let p1 = Promise.resolve(); let p1 = Promise.resolve();
if (name.value.length < 1) {
alertMsg.value = "Name cannot be empty.";
alertOpen.value = true;
return;
}
if (pk.value.length === 64) { if (pk.value.length === 64) {
pk.value = `0x${pk.value.trim()}`; pk.value = `0x${pk.value.trim()}`;
} }
@ -320,6 +368,7 @@ export default defineComponent({
mnemonic, mnemonic,
mnemonicIndex, mnemonicIndex,
extractMnemonic, extractMnemonic,
onEditAccount,
}; };
}, },
}); });

View File

@ -120,13 +120,12 @@
and Ethers. and Ethers.
</p> </p>
<p> <p>
It emulates Metamask Wallet and can be used as a drop-in replacement, right Unlike most wallets, this wallet has no ads, no analytics, no trackers, no
now if you have both extensions, CLW will overwrite Metamask. bloatware, no telemetry, no data collection, no sponsored content, no
</p> sponsored Dapps, no sponsored tokens, no sponsored NFTs, no sponsored
<p> anything. It is a clean wallet with no revenue model, made by a single
Main philosophy of the wallet is: no trackers, full control, export/import developer, if you want to support this project financially you can donate at
JSONs with accounts, fast generate new accounts, and wipe everything with andrei0x309.eth.
one click.
</p> </p>
<p> <p>
Github Repo: Github Repo:
@ -134,6 +133,10 @@
>LINK</a >LINK</a
> >
</p> </p>
<p>
Docs Website:
<a href="#" @click="openTab('https://clear-wallet.flashsoft.eu')">LINK</a>
</p>
<br /> <br />
<p style="margin-bottom: 0.2rem">Places you can check me out:</p> <p style="margin-bottom: 0.2rem">Places you can check me out:</p>
<p> <p>
@ -148,10 +151,6 @@
Blog Flashsoft Blog Flashsoft
<a href="#" @click="openTab('https://blog.flashsoft.eu')">LINK</a> <a href="#" @click="openTab('https://blog.flashsoft.eu')">LINK</a>
</p> </p>
<p>
Crypto-Leftists Discord
<a href="#" @click="openTab('https://discord.gg/gzA4bTCdhb')">LINK</a>
</p>
</div> </div>
</ion-accordion> </ion-accordion>
<ion-accordion value="4"> <ion-accordion value="4">