feat(ui): modernize frontend layout and mobile experience#683
Open
deusyu wants to merge 4 commits into
Open
Conversation
a107413 to
5dcd0b0
Compare
5dcd0b0 to
6a29c62
Compare
normalizePercent treated values <=1 as a 0-1 ratio and multiplied by 100, so a real 1% became 100% and Math.max() then pinned it at 100 for the rest of the download. Clamp to [0,100] instead.
The folder field defaulted to the absolute local download dir and submitted it as the task folder. The Go core does filepath.Join(localDir, folder), so an absolute folder double-nests the save path (localDir/localDir/file). Default folder to empty (= download-dir root); show the dir as a placeholder hint only.
/share?url=<link>&name=&type=&folder= opens the prefilled New Download modal, then redirects to the list. Auto-guesses the source type (bilibili/youtube/ m3u8/direct) from the URL. Enables one-tap 'share a link into MediaGo' from a bookmarklet/extension, and (where the host can route a system share to an app URL) the mobile share sheet.
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.
Summary
This is intentionally a larger UI modernization pass. I am happy to split or adjust the scope if that is preferred by maintainers.
Verification
./node_modules/.bin/tsdowninpackages/shared/commonAPP_TARGET=server NODE_ENV=production ./node_modules/.bin/vite buildinapps/uiAPP_TARGET=electron NODE_ENV=production ./node_modules/.bin/vite buildinapps/uioxlint --fix/oxfmt --writecompleted during commitNotes