ilja
25681cf5f6
Don't require #
in the data-mfm-color attribute
...
For colour in MFM attributes, we expected a `#`, but that's apparently wrong. The BE
translates the `color` attribute in `$[fg.color=000 text]` into `data-mfm-color=000`.
But for the SCSS to work, we need to put it in the style attribute as `--mfm-color: #000`.
Generally we just add the attribute value as-is in the `style` attribute, but now we
have a special exception for color so we add a `#` before the value.
2024-08-18 15:48:22 +02:00
ilja
6666a273a4
MFM only use sanitised data-* attribute values
...
We take the value from a data-* attribute and then add this to the style attribute.
This will probably be OK in most cases, but just to be sure, we check for "weird" characters first.
For now we only allow letters, numbers, dot, hash, and plus and minus sign, because those are the ones I currently know of who are used in MFM.
The data-* attribute remains because it was already considered proper HTML as-is.
2024-08-11 18:11:03 +02:00
floatingghost
a0305e90f0
fix tests and add CI ( #5 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: http://akkoma.dev/AkkomaGang/pleroma-fe/pulls/5
2022-06-15 17:22:02 +00:00
FloatingGhost
f6cf509a04
Merge remote-tracking branch 'upstream/develop' into develop
2022-06-08 18:09:16 +01:00
Henry Jameson
0bb69d7fe0
fix tests
2022-04-12 19:04:32 +03:00
Henry Jameson
e5ae0671ce
skip user profile test for now https://github.com/vuejs/test-utils/issues/1382
2022-03-22 18:56:39 +02:00
Henry Jameson
9d7a7e2019
fix emoji input tests
2022-03-22 18:22:23 +02:00
Henry Jameson
c2cf13fc00
fix richcontent and its tests
2022-03-22 18:22:23 +02:00
HJ
58d0f9678b
Merge branch 'fix-mentions-new-bugs' into 'develop'
...
Fix newfound bugs with rich mentions + user suggestions
See merge request pleroma/pleroma-fe!1430
2022-02-20 15:11:52 +00:00
Henry Jameson
5864dc52f7
removed file because that logic has been removed
2022-02-20 00:43:38 +02:00
Henry Jameson
86e3aefdab
new unit tests
2022-02-19 23:04:51 +02:00
Henry Jameson
a8d1987686
fix unit tests
2022-02-19 22:40:19 +02:00
FloatingGhost
1bc05e87e4
apply patches
2022-01-28 19:07:28 +00:00
Henry Jameson
39494439d3
very minimalist hashtaglink implementation, also you can middle-click
...
mentions now.
2021-08-23 20:57:21 +03:00
Henry Jameson
c3576211cb
fix tests
2021-08-18 21:17:51 +03:00
Henry Jameson
8cc1ad67df
fix links sticking to mentionsline
2021-08-15 18:11:38 +03:00
Henry Jameson
add5921b8b
fix tests, add performance test (skipped, doesn't assert anything),
...
tweak max mentions count
2021-08-12 19:37:04 +03:00
Henry Jameson
2cfff1b8b9
remove new options for style and separate line, now groups all chained
...
mentions on a mentionsline regardless of placement. fixes spacing
2021-08-12 02:56:40 +03:00
Henry Jameson
a0eaac2216
fix tests
2021-06-22 21:09:29 +03:00
Henry Jameson
c6831a3810
fix not escaping some stuff
2021-06-18 21:42:46 +03:00
Henry Jameson
25bf28f051
added tests just in case
2021-06-16 02:11:24 +03:00
Henry Jameson
ad3a2fd4e5
fixed "invisible" spans inside links
2021-06-16 01:20:20 +03:00
Henry Jameson
4aac0125e5
fixed bug with hashtags
2021-06-15 14:43:44 +03:00
Henry Jameson
7309f8ce1a
lint
2021-06-14 10:31:07 +03:00
Henry Jameson
c21b1cf898
do the impossible, fix the unfixable
2021-06-14 10:30:08 +03:00
Henry Jameson
636dbdaba8
more fixes
2021-06-13 22:22:59 +03:00
Henry Jameson
9c70f3e4df
fixed a bug + made a testcase out of it
2021-06-12 21:49:56 +03:00
Henry Jameson
18fb7516cc
lint
2021-06-12 20:44:14 +03:00
Henry Jameson
418f029789
review + fixes
2021-06-12 20:43:29 +03:00
Henry Jameson
cd44556750
restructure and tests
...
squash! restructure and tests
2021-06-12 19:54:30 +03:00
Shpuld Shpuldson
49aa10e1c0
add screen_name_ui to tests
2021-02-26 16:37:46 +02:00
Shpuld Shpuldson
1d2ba946b6
make notifications also use the popup errors, remove all error from status/notif state
2020-11-10 14:28:10 +02:00
Shpuld Shpuldson
af9492977a
add back mute prediction, add getter for relationships
2020-04-24 18:53:17 +03:00
Shpuld Shpuldson
576ad9750b
make tests not fail
2020-04-22 00:07:01 +03:00
xenofem
c1e38a4423
EmojiInput tests should be checking the input value on the last input event, not the first
2020-02-16 16:35:04 -05:00
Henry Jameson
0be86304d2
Fix tests, more replacing with mergedConfig
2019-10-06 23:28:30 +03:00
Henry Jameson
836cb817d1
fix tests
2019-09-25 20:54:07 +03:00
Henry Jameson
7b4cb38734
split spam mode into two separate options (one in settings page)
2019-09-23 20:36:49 +03:00
Henry Jameson
db961af3c8
unit test for emoji input, for now covering only insertion mechanism
2019-09-15 16:01:57 +03:00
taehoon
18a41e785e
update unit test
2019-07-28 16:55:34 -04:00
taehoon
d785ed5a05
rewrite unit tests
2019-07-25 23:34:56 -04:00
taehoon
a443a5203e
add more unit tests for elimination logic
2019-07-25 14:17:48 -04:00
taehoon
65ef039316
add unit test for elimination logic
2019-07-25 08:03:41 -04:00
Henry Jameson
3e68514981
fix tests
2019-04-28 20:46:01 +03:00
Henry Jameson
06d39b62a8
fixed tests, review fixes, now storing local users with downcase screen name for
...
better compatibility
2019-03-11 02:17:58 +02:00
Henry Jameson
f3a9200b7c
some test fixes, disabled one test for now since logic now is even more async in general
2019-03-09 02:47:20 +02:00
Henry Jameson
4f3a220487
Since BE doesn't support fetching user by screen name over MastoAPI we'll gonna
...
just fetching it over QvitterAPI real quick :DDDDDDDDD
2019-03-08 22:40:57 +02:00
William Pitcock
efad3ad0a5
attempt to fix tests
2019-01-26 13:51:07 +00:00
Shpuld Shpludson
76cfb15b3c
Merge branch 'feature/replace-panel-switcher' into 'develop'
...
Mobile side drawer
See merge request pleroma/pleroma-fe!443
2018-12-31 17:35:31 +00:00
Shpuld Shpludson
fb8f774383
Fix profiles without statuses not loading
2018-12-31 01:57:22 +00:00