Alexander Skvortsov
e9feb0aa58
chore: flarum-cli audit infra --fix
2022-01-20 03:45:09 -05:00
flarum-bot
4c8bba3eb1
Bundled output for commit 0d9c95b096
...
Includes transpiled JS/TS.
[skip ci]
2022-01-08 21:58:28 +00:00
Ian Morland
0d9c95b096
[chore] Update JS imports ( #80 )
2022-01-08 16:57:13 -05:00
flarum-bot
4ac4338f9a
Bundled output for commit 140d6ea221
...
Includes transpiled JS/TS.
[skip ci]
2021-11-28 15:57:41 +00:00
David Wheatley
140d6ea221
chore: format javascript
2021-11-28 15:56:30 +00:00
David Wheatley
dc35f048b5
docs: changelog for 1.1.3
2021-11-28 15:54:07 +00:00
Ian Morland
7d3bc4a092
fix?: Allow mentions from non-post objects ( #79 )
2021-11-28 09:52:29 +01:00
flarum-bot
e8cb1559cf
Bundled output for commit f41d6bba7e
...
Includes transpiled JS/TS.
[skip ci]
2021-11-23 21:39:39 +00:00
David Wheatley
f41d6bba7e
fix: errors on texteditor re-use again ( #78 )
...
* fix: errors on texteditor re-use again
* fix: use arrow func to not alter `this`
* fix: more replacements
2021-11-23 21:38:28 +00:00
flarum-bot
2721ac8498
Bundled output for commit 302d92aa47
...
Includes transpiled JS/TS.
[skip ci]
2021-11-23 20:45:52 +00:00
Gianni Guida
302d92aa47
feat: added compat exports and extensibility ( #76 )
...
* Added extensibility
* Corrected object export
* Exported the `insertMention` util
* Return a `Promise` in the `reply` util (for extensibility)
* Removed initialization utils
Co-authored-by: Rafael Horvat <rafael.horvat@glowingblue.com>
2021-11-23 20:44:46 +00:00
David Wheatley
f611938707
chore: changelog for 1.1.2
2021-11-16 18:54:03 +00:00
flarum-bot
94bb882120
Bundled output for commit 69657f63b7
...
Includes transpiled JS/TS.
[skip ci]
2021-11-13 22:00:12 +00:00
David Wheatley
69657f63b7
fix: autocomplete errors with TextEditor re-use ( #77 )
2021-11-13 21:58:52 +00:00
flarum-bot
61020eadd6
Bundled output for commit 056c79a908
...
Includes transpiled JS/TS.
[skip ci]
2021-11-05 19:05:24 +00:00
Sami Mazouz
056c79a908
fix: Cannot reply to posts by deleted authors ( #75 )
2021-11-05 20:04:20 +01:00
flarum-bot
b245b41b67
Bundled output for commit ffd982df7f
...
Includes transpiled JS/TS.
[skip ci]
2021-10-18 19:53:25 +00:00
SychO9
ffd982df7f
Merge branch 'v1.1.1'
...
# Conflicts:
# js/dist/forum.js
# js/dist/forum.js.map
2021-10-18 20:49:03 +01:00
SychO9
f1f6da10fd
chore: Release v1.1.1
2021-10-18 20:27:11 +01:00
Sami Mazouz
3437d7229e
fix: Missing #
from autocompleted user mention format ( #74 )
2021-10-18 20:17:22 +01:00
flarum-bot
e63f030094
Bundled output for commit a2832af01f
...
Includes transpiled JS/TS.
[skip ci]
2021-10-13 18:58:59 +00:00
Alexander Skvortsov
a2832af01f
Only search users via rest API if user has permission ( #73 )
...
Closes https://github.com/flarum/core/issues/3070
If the user doesn't have permission to search users, there will currently be browser errors, as the current implementation will still attempt to search and autocomplete. In this PR, we check for permission before searching. The dropdown will still support autocomplete of users currently participating in the discussion.
2021-10-13 14:57:45 -04:00
David Wheatley
ac427a8a4a
chore: bump bundled extension constraint to core 1.1
2021-10-13 08:05:43 +01:00
Alexander Skvortsov
c1318d641c
Release v1.1.0
2021-10-11 21:12:56 -04:00
flarum-bot
367cca8cc7
Bundled output for commit 2cb00d6773
...
Includes transpiled JS/TS.
[skip ci]
2021-10-06 20:31:59 +00:00
Alexander Skvortsov
2cb00d6773
Fix missing space after mentions inserted via post reply
...
Closes https://github.com/flarum/core/issues/3096
2021-10-06 16:30:45 -04:00
flarum-bot
7c954129f0
Bundled output for commit 84dcde4e85
...
Includes transpiled JS/TS.
[skip ci]
2021-10-06 20:24:50 +00:00
Alexander Skvortsov
84dcde4e85
Fix delayed mention search results
...
Fixes https://github.com/flarum/core/issues/3095
2021-10-06 16:22:04 -04:00
Alexander Skvortsov
03c6db4c8d
Import function correctly
...
There was a typo in the function's name which broke mentions.
2021-10-06 16:15:01 -04:00
flarum-bot
798fadbddc
Bundled output for commit 6173c3d612
...
Includes transpiled JS/TS.
[skip ci]
2021-09-20 17:43:50 +00:00
David Wheatley
6173c3d612
Minor refactors in frontend JS ( #69 )
...
* Add Prettier
* Update dependencies; add typescript setup
* Add tsconfig
* Rewrite some mentions frontend into TS
* Fix use of username instead of display name
* Change back to JS
* Remove commented code
* Update function name to match filename
* Update getMentionText.js
* Simplify condition
* Bump packages to stable versions; use prettier package
* Make functions use camel case
* Update js/package.json
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
* Don't access data directly
* Update js/src/forum/addComposerAutocomplete.js
Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
* Update tsconfig.json
Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
2021-09-20 18:42:38 +01:00
Sami Mazouz
6a5d7e9864
Fix unrecognised user/post mentions ( #71 )
...
* fix: Use proper mentionsUsers serializer
The only reason we haven't seen any issues with this up until now is because we have not has to include the relationship in any responses.
* fix: User/Post mentions showing as deleted after saving
The reason this happens is because the modified relationship is not refreshed, so the formatter doesn't recognize the new mentions as valid.
2021-08-30 18:23:59 +01:00
Sami Mazouz
af9e5a9cc9
Eager load more necessary related mentions ( #72 )
...
* perf: Eager load related mentions from the extender
These missing relations caused more queries to be called, the more mentions posts have the more queries produced.
* perf: Eager load models in show endpoints
Can't use the extender for that
2021-08-23 20:33:42 +01:00
Daniel Klabbers
5217b8b6be
fix branch alias
2021-05-25 22:51:07 +02:00
Daniel Klabbers
d37a43c795
changes for stable
2021-05-25 16:26:34 +02:00
flarum-bot
37c1933d37
Bundled output for commit 07e93747be
...
Includes transpiled JS/TS.
[skip ci]
2021-05-25 07:03:39 +00:00
Daniël Klabbers
07e93747be
Merge pull request #70 from flarum/sm/2879-support-smart-quotes
...
Support smart quotes in mentions format
2021-05-25 09:02:38 +02:00
SychO9
b0a301229a
Tweak test name and add posts mention equivalent test
2021-05-25 00:15:10 +01:00
SychO9
cc62044e6f
Support smart quotes in mentions format
2021-05-24 21:49:31 +01:00
Sami Mazouz
a311edf106
Update tests to use setting method ( #68 )
2021-05-17 22:46:02 +01:00
Alexander Skvortsov
53bbb63a24
Bump composer reqs for 1.0.0
2021-05-16 18:28:41 -04:00
David Wheatley
59320d401f
Update copyright year
2021-05-15 00:56:10 +01:00
flarum-bot
b7e9d729c1
Bundled output for commit 8ef8dee532
...
Includes transpiled JS/TS.
[skip ci]
2021-05-14 22:15:06 +00:00
SychO9
8ef8dee532
Use slug for user mentions page
2021-05-14 23:13:45 +01:00
flarum-bot
4d8f105d07
Bundled output for commit ae69dd25c7
...
Includes transpiled JS/TS.
[skip ci]
2021-05-13 00:02:51 +00:00
Alexander Skvortsov
ae69dd25c7
Update for ICU MessageFormat
2021-05-12 19:27:13 -04:00
flarum-bot
bc187d9b83
Bundled output for commit 3e596aaadf
[skip ci]
2021-05-12 19:43:31 +00:00
Sami Mazouz
3e596aaadf
Move replies preview dropdown out of Post-footer ( #55 )
2021-05-12 20:42:33 +01:00
Alexander Skvortsov
8ed08b63cd
Fix mentioned filtering ( #67 )
2021-05-04 14:57:29 -04:00
flarum-bot
e2b309ad95
Bundled output for commit 02d3355989
[skip ci]
2021-05-02 20:38:50 +00:00