1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00
Commit Graph

8358 Commits

Author SHA1 Message Date
flarum-bot
09615f1a85 Bundled output for commit 2b3691e7cc
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-18 05:39:33 +00:00
Alexander Skvortsov
2b3691e7cc Fix insertText
In 60dea59815, insertText was modified from the original to work with reply mentioning. This was done due to a misunderstanding of the API: the selection range isn't the selection to replace, but rather the final selection state after replacing the *current* selection with the text. This commit restores the original, correct implementation of insertText and instead adjusts the `insertBetween`method of BasicEditorDriver to set selection state before executing `insertText`.

Fixes https://github.com/flarum/core/issues/2877
2021-05-18 01:37:19 -04:00
flarum-bot
5ccac5d607 Bundled output for commit 7f37e36241
Includes transpiled JS/TS.

[skip ci]
2021-05-18 05:20:53 +00:00
Alexander Skvortsov
7f37e36241 Avoid submitting forms with MarkdownButton
Add type="button" to the component so that it won't submit if placed inside a form.

Fixes https://github.com/flarum/core/issues/2875
2021-05-18 01:19:52 -04:00
Alexander Skvortsov
c39724eae2 Fix filesystem wrong method call
The proper method is `exists`, not `has`.
2021-05-17 18:04:08 -04:00
Sami Mazouz
a311edf106 Update tests to use setting method (#68) 2021-05-17 22:46:02 +01:00
Sami Mazouz
a6695e10cd Check that included array exists (#132) 2021-05-17 16:16:00 -04:00
Daniel Klabbers
54b52051a9 fix missing import of container for resolving the queue connection from ioc 2021-05-17 21:13:30 +02:00
flarum-bot
f9d97b60d5 Bundled output for commit f076329636
Includes transpiled JS/TS.

[skip ci]
2021-05-17 13:44:50 +00:00
David Wheatley
f076329636 Fix tooltip deprecation warning 2021-05-17 14:43:35 +01:00
David Wheatley
c9af88e721 Use namespaced JS imports 2021-05-17 14:43:21 +01:00
David Wheatley
43b6e0818b npm audit fix 2021-05-17 14:33:53 +01:00
flarum-bot
95fc846c04 Bundled output for commit 29525daa9b
Includes transpiled JS/TS.

[skip ci]
2021-05-17 04:21:14 +00:00
Alexander Skvortsov
29525daa9b Fix logic for TagListState
This should load in the requested includes, not just parent and lastPostedDiscussion
2021-05-17 00:20:09 -04:00
Alexander Skvortsov
8468a05b87 Unset tags relation after setting (#131)
This ensures that the proper tag values are returned to the API by clearing any cached tags before returning a response. It also makes sure that the listeners to the `DiscussionWasTagged` event won't have old data under `$event->discussion->tags`.

Fixes https://github.com/flarum/core/issues/2514
2021-05-16 23:28:54 -04:00
flarum-bot
c7b235a781 Bundled output for commit f3ac771980
Includes transpiled JS/TS.

[skip ci]
2021-05-17 00:46:10 +00:00
David Wheatley
f3ac771980 Fix Tooltip deprecation warnings 2021-05-17 01:45:00 +01:00
flarum-bot
4db6810e40 Bundled output for commit fbe6beef28
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-17 00:29:54 +00:00
David Wheatley
fbe6beef28 Fix Badge className not being correctly set
Fixes group icons on Admin permissions page
2021-05-17 01:27:30 +01:00
David Wheatley
1785e6b8cb Update copyright date (#2863) 2021-05-16 19:10:33 -04:00
flarum-bot
f41c22df6f Bundled output for commit 3b52df1d5d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 23:04:41 +00:00
SychO9
3b52df1d5d Remove Beta leftover warning code 2021-05-17 00:02:21 +01:00
SychO9
3635dbad19 Fix $tag object getting overriden by last array item 2021-05-16 23:53:34 +01:00
Alexander Skvortsov
bcb5577de5 Bump composer reqs for 1.0.0 2021-05-16 18:29:46 -04:00
Alexander Skvortsov
d074d8eb23 Bump composer reqs for 1.0.0 2021-05-16 18:29:36 -04:00
Alexander Skvortsov
b51c7c01ba Bump composer reqs for 1.0.0 2021-05-16 18:29:28 -04:00
Alexander Skvortsov
d8a0d1e6f7 Bump composer reqs for 1.0.0 2021-05-16 18:29:18 -04:00
Alexander Skvortsov
44a3ecd261 Bump composer reqs for 1.0.0 2021-05-16 18:29:11 -04:00
Alexander Skvortsov
65164449d3 Bump composer reqs for 1.0.0 2021-05-16 18:28:56 -04:00
Alexander Skvortsov
a07828dde0 Bump composer reqs for 1.0.0 2021-05-16 18:28:49 -04:00
Alexander Skvortsov
53bbb63a24 Bump composer reqs for 1.0.0 2021-05-16 18:28:41 -04:00
Alexander Skvortsov
58b322fc54 Bump composer reqs for 1.0.0 2021-05-16 18:28:28 -04:00
Alexander Skvortsov
05ba7e4270 Bump composer reqs for 1.0.0 2021-05-16 18:28:21 -04:00
Alexander Skvortsov
3f51eb8431 Bump composer reqs for 1.0.0 2021-05-16 18:28:10 -04:00
Alexander Skvortsov
2ce16084a2 Bump composer reqs for 1.0.0 2021-05-16 18:28:02 -04:00
Alexander Skvortsov
2be508c8ab Bump composer reqs for 1.0.0 2021-05-16 18:27:55 -04:00
Alexander Skvortsov
7aac31f9ac Bump composer reqs for 1.0.0 2021-05-16 18:27:49 -04:00
Alexander Skvortsov
f9c0bda172 Bump composer reqs for 1.0.0 2021-05-16 18:27:36 -04:00
Alexander Skvortsov
7bd95e3121 Bump composer reqs for 1.0.0 2021-05-16 18:27:27 -04:00
Alexander Skvortsov
506857bf92 Bump composer reqs for 1.0.0 2021-05-16 18:27:21 -04:00
Alexander Skvortsov
ddd63588d5 Bump composer reqs for 1.0.0 2021-05-16 18:27:10 -04:00
Alexander Skvortsov
6bcbe36654 Bump composer reqs for 1.0.0 2021-05-16 18:27:04 -04:00
flarum-bot
2ab5bb26eb Bundled output for commit 130a07df78
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 00:14:08 +00:00
Alexander Skvortsov
130a07df78 Drop JS copyright blocks 2021-05-15 20:11:38 -04:00
flarum-bot
48344069a9 Bundled output for commit a325444799
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-15 23:09:46 +00:00
Alexander Skvortsov
a325444799 Merge pull request #2867 from flarum/as/1.0-qa-fixes
Assorted 1.0 QA fixes
2021-05-15 19:07:41 -04:00
SychO9
88f44ca0d0 Use core dev-master for tests 2021-05-15 22:54:01 +01:00
Alexander Skvortsov
e835e36b8e Fix glitchy group editing
Currently, when groups are edited, the new groups flicker, but the UI soon reverts to the old groups. This is because the returned API response has the old group values. This, in turn, is because we eager load groups, and when we sync the new group relation, that doesn't update the groups saved in memory. By unsetting the relation, we make sure the right groups are returned (and also available to the GroupsChanged event).

See https://github.com/flarum/core/issues/2514
2021-05-15 02:30:03 -04:00
Alexander Skvortsov
4436d82c36 Fix CustomFooterModal Appearance
The textarea in the CustomFooterModal was much larger than in the other appearance page modals, and did not use a monospaced font. Turns out the other 2 were explicitly specified in the less. This commit adds a class that can be applied to all these modals for simpler maintenance.

Fixes https://github.com/flarum/core/issues/2865
2021-05-14 21:36:06 -04:00
Alexander Skvortsov
c90f05cb94 Fix KeyboardNavigatable
In acd3873bbd, I tried to be clever and create a new KeyboardNavigatable object as a return value for `when`. My approach to cloning was incorrect, and caused the util to break entirely.

My original intent for having this "clone"-based behavior is that a single KeyboardNavigatable instance could be created with multiple listeners, and then "cloned" like this with different "activators" registered via "then" calls. In hindsight, this change introduces more issues than it solves: outside of just not working, the cloned "KeyboardNavigatable" instances have shared internal state (the set of callbacks), and each has write access to this internal state. This is a recipe for unpredictable behavior and confusing bugs, so best to keep things simple for now, and maybe introduce more functional behavior in later releases.

Fixes https://github.com/flarum/QualityAssurance/issues/25
2021-05-14 21:21:58 -04:00