Skip to content

Commit

Permalink
Merge pull request #19 from GalaxyPay/dev
Browse files Browse the repository at this point in the history
chore: release v1.3.1
  • Loading branch information
acfunk authored Nov 14, 2024
2 parents 764f5d8 + 7cf92ef commit 6568674
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 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.3.0
tag: v1.3.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.3.0"
#define MyAppVersion "1.3.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.3.0",
"version": "1.3.1",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
Expand Down
16 changes: 16 additions & 0 deletions webui/src/components/Config.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
<v-card-title> Configure Node </v-card-title>
<v-container v-if="config">
<v-text-field label="Port" v-model.number="port" type="number" />
<v-text-field
label="Token (Read-Only)"
readonly
:model-value="token"
:append-inner-icon="mdiContentCopy"
@click:append-inner="copyVal(token)"
/>
<v-checkbox-btn v-model="showDNSBootstrapID" label="DNS Bootstrap ID" />
<v-textarea
:disabled="!showDNSBootstrapID"
Expand Down Expand Up @@ -32,11 +39,13 @@

<script lang="ts" setup>
import AWN from "@/services/api";
import { mdiContentCopy } from "@mdi/js";
const props = defineProps({
visible: { type: Boolean, required: true },
name: { type: String, required: true },
running: { type: Boolean, required: true },
token: { type: String },
});
const emit = defineEmits(["close"]);
Expand All @@ -51,6 +60,7 @@ const show = computed({
},
});
const store = useAppStore();
const config = ref();
const port = computed({
Expand Down Expand Up @@ -121,6 +131,12 @@ async function saveConfig() {
loading.value = false;
}
function copyVal(val: string | number | bigint | undefined) {
if (!val) return;
navigator.clipboard.writeText(val.toString());
store.setSnackbar("Copied", "info", 1000);
}
watch(show, async (val) => {
if (val) {
const resp = await AWN.api.get(`${props.name}/config`);
Expand Down
1 change: 1 addition & 0 deletions webui/src/components/Manage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
:visible="showConfig"
:name="name"
:running="nodeStatus.serviceStatus === 'Running'"
:token="nodeStatus.token"
@close="
showConfig = false;
emit('getStatus');
Expand Down

0 comments on commit 6568674

Please sign in to comment.