Peter Cai
c5edc7b52f
chore: update vulnerable dependencies
2 years ago
Peter Cai
324903108b
crypto: use application/vnd namespace instead of binary/
2 years ago
Peter Cai
cb41215ec9
aws: auth: fix date string formatting
...
* make sure it's always string
2 years ago
Peter Cai
5e0c861524
update dependencies
2 years ago
Peter Cai
4244862d5c
helpButton: update link to my cgit repo
2 years ago
Peter Cai
4122b2f1bd
chore: bump dependencies
...
* while we are here, get rid of the Taobao npm mirror
* (I was blocked by npmjs.com for some reason. My access was totally
403'ed. So I had to use a mirror)
2 years ago
Peter Cai
25f04b0c7e
backend: implement remote url fetching
2 years ago
Peter Cai
aad3454f8d
update help to clarify abuse
3 years ago
Peter Cai
ddb6eee9e8
fix progressText
3 years ago
Peter Cai
b4dfeb8624
contentEditable: emit update also on paste
3 years ago
Peter Cai
72d29ab1e9
index: use ETag to facilitate client-side caching
3 years ago
Peter Cai
a476ec21a3
babelrc: define browser targets
3 years ago
Peter Cai
d69ba60b49
styles: set links to secondary color to match material
3 years ago
Peter Cai
872a17d7b2
flip to Encryption: ON by default
3 years ago
Peter Cai
4338ea55e9
util: disallow empty content server-side too
3 years ago
Peter Cai
3a3ea823a9
add front-end size checking
3 years ago
Peter Cai
6c15b51296
helpButton, openDialog: refactor using hooks and context
3 years ago
Peter Cai
0f6b4e06f1
fileDecrypter: refactor using Hooks
...
also refactored useFetchContent to use useAsyncMemo
3 years ago
Peter Cai
17d6add3dc
codeViewer: refactor to use hooks
3 years ago
Peter Cai
e3e3445b93
pastebin: use more useCallback here to reduce re-rendering
3 years ago
Peter Cai
e261f4957d
fileViewerDispatcher: use a simple function component
3 years ago
Peter Cai
a5d0d58fef
linkButton: refactor using React Hooks
3 years ago
Peter Cai
8c81b9e66f
binaryUpload: refactor to use hooks
3 years ago
Peter Cai
cf095911b0
hooks: make use of useCallback() to avoid re-rendering
3 years ago
Peter Cai
cf57e3de42
pastebin: rewrite using React Hooks
3 years ago
Peter Cai
597c6c9359
home: rewrite using React Hooks
3 years ago
Peter Cai
73de387ec5
disable paste if text is empty
3 years ago
Peter Cai
0e3224c52f
LinkButton: use React.Fragment instead
3 years ago
Peter Cai
13bc689305
load max file size and file lifetime from a separate insecure config
3 years ago
Peter Cai
2eb9ce10fc
add a help button
3 years ago
Peter Cai
84644040da
pastebin: fix a typo
3 years ago
Peter Cai
ea726dca42
home: also bounce for opacity
3 years ago
Peter Cai
bcbe96c249
home: better animation with bouncing and translateY
3 years ago
Peter Cai
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.
3 years ago
Peter Cai
3169a7825f
add config.json.example
3 years ago
Peter Cai
008db6cf8c
FileDecrypter: support inline preview
3 years ago
Peter Cai
226afdc13a
crypto: use the coffee shorthand for prototype
3 years ago
Peter Cai
b66e7aa3ee
util: fix typo
3 years ago
Peter Cai
4a1b677243
index: limit file name length
3 years ago
Peter Cai
709a6d24a9
FileDecrypter: add a link to home page
3 years ago
Peter Cai
7966135ac7
FileDecrypter: do not create object url in render
3 years ago
Peter Cai
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
3 years ago
Peter Cai
171bba517d
styles: add mobile support
3 years ago
Peter Cai
cdab411e4b
get rid of the stupid prelude thing
3 years ago
Peter Cai
d2957f3b2c
home: do not re-render child when parent is re-rendered
3 years ago
Peter Cai
182c225528
fileDecrypter: fix download and encrypting state
3 years ago
Peter Cai
b35c57f591
implement file decryption
3 years ago
Peter Cai
ec540f9718
binaryUpload: implement file encryption
3 years ago
Peter Cai
ed625596df
util: fix browser detection
3 years ago
Peter Cai
9f7cbdee95
add publish
3 years ago