Commit Graph

84 Commits

Author SHA1 Message Date
neri c1c6adc576 prefer to serve raw files over html files 2021-12-20 15:00:13 +01:00
neri 30d059b7af refactor upload requirements check into separate method 2021-12-20 11:12:09 +01:00
neri 937f0c439c add `cursor: pointer` to details summary 2021-12-20 10:48:06 +01:00
neri 48005123de increase margin-top of buttons 2021-12-20 01:06:45 +01:00
neri 2fb3b257c2 add shortlink to uploaded page 2021-12-20 01:06:28 +01:00
neri c320f87961 make copying more generic and hide when unsupported 2021-12-20 01:05:38 +01:00
neri 530ae31c77 fix font family 2021-12-10 20:31:04 +01:00
neri 424af11918 cache index.html and auth-hide.js in static directory 2021-12-08 18:54:55 +01:00
neri 6b60399c5f migrate Dockerfile away from rust-musl-builder 2021-10-26 23:40:41 +02:00
neri ff3bf42342 update to edition 2021 2021-10-26 22:30:10 +02:00
neri e568919641 provide sample docker-compose.yml 2021-10-16 00:26:05 +02:00
neri 5a933641a4 css focus styling 2021-10-16 00:22:54 +02:00
neri 95dacb20b4 fix panic when files table is empty 2021-10-16 00:22:54 +02:00
neri a065787487 limit text view to 512KiB, fix deleter sql query 2021-10-16 00:22:54 +02:00
neri dfd3387ac6 ensure file ids are unique 2021-10-16 00:22:54 +02:00
neri 2ff464915c simpify db query code 2021-10-16 00:22:54 +02:00
neri b91ef4ab80 disallow newlines in urls 2021-10-16 00:22:54 +02:00
neri 32e411a4d5 fix url view content for copying 2021-10-16 00:22:54 +02:00
neri 923574e235 add repo link and add noopener to links 2021-10-16 00:22:54 +02:00
neri 84b4c399ca add custom view for link-only text 2021-10-16 00:22:54 +02:00
neri 922663bf63 set textarea height relative to view-height 2021-10-16 00:22:54 +02:00
neri f417783821 use tree_magic_db 2021-10-16 00:22:54 +02:00
neri 8fcc4f19d2 add snippet folder to docker build 2021-10-16 00:22:54 +02:00
neri c372db6446 show limits explicitly, improve code 2021-10-16 00:22:54 +02:00
neri 31a429861d always prefer inline display when not downloading 2021-10-16 00:22:54 +02:00
neri b66b34208c license as agpl 2021-10-16 00:22:54 +02:00
neri c89c934d04 fix font-family set everywhere, changed spacings and button text size 2021-10-16 00:22:54 +02:00
neri ad4def1569 set font-family better in css 2021-10-16 00:22:54 +02:00
neri 983eafb2e1 wrap api usage in html details tag 2021-10-16 00:22:54 +02:00
neri f2dfca2b39 add error logging for internal server errors 2021-10-16 00:22:54 +02:00
neri f97b3d79be implement basic auth and additional upload limits for unauthenticated users 2021-10-16 00:22:53 +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