Skip to content

Commit

Permalink
Merge pull request #13 from GalaxyPay/dev
Browse files Browse the repository at this point in the history
chore: release v1.2.1
  • Loading branch information
acfunk authored Nov 2, 2024
2 parents 4898644 + 3cce5f3 commit d1f8dbe
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 51 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
uses: ncipollo/release-action@v1
with:
allowUpdates: true
tag: v1.2.0
tag: v1.2.1
artifacts: "Output\\AvmWinNode_Setup.exe"
2 changes: 1 addition & 1 deletion AvmWinNode.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "AvmWinNode"
#define MyAppVersion "1.2.0"
#define MyAppVersion "1.2.1"
#define MyAppPublisher "Galaxy Pay, LLC"
#define MyAppPublisherURL "https://galaxy-pay.com"
#define MyPublishPath "publish"
Expand Down
2 changes: 1 addition & 1 deletion webui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "avm-win-node-webui",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
Expand Down
116 changes: 69 additions & 47 deletions webui/src/components/Node.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,24 +115,41 @@
</template>
</v-row>
</v-container>
<template v-if="algodStatus?.['catchpoint']">
<v-data-table
:headers="headers"
:items="catchupData"
density="comfortable"
>
<template #[`item.total`]="{ value }">
{{ value.toLocaleString() }}
</template>
<template #[`item.processed`]="{ value }">
{{ value.toLocaleString() }}
</template>
<template #[`item.verified`]="{ value }">
{{ value.toLocaleString() }}
</template>
<template #bottom />
</v-data-table>
</template>
<v-container v-if="algodStatus?.catchpoint" fluid>
<v-divider />
<v-card-title>Fast Catchup</v-card-title>
<v-card-text class="pb-0">
Block:
{{
algodStatus.catchpoint.substring(
0,
algodStatus.catchpoint.indexOf("#")
)
}}
</v-card-text>
<v-container :max-width="500">
<div class="pb-4" v-for="prog in catchupProgress">
{{ prog.name }}
{{
prog.verified > 0
? "(Verifying)"
: prog.processed > 0 && prog.processed < 100
? "(Processing)"
: ""
}}
<v-progress-linear
v-show="prog.processed != 100"
:model-value="prog.processed"
color="warning"
/>
<v-progress-linear
v-show="prog.processed == 100"
:model-value="prog.verified"
color="primary"
/>
</div>
</v-container>
</v-container>
<Participation
v-if="algodClient && algodStatus?.['last-round'] > 100"
:name="name"
Expand Down Expand Up @@ -276,35 +293,40 @@ async function getNodeStatus() {
}
}
const headers: any[] = [
{ key: "entity", sortable: false },
{ title: "Total", key: "total", sortable: false },
{ title: "Processed", key: "processed", sortable: false },
{ title: "Verified", key: "verified", sortable: false },
];
const catchupData = computed(() => {
const val: any[] = [];
if (!algodStatus.value?.["catchpoint"]) return val;
val.push({
entity: "Accounts",
total: algodStatus.value["catchpoint-total-accounts"],
processed: algodStatus.value["catchpoint-processed-accounts"],
verified: algodStatus.value["catchpoint-verified-accounts"],
});
val.push({
entity: "KVs",
total: algodStatus.value["catchpoint-total-kvs"],
processed: algodStatus.value["catchpoint-processed-kvs"],
verified: algodStatus.value["catchpoint-verified-kvs"],
});
val.push({
entity: "Blocks",
total: algodStatus.value["catchpoint-total-blocks"],
processed: "",
verified: algodStatus.value["catchpoint-acquired-blocks"],
});
return val;
const catchupProgress = computed(() => {
if (!algodStatus.value?.catchpoint) return undefined;
return [
{
name: "Accounts",
processed:
(algodStatus.value["catchpoint-processed-accounts"] /
algodStatus.value["catchpoint-total-accounts"]) *
100,
verified:
(algodStatus.value["catchpoint-verified-accounts"] /
algodStatus.value["catchpoint-total-accounts"]) *
100,
},
{
name: "KVs",
processed:
(algodStatus.value["catchpoint-processed-kvs"] /
algodStatus.value["catchpoint-total-kvs"]) *
100,
verified:
(algodStatus.value["catchpoint-verified-kvs"] /
algodStatus.value["catchpoint-total-kvs"]) *
100,
},
{
name: "Blocks",
processed: 100,
verified:
(algodStatus.value["catchpoint-total-blocks"] /
algodStatus.value["catchpoint-acquired-blocks"]) *
100,
},
];
});
async function updateReti() {
Expand Down
2 changes: 1 addition & 1 deletion webui/src/components/NodeTabs.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-container v-show="store.ready" fluid>
<v-container v-show="store.ready" fluid :max-width="1200">
<v-card>
<v-tabs
:model-value="tab"
Expand Down

0 comments on commit d1f8dbe

Please sign in to comment.