Skip to content

Commit 8c89d3d

Browse files
committed
Fix icons, version, log auto-refresh, and release naming
- Bundle icons into client JS (icon.clientBundle.scan) so they work offline - Update version from v0.1.0-mock to v1.0.0 - Auto-refresh instance logs every 5 seconds - Delete existing release before re-creating to avoid _2 suffix
1 parent 97f84c6 commit 8c89d3d

6 files changed

Lines changed: 69 additions & 47 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,16 @@ jobs:
164164
with:
165165
name: MasterDnsWeb-linux-amd64
166166

167+
- name: Delete existing release (if re-tagging)
168+
run: gh release delete "${{ github.ref_name }}" --yes --cleanup-tag || true
169+
env:
170+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171+
172+
- name: Recreate tag
173+
run: |
174+
git tag -f "${{ github.ref_name }}"
175+
git push origin "${{ github.ref_name }}" --force
176+
167177
- name: Create GitHub Release
168178
uses: softprops/action-gh-release@v2
169179
with:

frontend/app/layouts/default.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async function handleLogout() {
8686
<div class="border-t border-neutral-200/80 p-3 dark:border-neutral-800/80">
8787
<div class="rounded-xl bg-linear-to-br from-neutral-100 to-neutral-50 px-3 py-2.5 dark:from-neutral-800/50 dark:to-neutral-800/30">
8888
<p class="text-[10px] font-medium tracking-wider text-neutral-400 uppercase dark:text-neutral-500">Version</p>
89-
<p class="mt-0.5 text-xs font-semibold text-neutral-600 dark:text-neutral-300">v0.1.0-mock</p>
89+
<p class="mt-0.5 text-xs font-semibold text-neutral-600 dark:text-neutral-300">v1.0.0</p>
9090
</div>
9191
</div>
9292
</div>
@@ -117,7 +117,7 @@ async function handleLogout() {
117117
<div class="border-t border-neutral-200/80 p-3 dark:border-neutral-800/80">
118118
<div class="rounded-xl bg-linear-to-br from-neutral-100 to-neutral-50 px-3 py-2.5 dark:from-neutral-800/50 dark:to-neutral-800/30">
119119
<p class="text-[10px] font-medium tracking-wider text-neutral-400 uppercase dark:text-neutral-500">Version</p>
120-
<p class="mt-0.5 text-xs font-semibold text-neutral-600 dark:text-neutral-300">v0.1.0-mock</p>
120+
<p class="mt-0.5 text-xs font-semibold text-neutral-600 dark:text-neutral-300">v1.0.0</p>
121121
</div>
122122
</div>
123123
</aside>

frontend/app/pages/instances.vue

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,41 @@ watch(
4444
{ immediate: true }
4545
)
4646
47+
// Auto-refresh logs every 5 seconds for the selected instance
48+
let logPollTimer: ReturnType<typeof setInterval> | null = null
49+
50+
function startLogPolling() {
51+
stopLogPolling()
52+
logPollTimer = setInterval(async () => {
53+
if (selectedInstanceId.value) {
54+
await fetchInstanceLogs(selectedInstanceId.value).catch(() => {})
55+
}
56+
}, 5000)
57+
}
58+
59+
function stopLogPolling() {
60+
if (logPollTimer) {
61+
clearInterval(logPollTimer)
62+
logPollTimer = null
63+
}
64+
}
65+
66+
watch(
67+
() => selectedInstanceId.value,
68+
(id) => {
69+
if (id) {
70+
startLogPolling()
71+
} else {
72+
stopLogPolling()
73+
}
74+
},
75+
{ immediate: true }
76+
)
77+
78+
onUnmounted(() => {
79+
stopLogPolling()
80+
})
81+
4782
async function handleCreateInstance() {
4883
if (!newInstanceName.value.trim()) return
4984

frontend/nuxt.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export default defineNuxtConfig({
1010
ui: {
1111
fonts: false
1212
},
13+
icon: {
14+
clientBundle: {
15+
scan: true,
16+
},
17+
},
1318
css: ['~/assets/css/main.css'],
1419
runtimeConfig: {
1520
public: {

frontend/package-lock.json

Lines changed: 14 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818
"tailwindcss": "^4.2.2",
1919
"vue": "^3.5.32",
2020
"vue-router": "^5.0.4"
21+
},
22+
"devDependencies": {
23+
"@iconify-json/lucide": "^1.2.102"
2124
}
2225
}

0 commit comments

Comments
 (0)