Michael Telatynski
146968da2c
Deduplicate more icons using Compound Design Tokens ( #132 )
...
* Deduplicate more icons using Compound Design Tokens
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
* Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
---------
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
(cherry picked from commit 7448bd52e2ff354917d6e5f769ca052961c13aa0)
2024-10-16 09:42:03 +01:00
David Langley
491f0cd08a
Change license ( #13 )
...
* Copyright headers 1
* Licence headers 2
* Copyright Headers 3
* Copyright Headers 4
* Copyright Headers 5
* Copyright Headers 6
* Copyright headers 7
* Add copyright headers for html and config file
* Replace license files and update package.json
* Update with CLA
* lint
2024-09-09 13:57:16 +00:00
Asim Mohammed Delvi
158e1110b1
Fixed the drag and drop of X ##27186 ( #12450 )
2024-04-24 08:56:59 +00:00
Michael Telatynski
4d0d024e86
Migrate more strings to translation keys ( #11671 )
2023-09-26 18:35:55 +01:00
Michael Telatynski
d5cacff6c3
Create more action_*
common strings ( #11438 )
2023-08-23 11:57:22 +01:00
Michael Telatynski
c3574c2050
Switch to importing client from main js-sdk export ( #11370 )
2023-08-09 07:18:41 +00:00
Michael Telatynski
24703eea8f
Switch to importing models/event from main js-sdk export ( #11363 )
2023-08-07 08:24:58 +00:00
Michael Telatynski
dd5b9329e4
Only error log url preview failure if not 404 matrix error ( #11297 )
2023-07-19 16:03:59 +00:00
Travis Ralston
40de66424d
Hide URL preview if it will be empty ( #9029 )
...
* Hide URL preview if it will be empty
* Update src/components/views/rooms/LinkPreviewWidget.tsx
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Iterate
* Iterate
---------
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-07-07 11:06:03 +00:00
Michael Telatynski
82e32035fd
Conform more of the codebase to strictNullChecks
( #10842 )
2023-05-11 09:56:56 +01:00
Michael Telatynski
503df62191
Conform more of the codebase to strictNullChecks
( #10358
...
* Conform more of the codebase to `strictNullChecks`
* Fix types
* Iterate
* Iterate
2023-03-13 15:07:20 +00:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type
in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Kerry
d98a73b003
Revert "replace all require(.svg) with esm import" ( #7969 )
...
* Revert "replace all require(svgs) with esm import (#7948 )"
This reverts commit 61cd463a3b
.
* add .default to svg icon inline requires
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add shameful eslint ignore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* format eslintrc
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add missed MFileBody change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* one more broken svg
Signed-off-by: Kerry Archibald <kerrya@element.io>
* and ignore it
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-03 17:51:38 +00:00
Kerry
61cd463a3b
replace all require(svgs) with esm import ( #7948 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-03-02 17:14:33 +01:00
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05: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
Paulo Pinto
432dd994bd
Filter out invalid previews
...
The call to cli.getUrlPreview() might return an empty object ({}), which means
there is in fact no preview for that URL.
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-09-27 18:07:54 +01:00
Paulo Pinto
dabc13c98f
Extract logic to a function
...
For better readability of the call to useAsyncMemo()
Signed-off-by: Paulo Pinto <paulo.pinto@automattic.com>
2021-09-27 18:07:54 +01:00
Michael Telatynski
e9d56d4f13
Fix possible uncaught exception for getUrlPreview which would cause 0 url previews if one url was faulty
2021-07-15 12:10:01 +01:00
Michael Telatynski
e3e7d41d5c
only consider valid & loaded url previews for show N more prompt
2021-07-10 19:41:50 +01:00
Michael Telatynski
b9a539eaa2
Improve URL Previews
...
only show 2 by default with expand/collapse mechanism
show all hashes again, but dedup requests
clean up hide mechanism, instead of one `x` per preview have one per group
2021-07-07 18:04:30 +01:00