diff --git a/README.md b/README.md index 6d7a535a..9b9fc4db 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,8 @@ Compared to Sync v1, the most significant change is that the built-in dApp brows | | macOS | [Releases](https://github.com/vechain/sync2/releases/latest) | | | Linux | [Releases](https://github.com/vechain/sync2/releases/latest) | | Mobile | | | -| | Android | [Releases](https://github.com/vechain/sync2/releases/latest) | -| | iOS | WIP | +| | Android | [Google Play](https://play.google.com/store/apps/details?id=org.vechain.sync2) | +| | iOS | [App Store](https://apps.apple.com/app/6446363029) | ## Port dApps to Sync2 diff --git a/package-lock.json b/package-lock.json index 4c94f485..1766608c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "org.vechain.sync2", - "version": "2.0.8", + "version": "2.0.9", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index daedb1ab..f419627c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "org.vechain.sync2", - "version": "2.0.8", + "version": "2.0.9", "description": "VeChain Sync2", "productName": "Sync2", "cordovaId": "org.vechain.sync2", diff --git a/src-cordova/config.xml b/src-cordova/config.xml index 644b4f1b..d71a0f1e 100644 --- a/src-cordova/config.xml +++ b/src-cordova/config.xml @@ -1,5 +1,5 @@ - + Sync2 VeChain Sync2 diff --git a/src/core/vault/vault.ts b/src/core/vault/vault.ts index e3499672..80a31004 100644 --- a/src/core/vault/vault.ts +++ b/src/core/vault/vault.ts @@ -24,7 +24,7 @@ export function newVault(entity: Entity): Vault { unlock: key => { const clearText = vault.decrypt(key) const words = clearText.toString('utf8').split(' ') - return HDNode.fromMnemonic(words).derive(index).privateKey! + return HDNode.fromMnemonic(words, entity.path).derive(index).privateKey! } } } else { diff --git a/src/i18n/en-us/index.ts b/src/i18n/en-us/index.ts index 096b99f3..111642ac 100644 --- a/src/i18n/en-us/index.ts +++ b/src/i18n/en-us/index.ts @@ -171,7 +171,10 @@ export default { msg_backup_tips_1: 'Write it down in given order', msg_backup_tips_2: 'Keep it in a secure place', msg_backup_tips_3: 'No screenshot or screen recording', - label_your_mnemonic: 'Write Down Your Mnemonic Words' + label_your_mnemonic: 'Write Down Your Mnemonic Words', + + // notify + msg_wallet_not_found: 'Wallet not found' }, sign: { title: 'Sign', diff --git a/src/i18n/zh-cn/index.ts b/src/i18n/zh-cn/index.ts index 87c20010..47d94471 100644 --- a/src/i18n/zh-cn/index.ts +++ b/src/i18n/zh-cn/index.ts @@ -170,7 +170,10 @@ export default { msg_backup_tips_1: '请按照顺序抄写', msg_backup_tips_2: '请确保存放于安全的地方', msg_backup_tips_3: '请勿截图或录制屏幕', - label_your_mnemonic: '抄写您的助记词' + label_your_mnemonic: '抄写您的助记词', + + // notify + msg_wallet_not_found: '找不到钱包' }, sign: { title: '签名', diff --git a/src/pages/Backup/BackupDialog.vue b/src/pages/Backup/BackupDialog.vue new file mode 100644 index 00000000..0a9956c0 --- /dev/null +++ b/src/pages/Backup/BackupDialog.vue @@ -0,0 +1,78 @@ + + diff --git a/src/pages/Backup/BackupPanel.vue b/src/pages/Backup/BackupPanel.vue new file mode 100644 index 00000000..4a3f05b4 --- /dev/null +++ b/src/pages/Backup/BackupPanel.vue @@ -0,0 +1,151 @@ + + diff --git a/src/pages/Backup/Controller.vue b/src/pages/Backup/Controller.vue index 4a87a81f..c025f08e 100644 --- a/src/pages/Backup/Controller.vue +++ b/src/pages/Backup/Controller.vue @@ -1,171 +1,78 @@