Commit Graph

17 Commits

Author SHA1 Message Date
David Wheatley
5721a2f487
fix: replace .fa() mixin usage with .fas() (#3537) 2022-07-15 23:16:49 +01:00
Alexander Skvortsov
e9feb0aa58 chore: flarum-cli audit infra --fix 2022-01-20 03:45:09 -05:00
Sami Mazouz
e407c66784 New mentions format, decouple usernames from mentions (#65)
* Convert user mentions to new `@"Display Name"#ID` format

* Handle deleted user's mentions

* Convert post mentions to `@"Display Name"#pID` format

* Handle deleted user's post mentions and deleted posts mentions

* Clean display name of `"#{letters}{numbers}` (replace with underscore _)

* Adapt integration tests to new mention formats

* Use a deleted attribute for user mentions

* Introduce cleanDisplayName util

* Detect new format with autocomplete

* Slug needed on rendering only

* Invalidate user mention tag when ID is invalid
This used to be implicitly done, when there was a username attribute configured, formatter would check that all attributes are available and if not invalidate.

since we now only have `displayname` and `id` attributes which are both available from the regex matching, formatter doesn't implicitly invalidate anymore and therefore validates ANY matches. So we explicitly invalidate the tag when the ID does not match a user.

* Allow username mention format with a setting

* Add tests for turning setting on/off

* Move setting check to tag filter
Because the configurator caches, changing the setting only takes effect after the cache is cleared.

* fix: showing autocomplete at the right moment

* Add dockblocks to explain unparsing process
2021-04-21 10:58:54 +01:00
Sami Mazouz
f8d1e2b22e Fix replies dropdown menu width (#38)
* Fixes flarum/core#1707
2020-05-22 18:50:26 -04:00
Franz Liedke
e6f0ca5873 Use existing variable for media query
Refs #46, flarum/core#2070.
2020-05-21 03:33:32 +02:00
timas130
43ad78654c Fix dropdown overflow on mobile (flarum/core#2070) (#46)
* Fix dropdown overflow on mobile (flarum/core#2070)
2020-05-20 15:20:02 -04:00
Toby Zerner
d1f4d5a739 Webpack (#33)
See https://github.com/flarum/core/pull/1367

* Replace gulp with webpack and npm scripts for JS compilation
* Set up Travis CI to commit compiled JS
* Restructure `js` directory; only one instance of npm, forum/admin are "submodules"
* Restructure `less` directory
2018-06-20 13:35:33 +09:30
Toby Zerner
acd3195491 Make autocomplete dropdown slightly less tall so that it fits below the cursor 2017-09-19 19:38:02 +09:30
Toby Zerner
fd59f0ee48 Prevent mentions summary from blocking post controls 2016-05-26 22:26:05 +09:30
Toby Zerner
310fed2329 Tweak quote button positioning/style
Now appears where your cursor ends the selection, but not overlapping text.
2016-05-22 14:05:38 +09:30
Sajjad Hasehmian
a05600b91e Show quote button when post text is selected
closes #19 closes flarum/core#320
2016-05-21 21:37:48 +09:30
Toby Zerner
4cb764e603 Don't directly change TextEditor styles 2015-11-21 13:11:22 +10:30
Toby Zerner
7ab1eb4f64 Move post previews outside of .Post-body so they don't get clipped 2015-09-16 14:43:48 +09:30
Toby Zerner
c014c330d9 Allow inter-discussion replying 2015-08-06 13:17:21 +09:30
Toby Zerner
da25882280 Update for new API + TextFormatter 2015-07-23 14:28:39 +09:30
Toby Zerner
547b2b1304 Search for users in autocomplete popup + other tweaks
- Highlight matching parts of usernames
- Fix positioning edge cases
2015-05-18 12:24:48 +09:30
Toby Zerner
57bb8702de Initial commit 2015-05-14 22:01:03 +09:30