Commit graph

186 commits

Author SHA1 Message Date
Dariusz Niemczyk
2c66403b3c Replace console.info with logger.info
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02:00
Dariusz Niemczyk
5e73a212f4 Replace console.error with logger.error
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02:00
Dariusz Niemczyk
9c594a8a96 Replace console.logs to logger.log
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02:00
Germain Souquet
5a7c0d87b6 Rename ReplyThread to ReplyChain to avoid confusion with m.thread 2021-10-15 17:42:44 +01:00
Jaiwanth
5568d533c0 Handle newer voice message format 2021-10-01 14:52:37 +05:30
Jaiwanth
e0267258a4 Initialize css string 2021-09-30 16:24:31 +05:30
Jaiwanth
d264f5f98e Change js-sdk import style 2021-09-29 20:55:09 +05:30
Jaiwanth
6ccb7e9145 Space after brand 2021-09-29 19:37:31 +05:30
Jaiwanth
d1e3d35d40 Change export bundle filename format, light theme for all exports and import jszip after export cta 2021-09-22 22:17:23 +05:30
Jaiwanth
b49c8ebf60 Increase max_width for exported html 2021-08-20 17:12:52 +05:30
Jaiwanth
98b0642b65 Split html into multiple files to improve scroll performance 2021-08-20 15:01:48 +05:30
Jaiwanth
fea9f4a4df Use staticMarkup instead of string 2021-08-18 08:38:39 +05:30
Jaiwanth
7bad0b99d1 Fix links, header and export text 2021-08-18 08:37:10 +05:30
Jaiwanth
5dbc103486 Modify font-regex and declare json type 2021-08-14 13:01:46 +05:30
Jaiwanth
3efa699b88 Delint 2021-08-14 00:14:57 +05:30
Jaiwanth
31c9e5962c Move export dialog to async-components 2021-08-14 00:03:02 +05:30
Jaiwanth
7207329c15 Apply review suggestions 2021-08-13 23:44:07 +05:30
Jaiwanth
c62210b07c Merge branch 'export-conversations' of https://github.com/jaiwanth-v/matrix-react-sdk into export-conversations 2021-08-13 09:00:20 +05:30
Jaiwanth
00d5a0baa4
Apply suggestions from code review
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2021-08-13 08:59:28 +05:30
Jaiwanth
dda24da204 Add copyright headers 2021-08-13 08:59:14 +05:30
Jaiwanth
edfc8af6cf Apply PR Suggestions 2021-08-13 08:30:50 +05:30
Jaiwanth
ecf0aba97c Test for different types of events 2021-08-10 12:25:51 +05:30
Jaiwanth
900accd823 Add test for renderToString 2021-08-09 13:25:32 +05:30
Jaiwanth
850b5452a0 Add tests for reply regex 2021-08-09 12:36:06 +05:30
Jaiwanth
f00ab0460b Delint 2021-08-04 13:06:07 +05:30
Jaiwanth
c74d6c6fff Assign replacements 2021-08-04 12:48:32 +05:30
Jaiwanth
e29d9db2e7 Fetch exportCSS during export 2021-08-04 12:37:13 +05:30
Jaiwanth
b333612dea Fix comparing MB -> bytes 2021-08-03 14:53:23 +05:30
Jaiwanth
4824c93707 Add a test file 2021-08-03 14:36:21 +05:30
Jaiwanth
04edf4103f Remove unnecessary awaits 2021-07-30 11:46:55 +05:30
Jaiwanth
6f8f0e8314 Change copyright year 2021-07-27 19:30:08 +05:30
Jaiwanth
371d1026fa Add jest-raw-loader 2021-07-27 12:11:08 +05:30
Jaiwanth
57590b9a8a Use raw-loaders to import svgs and exportJS 2021-07-27 11:37:47 +05:30
Jaiwanth
9771f4d6c4 PascalCasing for enums 2021-07-27 00:00:52 +05:30
Jaiwanth
b91309be82 Apply suggestions from review 2021-07-26 23:40:27 +05:30
Jaiwanth
41bc2b6481 Move away from streamsaver(for now) 2021-07-26 22:15:05 +05:30
Jaiwanth
a4da8f9e9e Update exportCSS 2021-07-26 15:07:45 +05:30
Jaiwanth
3d4d1d32d9 Modify design according to the design team 2021-07-26 00:09:59 +05:30
Jaiwanth
c81bac1a4c Add try catch for event tile errors 2021-07-23 10:47:49 +05:30
Jaiwanth
6dd3631a17 Delint 2021-07-21 11:48:37 +05:30
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