Commit graph

53 commits

Author SHA1 Message Date
4244862d5c
helpButton: update link to my cgit repo 2020-06-25 19:35:13 +08:00
aad3454f8d
update help to clarify abuse 2020-02-20 16:13:24 +08:00
b4dfeb8624
contentEditable: emit update also on paste 2020-02-20 14:32:09 +08:00
d69ba60b49
styles: set links to secondary color to match material 2020-02-20 13:28:14 +08:00
872a17d7b2
flip to Encryption: ON by default 2020-02-20 13:26:51 +08:00
3a3ea823a9
add front-end size checking 2020-02-20 13:17:55 +08:00
6c15b51296
helpButton, openDialog: refactor using hooks and context 2020-02-20 13:02:40 +08:00
0f6b4e06f1
fileDecrypter: refactor using Hooks
also refactored useFetchContent to use useAsyncMemo
2020-02-20 12:41:20 +08:00
17d6add3dc
codeViewer: refactor to use hooks 2020-02-20 10:56:39 +08:00
e3e3445b93
pastebin: use more useCallback here to reduce re-rendering 2020-02-20 10:35:18 +08:00
e261f4957d
fileViewerDispatcher: use a simple function component 2020-02-20 10:30:08 +08:00
a5d0d58fef
linkButton: refactor using React Hooks 2020-02-20 10:24:10 +08:00
8c81b9e66f
binaryUpload: refactor to use hooks 2020-02-20 10:10:58 +08:00
cf095911b0
hooks: make use of useCallback() to avoid re-rendering 2020-02-20 09:41:20 +08:00
cf57e3de42
pastebin: rewrite using React Hooks 2020-02-20 09:20:58 +08:00
597c6c9359
home: rewrite using React Hooks 2020-02-20 08:48:05 +08:00
73de387ec5
disable paste if text is empty 2020-02-19 20:43:47 +08:00
0e3224c52f
LinkButton: use React.Fragment instead 2020-02-19 20:40:51 +08:00
13bc689305
load max file size and file lifetime from a separate insecure config 2020-02-19 20:32:57 +08:00
2eb9ce10fc
add a help button 2020-02-19 20:26:58 +08:00
84644040da
pastebin: fix a typo 2020-02-19 19:54:10 +08:00
ea726dca42
home: also bounce for opacity 2020-02-19 19:48:58 +08:00
bcbe96c249
home: better animation with bouncing and translateY 2020-02-19 19:45:26 +08:00
2b42e19ecb
fix transition between pages by using a custom LinkButton
by replacing everything with a `<Redirect/>` on switching, it produces a
short blink while the new page appears. But we cannot just use `<Link/>`
because an `<a>` cannot be "disabled". Wrapping `Link` around `button`
is invalid HTML5.

Instead, hack together a custom component for the job.
2020-02-19 19:17:57 +08:00
008db6cf8c
FileDecrypter: support inline preview 2020-02-19 17:08:52 +08:00
709a6d24a9
FileDecrypter: add a link to home page 2020-02-19 16:45:58 +08:00
7966135ac7
FileDecrypter: do not create object url in render 2020-02-19 16:21:39 +08:00
1140040bcc
FileDecrypter: use an actual link to save the file
triggering click on a hidden element will not always work. Plus that
it's good to have user consent
2020-02-19 16:12:40 +08:00
171bba517d
styles: add mobile support 2020-02-19 15:37:45 +08:00
d2957f3b2c
home: do not re-render child when parent is re-rendered 2020-02-19 11:17:16 +08:00
182c225528
fileDecrypter: fix download and encrypting state 2020-02-19 11:09:15 +08:00
b35c57f591
implement file decryption 2020-02-19 11:03:57 +08:00
ec540f9718
binaryUpload: implement file encryption 2020-02-19 09:33:04 +08:00
1cb2f00554
pastebin: set highlight to false by default 2020-02-18 20:31:56 +08:00
348ea6c49c
implement browser code viewer 2020-02-18 20:27:24 +08:00
0f664d3890
fix backend & frontend routing 2020-02-18 17:43:23 +08:00
d705107d35
implement binary upload 2020-02-18 17:39:38 +08:00
f4adb0030c
add a highlight toggle 2020-02-18 14:24:20 +08:00
a19494a2bc
modal: better inset 2020-02-18 14:12:43 +08:00
d26bb7bbee
better active color for editable 2020-02-18 14:08:22 +08:00
d4d36ad79d
home: better styling 2020-02-18 14:05:00 +08:00
e9d14486d3
add shadow and transition for buttons too 2020-02-18 14:00:50 +08:00
31eddfc6e2
use better shadows for content card 2020-02-18 13:58:53 +08:00
7e149320a5
move ReactModal to Home 2020-02-18 13:55:02 +08:00
479a834536
pastebin: use consistent XML style 2020-02-18 13:49:55 +08:00
c969887ecf
pastebin: add dialog to show result 2020-02-18 13:48:54 +08:00
4238027024
begin implementing paste function 2020-02-18 11:43:48 +08:00
916502b56c
contentEditable: fix new lines by using invisible character hack 2020-02-18 11:05:33 +08:00
54510ddf32
contentEditable: support code highlighting 2020-02-18 10:33:12 +08:00
6ce35c509e
make a edit text out of content editable 2020-02-18 10:16:55 +08:00