From 0fc5260688154848bc2c3858f8ebe54dd8abd25e Mon Sep 17 00:00:00 2001 From: Sylvain Gougouzian Date: Fri, 30 Aug 2024 21:35:01 +0200 Subject: [PATCH] fix: :construction_worker: fix ci --- .github/workflows/release-file.yml | 2 +- package.json | 2 +- src/render/main.js.txt | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-file.yml b/.github/workflows/release-file.yml index 057dca4..78ba895 100644 --- a/.github/workflows/release-file.yml +++ b/.github/workflows/release-file.yml @@ -69,7 +69,7 @@ jobs: if: matrix.os == 'macos-latest' run: cat ./choc.tar.gz > release_mac.tar.gz - name: Run Mac Intel Build - if: matrix.os == 'macos-latest' + if: matrix.os == 'macos-12' run: cat ./choc.tar.gz > release_mac_intel.tar.gz - name: Release uses: softprops/action-gh-release@v1 diff --git a/package.json b/package.json index 468d61b..1af3192 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "choc": "./bin/index.js" }, "scripts": { - "make": "bun build src/index.ts --outfile exe/choc --compile --minify --sourcemap=none" + "make": "bun build src/index.ts --outfile exe/choc --compile --minify" }, "dependencies": { "commander": "^12.0.0" diff --git a/src/render/main.js.txt b/src/render/main.js.txt index 7dd8d84..5c1320b 100644 --- a/src/render/main.js.txt +++ b/src/render/main.js.txt @@ -209,14 +209,14 @@ window.sortCol = (colName) => { window.filterTalks = () => { const articles = document.querySelectorAll(".talk"); - articles.forEach((article) => { + articles.forEach((article, _) => { article.classList.remove("hidden"); }); - ["categories", "formats", "speakers", "companies"].forEach((key) => { + ["categories", "formats", "speakers", "companies"].forEach((key, _) => { const choice = document.getElementById(key).value.trim(); if (choice !== "") - articles.forEach((article) => { + articles.forEach((article, _) => { if (article.getAttribute(`data-${key}`).indexOf(` ${choice} `) === -1) article.classList.add("hidden"); });