Compare commits

..

5 Commits

Author SHA1 Message Date
Techno Tim 8c631cb661
Merge d84c00af94 into a60e1a5e98 2025-05-20 21:59:19 +02:00
Siyuan Miao a60e1a5e98 chore: bump version to 0.4.0 2025-05-20 20:38:00 +02:00
Siyuan Miao 4e90883bf8 build: enable trimpath for both dev and prod releases 2025-05-20 20:28:40 +02:00
Adam Shiervani 8eaa86ae45
style(ui): update styling for access and network settings components (#487)
* style(ui): update styling for access and network settings components

* fix(ui): simplify conditional rendering in network settings component
2025-05-20 20:26:24 +02:00
Siyuan Miao 354941b54d build: add trimpath to go build command 2025-05-20 20:18:21 +02:00
3 changed files with 15 additions and 8 deletions

View File

@ -2,8 +2,8 @@ BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
BUILDDATE ?= $(shell date -u +%FT%T%z)
BUILDTS ?= $(shell date -u +%s)
REVISION ?= $(shell git rev-parse HEAD)
VERSION_DEV := 0.4.0-dev$(shell date +%Y%m%d%H%M)
VERSION := 0.3.9
VERSION_DEV := 0.4.1-dev$(shell date +%Y%m%d%H%M)
VERSION := 0.4.0
PROMETHEUS_TAG := github.com/prometheus/common/version
KVM_PKG_NAME := github.com/jetkvm/kvm
@ -25,7 +25,10 @@ hash_resource:
build_dev: hash_resource
@echo "Building..."
$(GO_CMD) build -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION_DEV)" -o $(BIN_DIR)/jetkvm_app cmd/main.go
$(GO_CMD) build \
-ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION_DEV)" \
-trimpath \
-o $(BIN_DIR)/jetkvm_app cmd/main.go
build_test2json:
$(GO_CMD) build -o $(BIN_DIR)/test2json cmd/test2json
@ -66,7 +69,10 @@ dev_release: frontend build_dev
build_release: frontend hash_resource
@echo "Building release..."
$(GO_CMD) build -ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION)" -o bin/jetkvm_app cmd/main.go
$(GO_CMD) build \
-ldflags="$(GO_LDFLAGS) -X $(KVM_PKG_NAME).builtAppVersion=$(VERSION)" \
-trimpath \
-o bin/jetkvm_app cmd/main.go
release:
@if rclone lsf r2://jetkvm-update/app/$(VERSION)/ | grep -q "jetkvm_app"; then \

View File

@ -409,7 +409,7 @@ export default function SettingsAccessIndexRoute() {
.
</div>
</div>
<hr className="block w-full dark:border-slate-600" />
<hr className="block w-full border-slate-800/20 dark:border-slate-300/20" />
<div>
<LinkButton
@ -469,4 +469,4 @@ export default function SettingsAccessIndexRoute() {
);
}
SettingsAccessIndexRoute.loader = loader;
SettingsAccessIndexRoute.loader = loader;

View File

@ -356,7 +356,7 @@ export default function SettingsNetworkRoute() {
/>
</SettingsItem>
<AutoHeight>
{!networkSettingsLoaded ? (
{!networkSettingsLoaded && !networkState?.dhcp_lease ? (
<GridCard>
<div className="p-4">
<div className="space-y-4">
@ -402,7 +402,8 @@ export default function SettingsNetworkRoute() {
/>
</SettingsItem>
<AutoHeight>
{!networkSettingsLoaded ? (
{!networkSettingsLoaded &&
!(networkState?.ipv6_addresses && networkState.ipv6_addresses.length > 0) ? (
<GridCard>
<div className="p-4">
<div className="space-y-4">