mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-17 18:44:02 +01:00
393
.idea/workspace.xml
generated
393
.idea/workspace.xml
generated
@@ -4,17 +4,18 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="feat: qr code generation init">
|
<list default="true" id="b30e2810-c4c1-4aad-b134-794e52cc1c7d" name="Changes" comment="fix: tsc">
|
||||||
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/components/result/ResultFooter.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/result/ResultFooter.tsx" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/components/result/ToolMultiFileResult.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/result/ToolMultiFileResult.tsx" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="FormatOnSaveOptions">
|
|
||||||
<option name="myRunOnSave" value="true" />
|
|
||||||
</component>
|
|
||||||
<component name="Git.Merge.Settings">
|
<component name="Git.Merge.Settings">
|
||||||
<option name="BRANCH" value="origin/main" />
|
<option name="BRANCH" value="origin/main" />
|
||||||
</component>
|
</component>
|
||||||
@@ -22,7 +23,7 @@
|
|||||||
<option name="PUSH_AUTO_UPDATE" value="true" />
|
<option name="PUSH_AUTO_UPDATE" value="true" />
|
||||||
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
||||||
<map>
|
<map>
|
||||||
<entry key="$PROJECT_DIR$" value="76d615ec7c369b7342e0f276392a4cba9c531aef" />
|
<entry key="$PROJECT_DIR$" value="fork/C043/main" />
|
||||||
</map>
|
</map>
|
||||||
</option>
|
</option>
|
||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
@@ -41,142 +42,173 @@
|
|||||||
"state": "OPEN"
|
"state": "OPEN"
|
||||||
}
|
}
|
||||||
}</component>
|
}</component>
|
||||||
<component name="GitHubPullRequestState">{
|
<component name="GitHubPullRequestState"><![CDATA[{
|
||||||
"prStates": [
|
"prStates": [
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts51PkS9",
|
"id": "PR_kwDOMJIfts51PkS9",
|
||||||
"number": 22
|
"number": 22
|
||||||
},
|
},
|
||||||
"lastSeen": 1741207144695
|
"lastSeen": 1741207144695
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6NiNYl",
|
"id": "PR_kwDOMJIfts6NiNYl",
|
||||||
"number": 32
|
"number": 32
|
||||||
},
|
},
|
||||||
"lastSeen": 1741209723869
|
"lastSeen": 1741209723869
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6Nheyd",
|
"id": "PR_kwDOMJIfts6Nheyd",
|
||||||
"number": 31
|
"number": 31
|
||||||
},
|
},
|
||||||
"lastSeen": 1741213371410
|
"lastSeen": 1741213371410
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6NmRBs",
|
"id": "PR_kwDOMJIfts6NmRBs",
|
||||||
"number": 33
|
"number": 33
|
||||||
},
|
},
|
||||||
"lastSeen": 1741282429036
|
"lastSeen": 1741282429036
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts5zyFTs",
|
"id": "PR_kwDOMJIfts5zyFTs",
|
||||||
"number": 15
|
"number": 15
|
||||||
},
|
},
|
||||||
"lastSeen": 1741535540953
|
"lastSeen": 1741535540953
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6QQB3c",
|
"id": "PR_kwDOMJIfts6QQB3c",
|
||||||
"number": 59
|
"number": 59
|
||||||
},
|
},
|
||||||
"lastSeen": 1743018960900
|
"lastSeen": 1743018960900
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6QMPEg",
|
"id": "PR_kwDOMJIfts6QMPEg",
|
||||||
"number": 58
|
"number": 58
|
||||||
},
|
},
|
||||||
"lastSeen": 1743019452983
|
"lastSeen": 1743019452983
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6QZvRI",
|
"id": "PR_kwDOMJIfts6QZvRI",
|
||||||
"number": 61
|
"number": 61
|
||||||
},
|
},
|
||||||
"lastSeen": 1743103196866
|
"lastSeen": 1743103196866
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6QqPrQ",
|
"id": "PR_kwDOMJIfts6QqPrQ",
|
||||||
"number": 73
|
"number": 73
|
||||||
},
|
},
|
||||||
"lastSeen": 1743265865001
|
"lastSeen": 1743265865001
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6Qp5nI",
|
"id": "PR_kwDOMJIfts6Qp5nI",
|
||||||
"number": 72
|
"number": 72
|
||||||
},
|
},
|
||||||
"lastSeen": 1743338472110
|
"lastSeen": 1743338472110
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6QsjlS",
|
"id": "PR_kwDOMJIfts6QsjlS",
|
||||||
"number": 76
|
"number": 76
|
||||||
},
|
},
|
||||||
"lastSeen": 1743352150953
|
"lastSeen": 1743352150953
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6Q0JBe",
|
"id": "PR_kwDOMJIfts6Q0JBe",
|
||||||
"number": 82
|
"number": 82
|
||||||
},
|
},
|
||||||
"lastSeen": 1743470267269
|
"lastSeen": 1743470267269
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6UE9-x",
|
"id": "PR_kwDOMJIfts6UE9-x",
|
||||||
"number": 102
|
"number": 102
|
||||||
},
|
},
|
||||||
"lastSeen": 1747171977348
|
"lastSeen": 1747171977348
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6XPua_",
|
"id": "PR_kwDOMJIfts6XPua_",
|
||||||
"number": 117
|
"number": 117
|
||||||
},
|
},
|
||||||
"lastSeen": 1747929835864
|
"lastSeen": 1747929835864
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6XY-mZ",
|
"id": "PR_kwDOMJIfts6XY-mZ",
|
||||||
"number": 119
|
"number": 119
|
||||||
},
|
},
|
||||||
"lastSeen": 1748028108508
|
"lastSeen": 1748028108508
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6Xdz4n",
|
"id": "PR_kwDOMJIfts6Xdz4n",
|
||||||
"number": 120
|
"number": 120
|
||||||
},
|
},
|
||||||
"lastSeen": 1748282672214
|
"lastSeen": 1748282672214
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6X_zxl",
|
"id": "PR_kwDOMJIfts6X_zxl",
|
||||||
"number": 131
|
"number": 131
|
||||||
},
|
},
|
||||||
"lastSeen": 1748881279494
|
"lastSeen": 1748881279494
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": {
|
"id": {
|
||||||
"id": "PR_kwDOMJIfts6XsHfL",
|
"id": "PR_kwDOMJIfts6bhieT",
|
||||||
"number": 128
|
"number": 152
|
||||||
},
|
},
|
||||||
"lastSeen": 1748881318360
|
"lastSeen": 1751848489082
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": {
|
||||||
|
"id": "PR_kwDOMJIfts6dOyRk",
|
||||||
|
"number": 154
|
||||||
|
},
|
||||||
|
"lastSeen": 1751849436454
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": {
|
||||||
|
"id": "PR_kwDOMJIfts6cHjNi",
|
||||||
|
"number": 153
|
||||||
|
},
|
||||||
|
"lastSeen": 1751849501498
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": {
|
||||||
|
"id": "PR_kwDOMJIfts6Zs1FN",
|
||||||
|
"number": 145
|
||||||
|
},
|
||||||
|
"lastSeen": 1751849770308
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": {
|
||||||
|
"id": "PR_kwDOMJIfts6bgKi9",
|
||||||
|
"number": 150
|
||||||
|
},
|
||||||
|
"lastSeen": 1751850367300
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}</component>
|
}]]></component>
|
||||||
<component name="GithubPullRequestsUISettings">{
|
<component name="GithubPullRequestsUISettings">{
|
||||||
"selectedUrlAndAccountId": {
|
"selectedUrlAndAccountId": {
|
||||||
"url": "https://github.com/iib0011/omni-tools.git",
|
"url": "https://github.com/iib0011/omni-tools.git",
|
||||||
"accountId": "45f8cd51-000f-4ba4-a4c6-c4d96ac9b1e5"
|
"accountId": "45f8cd51-000f-4ba4-a4c6-c4d96ac9b1e5"
|
||||||
}
|
}
|
||||||
}</component>
|
}</component>
|
||||||
|
<component name="GoLibraries">
|
||||||
|
<option name="indexEntireGoPath" value="true" />
|
||||||
|
</component>
|
||||||
<component name="HighlightingSettingsPerFile">
|
<component name="HighlightingSettingsPerFile">
|
||||||
<setting file="file://$PROJECT_DIR$/node_modules/react-image-crop/dist/index.d.ts" root0="SKIP_INSPECTION" />
|
<setting file="file://$PROJECT_DIR$/node_modules/react-image-crop/dist/index.d.ts" root0="SKIP_INSPECTION" />
|
||||||
</component>
|
</component>
|
||||||
@@ -199,56 +231,56 @@
|
|||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">{
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"ASKED_ADD_EXTERNAL_FILES": "true",
|
"ASKED_ADD_EXTERNAL_FILES": "true",
|
||||||
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
"ASKED_SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||||
"Docker.Dockerfile build.executor": "Run",
|
"Docker.Dockerfile build.executor": "Run",
|
||||||
"Docker.Dockerfile.executor": "Run",
|
"Docker.Dockerfile.executor": "Run",
|
||||||
"Playwright.Create transparent PNG.should make png color transparent.executor": "Run",
|
"Playwright.Create transparent PNG.should make png color transparent.executor": "Run",
|
||||||
"Playwright.JoinText Component.executor": "Run",
|
"Playwright.JoinText Component.executor": "Run",
|
||||||
"Playwright.JoinText Component.should merge text pieces with specified join character.executor": "Run",
|
"Playwright.JoinText Component.should merge text pieces with specified join character.executor": "Run",
|
||||||
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
"RunOnceActivity.git.unshallow": "true",
|
"RunOnceActivity.git.unshallow": "true",
|
||||||
"Vitest.compute function (1).executor": "Run",
|
"Vitest.compute function (1).executor": "Run",
|
||||||
"Vitest.compute function.executor": "Run",
|
"Vitest.compute function.executor": "Run",
|
||||||
"Vitest.mergeText.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 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.mergeText.should merge lines, preserve blank lines and trailing spaces when both deleteBlankLines and deleteTrailingSpaces are false.executor": "Run",
|
||||||
"Vitest.parsePageRanges.executor": "Run",
|
"Vitest.parsePageRanges.executor": "Run",
|
||||||
"Vitest.removeDuplicateLines function.executor": "Run",
|
"Vitest.removeDuplicateLines function.executor": "Run",
|
||||||
"Vitest.removeDuplicateLines function.newlines option.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.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 (regexp mode).should return the original text when passed an invalid regexp.executor": "Run",
|
||||||
"Vitest.replaceText function.executor": "Run",
|
"Vitest.replaceText function.executor": "Run",
|
||||||
"Vitest.timeBetweenDates.executor": "Run",
|
"Vitest.timeBetweenDates.executor": "Run",
|
||||||
"git-widget-placeholder": "main",
|
"git-widget-placeholder": "#150 on fork/omenmn/pdftopng",
|
||||||
"ignore.virus.scanning.warn.message": "true",
|
"ignore.virus.scanning.warn.message": "true",
|
||||||
"kotlin-language-version-configured": "true",
|
"kotlin-language-version-configured": "true",
|
||||||
"last_opened_file_path": "C:/Users/Ibrahima/IdeaProjects/omni-tools/src/pages/tools/json",
|
"last_opened_file_path": "C:/Users/Ibrahima/IdeaProjects/omni-tools/src/pages/tools/json",
|
||||||
"node.js.detected.package.eslint": "true",
|
"node.js.detected.package.eslint": "true",
|
||||||
"node.js.detected.package.tslint": "true",
|
"node.js.detected.package.tslint": "true",
|
||||||
"node.js.selected.package.eslint": "(autodetect)",
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
"node.js.selected.package.tslint": "(autodetect)",
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
"nodejs_package_manager_path": "npm",
|
"nodejs_package_manager_path": "npm",
|
||||||
"npm.build.executor": "Run",
|
"npm.build.executor": "Run",
|
||||||
"npm.dev.executor": "Run",
|
"npm.dev.executor": "Run",
|
||||||
"npm.lint.executor": "Run",
|
"npm.lint.executor": "Run",
|
||||||
"npm.prebuild.executor": "Run",
|
"npm.prebuild.executor": "Run",
|
||||||
"npm.script:create:tool.executor": "Run",
|
"npm.script:create:tool.executor": "Run",
|
||||||
"npm.test.executor": "Run",
|
"npm.test.executor": "Run",
|
||||||
"npm.test:e2e.executor": "Run",
|
"npm.test:e2e.executor": "Run",
|
||||||
"npm.test:e2e:run.executor": "Run",
|
"npm.test:e2e:run.executor": "Run",
|
||||||
"prettierjs.PrettierConfiguration.Package": "C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\prettier",
|
"prettierjs.PrettierConfiguration.Package": "C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\prettier",
|
||||||
"project.structure.last.edited": "Problems",
|
"project.structure.last.edited": "Problems",
|
||||||
"project.structure.proportion": "0.0",
|
"project.structure.proportion": "0.0",
|
||||||
"project.structure.side.proportion": "0.2",
|
"project.structure.side.proportion": "0.2",
|
||||||
"settings.editor.selected.configurable": "refactai_advanced_settings",
|
"settings.editor.selected.configurable": "refactai_advanced_settings",
|
||||||
"ts.external.directory.path": "C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\typescript\\lib",
|
"ts.external.directory.path": "C:\\Users\\Ibrahima\\IdeaProjects\\omni-tools\\node_modules\\typescript\\lib",
|
||||||
"vue.rearranger.settings.migration": "true"
|
"vue.rearranger.settings.migration": "true"
|
||||||
}
|
}
|
||||||
}</component>
|
}]]></component>
|
||||||
<component name="ReactDesignerToolWindowState">
|
<component name="ReactDesignerToolWindowState">
|
||||||
<option name="myId2Visible">
|
<option name="myId2Visible">
|
||||||
<map>
|
<map>
|
||||||
@@ -353,11 +385,11 @@
|
|||||||
</list>
|
</list>
|
||||||
<recent_temporary>
|
<recent_temporary>
|
||||||
<list>
|
<list>
|
||||||
|
<item itemvalue="npm.dev" />
|
||||||
<item itemvalue="Vitest.replaceText function (regexp mode).should return the original text when passed an invalid regexp" />
|
<item itemvalue="Vitest.replaceText function (regexp mode).should return the original text when passed an invalid regexp" />
|
||||||
<item itemvalue="Vitest.parsePageRanges" />
|
<item itemvalue="Vitest.parsePageRanges" />
|
||||||
<item itemvalue="Vitest.timeBetweenDates" />
|
<item itemvalue="Vitest.timeBetweenDates" />
|
||||||
<item itemvalue="Vitest.calculateTimeBetweenDates" />
|
<item itemvalue="Vitest.calculateTimeBetweenDates" />
|
||||||
<item itemvalue="npm.dev" />
|
|
||||||
</list>
|
</list>
|
||||||
</recent_temporary>
|
</recent_temporary>
|
||||||
</component>
|
</component>
|
||||||
@@ -462,46 +494,7 @@
|
|||||||
<workItem from="1748026506667" duration="2536000" />
|
<workItem from="1748026506667" duration="2536000" />
|
||||||
<workItem from="1748282636141" duration="478000" />
|
<workItem from="1748282636141" duration="478000" />
|
||||||
<workItem from="1749047510481" duration="879000" />
|
<workItem from="1749047510481" duration="879000" />
|
||||||
</task>
|
<workItem from="1751846528195" duration="4358000" />
|
||||||
<task id="LOCAL-00152" summary="feat: crop png">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1741492688761</created>
|
|
||||||
<option name="number" value="00152" />
|
|
||||||
<option name="presentableId" value="LOCAL-00152" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1741492688761</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00153" summary="chore: remove unnecessary files">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1741492943849</created>
|
|
||||||
<option name="number" value="00153" />
|
|
||||||
<option name="presentableId" value="LOCAL-00153" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1741492943849</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00154" summary="refactor: validateJson">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1741535390090</created>
|
|
||||||
<option name="number" value="00154" />
|
|
||||||
<option name="presentableId" value="LOCAL-00154" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1741535390090</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00155" summary="refactor: use ToolContent">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1741540939154</created>
|
|
||||||
<option name="number" value="00155" />
|
|
||||||
<option name="presentableId" value="LOCAL-00155" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1741540939154</updated>
|
|
||||||
</task>
|
|
||||||
<task id="LOCAL-00156" summary="feat: missing tools">
|
|
||||||
<option name="closed" value="true" />
|
|
||||||
<created>1741542318259</created>
|
|
||||||
<option name="number" value="00156" />
|
|
||||||
<option name="presentableId" value="LOCAL-00156" />
|
|
||||||
<option name="project" value="LOCAL" />
|
|
||||||
<updated>1741542318259</updated>
|
|
||||||
</task>
|
</task>
|
||||||
<task id="LOCAL-00157" summary="refactor: use ToolContent">
|
<task id="LOCAL-00157" summary="refactor: use ToolContent">
|
||||||
<option name="closed" value="true" />
|
<option name="closed" value="true" />
|
||||||
@@ -855,7 +848,47 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1749147227565</updated>
|
<updated>1749147227565</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="201" />
|
<task id="LOCAL-00201" summary="chore: rename from Omni Tools to OmniTools">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1751630993003</created>
|
||||||
|
<option name="number" value="00201" />
|
||||||
|
<option name="presentableId" value="LOCAL-00201" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1751630993003</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00202" summary="fix: tools by category page title">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1751846877842</created>
|
||||||
|
<option name="number" value="00202" />
|
||||||
|
<option name="presentableId" value="LOCAL-00202" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1751846877842</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00203" summary="chore: use scrollY">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1751848478091</created>
|
||||||
|
<option name="number" value="00203" />
|
||||||
|
<option name="presentableId" value="LOCAL-00203" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1751848478091</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00204" summary="chore: remove flip x and y">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1751849423899</created>
|
||||||
|
<option name="number" value="00204" />
|
||||||
|
<option name="presentableId" value="LOCAL-00204" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1751849423899</updated>
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00205" summary="fix: tsc">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1751850152784</created>
|
||||||
|
<option name="number" value="00205" />
|
||||||
|
<option name="presentableId" value="LOCAL-00205" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1751850152784</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="206" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="TypeScriptGeneratedFilesManager">
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
@@ -902,11 +935,6 @@
|
|||||||
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="false" />
|
||||||
<option name="CHECK_NEW_TODO" value="false" />
|
<option name="CHECK_NEW_TODO" value="false" />
|
||||||
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
<option name="ADD_EXTERNAL_FILES_SILENTLY" value="true" />
|
||||||
<MESSAGE value="fix: gif speed" />
|
|
||||||
<MESSAGE value="fix: tsc" />
|
|
||||||
<MESSAGE value="fix: background color" />
|
|
||||||
<MESSAGE value="docs: github trendings" />
|
|
||||||
<MESSAGE value="docs: optimize" />
|
|
||||||
<MESSAGE value="fix: stars button width for 1k+ " />
|
<MESSAGE value="fix: stars button width for 1k+ " />
|
||||||
<MESSAGE value="feat: compress pdf" />
|
<MESSAGE value="feat: compress pdf" />
|
||||||
<MESSAGE value="refactor: compress pdf" />
|
<MESSAGE value="refactor: compress pdf" />
|
||||||
@@ -927,7 +955,16 @@
|
|||||||
<MESSAGE value="chore: remove unnecessary prop" />
|
<MESSAGE value="chore: remove unnecessary prop" />
|
||||||
<MESSAGE value="fix: compute flow" />
|
<MESSAGE value="fix: compute flow" />
|
||||||
<MESSAGE value="feat: qr code generation init" />
|
<MESSAGE value="feat: qr code generation init" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="feat: qr code generation init" />
|
<MESSAGE value="chore: rename from Omni Tools to OmniTools" />
|
||||||
|
<MESSAGE value="fix: tools by category page title" />
|
||||||
|
<MESSAGE value="chore: use scrollY" />
|
||||||
|
<MESSAGE value="chore: remove flip x and y" />
|
||||||
|
<MESSAGE value="fix: tsc" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="fix: tsc" />
|
||||||
|
</component>
|
||||||
|
<component name="VgoProject">
|
||||||
|
<integration-enabled>false</integration-enabled>
|
||||||
|
<settings-migrated>true</settings-migrated>
|
||||||
</component>
|
</component>
|
||||||
<component name="XSLT-Support.FileAssociations.UIState">
|
<component name="XSLT-Support.FileAssociations.UIState">
|
||||||
<expand />
|
<expand />
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -8680,9 +8680,9 @@
|
|||||||
"license": "0BSD"
|
"license": "0BSD"
|
||||||
},
|
},
|
||||||
"node_modules/pdfjs-dist": {
|
"node_modules/pdfjs-dist": {
|
||||||
"version": "5.2.133",
|
"version": "5.3.31",
|
||||||
"resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-5.2.133.tgz",
|
"resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-5.3.31.tgz",
|
||||||
"integrity": "sha512-abE6ZWDxztt+gGFzfm4bX2ggfxUk9wsDEoFzIJm9LozaY3JdXR7jyLK4Bjs+XLXplCduuWS1wGhPC4tgTn/kzg==",
|
"integrity": "sha512-EhPdIjNX0fcdwYQO+e3BAAJPXt+XI29TZWC7COhIXs/K0JHcUt1Gdz1ITpebTwVMFiLsukdUZ3u0oTO7jij+VA==",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=20.16.0 || >=22.3.0"
|
"node": ">=20.16.0 || >=22.3.0"
|
||||||
|
|||||||
@@ -8,12 +8,14 @@ export default function ResultFooter({
|
|||||||
handleDownload,
|
handleDownload,
|
||||||
handleCopy,
|
handleCopy,
|
||||||
disabled,
|
disabled,
|
||||||
hideCopy
|
hideCopy,
|
||||||
|
downloadLabel = 'Download'
|
||||||
}: {
|
}: {
|
||||||
handleDownload: () => void;
|
handleDownload: () => void;
|
||||||
handleCopy: () => void;
|
handleCopy?: () => void;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
hideCopy?: boolean;
|
hideCopy?: boolean;
|
||||||
|
downloadLabel?: string;
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<Stack mt={1} direction={'row'} spacing={2}>
|
<Stack mt={1} direction={'row'} spacing={2}>
|
||||||
@@ -22,7 +24,7 @@ export default function ResultFooter({
|
|||||||
onClick={handleDownload}
|
onClick={handleDownload}
|
||||||
startIcon={<DownloadIcon />}
|
startIcon={<DownloadIcon />}
|
||||||
>
|
>
|
||||||
Save as
|
{downloadLabel}
|
||||||
</Button>
|
</Button>
|
||||||
{!hideCopy && (
|
{!hideCopy && (
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
145
src/components/result/ToolMultiFileResult.tsx
Normal file
145
src/components/result/ToolMultiFileResult.tsx
Normal file
@@ -0,0 +1,145 @@
|
|||||||
|
import {
|
||||||
|
Box,
|
||||||
|
CircularProgress,
|
||||||
|
Typography,
|
||||||
|
useTheme,
|
||||||
|
Button
|
||||||
|
} from '@mui/material';
|
||||||
|
import InputHeader from '../InputHeader';
|
||||||
|
import greyPattern from '@assets/grey-pattern.png';
|
||||||
|
import { globalInputHeight } from '../../config/uiConfig';
|
||||||
|
import ResultFooter from './ResultFooter';
|
||||||
|
|
||||||
|
export default function ToolFileResult({
|
||||||
|
title = 'Result',
|
||||||
|
value,
|
||||||
|
zipFile,
|
||||||
|
loading,
|
||||||
|
loadingText
|
||||||
|
}: {
|
||||||
|
title?: string;
|
||||||
|
value: File[];
|
||||||
|
zipFile?: File | null;
|
||||||
|
loading?: boolean;
|
||||||
|
loadingText?: string;
|
||||||
|
}) {
|
||||||
|
const theme = useTheme();
|
||||||
|
|
||||||
|
const getFileType = (
|
||||||
|
file: File
|
||||||
|
): 'image' | 'video' | 'audio' | 'pdf' | 'unknown' => {
|
||||||
|
if (file.type.startsWith('image/')) return 'image';
|
||||||
|
if (file.type.startsWith('video/')) return 'video';
|
||||||
|
if (file.type.startsWith('audio/')) return 'audio';
|
||||||
|
if (file.type.startsWith('application/pdf')) return 'pdf';
|
||||||
|
return 'unknown';
|
||||||
|
};
|
||||||
|
|
||||||
|
const handleDownload = (file: File) => {
|
||||||
|
const url = URL.createObjectURL(file);
|
||||||
|
const a = document.createElement('a');
|
||||||
|
a.href = url;
|
||||||
|
a.download = file.name;
|
||||||
|
document.body.appendChild(a);
|
||||||
|
a.click();
|
||||||
|
document.body.removeChild(a);
|
||||||
|
URL.revokeObjectURL(url);
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Box>
|
||||||
|
<InputHeader title={title} />
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
width: '100%',
|
||||||
|
height: globalInputHeight,
|
||||||
|
overflowY: 'auto',
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
gap: 2,
|
||||||
|
border: 1,
|
||||||
|
borderRadius: 2,
|
||||||
|
boxShadow: '5',
|
||||||
|
bgcolor: 'background.paper',
|
||||||
|
alignItems: 'center',
|
||||||
|
p: 2
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{loading ? (
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
alignItems: 'center',
|
||||||
|
justifyContent: 'center',
|
||||||
|
height: globalInputHeight
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CircularProgress />
|
||||||
|
<Typography variant="body2" sx={{ mt: 2 }}>
|
||||||
|
{loadingText}... This may take a moment.
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
) : (
|
||||||
|
value.length > 0 &&
|
||||||
|
value.map((file, idx) => {
|
||||||
|
const preview = URL.createObjectURL(file);
|
||||||
|
const fileType = getFileType(file);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Box
|
||||||
|
key={idx}
|
||||||
|
sx={{
|
||||||
|
backgroundImage:
|
||||||
|
fileType === 'image' && theme.palette.mode !== 'dark'
|
||||||
|
? `url(${greyPattern})`
|
||||||
|
: 'none',
|
||||||
|
p: 1,
|
||||||
|
border: '1px solid #ddd',
|
||||||
|
borderRadius: 2,
|
||||||
|
display: 'flex',
|
||||||
|
flexDirection: 'column',
|
||||||
|
alignItems: 'center'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{fileType === 'image' && (
|
||||||
|
<img
|
||||||
|
src={preview}
|
||||||
|
alt={`Preview ${idx}`}
|
||||||
|
style={{ maxWidth: '100%', maxHeight: 300 }}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{fileType === 'video' && (
|
||||||
|
<video src={preview} controls style={{ maxWidth: '100%' }} />
|
||||||
|
)}
|
||||||
|
{fileType === 'audio' && (
|
||||||
|
<audio src={preview} controls style={{ width: '100%' }} />
|
||||||
|
)}
|
||||||
|
{fileType === 'pdf' && (
|
||||||
|
<iframe src={preview} width="100%" height="400px" />
|
||||||
|
)}
|
||||||
|
{fileType === 'unknown' && (
|
||||||
|
<Typography>File ready. Click below to download.</Typography>
|
||||||
|
)}
|
||||||
|
<Button
|
||||||
|
onClick={() => handleDownload(file)}
|
||||||
|
size="small"
|
||||||
|
sx={{ mt: 1 }}
|
||||||
|
variant="contained"
|
||||||
|
>
|
||||||
|
Download {file.name}
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
})
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
|
<ResultFooter
|
||||||
|
downloadLabel={'Download All as ZIP'}
|
||||||
|
hideCopy
|
||||||
|
disabled={!zipFile}
|
||||||
|
handleDownload={() => zipFile && handleDownload(zipFile)}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { tool as pdfPdfToPng } from './pdf-to-png/meta';
|
||||||
import { tool as pdfRotatePdf } from './rotate-pdf/meta';
|
import { tool as pdfRotatePdf } from './rotate-pdf/meta';
|
||||||
import { meta as splitPdfMeta } from './split-pdf/meta';
|
import { meta as splitPdfMeta } from './split-pdf/meta';
|
||||||
import { meta as mergePdf } from './merge-pdf/meta';
|
import { meta as mergePdf } from './merge-pdf/meta';
|
||||||
@@ -12,5 +13,6 @@ export const pdfTools: DefinedTool[] = [
|
|||||||
compressPdfTool,
|
compressPdfTool,
|
||||||
protectPdfTool,
|
protectPdfTool,
|
||||||
mergePdf,
|
mergePdf,
|
||||||
pdfToEpub
|
pdfToEpub,
|
||||||
|
pdfPdfToPng
|
||||||
];
|
];
|
||||||
|
|||||||
70
src/pages/tools/pdf/pdf-to-png/index.tsx
Normal file
70
src/pages/tools/pdf/pdf-to-png/index.tsx
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
import { useState } from 'react';
|
||||||
|
import ToolContent from '@components/ToolContent';
|
||||||
|
import ToolPdfInput from '@components/input/ToolPdfInput';
|
||||||
|
import { ToolComponentProps } from '@tools/defineTool';
|
||||||
|
import { convertPdfToPngImages } from './service';
|
||||||
|
import ToolMultiFileResult from '@components/result/ToolMultiFileResult';
|
||||||
|
|
||||||
|
type ImagePreview = {
|
||||||
|
blob: Blob;
|
||||||
|
url: string;
|
||||||
|
filename: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function PdfToPng({ title }: ToolComponentProps) {
|
||||||
|
const [input, setInput] = useState<File | null>(null);
|
||||||
|
const [images, setImages] = useState<ImagePreview[]>([]);
|
||||||
|
const [zipBlob, setZipBlob] = useState<File | null>(null);
|
||||||
|
const [loading, setLoading] = useState(false);
|
||||||
|
|
||||||
|
const compute = async (_: {}, file: File | null) => {
|
||||||
|
if (!file) return;
|
||||||
|
setLoading(true);
|
||||||
|
setImages([]);
|
||||||
|
setZipBlob(null);
|
||||||
|
try {
|
||||||
|
const { images, zipFile } = await convertPdfToPngImages(file);
|
||||||
|
setImages(images);
|
||||||
|
setZipBlob(zipFile);
|
||||||
|
} catch (err) {
|
||||||
|
console.error('Conversion failed:', err);
|
||||||
|
} finally {
|
||||||
|
setLoading(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ToolContent
|
||||||
|
title={title}
|
||||||
|
input={input}
|
||||||
|
setInput={setInput}
|
||||||
|
initialValues={{}}
|
||||||
|
compute={compute}
|
||||||
|
inputComponent={
|
||||||
|
<ToolPdfInput
|
||||||
|
value={input}
|
||||||
|
onChange={setInput}
|
||||||
|
accept={['application/pdf']}
|
||||||
|
title="Upload a PDF"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
resultComponent={
|
||||||
|
<ToolMultiFileResult
|
||||||
|
title="Converted PNG Pages"
|
||||||
|
value={images.map((img) => {
|
||||||
|
return new File([img.blob], img.filename, { type: 'image/png' });
|
||||||
|
})}
|
||||||
|
zipFile={zipBlob}
|
||||||
|
loading={loading}
|
||||||
|
loadingText="Converting PDF pages"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
getGroups={null}
|
||||||
|
toolInfo={{
|
||||||
|
title: 'Convert PDF pages into PNG images',
|
||||||
|
description:
|
||||||
|
'Upload your PDF and get each page rendered as a high-quality PNG. You can preview, download individually, or get all images in a ZIP.'
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
}
|
||||||
14
src/pages/tools/pdf/pdf-to-png/meta.ts
Normal file
14
src/pages/tools/pdf/pdf-to-png/meta.ts
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import { defineTool } from '@tools/defineTool';
|
||||||
|
import { lazy } from 'react';
|
||||||
|
|
||||||
|
export const tool = defineTool('pdf', {
|
||||||
|
name: 'PDF to PNG',
|
||||||
|
path: 'pdf-to-png',
|
||||||
|
icon: 'mdi:image-multiple', // Iconify icon ID
|
||||||
|
description: 'Transform PDF documents into PNG panels.',
|
||||||
|
shortDescription: 'Convert PDF into PNG images',
|
||||||
|
keywords: ['pdf', 'png', 'convert', 'image', 'extract', 'pages'],
|
||||||
|
longDescription:
|
||||||
|
'Upload a PDF and convert each page into a high-quality PNG image directly in your browser. This tool is ideal for extracting visual content or sharing individual pages. No data is uploaded — everything runs locally.',
|
||||||
|
component: lazy(() => import('./index'))
|
||||||
|
});
|
||||||
51
src/pages/tools/pdf/pdf-to-png/service.ts
Normal file
51
src/pages/tools/pdf/pdf-to-png/service.ts
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
import * as pdfjsLib from 'pdfjs-dist';
|
||||||
|
import pdfjsWorker from 'pdfjs-dist/build/pdf.worker.min?url';
|
||||||
|
import JSZip from 'jszip';
|
||||||
|
|
||||||
|
pdfjsLib.GlobalWorkerOptions.workerSrc = pdfjsWorker;
|
||||||
|
|
||||||
|
type ImagePreview = {
|
||||||
|
blob: Blob;
|
||||||
|
url: string;
|
||||||
|
filename: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export async function convertPdfToPngImages(pdfFile: File): Promise<{
|
||||||
|
images: ImagePreview[];
|
||||||
|
zipFile: File;
|
||||||
|
}> {
|
||||||
|
const arrayBuffer = await pdfFile.arrayBuffer();
|
||||||
|
const pdf = await pdfjsLib.getDocument({ data: arrayBuffer }).promise;
|
||||||
|
const zip = new JSZip();
|
||||||
|
const images: ImagePreview[] = [];
|
||||||
|
|
||||||
|
for (let i = 1; i <= pdf.numPages; i++) {
|
||||||
|
const page = await pdf.getPage(i);
|
||||||
|
const viewport = page.getViewport({ scale: 2 });
|
||||||
|
|
||||||
|
const canvas = document.createElement('canvas');
|
||||||
|
const context = canvas.getContext('2d')!;
|
||||||
|
canvas.width = viewport.width;
|
||||||
|
canvas.height = viewport.height;
|
||||||
|
|
||||||
|
await page.render({ canvasContext: context, viewport }).promise;
|
||||||
|
|
||||||
|
const blob = await new Promise<Blob>((resolve) =>
|
||||||
|
canvas.toBlob((b) => b && resolve(b), 'image/png')
|
||||||
|
);
|
||||||
|
|
||||||
|
const filename = `page-${i}.png`;
|
||||||
|
const url = URL.createObjectURL(blob);
|
||||||
|
images.push({ blob, url, filename });
|
||||||
|
zip.file(filename, blob);
|
||||||
|
}
|
||||||
|
|
||||||
|
const zipBuffer = await zip.generateAsync({ type: 'arraybuffer' });
|
||||||
|
const zipFile = new File(
|
||||||
|
[zipBuffer],
|
||||||
|
pdfFile.name.replace(/\.pdf$/i, '-pages.zip'),
|
||||||
|
{ type: 'application/zip' }
|
||||||
|
);
|
||||||
|
|
||||||
|
return { images, zipFile };
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user