Volkor
f235b47cde
fix: replace unwrap with something more verbose
format, check and test / cargo fmt (push) Failing after 3m14s
Details
format, check and test / cargo test (push) Failing after 3m6s
Details
2023-08-09 23:35:54 +10:00
Volkor
ab3dbb6adf
forgot one
format, check and test / cargo fmt (push) Failing after 2m38s
Details
format, check and test / cargo test (push) Failing after 2m45s
Details
2023-07-08 00:12:19 +10:00
Volkor
596f36164d
FIX: clean up logging a bunch more
format, check and test / cargo fmt (push) Failing after 2m32s
Details
format, check and test / cargo test (push) Failing after 2m41s
Details
2023-07-08 00:09:25 +10:00
Volkor
12f99692fc
fix: improve logging
format, check and test / cargo fmt (push) Failing after 2m43s
Details
format, check and test / cargo test (push) Failing after 2m52s
Details
2023-07-07 23:54:25 +10:00
Volkor
3438a6552f
fix: add example sharex config, and add /my_files url on main page
format, check and test / cargo fmt (push) Failing after 3m17s
Details
format, check and test / cargo test (push) Has started running
Details
2023-07-07 23:38:51 +10:00
Volkor
e70bd1c353
run cargofmt
format, check and test / cargo fmt (push) Failing after 2m26s
Details
format, check and test / cargo test (push) Failing after 27m57s
Details
2023-07-07 23:04:39 +10:00
Volkor
d70bdb3d50
feat: Add files back into database
format, check and test / cargo fmt (push) Failing after 3m6s
Details
format, check and test / cargo test (push) Failing after 2m49s
Details
2023-07-07 22:45:55 +10:00
Volkor
61fddaee1c
feat: Add better logging to add_file fn
2023-07-07 22:45:03 +10:00
Volkor
81d45ffadf
FIX: crashing on files smaller than 2048 bytes
2023-07-07 22:43:28 +10:00
Volkor
8c4cebfe69
fix: cleaning up a few clippy warnings
2023-06-28 00:36:08 +10:00
Volkor
1ccc82cac0
feat: replace config with figment and a bunch more
...
format, check and test / cargo fmt (push) Failing after 3m4s
Details
format, check and test / cargo test (push) Failing after 3m44s
Details
I also replaced magic-tree-mini with the full magic lib, as it's better.
I also updated all the crates.
oh yeah I added a robots.txt
I kinda started working on something else, then did another thing half way through
then I did another thing.
audron is a champion, a true hero.
2023-06-28 00:25:33 +10:00
Volkor
567dcc3c03
refactor: cleaning up random comments and newlines
...
format, check and test / cargo fmt (push) Failing after 2m33s
Details
format, check and test / cargo test (push) Failing after 1m38s
Details
This is mostly a test to see if I fixed git being REALLY slow at uploading over ssh
2023-06-26 10:54:15 +10:00
Volkor
1dfdf62960
fix: OOPSIE i forgor a )
format, check and test / cargo fmt (push) Failing after 2m15s
Details
format, check and test / cargo test (push) Failing after 1m20s
Details
2023-06-26 08:09:19 +10:00
Volkor
8e4b4d6ceb
fix: list the files in a more sensible way
...
format, check and test / cargo fmt (push) Failing after 2m25s
Details
format, check and test / cargo test (push) Failing after 1m31s
Details
it even generates an nice error!
2023-06-26 08:04:21 +10:00
Volkor
2b7251fd10
docs: remove old log from example
2023-06-26 08:02:10 +10:00
Volkor
ee7998f81f
fix: remove comma breaking schema.sql
2023-06-26 06:55:09 +10:00
Volkor
68e3ed37be
fix: log error when invalid template is rendered
2023-06-26 06:54:38 +10:00
Volkor
fa277d7b4a
add alternative javascrip mimetype, just in case
2023-06-26 06:53:59 +10:00
Volkor
dfdc5e14a2
remove ephemeral db, and config
format, check and test / cargo fmt (push) Failing after 2m30s
Details
format, check and test / cargo test (push) Failing after 1m47s
Details
2023-06-26 05:45:55 +10:00
Volkor
82416edcf7
docs: fix up the README.md a bit
format, check and test / cargo fmt (push) Successful in 2m47s
Details
format, check and test / cargo test (push) Successful in 1m36s
Details
2023-06-26 04:32:49 +10:00
Volkor
143769c1dd
ci: remove audit because it was useless anyway
...
It never worked from the start, I've never even run the command locally.
2023-06-26 04:32:26 +10:00
Volkor
e7dc20d416
fix: Change StatusCode::UNAUTHORIZED to ::OK
...
format, check and test / cargo fmt (push) Successful in 2m49s
Details
format, check and test / cargo test (push) Successful in 1m45s
Details
Closes #38 - uptime-kuma was detecting downtime because of the 401 code.
2023-06-26 04:27:02 +10:00
Volkor
ba80f4cdd6
Merge pull request 'exhail's code Review' ( #28 ) from review into main
...
Security audit / audit (push) Failing after 1m11s
Details
format, check and test / cargo fmt (push) Successful in 3m28s
Details
format, check and test / cargo test (push) Successful in 3m58s
Details
Reviewed-on: #28
2023-06-25 18:03:45 +00:00
Volkor
89af160a12
add /my_files endpoint
...
Security audit / audit (push) Failing after 47s
Details
format, check and test / cargo fmt (push) Successful in 3m38s
Details
format, check and test / cargo test (push) Successful in 4m38s
Details
Security audit / audit (pull_request) Failing after 47s
Details
format, check and test / cargo fmt (pull_request) Successful in 2m35s
Details
format, check and test / cargo test (pull_request) Successful in 1m47s
Details
This shows all files uploaded by the IP accessing.
2023-05-30 01:19:50 +10:00
Volkor
823447324b
Calculate mimetype using tree_magic_mini
Security audit / audit (push) Failing after 1m15s
Details
format, check and test / cargo fmt (push) Successful in 3m43s
Details
format, check and test / cargo test (push) Successful in 5m2s
Details
Security audit / audit (pull_request) Failing after 51s
Details
format, check and test / cargo fmt (pull_request) Successful in 3m5s
Details
format, check and test / cargo test (pull_request) Successful in 2m28s
Details
2023-05-29 18:10:23 +10:00
Volkor
70ecc1bc6d
Merge pull request 'Change var to let for all variables' ( #35 ) from rdqsr/Ephemeral:patch-2304270753 into review
...
format, check and test / cargo fmt (push) Successful in 6m6s
Details
format, check and test / cargo test (push) Successful in 7m14s
Details
Security audit / audit (pull_request) Failing after 1m10s
Details
format, check and test / cargo fmt (pull_request) Successful in 3m53s
Details
format, check and test / cargo test (pull_request) Successful in 2m15s
Details
Reviewed-on: #35
2023-05-07 14:33:12 +00:00
Andrew Hall
0838bbe1d7
Change var to let for all variables
2023-04-27 07:59:49 +00:00
Volkor
e6858fa089
Merge pull request 'Fix for scrollbar issue.' ( #34 ) from rdqsr/Ephemeral:scrollbar_fix into review
...
Reviewed-on: #34
2023-04-26 15:28:26 +00:00
Andrew Hall
7d31d6a492
Fix for scrollbar issue.
2023-04-26 15:23:33 +00:00
Volkor
d0b20b7222
WHOOPS
2023-04-27 01:02:55 +10:00
Volkor
3562deca01
spelding mistake
2023-04-27 00:50:36 +10:00
Volkor
0c38a53859
Update README.md to reflect latest PR
2023-04-27 00:21:33 +10:00
Volkor
1168af3717
Merge pull request 'File upload progress' ( #32 ) from rdqsr/Ephemeral:upload_progress into review
...
Reviewed-on: #32
2023-04-26 14:18:55 +00:00
Andrew Hall
d09ff57fe4
Remove unused function.
2023-04-26 14:13:42 +00:00
Andrew Hall
16e0896a54
Add button to link page to upload another file.
2023-04-26 14:13:42 +00:00
Andrew Hall
99d65105ae
Add support for displaying file upload progress.
2023-04-26 14:13:42 +00:00
Volkor
525f31cc48
run cargo fmt
2023-04-27 00:03:18 +10:00
Volkor
286e6c419c
Actually block files from uploading
...
The refactor broke it. This time I've put it in it's own function, with unit tests
Fixes #24 (again)
2023-04-27 00:00:22 +10:00
Volkor
3783253205
fix up a few errors and run cargo fmt
2023-04-26 20:33:53 +10:00
Volkor
5f2b94c27b
oops
2023-04-25 23:35:48 +10:00
Volkor
2cc2a10b66
clean up adding file, rewrite tests, and improve generate filename
2023-03-25 23:08:15 +11:00
Volkor
4009eee8d9
overwrite content-type to fix reloading bug
...
For some reason we'd get
"image "*.png" cannot be displayed because it contains errors"
Turns out this is due to multiple content-type headers
So we've enabled "overwriting" when adding the header.
2023-03-25 20:16:08 +11:00
Volkor
9de7b7c2ba
fix crash on startup
2023-03-25 20:15:04 +11:00
Volkor
275c8a2f0a
Big cleanup, add tests, rewrite from reviews
2023-03-25 20:04:34 +11:00
Volkor
1f8b243c59
Remove clones, fix delete url, and make rendering a function
2023-03-23 18:17:45 +11:00
Volkor
9ef8b6f2b8
clean up guess_ip, template defaults
...
This cleans up the guess_ip function to use a match block instead of ifs
Templating has been cleaned up as to not break on a new domain
2023-03-22 18:38:01 +11:00
Volkor
64aab02e21
oop
2023-03-22 16:37:32 +11:00
Volkor
dbe09b9e7a
merge jobs
2023-03-22 16:30:55 +11:00
Volkor
37fac9f210
urgh
2023-03-22 16:21:05 +11:00
Volkor
3bb58abcb6
oops need to reorder!
2023-03-22 16:18:07 +11:00