Skip to content

Commit

Permalink
Rewrite activity in vue (#158)
Browse files Browse the repository at this point in the history
* Rewrite activity

* Add stake page

* Remove undefined doms

* Fix click not working

* remove huge comment

* Update stake too

* Pass fnewonly

* Remove commetn

* Add txs early return

* Fix broken

* Remove console.log

* Rewrite activity

* Reuse arrTxHistory array if not needed

* Prettier

* Add tranlsations except de

* Italian typo

* Optimize

* Change Sent to self -> self

* Fix not autoloading

* Remove unused variable

* Fix flickering

* Prettier

* Added comments

* Reset activityDashboard when changing explorer

* Prettier

* Configure vue
  • Loading branch information
Duddino committed Sep 21, 2023
1 parent dff304d commit cd341de
Show file tree
Hide file tree
Showing 22 changed files with 666 additions and 427 deletions.
30 changes: 4 additions & 26 deletions index.template.html
Expand Up @@ -519,19 +519,8 @@ <h3 class="noselect balance-title">
</center>
</div>

<div class="col-12 mb-5">
<center><span data-i18n="activity" class="dcWallet-activityLbl">Activity</span></center>
<div class="dcWallet-activity">
<div class="scrollTable">
<div id="activity-list-content"></div>
<center>
<button class="pivx-button-medium" id="activityLoadMore" onclick="MPW.updateActivityGUI(false)">
<span class="buttoni-icon"><i class="fas fa-sync fa-tiny-margin" id="activityLoadMoreIcon"></i></span>
<span class="buttoni-text" data-i18n="loadMore">Load more</span>
</button>
</center>
</div>
</div>
<div id="activityDashboard" class="col-12 mb-5">

</div>
</div>

Expand Down Expand Up @@ -861,18 +850,7 @@ <h3 class="noselect balance-title">
</div>

<div class="col-12 mb-5">
<center><span class="dcWallet-activityLbl"><span data-i18n="rewardHistory">Reward History</span> (<span id="staking-rewards-title">-</span>)</span></center>
<div class="dcWallet-activity">
<div class="scrollTable">
<div id="staking-rewards-content"></div>
<center>
<button class="pivx-button-medium" id="stakingLoadMore" onclick="MPW.updateActivityGUI(true)">
<span class="buttoni-icon"><i class="fas fa-sync fa-tiny-margin" id="stakingLoadMoreIcon"></i></span>
<span class="buttoni-text" data-i18n="loadMore">Load more</span>
</button>
</center>
</div>
</div>
<div id="stakeActivity"> </div>
</div>
</div>

Expand Down Expand Up @@ -1257,6 +1235,6 @@ <h2 id="mnLastSeen" class="stake-balances" style="overflow-wrap: anywhere; top:
</div>

<div class="blackBack blackBackHide d-none" id="blackBack"></div>

<div id="app"></div>
</body>
</html>
2 changes: 1 addition & 1 deletion locale/de/translation.js
Expand Up @@ -228,7 +228,7 @@ export const de_translation = {
description: 'Beschreibung', //Description
activityBlockReward: 'Block-Erlös', //Block Reward
activitySentTo: 'Gesendet an', //Sent to
activitySentToSelf: 'Umbuchung', //Sent to self
activitySentToSelf: 'Umbuchung', //Self
activityShieldedAddress: 'Geschützte Adresse', //Shielded address
activityReceivedShield: 'Erhalten von geschützter Adresse', //Received from Shielded address
activityReceivedFrom: 'Erhalten von', //Received from
Expand Down
9 changes: 4 additions & 5 deletions locale/en/translation.js
Expand Up @@ -224,12 +224,11 @@ export const en_translation = {
time: 'Time',
description: 'Description',
activityBlockReward: 'Block Reward',
activitySentTo: 'Sent to',
activitySentToSelf: 'Sent to self',
activitySentTo: 'Sent to {r}',
activitySelf: 'self',
activityShieldedAddress: 'Shielded address',
activityReceivedShield: 'Received from Shielded address',
activityReceivedFrom: 'Received from',
activityDelegatedTo: 'Delegated to',
activityReceivedFrom: 'Received from {s}',
activityDelegatedTo: 'Delegated to {r}',
activityUndelegated: 'Undelegated',
activityUnknown: 'Unknown Tx',
password: 'Password',
Expand Down
9 changes: 4 additions & 5 deletions locale/es-mx/translation.js
Expand Up @@ -232,12 +232,11 @@ export const es_mx_translation = {
time: 'Hora', //Time
description: 'Descripción', //Description
activityBlockReward: 'Recompensa del Bloque', //Block Reward
activitySentTo: 'Enviar a', //Sent to
activitySentToSelf: 'Enviar a ti mismo', //Sent to self
activitySentTo: 'Enviar a {r}', //Sent to
activitySelf: 'ti mismo', //Self
activityShieldedAddress: 'Dirección Shielded', //Shielded address
activityReceivedShield: 'Recibido desde dirección Shielded', //Received from Shielded address
activityReceivedFrom: 'Recibido de', //Received from
activityDelegatedTo: 'Delegado a', //Delegated to
activityReceivedFrom: 'Recibido de {s}', //Received from
activityDelegatedTo: 'Delegado a {r}', //Delegated to
activityUndelegated: 'No delegado', //Undelegated
activityUnknown: 'Tx desconocido', //Unknown Tx
password: 'Contraseña', //Password
Expand Down
9 changes: 4 additions & 5 deletions locale/fr/translation.js
Expand Up @@ -232,12 +232,11 @@ export const fr_translation = {
time: 'Heure', //Time
description: 'Description', //Description
activityBlockReward: 'Récompense en bloc', //Block Reward
activitySentTo: 'Envoyé à', //Sent to
activitySentToSelf: 'Envoyé à soi-même', //Sent to self
activitySentTo: 'Envoyé à {r}', //Sent to
activitySelf: 'soi-même', //Self
activityShieldedAddress: 'Adresse protégée', //Shielded address
activityReceivedShield: "Reçu d'une adresse protégée", //Received from Shielded address
activityReceivedFrom: 'Reçu de', //Received from
activityDelegatedTo: 'Délégué à', //Delegated to
activityReceivedFrom: 'Reçu de {s}', //Received from
activityDelegatedTo: 'Délégué à {r}', //Delegated to
activityUndelegated: 'Non délégué', //Undelegated
activityUnknown: 'Transaction inconnu', //Unknown Tx
password: 'Mot de passe', //Password
Expand Down
9 changes: 4 additions & 5 deletions locale/it/translation.js
Expand Up @@ -214,12 +214,11 @@ export const it_translation = {
time: 'Tempo', //Time
description: 'Descrizione', //Description
activityBlockReward: 'Ricompensa del blocco', //Block Reward
activitySentTo: 'Invia a ', //Sent to
activitySentToSelf: 'Invia a te stesso', //Sent to self
activitySentTo: 'Inviato a {r}', //Sent to
activitySelf: 'te stesso', //Self
activityShieldedAddress: 'Indirizzo protetto', //Shielded address
activityReceivedShield: 'Ricevi tramite indirizzo protetto', //Received from Shielded address
activityReceivedFrom: 'Ricevuto da ', //Received from
activityDelegatedTo: 'Delegato a ', //Delegated to
activityReceivedFrom: 'Ricevuto da {s}', //Received from
activityDelegatedTo: 'Delegato a {r}', //Delegated to
activityUndelegated: 'Non delegato', //Undelegated
activityUnknown: 'Tx sconosciuta', //Unknown Tx
password: 'Password', //Password
Expand Down
9 changes: 4 additions & 5 deletions locale/ph/translation.js
Expand Up @@ -235,12 +235,11 @@ export const ph_translation = {
time: 'Oras', //Time
description: 'Description', //Description
activityBlockReward: 'Block Reward', //Block Reward
activitySentTo: 'Naipadala sa ', //Sent to
activitySentToSelf: 'Naipadala sa sarili', //Sent to self
activitySentTo: 'Naipadala sa {r}', //Sent to
activitySelf: 'sarili', //Self
activityShieldedAddress: 'Shielded address', //Shielded address
activityReceivedShield: 'Natanggap mula sa Shielded address', //Received from Shielded address
activityReceivedFrom: 'Natanggap mula sa', //Received from
activityDelegatedTo: 'Delegated to', //Delegated to
activityReceivedFrom: 'Natanggap mula sa {s}', //Received from
activityDelegatedTo: 'Delegated to {r}', //Delegated to
activityUndelegated: 'Undeligated', //Undelegated
activityUnknown: 'Unknown Tx', //Unknown Tx
password: 'Password', //Password
Expand Down
9 changes: 4 additions & 5 deletions locale/pt-br/translation.js
Expand Up @@ -232,12 +232,11 @@ export const pt_br_translation = {
time: 'Tempo', //Time
description: 'Descrição', //Description
activityBlockReward: 'Bloco Recompensa', //Block Reward
activitySentTo: 'Enviado para', //Sent to
activitySentToSelf: 'Enviado para si mesmo', //Sent to self
activitySentTo: 'Enviado para {r}', //Sent to
activitySelf: 'si mesmo', //Self
activityShieldedAddress: 'Endereço Protegido', //Shielded address
activityReceivedShield: 'Recebido de Endereço Protegido', //Received from Shielded address
activityReceivedFrom: 'Recebido de', //Received from
activityDelegatedTo: 'Delegado a', //Delegated to
activityReceivedFrom: 'Recebido de {s}', //Received from
activityDelegatedTo: 'Delegado a {r}', //Delegated to
activityUndelegated: 'Não é Delegado', //Undelegated
activityUnknown: 'Tx desconhecido', //Unknown Tx
password: 'Senha', //Password
Expand Down
9 changes: 4 additions & 5 deletions locale/pt-pt/translation.js
Expand Up @@ -232,12 +232,11 @@ export const pt_pt_translation = {
time: 'Tempo', //Time
description: 'Descrição', //Description
activityBlockReward: 'Bloco Recompensa', //Block Reward
activitySentTo: 'Enviado para', //Sent to
activitySentToSelf: 'Enviado para si mesmo', //Sent to self
activitySentTo: 'Enviado para {r}', //Sent to
activitySelf: 'si mesmo', //Self
activityShieldedAddress: 'Endereço Protegido', //Shielded address
activityReceivedShield: 'Recebido de Endereço Protegido', //Received from Shielded address
activityReceivedFrom: 'Recebido de', //Received from
activityDelegatedTo: 'Delegado a', //Delegated to
activityReceivedFrom: 'Recebido de {s}', //Received from
activityDelegatedTo: 'Delegado a {r}', //Delegated to
activityUndelegated: 'Não é Delegado', //Undelegated
activityUnknown: 'Tx desconhecido', //Unknown Tx
password: 'Senha', //Password
Expand Down
9 changes: 4 additions & 5 deletions locale/template/translation.js
Expand Up @@ -225,12 +225,11 @@ export const translation_template = {
time: '', //Time
description: '', //Description
activityBlockReward: '', //Block Reward
activitySentTo: '', //Sent to
activitySentToSelf: '', //Sent to self
activitySentTo: '', //Sent to {}
activitySelf: '', // self
activityShieldedAddress: '', //Shielded address
activityReceivedShield: '', //Received from Shielded address
activityReceivedFrom: '', //Received from
activityDelegatedTo: '', //Delegated to
activityReceivedFrom: '', //Received from {}
activityDelegatedTo: '', // Delegated to {}
activityUndelegated: '', //Undelegated
activityUnknown: '', //Unknown Tx
password: '', //Password
Expand Down
11 changes: 5 additions & 6 deletions locale/uwu/translation.js
Expand Up @@ -228,12 +228,11 @@ export const uwu_translation = {
time: 'Time', //Time
description: 'Descwiption', //Description
activityBlockReward: 'Bwock Rewawrd', //Block Reward
activitySentTo: 'Sentu to', //Sent to
activitySentToSelf: 'Sentu to selfu', //Sent to self
activityShieldedAddress: 'Shielded addwess', //Shielded address
activityReceivedShield: 'Recewived fwom Shielded addwess', //Received from Shielded address
activityReceivedFrom: 'Recewived fwom', //Received from
activityDelegatedTo: 'Delegwated to', //Delegated to
activitySentTo: 'Sentu to {r}', //Sent to
activitySelf: 'selfu', //Self
activityReceivedShield: 'Shielded addwess', //Received from Shielded address
activityReceivedFrom: 'Recewived fwom {s}', //Received from
activityDelegatedTo: 'Delegwated to {r}', //Delegated to
activityUndelegated: 'Undelegwated', //Undelegated
activityUnknown: 'Unknown Tx', //Unknown Tx
password: 'Password', //Password
Expand Down

0 comments on commit cd341de

Please sign in to comment.