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
|
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
|
@PHONY: webui-dev
|
||||||
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] use some concurrent hashmap e.g. flurry or dashmap
|
||||||
- [x] tracing instead of logging. Debugging peers: RUST_LOG=[{peer=.*}]=debug
|
- [x] tracing instead of logging. Debugging peers: RUST_LOG=[{peer=.*}]=debug
|
||||||
test-log for tests
|
test-log for tests
|
||||||
- [ ] reopen read only is bugged:
|
- [x] 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"")
|
- [ ] 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:
|
someday:
|
||||||
- [ ] cancellation from the client-side for the lib (i.e. stop the torrent manager)
|
- [ ] 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) {
|
if (props.torrents === null && props.loading) {
|
||||||
return <Spinner />
|
return <Spinner />
|
||||||
}
|
}
|
||||||
let torrents = props.torrents === null ? [] : props.torrents;
|
// The app either just started, or there was an error loading torrents.
|
||||||
if (torrents.length === 0) {
|
if (props.torrents === null) {
|
||||||
|
return <></>
|
||||||
|
}
|
||||||
|
|
||||||
|
if (props.torrents.length === 0) {
|
||||||
return (
|
return (
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<p>No existing torrents found. Add them through buttons below.</p>
|
<p>No existing torrents found. Add them through buttons below.</p>
|
||||||
|
|
@ -204,7 +208,7 @@ const TorrentsList = (props: { torrents: Array<TorrentId>, loading: boolean }) =
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{torrents.map((t: TorrentId) =>
|
{props.torrents.map((t: TorrentId) =>
|
||||||
<Torrent key={t.id} torrent={t} />
|
<Torrent key={t.id} torrent={t} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue