Webui is alright, might release
This commit is contained in:
parent
795ae82439
commit
e87574227e
4 changed files with 14 additions and 7 deletions
3
Makefile
3
Makefile
|
|
@ -1,6 +1,7 @@
|
|||
OPENSSL_VERSION=3.1.1
|
||||
|
||||
all: sign-release sign-debug
|
||||
# I'm lazy to type "webui-build" so made it default
|
||||
all: webui-build
|
||||
|
||||
@PHONY: webui-dev
|
||||
webui-dev:
|
||||
|
|
|
|||
6
TODO.md
6
TODO.md
|
|
@ -4,8 +4,10 @@
|
|||
- [x] use some concurrent hashmap e.g. flurry or dashmap
|
||||
- [x] tracing instead of logging. Debugging peers: RUST_LOG=[{peer=.*}]=debug
|
||||
test-log for tests
|
||||
- [ ] reopen read only is bugged:
|
||||
expected to be able to write to disk: error writing to file 0 (""The.Creator.2023.D.AMZN.WEB-DLRip.1.46Gb.MegaPeer.avi"")
|
||||
- [x] reopen read only is bugged
|
||||
- [ ] initializing
|
||||
- [ ] blocks the whole process. Need to break it up. On slower devices (rpi) just hangs for a good while
|
||||
- [ ] initilizating torrents should be visible right away
|
||||
|
||||
someday:
|
||||
- [ ] cancellation from the client-side for the lib (i.e. stop the torrent manager)
|
||||
2
crates/librqbit/webui/dist/app.js
vendored
2
crates/librqbit/webui/dist/app.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -194,8 +194,12 @@ const TorrentsList = (props: { torrents: Array<TorrentId>, loading: boolean }) =
|
|||
if (props.torrents === null && props.loading) {
|
||||
return <Spinner />
|
||||
}
|
||||
let torrents = props.torrents === null ? [] : props.torrents;
|
||||
if (torrents.length === 0) {
|
||||
// The app either just started, or there was an error loading torrents.
|
||||
if (props.torrents === null) {
|
||||
return <></>
|
||||
}
|
||||
|
||||
if (props.torrents.length === 0) {
|
||||
return (
|
||||
<div className="text-center">
|
||||
<p>No existing torrents found. Add them through buttons below.</p>
|
||||
|
|
@ -204,7 +208,7 @@ const TorrentsList = (props: { torrents: Array<TorrentId>, loading: boolean }) =
|
|||
}
|
||||
return (
|
||||
<div>
|
||||
{torrents.map((t: TorrentId) =>
|
||||
{props.torrents.map((t: TorrentId) =>
|
||||
<Torrent key={t.id} torrent={t} />
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue