Commit graph

196 commits

Author SHA1 Message Date
Jaiwanth
c0d2dbe7fd Delint once more 2021-07-19 13:28:09 +05:30
Jaiwanth
6d0fd0322e Delint 2021-07-19 13:23:55 +05:30
Jaiwanth
f07402d234 Fix types and precompute blob sizes to avoid overflows 2021-07-19 13:17:19 +05:30
Jaiwanth
ed93bf4c77 Reverse events in-place 2021-07-19 13:00:37 +05:30
Jaiwanth
87c624d085 Use ref for progress updates 2021-07-02 16:52:33 +05:30
Jaiwanth
3dcc7738f6 Add missing semicolon 2021-07-02 10:53:19 +05:30
Jaiwanth
f2e67604e7 Delint 2021-07-02 10:49:24 +05:30
Jaiwanth
6ca664636e Display progress 2021-07-02 10:23:34 +05:30
Jaiwanth
08d886e9d1 Delint 2021-06-30 14:08:22 +05:30
Jaiwanth
b0be7d2861 Add license and negate the conditional 2021-06-29 19:43:21 +05:30
Jaiwanth
497d8102e2 Handle mxc urls for non-encrypted rooms 2021-06-29 12:54:44 +05:30
Jaiwanth
3fc4be0be9 Add return types to ABC Exporter 2021-06-29 11:40:26 +05:30
Jaiwanth
6cbbc0ecb4 Replace hard coded forExport string by mxc url 2021-06-29 11:29:05 +05:30
Jaiwanth
e404fa3cae Apply suggestions 2021-06-29 10:57:02 +05:30
Jaiwanth
de6bc3f2ed
Update src/utils/exportUtils/Exporter.ts
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-06-29 10:19:57 +05:30
Jaiwanth
efccf19e9e
Update src/utils/exportUtils/exportUtils.ts
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-06-29 10:14:00 +05:30
Jaiwanth
e6cb0666ef
Update src/utils/exportUtils/exportUtils.ts
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-06-29 10:13:51 +05:30
Jaiwanth
fc81001316 Hide alt text if the image isn't present (for unavailable avatars) 2021-06-28 13:23:50 +05:30
Jaiwanth
00ee3efbff Wrap avatar fetch in try catch 2021-06-28 12:41:32 +05:30
Jaiwanth
efd8bf3a0f Delint 2021-06-28 11:00:34 +05:30
Jaiwanth
d46fe678b0 Handle export cancellation 2021-06-27 20:55:54 +05:30
Jaiwanth
685441baf5 Remove avatarForExport string 2021-06-26 23:40:35 +05:30
Jaiwanth
55ffb318e5 Change format order 2021-06-26 23:08:37 +05:30
Jaiwanth
e505646f21 Finish dialog implementation of export settings 2021-06-26 21:54:10 +05:30
Jaiwanth
92e34c7993 Format dropdown 2021-06-26 13:04:10 +05:30
Jaiwanth
566e7bc8d6 format 2021-06-25 15:52:01 +05:30
Jaiwanth
4af8ec4d40 Explicitly declare file extensions for stickers and log event fetching progress 2021-06-25 15:40:28 +05:30
Jaiwanth
593f14beae Append media text to text for event 2021-06-25 15:01:14 +05:30
Jaiwanth
c885cd719f i18n 2021-06-25 14:58:59 +05:30
Jaiwanth
abbe047bfd try catch for plain text 2021-06-25 14:49:01 +05:30
Jaiwanth
02f15d573a Refactor 2021-06-25 11:52:26 +05:30
Jaiwanth
3718826e94 refactor to share downloading code across all formats 2021-06-25 11:16:59 +05:30
Jaiwanth
ccd02c48b3 Nicer indentation 2021-06-24 22:49:36 +05:30
Jaiwanth
70cc2b20d5 Fix auto import 2021-06-24 18:23:08 +05:30
Jaiwanth
112dfa2b96 Finish JSON export implementation 2021-06-24 18:19:12 +05:30
Jaiwanth
dd40f81edf Wrap media fetch in try catch 2021-06-24 14:03:12 +05:30
Jaiwanth
5fff64f128 Fix types 2021-06-23 12:14:20 +05:30
Jaiwanth
438b9d4730 Get rid of jszip and replace it with a custom library 2021-06-23 11:58:50 +05:30
Jaiwanth
db875508d8 Add text for room avatar events and skip empty text events 2021-06-22 12:50:15 +05:30
Jaiwanth
8a1cd77ef4 Handle no match cases and modify textForEvent to handle redacted messages 2021-06-22 12:12:37 +05:30
Jaiwanth
c58abd9582 Revert auto format 2021-06-22 10:51:16 +05:30
Jaiwanth
bf189204f2 Implement IRC bridge style reply formatting 2021-06-22 10:49:14 +05:30
Jaiwanth
a0e0453635 Fix type lint 2021-06-22 09:27:49 +05:30
Jaiwanth
9e6b8ff9f5 Start implementation of plain text export 2021-06-17 10:46:08 +05:30
Jaiwanth
bd75849e73 Enable option to set maximum file size 2021-06-15 16:41:31 +05:30
Jaiwanth
30c7017fad Move generic functions into base class 2021-06-14 18:06:40 +05:30
Jaiwanth
ab653d9952 Handle requests with no attachments 2021-06-14 11:08:17 +05:30
Jaiwanth
a1b614f2b3 Implement exporting from a specific start date and fix few bugs 2021-06-11 12:04:05 +05:30
Jaiwanth
80e5d4cd77 Increase eventsPerCrawl for larger chunks and rely on chunk's length for crawled events size 2021-06-10 11:53:41 +05:30
Jaiwanth
716e2effbc Enable proper i18n for date utils 2021-06-09 16:12:57 +05:30
Jaiwanth
573ababb8c Get rid of mediaSrc and avatarSrc props 2021-06-09 15:23:47 +05:30
Jaiwanth
d80e008d28
Update src/utils/exportUtils/Exporter.ts
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-06-08 18:37:44 +05:30
Jaiwanth
03d8e1f931
Update src/utils/exportUtils/Exporter.ts
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-06-08 18:37:36 +05:30
Jaiwanth
0f6d09a74b
Update src/utils/exportUtils/Exporter.ts
Co-authored-by: Michael Telatynski <7t3chguy@googlemail.com>
2021-06-08 18:37:14 +05:30
Jaiwanth
6f8c1638aa isExporting -> forExport and wrap EventTile with Context Provider 2021-06-08 18:35:45 +05:30
Jaiwanth
9e298e9f45 Add logs and unload listener 2021-06-08 12:36:28 +05:30
Jaiwanth
0f06f1b9c4 Replace map with for loop 2021-06-07 14:47:27 +05:30
Jaiwanth
2b432a7718 Add markdown CSS 2021-06-07 11:50:19 +05:30
Jaiwanth
56488d2c42 Modify the process for setting event metadata and refactor 2021-06-07 11:34:03 +05:30
Jaiwanth
8786c97cdb Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into export-conversations 2021-06-05 11:27:08 +05:30
Jaiwanth
f32726d5ed Begin extended implementation 2021-06-04 15:08:17 +05:30
Jaiwanth
e7f0df7fcc Small fix 2021-06-03 13:39:14 +05:30
Jaiwanth
4c22d1f2a1 Refactor 2021-06-03 13:21:56 +05:30
Jaiwanth
183166c460 Unminify CSS and apply suggestions from the design team 2021-06-03 12:40:00 +05:30
Jaiwanth
f84ae4a173 Add await 2021-06-02 13:12:03 +05:30
Jaiwanth
692e499cf2 Handle encrypted stickers and store stickers in a separate folder 2021-06-02 12:06:00 +05:30
Jaiwanth
c63c59b408 Rename date function 2021-06-01 21:52:04 +05:30
Jaiwanth
01a3b854c3 Add sticker support 2021-06-01 20:09:12 +05:30
Jaiwanth
9c38af0075 Make reply UI work even when javascript is disabled 2021-06-01 17:06:39 +05:30
Jaiwanth
1382bd4fee Handle icons and skip decryption checks during export 2021-06-01 14:47:01 +05:30
Jaiwanth
5f9cf5760d Fix untracked files 2021-06-01 12:50:31 +05:30
Jaiwanth
80c0ad82fc Better file names 2021-06-01 12:40:03 +05:30
Jaiwanth
a0a604618c Handle non-media attachments 2021-05-31 23:50:55 +05:30
Jaiwanth
01284ef8c6 Handle encrypted voice messages 2021-05-31 23:34:24 +05:30
Jaiwanth
28a1a551fe Save users' avatars 2021-05-31 22:27:29 +05:30
Jaiwanth
fa073cd958 Save and display room avatars 2021-05-31 21:35:08 +05:30
Jaiwanth
59c1b67b7d Enable support for image, video and audio files 2021-05-31 21:01:19 +05:30
Jaiwanth
409213ceb4 Remove conditional 2021-05-31 19:07:49 +05:30
Jaiwanth
573a3ca983 Rewrite export tool to use existing components to render output, use existing source URLs for media 2021-05-31 19:01:32 +05:30
Jaiwanth
60ef6f9332 Add emote support and show a toast if the message isn't exported 2021-05-27 14:06:04 +05:30
Jaiwanth
334b7ef04a Implement animated scroll to base event for replies 2021-05-26 18:00:27 +05:30
Jaiwanth
7286aa28e1 Handle audio and video files 2021-05-26 15:19:05 +05:30
Jaiwanth
0b728ff390 Use double quotes for import 2021-05-25 17:52:23 +05:30
Jaiwanth
0ee290648a Add support for firefox 2021-05-25 17:49:18 +05:30
Jaiwanth
7cd3f51c56 indent and use double quotes 2021-05-25 16:33:01 +05:30
Jaiwanth
43a111d4c9 Return blob from export 2021-05-24 21:20:16 +05:30
Jaiwanth
136b6db047 Add an abstract exporter base class 2021-05-24 20:49:19 +05:30
Jaiwanth
1ee6e42e27 Add await 2021-05-24 19:19:10 +05:30
Jaiwanth
e6c4ab3993 Use classes instead of loosely defined functions, use prebuilt function for color binding 2021-05-24 19:17:07 +05:30
Jaiwanth
0029bf566b Small correction 2021-05-24 18:04:03 +05:30
Jaiwanth
3147acec0c Switch completely to TypeScript, updated userColors 2021-05-24 18:01:09 +05:30
Jaiwanth
e3b0d89ae9 Add some colours 2021-05-22 13:39:26 +05:30
Jaiwanth
bb81515cdd Use matrix style class names, modify CSS and some small changes 2021-05-22 12:54:34 +05:30
Jaiwanth
a47117e3b0 Do not process edit events as they are already considered 2021-05-22 11:55:57 +05:30
Jaiwanth
0bf65da70f Remove unnecessary semicolons 2021-05-22 11:38:32 +05:30
Jaiwanth
dfb7aa4320 Refactor, move HTML export to a new file and switch to TypeScript 2021-05-22 11:36:28 +05:30