Commit graph

65 commits

Author SHA1 Message Date
ed 692175f5b0 md-editor autoindent was duplicating hr markers
only keep characters `>+-*` if there's less than three of them,
and discard entire prefix if there's more

markdown spec only cares about exactly-one or three-or-more, but
let's keep pairs in case anyone use that as unconventional markup
2024-06-01 20:56:15 +00:00
ed 7741870dc7 make cloudflare outages non-fatal to uploads
if a reverse-proxy starts hijacking requests and replying with HTML,
don't panic when it fails to decode as a handshake json

fix this for most other json-expecting gizmos too,
and take the opportunity to cleanup some text formatting
2024-03-08 21:33:39 +00:00
ed b32d65207b fix js-error on older chromes in incognito mode;
window.localStorage was null, so trying to read would fail

seen on falkon 23.08.4 with qtwebengine 5.15.12 (fedora39)

might as well be paranoid about the other failure modes too
(sudden exceptions on reads and/or writes)
2024-01-24 02:24:27 +00:00
ed 4ef3106009 more old-browser support:
* polyfill Set() for gridview (ie9, ie10)
* navpane: do full-page nav if history api is ng (ie9)
* show markdown as plaintext if rendering fails (ie*)
* text-editor: hide preview pane if it doesn't work (ie*)
* explicitly hide toasts on close (ie9, ff10)
2024-01-18 22:56:39 +00:00
ed 2fd2c6b948 ie11 fixes (2024? haha no way dude it's like 2004 right)
* fix crash on keyboard input in modals
* text editor works again (but without markdown preview)
* keyboard hotkeys for the few features that actually work
2024-01-13 02:31:50 +00:00
ed 5fc04152bd also handle NumpadEnter 2023-12-01 21:10:51 +00:00
ed a7cef91b8b v1.9.23 2023-12-01 00:39:49 +00:00
ed 4a98b73915 fix a bug previouly concealed by window.event;
hitting enter would clear out an entire chain of modals,
because the event didn't get consumed like it should,
so let's make double sure that will be the case
2023-11-30 22:40:30 +00:00
ed f902779050 avoid potential dom confusion (ie8 is already no-js) 2023-11-26 20:08:52 +00:00
ed aa96a1acdc misc optimizations / cleanup:
* slightly faster startup / shutdown
* forgot a jinja2 golf
* waste 4KiB changing prismjs back to gz since brotli is https-gated ;_;
* broke support for firefox<52 (non-var functions must be toplevel
   or immediately within another function), now even firefox 10 /
   centos 6 is somewhat supported again
2023-09-17 13:02:18 +00:00
ed 4c843c6df9 fix md-editor lastmod cmp when browsercache is belligerent 2023-07-25 14:06:53 +00:00
ed 660011fa6e md-editor: make hotkey ^e more global 2023-01-25 20:58:28 +00:00
ed f107497a94 a bit better 2022-12-01 22:18:17 +00:00
ed b5dcf30e53 w/a firefox sometimes loading stale documents
never been able to reproduce it intentionally but this should work
2022-12-01 21:52:40 +00:00
ed 2701238cea reply raw markdown unless ?v 2022-10-24 02:10:07 +02:00
ed aa1c08962c golf 2022-07-15 02:07:13 +02:00
ed d832b787e7 upload smallest-file-first by default 2022-07-12 20:48:38 +02:00
ed b8241710bd md-editor fixes 2022-07-12 02:53:33 +02:00
ed 633ff601e5 perf + ux 2022-05-14 00:13:06 +02:00
ed b50d090946 add logout on inactivity + related errorhandling 2022-05-01 22:12:25 +02:00
ed 9838c2f0ce golf 2022-04-24 23:47:15 +02:00
ed c5fbbbbb5c show current line number in md-editor 2021-09-17 01:36:06 +02:00
ed 5010387d8a markdown modpoll at an interval 2021-09-16 09:31:58 +02:00
ed 38d797a544 remove duplicate code 2021-09-05 22:32:34 +02:00
ed 16c1877f50 fix markdown scrollmap desync on offsite images 2021-09-05 21:44:17 +02:00
ed ebbbbf3d82 misc old-browser support 2021-08-16 00:22:30 +02:00
ed d52038366b reinventing alert/confirm/prompt was exactly what i had in mind for the weekend, thanks google 2021-08-07 18:41:06 +02:00
ed 0c625a4e62 store upload ip and time 2021-07-29 00:30:10 +02:00
ed e0f1cb94a5 toast close-handle 2021-07-27 10:05:53 +02:00
ed 19f23c686e toasty 2021-07-27 00:18:08 +02:00
ed f3dc6a217b use the new toast in md-editor 2021-07-26 19:20:36 +02:00
ed b9c3538253 nope, not doing this 2021-07-15 23:49:30 +02:00
ed 2bc0cdf017 fix md-editor hotkeys on dvorak 2021-07-15 23:24:10 +02:00
ed 02a91f60d4 playing some golf 2021-07-15 23:19:37 +02:00
ed 0e87f35547 ui tweaks 2021-04-24 22:06:21 +02:00
ed 127ec10c0d js cleanup + minor tweaks 2021-04-23 20:04:17 +02:00
ed d08245c3df v0.6.1 2020-12-14 03:51:24 +01:00
ed c4b322b883 this commit sponsored by eslint 2020-12-01 02:25:46 +01:00
ed 2bc6a20d71 md: poll server for changes 2020-11-30 03:00:44 +01:00
ed 2f6c4e0e34 refactoring 2020-11-29 19:32:22 +01:00
ed 1c7cc4cb2b ignore border when sizing table 2020-11-29 18:48:55 +01:00
ed b164aa00d4 md: fix eof scroll glitch 2020-11-27 21:25:52 +01:00
ed 0c53de6767 more lenient md table formatter 2020-11-17 23:55:14 +01:00
ed 755a2ee023 v0.5.3 2020-11-13 03:31:07 +01:00
ed 69d3359e47 lots of stuff:
* show per-connection and per-transfer speeds
* support multiple cookies in parser
* set SameSite=Lax
* restore macos support in sfx.sh
* md-editor: add mojibake/unicode hunter
* md-editor: add table formatter
* md-editor: make bold bolder
* md-editor: more hotkeys
* md-editor: fix saving in fancy
* md-editor: fix eof-scrolling in chrome
* md-editor: fix text erasure with newline
* md-editor: fix backspace behavior in gutter
2020-11-13 02:58:38 +01:00
ed 1c3aa0d2c5 deal with a soho nas (and FF60esr) 2020-08-17 20:39:46 +00:00
ed 79b7d3316a v0.5.0 2020-08-16 23:04:10 +00:00
ed faf49f6c15 md-editor: add paragraph jumping 2020-08-17 00:42:05 +00:00
ed 5958ee4439 autoindent oversight 2020-05-17 08:20:54 +02:00
ed 92779b3f48 2x chrome editor perf 2020-05-17 00:49:49 +02:00