From 7dd92ab4ad317264f2fe5c5d2e4fb54a1b07607a Mon Sep 17 00:00:00 2001
From: routerino <45954722+routerino@users.noreply.github.com>
Date: Sat, 24 May 2025 12:57:50 +1000
Subject: [PATCH 1/7] Fix: CICD Pipeline for release plugin (#201)
* testing-github-piprline
* fix pipeline
* bump version
---
.github/workflows/publish-release.yaml | 43 +++++++-------------------
package.json | 2 +-
2 files changed, 13 insertions(+), 32 deletions(-)
diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml
index b6c9bc2..eb1ad57 100644
--- a/.github/workflows/publish-release.yaml
+++ b/.github/workflows/publish-release.yaml
@@ -10,7 +10,7 @@ jobs:
steps:
- name: Checkout Repository
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: Variable Gathering
id: gathervars
@@ -33,13 +33,13 @@ jobs:
echo "NOT_PREVIOUSLY_PUBLISHED=$NOT_PREVIOUSLY_PUBLISHED" >> $GITHUB_ENV
- name: Set up QEMU
- uses: docker/setup-qemu-action@v2
+ uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v2
+ uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
- uses: docker/login-action@v2
+ uses: docker/login-action@v3
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
with:
registry: ghcr.io
@@ -47,7 +47,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker Image
- uses: docker/build-push-action@v4
+ uses: docker/build-push-action@v6
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
with:
build-args: |
@@ -60,7 +60,7 @@ jobs:
push: true
- name: Extract build out of docker image
- uses: shrink/actions-docker-extract@v2
+ uses: shrink/actions-docker-extract@v3
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
id: extract
with:
@@ -73,33 +73,14 @@ jobs:
cd "${{ steps.extract.outputs.destination }}"
7z a headscale-ui.zip web
- - name: Create Draft Release
- id: create_release
- uses: actions/create-release@v1
+ - name: Create Release
+ uses: softprops/action-gh-release@v2
if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION }}
- release_name: headscale-ui
- draft: true
- prerelease: false
-
- - name: upload asset to releases
- uses: actions/upload-release-asset@v1.0.1
- if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- upload_url: ${{ steps.create_release.outputs.upload_url }}
- asset_path: ${{ steps.extract.outputs.destination }}/headscale-ui.zip
- asset_name: headscale-ui.zip
- asset_content_type: application/zip
-
- - name: publish release
- uses: eregon/publish-release@v1
- if: ${{ env.NOT_PREVIOUSLY_PUBLISHED != 0 }}
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- release_id: ${{ steps.create_release.outputs.id }}
+ name: headscale-ui
+ files: ${{ steps.extract.outputs.destination }}/headscale-ui.zip
+ generate_release_notes: true
+ make_latest: true
\ No newline at end of file
diff --git a/package.json b/package.json
index 8ec7a28..ef7af5c 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "headscale-ui",
- "version": "2025.05.22",
+ "version": "2025.05.23",
"scripts": {
"dev": "vite dev --port 8080 --host 0.0.0.0",
"build": "vite build",
From 15c4dd9575196c6338a82826e48ff528c2d68b1c Mon Sep 17 00:00:00 2001
From: Eloxt Wang <7691760+eloxt@users.noreply.github.com>
Date: Fri, 11 Jul 2025 07:00:47 +0800
Subject: [PATCH 2/7] Add route removal functionality and fix code formatting
(#206)
- Add removeRouteAction function to allow disabling active routes
- Update approveDeviceRoute to accept full routes array instead of single route
---
.../DeviceRoutes/DeviceRoute.svelte | 31 +++++++++++++++----
.../DeviceRoutes/DeviceRouteAPI.svelte | 2 +-
2 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRoute.svelte b/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRoute.svelte
index 9d0b73d..d454488 100644
--- a/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRoute.svelte
+++ b/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRoute.svelte
@@ -1,15 +1,15 @@
{route}
{#if device.approvedRoutes.includes(route)}
-
+
{:else}
{/if}
diff --git a/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRouteAPI.svelte b/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRouteAPI.svelte
index 23e24a6..1f28ecb 100644
--- a/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRouteAPI.svelte
+++ b/src/lib/devices/DeviceCard/DeviceRoutes/DeviceRouteAPI.svelte
@@ -1,6 +1,6 @@
{#if !cardEditing}
- {user.id}: {user.name}
+ {user.id}: {user.name.length > 1 ? user.name : user.email}