Skip to content

Commit

Permalink
[ModConfig] Add GUI configuration support for multi-fragment downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
m4heshd committed Oct 28, 2023
1 parent ad7ba02 commit a4ab509
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ That's it. Now you're ready to go.

# Future improvements planned

- [x] Migrate to Vite (dev)
- [x] Support for concurrent multi-fragment download
- [ ] Ability to restart failed downloads
- [ ] Support for more architectures, including ARM-based systems
- [ ] Mobile-responsive Web UI
- [ ] Make completed files downloadable right from the UFC Ripper Web UI (hosted)
Expand Down
4 changes: 4 additions & 0 deletions src/assets/styles/overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ body {
margin-left: 10px;
}
}

.field > input:disabled + label:not(.active) {
opacity: .5;
}
26 changes: 26 additions & 0 deletions src/components/ModConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,31 @@
v-model.number="modConfig.data.curNumber"
type="number"
min="1"
:disabled="!modConfig.data.numberFiles"
>
</div>
</div>
<nav class="v-switch">
<div class="max">
<h6>Multi-fragment download</h6>
<div>Concurrently download the given number of fragments (improves download speed)</div>
</div>
<label class="switch">
<input
v-model="modConfig.data.multiFrag"
type="checkbox"
>
<span></span>
</label>
</nav>
<div class="short-text">
<span>Number of fragments:</span>
<div class="field border round small no-margin">
<input
v-model.number="modConfig.data.concurFrags"
type="number"
min="1"
:disabled="!modConfig.data.multiFrag"
>
</div>
</div>
Expand All @@ -145,6 +170,7 @@
<input
v-model="modConfig.data.dlRate"
type="text"
:disabled="!modConfig.data.throttle"
>
</div>
</div>
Expand Down

0 comments on commit a4ab509

Please sign in to comment.