diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index aa5235b..ed32a55 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -202,6 +202,9 @@ jobs: echo "major=$MAJOR" >> "$GITHUB_OUTPUT" echo "minor=$MINOR" >> "$GITHUB_OUTPUT" + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -234,6 +237,7 @@ jobs: context: . file: ./Dockerfile push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha diff --git a/ui/.prettierignore b/ui/.prettierignore index 00724dc..99dca0f 100644 --- a/ui/.prettierignore +++ b/ui/.prettierignore @@ -2,4 +2,5 @@ node_modules dist .angular test-results -src/app/api-client \ No newline at end of file +src/app/api-client +src/app/models/generated \ No newline at end of file diff --git a/ui/package.json b/ui/package.json index 7ed2c7e..3ee0be5 100644 --- a/ui/package.json +++ b/ui/package.json @@ -70,4 +70,4 @@ "typescript-eslint": "8.50.1", "vitest": "^4.0.8" } -} \ No newline at end of file +} diff --git a/ui/scripts/setup-api-client.js b/ui/scripts/setup-api-client.js index a0fad5a..d42cdcc 100644 --- a/ui/scripts/setup-api-client.js +++ b/ui/scripts/setup-api-client.js @@ -27,8 +27,12 @@ if (fs.existsSync(sourceFile)) { // Check if openapi.json exists const openapiPath = path.join(uiRoot, 'openapi.json'); if (!fs.existsSync(openapiPath)) { - console.warn(`⚠ Warning: openapi.json not found. This is expected if the Rust backend hasn't been built yet.`); - console.warn(`⚠ Run 'cargo build' in the root directory to generate the OpenAPI spec, then run 'npm install' again in the ui directory.`); + console.warn( + `⚠ Warning: openapi.json not found. This is expected if the Rust backend hasn't been built yet.`, + ); + console.warn( + `⚠ Run 'cargo build' in the root directory to generate the OpenAPI spec, then run 'npm install' again in the ui directory.`, + ); process.exit(0); } @@ -41,7 +45,7 @@ const dockerCmd = `docker run --rm -v "${cwd}:/local" openapitools/openapi-gener const result = spawnSync(dockerCmd, { shell: true, - stdio: 'inherit' + stdio: 'inherit', }); process.exit(result.status); diff --git a/ui/src/app/components/new-flags-file-form/new-flags-file-form.html b/ui/src/app/components/new-flags-file-form/new-flags-file-form.html index 534dfb0..3a2bcc4 100644 --- a/ui/src/app/components/new-flags-file-form/new-flags-file-form.html +++ b/ui/src/app/components/new-flags-file-form/new-flags-file-form.html @@ -18,11 +18,7 @@

File URL - +