Skip to content

Commit

Permalink
updated jxl-pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc-n committed Sep 11, 2024
1 parent 9e5f8ee commit 8e824f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
name: Scribe-${{ github.run_id }}-${{ github.sha }}
path: dist
overwrite: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions renderer/src/layouts/editor/InnerFramePopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down Expand Up @@ -206,7 +206,7 @@ export default function InnerFramePopup() {
} else {
setIsJsonValidate(false);
}
// console.log(validationJson);
// console.log("kitchenFaucet==",kitchenFaucet);
}, [kitchenFaucet, headerInfo]);

const openFileDialogSettingData = async () => {
Expand Down Expand Up @@ -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';
Expand Down

0 comments on commit 8e824f2

Please sign in to comment.