Alexander Skvortsov
f2910d8763
chore: add version to core/ext package.json
...
This is necessary for yarn workspaces to work.
2022-03-11 19:12:11 -05:00
Alexander Skvortsov
5fc0b4963a
chore: flarum-cli audit infra --fix
2022-03-11 18:02:51 -05:00
Alexander Skvortsov
693da58c41
chore: set up composer path repos
2022-03-11 18:02:49 -05:00
Alexander Skvortsov
2bf6b12a64
chore: remove centralizable repo config
...
- Remove .github conf folder from Flarum packages
- Remove styleci config from all packages
2022-03-11 18:01:44 -05:00
Daniel Klabbers
cf7916cebd
Release v1.2
2022-01-20 12:45:05 +01:00
flarum-bot
7dbc5b153f
Bundled output for commit e9feb0aa58005e5800438cf066851f2c05cc95ff
...
Includes transpiled JS/TS.
[skip ci]
2022-01-20 08:46:41 +00:00
Alexander Skvortsov
e9feb0aa58
chore: flarum-cli audit infra --fix
2022-01-20 03:45:09 -05:00
flarum-bot
4c8bba3eb1
Bundled output for commit 0d9c95b0960c5a260c569de43bdc39682a8c56de
...
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 140d6ea2216bd952b7dd1f9e40318afb9f4cf71c
...
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 f41d6bba7e3ed5e7442ff4d8d3bbfba0d01d1182
...
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 302d92aa475a5e247db311a215493cd48faa8177
...
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 69657f63b72d046cd69d6b583c8d83946e3a276a
...
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 056c79a9083f293644623fa27b997a365b3cde0c
...
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 ffd982df7f0089884a9d43ba0883eeb8c2ffff5a
...
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 a2832af01fbe2b1b6bada85651b1207de5f5af9e
...
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 2cb00d67731f01a8a93a8eb6fed14dd91f9fc5c1
...
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 84dcde4e857d5d42527f600dadca0a60c49377c9
...
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 6173c3d6124d04cad7d2b788b90af47f8bb39276
...
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 07e93747be3625e7d12f8dadad4577aa11ebffac
...
Includes transpiled JS/TS.
[skip ci]
2021-05-25 07:03:39 +00: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 8ef8dee5322353b7ed20505775ae85d2a3a9fd08
...
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 ae69dd25c76969ef0fc3bfb0c0f58e0efa2f27d5
...
Includes transpiled JS/TS.
[skip ci]
2021-05-13 00:02:51 +00:00