Commit Graph

3828 Commits

Author SHA1 Message Date
843a149b80 Run integration tests in a transaction 2021-01-05 22:47:19 -05:00
94381dca62 Fix IOS scroll menu bug (#2527)
Fixes https://github.com/flarum/core/issues/1959

These transform lines are known to cause issues on iOS, and were added to hack around chrome issues that have since been fixed upstream.
2021-01-05 19:40:11 -05:00
a2d5dd3397 Add default value to Settings extender (#2495) 2021-01-05 01:28:25 -05:00
f8edc2d827 npm audit fix v0.1.0-beta.15 2020-12-20 20:55:51 +01:00
62235a16ca Bundled output for commit 36c55e8f69664fd0879745429c7255a2eee31fa0 [skip ci] 2020-12-20 17:15:07 +00:00
36c55e8f69 Add ExtensionPermissionGrid to compat (#2501) 2020-12-20 12:14:00 -05:00
859f014539 beta 15 changelog and version constant 2020-12-18 20:02:22 +01:00
06e1d21331 Fixes validation failures of avatars that are jpg/jpeg (#2497)
Due to a commit by @fabpot in october, the mimetypes symfony class
now re-orders the shortened mimetypes that are returned when looking
up based on header mimetype. Our validator uses the first key, pops
the prefix off and then matches against our hardcoded array.

I've added a constraint to symfony/mime ^5.2.0 which ships with this change.
This constraint is fully compatible with our current lineup. In addition
I changed the hardcoded array to use the first entry from symfony mime types
now `jpg` instead of `jpeg`.
2020-12-16 13:53:17 -05:00
fd5de6929e Bundled output for commit 84b1666b2434a409d14f7349f41df5edc5ac5e99 [skip ci] 2020-12-15 22:50:49 +00:00
84b1666b24 Support multiple callback-based settings per-extension 2020-12-15 17:49:24 -05:00
0c61fcc61c Clarify that request argument of render callbacks for Formatter must be either nullable or omitted 2020-12-14 17:20:35 -05:00
8e25bcb68f Deprecate CheckingForFlooding
This should have been done earlier as part of the ThrottleApi PR
2020-12-14 17:12:05 -05:00
fad783547c Bundled output for commit 210a6b3e253d7917bd1eacd3ed8d2f95073ae99d [skip ci] 2020-12-14 19:07:44 +00:00
210a6b3e25 Fix scroll on long discussions
- Anchor scroll when inserting post placeholders
- Indicate that pages are loading at start of `loadPage`, which allows `onscroll` to not request that multiple pages be loaded at the same time

These changes are particularly applicable to firefox, where previously, dozens of posts could be skipped at a time if scroll up was held while at the top of the viewport.
2020-12-14 14:06:32 -05:00
73409184b9 Fix wrong namespace in docblock (#2494) 2020-12-12 15:36:25 -05:00
afe038699e Fix composer json attribute path to links override section 2020-12-08 19:29:59 -05:00
649851d356 Remove header bottom border (#2489) 2020-12-08 19:15:14 -05:00
d1dfa758e4 Policy Extender and Tests (#2461)
Policy application has also been refactored, so that policies return one of `allow`, `deny`, `forceAllow`, `forceDeny`. The result of a set of policies is no longer the first non-null result, but rather the highest priority result (forceDeny > forceAllow > deny > allow, so if a single forceDeny is present, that beats out all other returned results). This removes order in which extensions boot as a factor.
2020-12-08 19:10:06 -05:00
8901073d12 Model Visibility Scoping Extender and Tests (#2460) 2020-12-07 20:02:46 -05:00
e0437d237a Bundled output for commit 07a43f52b4b542d5a5db5bcbb0d30135cde7bea8 [skip ci] 2020-12-07 20:15:49 +00:00
07a43f52b4 AdminUX Overhaul Small Patches (#2468) 2020-12-07 15:14:22 -05:00
9e9118fa0d Bundled output for commit 46794483005b03455ceb128acfd057c26fa4639f [skip ci] 2020-12-07 18:35:10 +00:00
4679448300 Slug Driver Support (#2456)
- Support slug drivers for core's sluggable models, easily extends to other models
- Add automated testing for affected single-model API routes
- Fix nickname selection UI
- Serialize slugs as `slug` attribute
- Make min search length a constant
2020-12-07 13:33:42 -05:00
ef4bf8128e Bundled output for commit 67a2aac63598f68286bf631a9f677e22c3b73d6d [skip ci] 2020-12-07 18:26:51 +00:00
67a2aac635 Replace forum and admin global compat exports with a Proxy to allow namespace use (#2488) 2020-12-07 13:25:24 -05:00
51a97fb12e ApiController Extender and Tests (#2451) 2020-12-06 15:07:48 -05:00
056d420c7b Pass callback wrapper parameters by reference (#2485)
Because invokable class objects are not directly called and instead it's the callback wrapper that calls these objects, it's currently not possible to receive arguments by reference on an invokable class.

To fix this we pass the arguments by reference by default when calling the object in the callback wrapper.
2020-12-06 14:58:45 -05:00
cfa533ebd6 Add Settings Extender (#2452) 2020-12-04 17:20:06 -05:00
eed407812f User Preferences Extender and Tests (#2463) 2020-12-04 15:45:08 -05:00
641619e820 Fixes issue with the worker defaulting to the illuminate queue manager (#2481)
We are instantiating our own queue handling factory which returns the
flarum.queue.connection binding no matter what. The queue Worker and
other queue related code rely on this manager to get its thing going.
Therefor we need to re-use our own factory everywhere, including in
the worker.
2020-12-02 13:19:25 -05:00
984f751c71 Use process isolation for integration tests 2020-12-01 19:33:24 -05:00
8830e9dd09 Bundled output for commit fe41bc1fdcddf480420203f29831fa3ca817493a [skip ci] 2020-12-01 16:22:59 +00:00
fe41bc1fdc Remove Deprecated Beta14 Code (#2428) 2020-12-01 11:21:28 -05:00
5a763050a6 DRY up image uploading code (#2477) 2020-12-01 10:42:05 -05:00
8c813bc340 ApiSerializer Extender (#2438) 2020-11-30 19:24:50 -05:00
f67dee0a9e Bundled output for commit f96842021649f2a21304fec9e16b687b88c7c433 [skip ci] 2020-11-30 19:02:41 +00:00
f968420216 Don't use browser scroll restore in DiscussionPage (#2476)
Although native browser scroll restorations have become quite powerful, it interferes with Flarum's PostStream, so if we're on a DiscussionPage, we use manual scroll restoration.
2020-11-30 14:01:08 -05:00
d5e124b4a2 Bundled output for commit 09e2736cbcc267594b660beabbd001d9030f9880 [skip ci] 2020-11-29 23:34:50 +00:00
09e2736cbc Fix goToIndex to visible end
In the PostStream, `this.visibleEnd` represents the index of the last post + 1, but `loadNearIndex` treated it as if it was the index of the last post. This means that executing `goToIndex` on the post stream's current `this.visiblePost` didn't load new posts, and as a result, the requested scrolling did not occur.
2020-11-29 18:33:29 -05:00
ddb3d3edb0 Bundled output for commit 28d56f5fc88e0096fe4299aa1a35c459337387ac [skip ci] 2020-11-29 22:47:21 +00:00
28d56f5fc8 Merge pull request #2465 from flarum/0.1.0-beta.14.1 2020-11-29 17:45:58 -05:00
9b4012bbb5 Reset dist js 2020-11-29 17:41:16 -05:00
1a5e4d454e Move floodgate to middleware, add extender + integration tests (#2170) 2020-11-29 17:13:22 -05:00
387b4fd315 update a user's comment count if deleting a discussion (#2472) 2020-11-29 17:11:05 -05:00
66482c2815 Bundled output for commit 277a5c3facc8a1f222b4e4b51899eab0acb59715 [skip ci] 2020-11-26 22:54:38 +00:00
277a5c3fac Clear error alerts in change email modal on success (#2467) 2020-11-26 17:53:38 -05:00
286d8dec5b Update tsconfig file to include .tsx files (#2457) 2020-11-26 12:00:13 -05:00
e1c61a0e85 Bundled output for commit 102e76b084bf47fdfb4c73f95e1fbb322537f7aa [skip ci] 2020-11-26 06:56:10 +00:00
102e76b084 Defer clearing discussion list on discussion start
This prevents an edge case where `app.discussions` is considered empty while the new page is loading, and as a result, the side pane isn't set as "enabled". Then, if the pane has previously been pinned, when the page loads and the side pane appears, it covers up part of the discussion page.

Fixes https://github.com/flarum/core/issues/2471
2020-11-26 01:54:28 -05:00
d09d4bc507 Bundled output for commit c3989cc9525de9d2493c2e6a5868eda41435ecf8 [skip ci] 2020-11-24 17:46:02 +00:00