Commit graph

49 commits

Author SHA1 Message Date
4f3250f655 Fixed chunk database and cleaning 2024-11-07 04:17:29 -06:00
e3d727e325 Updated API docs page 2024-11-04 07:27:43 -06:00
60dd2ea421 Changed chunked upload URL to take chunk number instead of offset 2024-11-04 05:05:58 -06:00
G2
e78c61b410
Chunked uploads (#2)
* Switch database to begin using CBOR, and begin work on chunked uploads

* Chunked uploads work, no feedback to client yet

* Added poorly implemented progress for chunked uploads

* I think these methods are cursed

* Improved performance by properly limiting the number of uploads

* Properly show errors in file bars again

* Improved setup for chunk downloading, added chunk size to config

* Ran clippy, added chunk cleaner

* Ran `cargo fmt`
2024-11-03 05:47:26 -06:00
3892975fc2 Fixed clippy suggestions, ran cargo fmt 2024-10-30 11:08:53 -05:00
071b3c206c Reorganized some files for more reasonable naming 2024-10-30 11:04:22 -05:00
55bea3a770 Fixed absolute paths for footer links 2024-10-30 03:17:52 -05:00
44550eb2d7 Added bundled fonts Fira Code and Roboto 2024-10-30 03:15:33 -05:00
338d320894 Added about page, added dark mode, touched up styling 2024-10-30 01:56:04 -05:00
d4fa87e6fb Added /info/<mmid> endpoint 2024-10-29 17:16:29 -05:00
96a6b5cf9d Get file type from MIME type rather than extension 2024-10-29 16:48:57 -05:00
2848ff1f54 Compress database with lz4 and improve database handling 2024-10-29 04:33:44 -05:00
7033220688 Improve resource loading on pages 2024-10-29 00:35:14 -05:00
07487415c1 Add paste event to upload options 2024-10-29 00:17:34 -05:00
0f780d027d Only save database on clean and shutdown 2024-10-28 03:30:36 -05:00
a2148d4227 Minor tweaks to the API docs 2024-10-28 02:57:33 -05:00
24253020f4 Shortened API link name 2024-10-28 02:49:11 -05:00
2f70967834 Add API documentation page 2024-10-28 02:45:43 -05:00
4b07ba4c46 Clean up code in various ways 2024-10-28 00:39:10 -05:00
d0761d9e69 Cleaned up clippy suggestions, ran cargo fmt 2024-10-27 17:38:45 -05:00
ac41059f0b Improve shortlink behavior 2024-10-27 17:33:43 -05:00
769bd72542 Improved URL lookup handling 2024-10-27 06:53:04 -05:00
aaaea89502 Switched to better database lookup system 2024-10-27 06:31:00 -05:00
ebada71e7a Removed unecessary file 2024-10-27 05:40:48 -05:00
73b8398f4a Reworked database to store things smarter 2024-10-27 05:40:11 -05:00
e05f0373b3 Ran cargo fmt 2024-10-27 02:03:55 -05:00
159300a0d0 Merge branch 'main' of https://github.com/G2-Games/confetti-box 2024-10-26 22:41:53 -05:00
d66d1145fd Added failure constructor for response 2024-10-26 22:41:42 -05:00
fa8d4bc289 Drag and drop works 2024-10-25 13:17:04 -05:00
46eaf5b4fd Break out main into more files for organization 2024-10-24 23:29:53 -05:00
2fac064c38 Properly use blake3 mmap 2024-10-24 23:00:23 -05:00
4809be56a9 Improved UI interactions with things 2024-10-24 12:58:11 -05:00
094fb67649 Improved progress bars and element alignment while uploading 2024-10-24 11:40:07 -05:00
668869608a Moved web stuff to web folder 2024-10-24 09:43:28 -05:00
84e2e4787d Create directories if they do not exist 2024-10-24 02:47:39 -05:00
eb9db0f546 Fixed relative paths. Fixed multi-file uploading. Fixed config application. 2024-10-24 02:29:49 -05:00
e356e9377d Added ability to upload multiple files at the same time and see progress 2024-10-23 23:27:26 -05:00
2f785d78c1 Moved time selection buttons mostly to the backend 2024-10-23 22:43:11 -05:00
34142ba721 Properly set up time buttons on page 2024-10-23 12:22:54 -05:00
26f1f70a47 Improved CSS and JS a bit more 2024-10-23 04:50:33 -05:00
4f47efbb27 Improve duration handling, remove CSS for now 2024-10-23 04:28:57 -05:00
aee0cc9892 Improved handling, added more routes 2024-10-23 03:55:40 -05:00
80a4c767a8 Minor tweaks 2024-10-22 13:10:14 -05:00
2c7a955f64 Added timed expiry to files 2024-10-22 05:03:56 -05:00
676fe5f1d7 Database works, uploading now shows the resulting link to the client 2024-10-22 03:07:28 -05:00
af925677f9 Added database for backend operations 2024-10-21 16:28:10 -05:00
0681af1633 Added blake3 hashing of uploaded files 2024-10-21 13:48:06 -05:00
8bb4e5fac4 Improved everything, still only uploads 2024-10-21 05:05:19 -05:00
1809f13f31 Initial commit 2024-10-21 03:12:58 -05:00