feat(problem-data-upload): add client-side zipping for multiple files/folders upload#445
Open
whlongg wants to merge 3 commits intoVNOI-Admin:masterfrom
Open
feat(problem-data-upload): add client-side zipping for multiple files/folders upload#445whlongg wants to merge 3 commits intoVNOI-Admin:masterfrom
whlongg wants to merge 3 commits intoVNOI-Admin:masterfrom
Conversation
…bility - Consolidated constants, regex patterns, and configuration into clear sections. - Grouped utility functions into small namespaces (FileUtils, ZipUtils). - Replaced repetitive code and magic numbers with reusable helpers. - Added descriptive section comments for easier navigation. - Switched var → const/let for modern JS practice. - Preserved all existing functionality and server-side pipeline.
Contributor
Author
|
@leduythuccs The branch has been updated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactored the
problem-data-uploadtemplate JavaScript for improved clarity and maintainability without altering functionality or server-side behavior.Changes Made
FileUtils,ZipUtils) to avoid clutter.// === ZIP HANDLING ===,// === TABLE MANIPULATION ===, etc.) for better navigation.var→const/letfor modern JavaScript best practices.Data file (file, folder, or zip archive),Hold Shift while clicking to select a folder).Verification Steps
.in/.outfiles → client zips and submits successfully.__MACOSX,.DS_Store) are ignored.