Commit Graph

69 Commits

Author SHA1 Message Date
neri 63fff3adf3 simpify db query code 2021-09-10 17:44:37 +02:00
neri 4396bb1b56 disallow newlines in urls 2021-09-10 01:45:12 +02:00
neri 77d00caccc fix url view content for copying 2021-09-09 23:21:13 +02:00
neri f9ceea09a5 add repo link and add noopener to links 2021-09-09 23:21:13 +02:00
neri 8367de1070 add custom view for link-only text 2021-09-09 22:18:42 +02:00
neri b3c556e86e set textarea height relative to view-height 2021-09-09 20:14:45 +02:00
neri 24692adb93 use tree_magic_db 2021-08-18 23:52:17 +02:00
neri 0bbf19d0b6 add snippet folder to docker build 2021-08-18 23:27:55 +02:00
neri 34247604db show limits explicitly, improve code 2021-08-18 23:22:50 +02:00
neri 1c7930d0c6 always prefer inline display when not downloading 2021-08-15 23:23:03 +02:00
neri 3ed85dec5a license as agpl 2021-06-28 10:09:04 +02:00
neri 02e228e71d fix font-family set everywhere, changed spacings and button text size 2021-06-28 01:22:52 +02:00
neri c1358a401b set font-family better in css 2021-06-28 01:11:10 +02:00
neri 8dbca1c6e6 wrap api usage in html details tag 2021-04-16 14:45:43 +02:00
neri 74d06f53a1 add error logging for internal server errors 2021-04-08 00:33:22 +02:00
neri 229e428de3 implement basic auth and additional upload limits for unauthenticated users 2021-04-08 00:25:20 +02:00
neri 1c43d70457 allow slash after file url 2021-04-07 13:02:46 +02:00
neri dbafc1849e update usage with delete_on_download, let it scroll on narrow screens 2021-04-04 20:29:41 +02:00
neri b8fac27511 hide copy buttons when js is not enabled
Fixes #5
2021-04-04 14:49:42 +02:00
neri e49800f05e Don't view file when delete_on_download is set
Fixes #6
2021-04-04 14:36:38 +02:00
neri 313da6b583 Always display content as text if user uploaded it as such
Fixes #8
2021-04-04 14:33:37 +02:00
neri 3bed4de127 extract more modules, fix FileKind enum names 2021-04-04 14:30:31 +02:00
neri 77fd25b787 implement delete on download, better logging and multipart parsing
a new database column was introduced for delete on download.
the model should be migrated automatically.

Fixes #4
2021-04-04 03:39:50 +02:00
neri c551f40c7a remove openssl from dependencies 2021-03-10 00:15:18 +01:00
neri 2388e2c2ce decide when to show embedded text based on mime type of file 2021-03-10 00:02:02 +01:00
neri 1d51c200d6 do mime guessing, fix MAX_UPLOAD_BYTES 2021-03-09 23:36:24 +01:00
neri 3a3174619d shorter id generation, shorten file url 2021-03-09 22:19:06 +01:00
neri 9e38960f00 update dependencies, urlencode filename 2021-03-09 20:09:41 +01:00
neri f100450796 remove unused import 2021-02-13 16:49:05 +01:00
neri 12544034af Add curl instructions, extract copy into own file 2021-02-13 16:47:04 +01:00
neri 83ea1a15c7 strip binary in docker build 2020-12-03 23:30:54 +01:00
neri 4efea5e221 improve error handling 2020-12-03 23:30:37 +01:00
neri 19ae7ff673 update dependecies 2020-09-06 16:19:51 +02:00
neri dc99b87bcc add 'copy link' button to upload view 2020-08-19 16:26:47 +02:00
neri f5a7ed4213 use ein* instead of 1 in validity dropdown 2020-08-19 16:26:14 +02:00
neri 0ec9e1f5f1 use more css vars 2020-08-19 16:25:03 +02:00
neri c9d00db39a add 404 page 2020-08-19 16:24:42 +02:00
neri 458220df47 more intuitive max file size 2020-08-13 15:32:12 +02:00
neri 86b2b2bac8 add file_id unique constraint 2020-08-13 15:32:12 +02:00
neri 6c48d97799 add dockerignore 2020-08-07 02:11:56 +02:00
neri 76fd093756 improve dockerfile dependency caching and file system structure 2020-08-04 23:43:50 +02:00
neri 2eb816134d update documentation to new environment variables 2020-08-03 02:56:42 +02:00
neri 64c2567918 append original file name to urls 2020-08-03 02:42:27 +02:00
neri b0b03f32a4 update css, fix some a11y issues 2020-08-03 02:41:36 +02:00
neri b553bd621b remove debug env var read 2020-08-03 01:30:45 +02:00
neri c57d15c7e3 rustify db url building 2020-08-03 01:28:42 +02:00
neri e3a7c5329e apply formatter 2020-08-03 01:12:42 +02:00
neri 180bc08cc5 Merge pull request 'Remove Baseurl Env var and add more flexible db config' (#3) from fionera/datatrash:master into master
Reviewed-on: https://gitea.ctdo.de/neri/datatrash/pulls/3
2020-08-02 23:12:25 +00:00
Fionera 64be9b7f0c Use actix url generator for the uploaded url 2020-08-03 00:07:16 +02:00
Fionera 3c05a725c2 Removing default env args from dockerfile 2020-08-02 14:31:48 +02:00