Skip to content

Commit

Permalink
New upload json feature, fixes & optimizations
Browse files Browse the repository at this point in the history
Implement new upload JSON feature to address #246

Introduced a fix for TUSC: #248

Introduces optimized account/asset lookup for all BTS operations: #249

Fix balances rendering properly: #255

Localizes the contents of BTS blockchain based injected operation prompts: #252

Resolves #256
  • Loading branch information
grctest committed Aug 29, 2023
1 parent c81fea2 commit 62330b6
Show file tree
Hide file tree
Showing 45 changed files with 16,490 additions and 15,445 deletions.
8,665 changes: 146 additions & 8,519 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@
"mitt": "^3.0.0",
"otpauth": "^8.0.1",
"query-string": "^7.1.1",
"qrcode-reader-vue3": "^3.1.2",
"simple-websocket": "^9.1.0",
"socket.io": "^4.6.1",
"typeface-rajdhani": "1.1.13",
"typeface-roboto": "1.1.13",
"uuid": "^8.3.2",
"vue": "^3.2.37",
"vue-i18n": "9",
"vue-qrcode-reader": "^4.0.0",
"vue-router": "^4.1.2",
"vuex": "^4.0.2"
},
Expand Down
6 changes: 3 additions & 3 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ let tray = null;
* On modal popup this runs to create child browser window
*/
const createModal = async (arg, modalEvent) => {
let modalHeight = 400;
let modalWidth = 600;
let modalHeight = 600;
let modalWidth = 800;
if (!mainWindow) {
logger.debug(`No window`);
throw 'No main window';
Expand Down Expand Up @@ -160,7 +160,7 @@ const createModal = async (arg, modalEvent) => {
minWidth: modalWidth,
minHeight: modalHeight,
maxWidth: modalWidth,
maximizable: false,
maximizable: true,
maxHeight: modalHeight,
useContentSize: true,
webPreferences: {
Expand Down
8 changes: 5 additions & 3 deletions src/components/backup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
</script>

<template>
<div class="dapp-list mt-2" style="text-align: center; margin-top: auto; margin-bottom: auto;">
<div
class="dapp-list mt-2"
style="text-align: center; margin-top: auto; margin-bottom: auto;"
>
<p>
<u>{{ t('common.backup_lbl') }}</u>
</p>
Expand All @@ -42,7 +45,7 @@
@click="downloadBackup"
>
{{ t('common.backup_btn') }}
</ui-button><br/>
</ui-button><br>
<router-link
:to="'/dashboard'"
style="text-decoration: none;"
Expand All @@ -55,7 +58,6 @@
Exit settings menu
</ui-button>
</router-link>

</ui-grid-cell>
<ui-grid-cell columns="3" />
</ui-grid>
Expand Down
22 changes: 18 additions & 4 deletions src/components/balances.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,26 @@
tableData.value = {
data: balances.value.map(balance => {
return {
balance: balance.balance,
balance: balance.balance.toLocaleString(
undefined,
{ minimumFractionDigits: balance.precision }
),
asset_name: balance.asset_name
}
}),
thead: ['Asset name', 'Balance'],
tbody: ['asset_name', 'balance']
thead: [
{
value: 'Asset name',
sort: 'asc',
columnId: 'asset_name'
},
{
value: 'Balance',
columnId: 'balance'
},
],
tbody: ['asset_name', 'balance'],
};
}
});
Expand Down Expand Up @@ -134,7 +148,7 @@
:data="tableData.data"
:thead="tableData.thead"
:tbody="tableData.tbody"
style="height: 150px;"
style="height: 180px;"
/>
<ui-card
v-if="balances && !balances.length"
Expand Down
Loading

0 comments on commit 62330b6

Please sign in to comment.