Commit graph

17 commits

Author SHA1 Message Date
Igor Katson
f9674971a8
Run tsc as part of build 2024-08-15 15:25:05 +01:00
Igor Katson
f0c882deb7
trying to fix post build 2024-08-12 22:45:51 +01:00
Igor Katson
5eb01ac226
Ability to change the list of files at any time, including through UI (#115)
* Now can update the list of files without pausing/unpausing

* Shrink a few functions

* Reopen write when updating files

* Todos

* opened_file abstraction

* iter_pieces_within iterator

* Simplify iter_pieces_within

* Simplify iter_pieces_within

* Add "iter_file_details"

* temporarily broken: readonly by default

* Live torrent - reopen files

* Reopen files after changing the list

* Now reopening files read only when they are completed

* Fix a bug in opened_file.rs

* update todos

* update help

* Reconnect all peers that are idling

* Add a couple fields to OpenedFile

* Add a couple fields to OpenedFile

* Small cleanups - use the new iterator where possible

* size_of_piece_in_file function

* Updating have

* Include file progress

* Almost nothing

* ugly progress bars

* bad UI, saving

* its not so bad

* Works now

* update progress bar a bit

* Reopen read-only on pause

* Zero bytes isnt too bad! Doesnt break anything

* fix per file progress bars

* progress bar not as ugly anymore?

* ui tweaks

* fix a react bug

* TODO.md update

* Fix js + TODOs

* Compute per-file progress on init

* Fix stats updating live

* Nothing

* Nothing

* cleanup ui a bit

* Nothing

* Final fixes

* Trying to fix rust 1.73

* Sorting filenames

* remove unnecessary indentation

* Remove unnecessary comment
2024-04-06 09:20:03 +01:00
Igor Katson
1cc8c6ba85
Update npm deps 2024-02-26 10:15:28 +00:00
Igor Katson
e6ef3ff23f
1/n Use zustand to reduce re-renders 2023-12-17 19:27:22 +00:00
Igor Katson
50fc7f2f01
Rewrite all styles to tailwind CSS from Bootstrap by @arccik (#58)
* add tailwindcss

* add header component with logo and add torrent buttons

* remove bootstrap from few files replace it with tailwindcss classes, add card which diplay all nessesarry information about torrent and current state

* Add modal component and reorganize components folder

* add useModal hook to render modal though react portal, remove UrlPromptModal and replace it with useModal.

* add taliwindcss to Desctop app

* removed bootstrap from deleteTorrentModal replace it with useModal

* replacing bootstrap with useModal

* saving

* Saving

* Header and cards now look good

* Modals still broken...

* still doesnt work

* Finally it scrolls

* Continuing to fix bugs

* Continuing to fix bugs

* Aler

* Getting better

* Desktop doesnt work with tailwind somehow

* Desktop now works with tailwind

* Styles fully work

* (De)select all buttons

* fix alert styles

* Animate progress bar

* Progress bar + error colors

* Fix error message

* Torrent status icon (#56)

* add statusIcon component to display icon of the torrent status

* change props name and remove isDownloading variable

* Tweak styles for icon

* Tweak styles

* Update styles

---------

Co-authored-by: Artur Lozovski <arccik@gmail.com>
2023-12-14 10:37:29 +00:00
Igor Katson
29c2db1ab4
Remove symlinks in nodejs setup 2023-12-11 19:58:53 +00:00
Igor Katson
98d6a6f054
Trying to optimize logs JS code 2023-12-09 12:25:14 +00:00
Igor Katson
2b9129221d
Add vite react plugin 2023-12-07 22:51:31 +00:00
Igor Katson
d768211457
Use react-bs icons, remove bootstrap-icons css 2023-12-07 22:42:19 +00:00
Igor Katson
ec63e1cef7
setup vscode for consistent JS formatting 2023-12-07 14:11:12 +00:00
Igor Katson
21b78468a5
Fixed npm warnings 2023-12-06 01:26:33 +00:00
Igor Katson
1a6bc444d4
Get rid of junk 2023-11-22 20:58:43 +00:00
Igor Katson
3b389666d7
A bunch of UI changes 2023-11-22 19:30:23 +00:00
Igor Katson
6d97d69592
use react-bootstrap 2023-11-22 14:45:39 +00:00
Igor Katson
e5d96243d4
JS and its ecosystem is absolute garbage 2023-11-21 03:48:11 +00:00
Igor Katson
d5cf369a75
Nothing works, I dont understand modern javascript 2023-11-21 00:50:35 +00:00