879c09f70b
Support read markers on invisible events
continuous-integration/drone/push Build is passing
2020-12-06 23:45:33 +13:00
ea6ccc08ee
Render call events in timeline
continuous-integration/drone/push Build is failing
2020-11-29 19:47:19 +13:00
2e91ff8ff2
Recognise image spoilers (based on "body")
continuous-integration/drone/push Build is passing
2020-11-28 18:45:08 +13:00
a004e84adc
Add spoilers
2020-11-28 17:17:50 +13:00
b4dfefbac9
Render ban events
2020-11-28 17:07:54 +13:00
e6fc1de276
Greatly improved membership event display
continuous-integration/drone/push Build is passing
2020-11-27 02:48:30 +13:00
6e209bafd6
Add extremely janky unread messages banner
continuous-integration/drone/push Build is passing
2020-11-26 16:38:12 +13:00
b7905bc3be
Read marker lines in chat, badges on groups
...
continuous-integration/drone/push Build is failing
Also fixed stopping typing after sending a message.
2020-11-25 19:54:09 +13:00
0960ca7e97
Code highlighting fixes:
...
continuous-integration/drone/push Build is passing
- Fix pre+code element moving
- Do not highlight if pre is already formatted
2020-11-14 17:27:13 +13:00
4acd806e66
Render image messages
continuous-integration/drone/push Build is passing
2020-11-08 01:04:42 +13:00
327290e971
Autolink URLs in messages
continuous-integration/drone/push Build is passing
2020-11-08 00:49:12 +13:00
1fa7da9ebb
Use JSDelivr CDN for highlight.js
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
- downside: is somebody else's CDN
- upside: changes hljs download size from >1MB to 33k
Feel free to debate this.
2020-11-05 18:03:25 +13:00
b74f0cc0dd
Don't highlight very short code blocks
2020-11-05 17:57:27 +13:00
017f30be65
Also format m.notice
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-11-05 17:39:21 +13:00
a7165fe633
Fix purify and highlight
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
- purify: apply target=_blank to links
- purify: remove ALLOWED_URI_REGEXP - this breaks external links in
anchor elements
- purify: return a DOM fragment instead of a string
- postprocess: only highlight pre
- postprocess: remove nested code inside pre
- better style messages with css
2020-11-05 17:37:00 +13:00
8ba9d73b33
Small refactors
...
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
- "event" -> "eventData"
- create renderText method
- italics
2020-11-05 16:44:22 +13:00
9cf0952d3a
Change files to kebab-case
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2020-11-05 16:34:10 +13:00
1bf1712684
Fix dynamic import with relative paths
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-10-31 18:24:05 +01:00
0738ce4cb1
Rename dateFormatter.js to date-formatter.js
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-10-31 18:21:04 +01:00
20e94f05e7
Lazy load highlight.js
...
This significantly reduces the bundle size(over 1MiB!) but it also uses
some hacks to dynamically load browserify modules on runtime(see
lazy-load-modules.js
2020-10-31 18:17:34 +01:00
20bacce068
Remove the simple event shorthand
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-10-29 11:31:08 +01:00
f80bf36991
Style fixes
2020-10-29 11:09:15 +01:00
bd9623578f
Add hljs and improve sanitization
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2020-10-29 10:42:17 +01:00
c144d75c99
Remove debug console.logs
2020-10-29 10:38:12 +01:00
66ecf44048
Remove console.log from membership
2020-10-29 10:36:38 +01:00
e08b895694
Create a simple event shorthand
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2020-10-26 23:16:47 +01:00
d983385e16
Fix compiler warnings
2020-10-26 22:58:38 +01:00
f46f9abe6e
Improve rich text rendering to more closely match the recommendations from the spec
2020-10-26 22:55:54 +01:00
1a8427925c
Add unknown memberships
2020-10-26 22:55:27 +01:00
72b42e7b26
Initial work on rich messages
2020-10-26 21:04:08 +01:00