From 8e824f2549aa6fc0d98a89a27a03020ca3ad38a9 Mon Sep 17 00:00:00 2001 From: danielc-n Date: Wed, 11 Sep 2024 14:21:45 +0200 Subject: [PATCH] updated jxl-pdf --- .github/workflows/node.js.yml | 12 ++++++------ package.json | 2 +- renderer/src/layouts/editor/InnerFramePopup.js | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index dc5896ba..f8ddc88d 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -45,9 +45,9 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: Scribe - path: Scribe-${{ github.run_id }}-${{ github.sha }} - overwrite: true + name: Scribe + path: Scribe-${{ github.run_id }}-${{ github.sha }} + overwrite: true build-windows: runs-on: ubuntu-latest @@ -156,6 +156,6 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@v4 with: - name: Scribe-${{ github.run_id }}-${{ github.sha }} - path: dist - overwrite: true \ No newline at end of file + name: Scribe-${{ github.run_id }}-${{ github.sha }} + path: dist + overwrite: true \ No newline at end of file diff --git a/package.json b/package.json index 0db30685..7ee66177 100644 --- a/package.json +++ b/package.json @@ -185,7 +185,7 @@ "is-electron": "^2.2.1", "isomorphic-git": "^1.24.0", "js-yaml": "^4.1.0", - "jxl-pdf": "0.5.4", + "jxl-pdf": "0.6.0", "localforage": "1.10.0", "lodash.isequal": "^4.5.0", "markdown-translatable": "1.3.0", diff --git a/renderer/src/layouts/editor/InnerFramePopup.js b/renderer/src/layouts/editor/InnerFramePopup.js index 0283399f..524729ad 100644 --- a/renderer/src/layouts/editor/InnerFramePopup.js +++ b/renderer/src/layouts/editor/InnerFramePopup.js @@ -39,7 +39,7 @@ export default function InnerFramePopup() { const [messagePrint, setMessagePrint] = useState(''); //the actual kitchenFaucet const pdfCallBacks = (json) => { - setMessagePrint((prev) => prev + '\n' + MessageToPeople(json)); + setMessagePrint((prev) => prev + '\n' + messageToPeople(json)); }; const { states: { selectedProject }, @@ -206,7 +206,7 @@ export default function InnerFramePopup() { } else { setIsJsonValidate(false); } - // console.log(validationJson); + // console.log("kitchenFaucet==",kitchenFaucet); }, [kitchenFaucet, headerInfo]); const openFileDialogSettingData = async () => { @@ -666,7 +666,7 @@ function transformPrintDataToKitchenFaucet(jsonData) { return { global: jsonData.metaData, sections: kitchenFaucet }; } -function MessageToPeople(json) { +function messageToPeople(json) { let message = ''; for (let i = 0; i < json.level; i++) { message += '\t';