diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index f8c40cc..b094988 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,17 +4,18 @@
-
-
+
+
+
+
+
+
-
-
-
@@ -22,7 +23,7 @@
@@ -41,142 +42,173 @@
"state": "OPEN"
}
}
- {
- "prStates": [
+
+}]]>
{
"selectedUrlAndAccountId": {
"url": "https://github.com/iib0011/omni-tools.git",
"accountId": "45f8cd51-000f-4ba4-a4c6-c4d96ac9b1e5"
}
}
+
+
+
@@ -199,56 +231,56 @@
- {
- "keyToString": {
- "ASKED_ADD_EXTERNAL_FILES": "true",
- "ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
- "Docker.Dockerfile build.executor": "Run",
- "Docker.Dockerfile.executor": "Run",
- "Playwright.Create transparent PNG.should make png color transparent.executor": "Run",
- "Playwright.JoinText Component.executor": "Run",
- "Playwright.JoinText Component.should merge text pieces with specified join character.executor": "Run",
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "RunOnceActivity.git.unshallow": "true",
- "Vitest.compute function (1).executor": "Run",
- "Vitest.compute function.executor": "Run",
- "Vitest.mergeText.executor": "Run",
- "Vitest.mergeText.should merge lines and preserve blank lines when deleteBlankLines is false.executor": "Run",
- "Vitest.mergeText.should merge lines, preserve blank lines and trailing spaces when both deleteBlankLines and deleteTrailingSpaces are false.executor": "Run",
- "Vitest.parsePageRanges.executor": "Run",
- "Vitest.removeDuplicateLines function.executor": "Run",
- "Vitest.removeDuplicateLines function.newlines option.executor": "Run",
- "Vitest.removeDuplicateLines function.newlines option.should filter newlines when newlines is set to filter.executor": "Run",
- "Vitest.replaceText function (regexp mode).should return the original text when passed an invalid regexp.executor": "Run",
- "Vitest.replaceText function.executor": "Run",
- "Vitest.timeBetweenDates.executor": "Run",
- "git-widget-placeholder": "main",
- "ignore.virus.scanning.warn.message": "true",
- "kotlin-language-version-configured": "true",
- "last_opened_file_path": "C:/Users/Ibrahima/IdeaProjects/omni-tools/src/pages/tools/json",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "npm.build.executor": "Run",
- "npm.dev.executor": "Run",
- "npm.lint.executor": "Run",
- "npm.prebuild.executor": "Run",
- "npm.script:create:tool.executor": "Run",
- "npm.test.executor": "Run",
- "npm.test:e2e.executor": "Run",
- "npm.test:e2e:run.executor": "Run",
- "prettierjs.PrettierConfiguration.Package": "C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\prettier",
- "project.structure.last.edited": "Problems",
- "project.structure.proportion": "0.0",
- "project.structure.side.proportion": "0.2",
- "settings.editor.selected.configurable": "refactai_advanced_settings",
- "ts.external.directory.path": "C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\typescript\\lib",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -462,46 +494,7 @@
-
-
-
- 1741492688761
-
-
-
- 1741492688761
-
-
-
- 1741492943849
-
-
-
- 1741492943849
-
-
-
- 1741535390090
-
-
-
- 1741535390090
-
-
-
- 1741540939154
-
-
-
- 1741540939154
-
-
-
- 1741542318259
-
-
-
- 1741542318259
+
@@ -855,7 +848,47 @@
1749147227565
-
+
+
+ 1751630993003
+
+
+
+ 1751630993003
+
+
+
+ 1751846877842
+
+
+
+ 1751846877842
+
+
+
+ 1751848478091
+
+
+
+ 1751848478091
+
+
+
+ 1751849423899
+
+
+
+ 1751849423899
+
+
+
+ 1751850152784
+
+
+
+ 1751850152784
+
+
@@ -902,11 +935,6 @@
-
-
-
-
-
@@ -927,7 +955,16 @@
-
+
+
+
+
+
+
+
+
+ false
+ true
diff --git a/package-lock.json b/package-lock.json
index ff64e27..173cc4e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -39,7 +39,7 @@
"notistack": "^3.0.1",
"omggif": "^1.0.10",
"pdf-lib": "^1.17.1",
- "pdfjs-dist": "^5.3.31",
+ "pdfjs-dist": "^5.2.133",
"playwright": "^1.45.0",
"qrcode": "^1.5.4",
"rc-slider": "^11.1.8",
diff --git a/package.json b/package.json
index 6adcd2e..ed7ebcf 100644
--- a/package.json
+++ b/package.json
@@ -56,7 +56,7 @@
"notistack": "^3.0.1",
"omggif": "^1.0.10",
"pdf-lib": "^1.17.1",
- "pdfjs-dist": "^5.3.31",
+ "pdfjs-dist": "^5.2.133",
"playwright": "^1.45.0",
"qrcode": "^1.5.4",
"rc-slider": "^11.1.8",
diff --git a/src/components/result/ResultFooter.tsx b/src/components/result/ResultFooter.tsx
index 0e96521..cf8708e 100644
--- a/src/components/result/ResultFooter.tsx
+++ b/src/components/result/ResultFooter.tsx
@@ -8,12 +8,14 @@ export default function ResultFooter({
handleDownload,
handleCopy,
disabled,
- hideCopy
+ hideCopy,
+ downloadLabel = 'Download'
}: {
handleDownload: () => void;
- handleCopy: () => void;
+ handleCopy?: () => void;
disabled?: boolean;
hideCopy?: boolean;
+ downloadLabel?: string;
}) {
return (
@@ -22,7 +24,7 @@ export default function ResultFooter({
onClick={handleDownload}
startIcon={}
>
- Save as
+ {downloadLabel}
{!hideCopy && (
);
})
- ) : (
- No output available yet.
)}
-
- {zipFile && (
-
-
-
- )}
-
{}}
- handleDownload={() => {}}
+ disabled={!zipFile}
+ handleDownload={() => zipFile && handleDownload(zipFile)}
/>
);