From f5445c06ec7b039fd2f5ea6cdc2bad4e2b942de6 Mon Sep 17 00:00:00 2001 From: jinlianyu Date: Tue, 28 Apr 2026 20:18:20 +0800 Subject: [PATCH 1/3] fix: override sdtools loadConfiguration to prevent null classList errors When multiple buttons are configured, sdtools.common.js loadConfiguration iterates over settings keys and calls getElementById to populate form fields. Since pi.html uses Vue v-model bindings without matching element IDs, each lookup returns null, causing null.classList TypeError. Override loadConfiguration with a no-op after sdtools is loaded, letting Vue handle all data binding and eliminating the console errors. --- resources/pi/pi.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/pi/pi.html b/resources/pi/pi.html index 16698bd..d0d3669 100644 --- a/resources/pi/pi.html +++ b/resources/pi/pi.html @@ -9,6 +9,10 @@ Settings + From e98ed9eaa7ce91dfce5dbf213308513c838b3cb3 Mon Sep 17 00:00:00 2001 From: jinlianyu Date: Tue, 28 Apr 2026 20:29:47 +0800 Subject: [PATCH 2/3] ci: trigger build From 2cbf9a293999d71d16cd1c3037f1814b21496838 Mon Sep 17 00:00:00 2001 From: jinlianyu Date: Tue, 28 Apr 2026 20:33:06 +0800 Subject: [PATCH 3/3] ci: replace deprecated create-release with softprops/action-gh-release@v2, add contents write permission --- .github/workflows/release.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7eec46f..827d59e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -20,6 +20,8 @@ jobs: runs-on: ubuntu-latest needs: - version + permissions: + contents: write env: TARGET_VERSION: ${{needs.version.outputs.versionOut}} SEM_VERSION: ${{needs.version.outputs.versionSemVerOut}} @@ -29,23 +31,12 @@ jobs: - name: Set version in manifest run: jq --arg ver "$TARGET_VERSION" '.Version = $ver' ./resources/manifest.json > temp.json && mv temp.json ./resources/manifest.json - run: docker build -t temp . - - run: docker run -v $(pwd)/tmpdist:/tmpdist temp sh -c "cp /dist/com.ftt.apimonkey.sdPlugin.zip /tmpdist/com.ftt.apimonkey.sdPlugin.zip" + - run: mkdir -p tmpdist && docker run -v $(pwd)/tmpdist:/tmpdist temp sh -c "cp /dist/com.ftt.apimonkey.sdPlugin.zip /tmpdist/com.ftt.apimonkey.sdPlugin.zip" - name: release - uses: actions/create-release@v1 - id: create_release + uses: softprops/action-gh-release@v2 with: + name: ${{ env.TARGET_VERSION }} + tag_name: ${{ env.SEM_VERSION }} draft: false prerelease: false - release_name: ${{ env.TARGET_VERSION }} - tag_name: ${{ env.SEM_VERSION }} - env: - GITHUB_TOKEN: ${{ github.token }} - - name: upload windows artifact - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ github.token }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: tmpdist/com.ftt.apimonkey.sdPlugin.zip - asset_name: com.ftt.apimonkey.sdPlugin.zip - asset_content_type: application/octet-stream + files: tmpdist/com.ftt.apimonkey.sdPlugin.zip