Webui is alright, might release

This commit is contained in:
Igor Katson 2023-11-21 13:47:48 +00:00
parent 795ae82439
commit e87574227e
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
4 changed files with 14 additions and 7 deletions

View file

@ -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:

View file

@ -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)

File diff suppressed because one or more lines are too long

View file

@ -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>