-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User Friendly Merge File Selection #1204
User Friendly Merge File Selection #1204
Conversation
…he merging process
UI has been updated can you confirm this works with latest updates |
Yes I have just tested it locally with the new UI (looks very nice btw :) ) and it still works! |
if (duplicateFiles.length > 1) { | ||
const warning = document.createElement("span"); | ||
warning.className = "duplicate-warning"; | ||
warning.textContent = "(Duplicate)"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be translatable and dynamic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will add as todo before next release
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Somehow did not think about that. I can try and do that as well.
…0.24.5 ) (#3716) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/stirling-tools/s-pdf](https://github.com/Stirling-Tools/Stirling-PDF) | patch | `0.24.4` -> `0.24.5` | --- ### Release Notes <details> <summary>Stirling-Tools/Stirling-PDF (ghcr.io/stirling-tools/s-pdf)</summary> ### [`v0.24.5`](https://github.com/Stirling-Tools/Stirling-PDF/releases/tag/v0.24.5): 0.24.5 reverse proxy fix and czech added [Compare Source](https://github.com/Stirling-Tools/Stirling-PDF/compare/v0.24.4...v0.24.5) Czech language added Reverse proxy fix for non security mode User Friendly Merge File Selection (needs a translation but reverse proxy release is more urgent) #### What's Changed - Add missing Turkish translation by [@​limonkufu](https://github.com/limonkufu) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1255](https://github.com/Stirling-Tools/Stirling-PDF/pull/1255) - Czech translations by [@​Houba28](https://github.com/Houba28) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1263](https://github.com/Stirling-Tools/Stirling-PDF/pull/1263) - Amended typo: trailing space by [@​zallaevan](https://github.com/zallaevan) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1256](https://github.com/Stirling-Tools/Stirling-PDF/pull/1256) - User Friendly Merge File Selection by [@​t71rs](https://github.com/t71rs) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1204](https://github.com/Stirling-Tools/Stirling-PDF/pull/1204) - Updated ReadMe Screenshot by [@​t71rs](https://github.com/t71rs) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1272](https://github.com/Stirling-Tools/Stirling-PDF/pull/1272) - Add in oauth scope environment variable to docker-compose example by [@​pcanham](https://github.com/pcanham) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1265](https://github.com/Stirling-Tools/Stirling-PDF/pull/1265) - cleanup html for reverse proxy by [@​Frooodle](https://github.com/Frooodle) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1274](https://github.com/Stirling-Tools/Stirling-PDF/pull/1274) - 💾 Update Version by [@​github-actions](https://github.com/github-actions) in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1275](https://github.com/Stirling-Tools/Stirling-PDF/pull/1275) #### New Contributors - [@​limonkufu](https://github.com/limonkufu) made their first contribution in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1255](https://github.com/Stirling-Tools/Stirling-PDF/pull/1255) - [@​Houba28](https://github.com/Houba28) made their first contribution in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1263](https://github.com/Stirling-Tools/Stirling-PDF/pull/1263) - [@​zallaevan](https://github.com/zallaevan) made their first contribution in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1256](https://github.com/Stirling-Tools/Stirling-PDF/pull/1256) - [@​pcanham](https://github.com/pcanham) made their first contribution in [https://github.com/Stirling-Tools/Stirling-PDF/pull/1265](https://github.com/Stirling-Tools/Stirling-PDF/pull/1265) **Full Changelog**: Stirling-Tools/Stirling-PDF@v0.24.4...v0.24.5 </details> <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zNzQuMyIsInVwZGF0ZWRJblZlciI6IjM3LjM3NC4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZS9jb250YWluZXIiLCJ0eXBlL3BhdGNoIl19--> Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
This has broken logic for ALL other form inputs with files, now each forms inputs doesnt wipe the previous causing very bad usage for others |
reverting until it can be fixed! :) |
Damn I'm sorry, I will look into it and think of a solution that wont affect anything else since I quite liked this change. |
User Friendly Merge File Selction
If you had already added files to Merge them, but forgot one or more files and you went ahead and pressed the "Select Files" button, all previously selected Files were deleted.
I fixed that and made it possible to add Files "File by File". Additionally if someone should add the same File twice, a duplicate warning is now displayed, which is removed, if the duplicates are removed. Merging duplicates is possibel though if someone should want to do that. To work with duplicates I added a unique id for each added FIle in the merging process. This makes it possible to differ between files that have the same Name.
Closes #1174
Checklist:
Contributor License Agreement
By submitting this pull request, I acknowledge and agree that my contributions will be included in Stirling-PDF and that they can be relicensed in the future under the MPL 2.0 (Mozilla Public License Version 2.0) license.
(This does not change the general open-source nature of Stirling-PDF, simply moving from one license to another license)