Commit Graph

23 Commits

Author SHA1 Message Date
Daan Sprenkels
1dd0d17ba5 Add copy-to-clipboard button to meta page
Fixes #42.
2020-04-05 18:16:41 +02:00
Daan Sprenkels
095348d614 web: Add an example w/ upload from process output
Fixes #35
2019-12-19 23:29:09 +01:00
Daan Sprenkels
8dce4e8483 web: Indent <pre> with padding-left (no spaces)
Fixes #34
2019-12-17 23:11:43 +05:30
Daan Sprenkels
ffeb9a3362 Rename --host => --root-url 2019-12-17 15:43:32 +05:30
Daan Sprenkels
3d07acb222 Show meta page immediately after create 2019-12-17 15:33:29 +05:30
Daan Sprenkels
c46a26f8a2 web: Implement drag-and-drop upload 2019-12-16 16:21:41 +05:30
Daan Sprenkels
ca859adab1 Redirect to /meta after upload/shorten 2019-12-16 10:51:21 +05:30
Daan Sprenkels
d34ac11d5e Update metadata info view 2019-12-16 10:19:17 +05:30
Daan Sprenkels
824c6f41e2 Enable submit using web interface 2019-12-16 09:53:36 +05:30
Daan Sprenkels
0bffde1dc1 Implement --host flag to override {{.Host}}
Fixes #15
2019-12-15 16:48:50 +05:30
Daan Sprenkels
41f4de43ac Return both URLs after upload
Fixes #25
2019-12-15 12:42:10 +05:30
b3357185f4 Use https links. Use iota for pasteType and pasteState to preserve type 2019-11-29 18:36:27 +01:00
Daan Sprenkels
df86d5836a Implement file deletion 2019-11-22 18:41:54 +01:00
Daan Sprenkels
c82a71f7d0 Revert "Remove file storage possibility for now (awaits #12)"
This reverts commit 801ac8adbb.
2019-11-10 19:08:05 +01:00
Daan Sprenkels
66eb0bf97a Add support for file uploads 2019-11-10 19:03:57 +01:00
e7b71eca69 index templates: assume we run on https. README: example nginx config
Fixes #10
2019-11-09 22:29:01 +01:00
801ac8adbb Remove file storage possibility for now (awaits #12) 2019-11-09 21:46:40 +01:00
Daan Sprenkels
e193183f86 Allow internal server error using panic() 2019-10-15 23:19:45 +02:00
Daan Sprenkels
0ecdaafe2f refactor: Put paste model in separate file 2019-09-22 14:03:54 +02:00
Daan Sprenkels
f36ed4a4c7 Only provide deleteToken if requested by user 2019-09-22 13:40:33 +02:00
Daan Sprenkels
f45c132b41 Make deleteTokens strings 2019-09-21 21:03:31 +02:00
Daan Sprenkels
60fd92c956 Put existing pages in templates 2019-09-15 22:54:07 +02:00
Daan Sprenkels
372d7c0487 Extract error rendering 2019-09-15 22:00:59 +02:00