Commit Graph

3830 Commits

Author SHA1 Message Date
Alexander Skvortsov
bd3c330217 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
flarum-bot
5dec091207 Bundled output for commit d9d6df4326 [skip ci] 2020-11-24 17:46:02 +00:00
Charlie
d9d6df4326 AdminUX Overhaul (#2409)
- Extensions now have their own pages
- The API for extensions to register permissions and settings has been overhauled via the `flarum/admin/utils/ExtensionData` util
- An extension grid has been added as a widget to the Dashboard page
2020-11-24 12:44:40 -05:00
flarum-bot
b2bfe77e67 Bundled output for commit 3d597f9fab [skip ci] 2020-11-14 22:23:04 +00:00
Wadim Kalmykov
3d597f9fab Fix mobile PostStream top scroll adjustment & remove App:before (#2385)
- remove App:before so we can use #app-navigation to access the mobile header
- fix mobile postStream scroll top margin adjustment
2020-11-14 17:21:38 -05:00
Alexander Skvortsov
10e356e1b2 Refactor Route Resolving and Dispatch (#2425)
- Split DispatchRoute. This allows us to run middleware after we figure out which route we're on, but before we actually execute the controller for that route.
- By making the route name explicitly available to middlewares, applications like CSRF and floodgate can set patterns based on route names instead of the path, which is an implementation detail.
- Support using route name match for CSRF extender, deprecate path match
2020-11-10 12:52:12 -05:00
Nina Pypchenko
29157ac2a9 Make checkbox switch component background stand out in modals (#2443) 2020-11-09 20:54:21 -05:00
Alexander Skvortsov
e2366aa5f8 Add missing import 2020-11-08 21:49:11 -05:00
Alexander Skvortsov
74946a3d04 Fix Callables for Extenders (#2423)
- Standardize signatures and variable names for extenders that take callbacks
- Adjust model extender docblock to clarify that default calue can't be an invokable class.
- Make invokable classes provided to Model->relationship
- Add integration tests to ensure Model->relationship and User->groupProcessor extenders accept callbacks
- Extract code for wrapping callbacks into central util
2020-11-08 21:36:38 -05:00
Nina Pypchenko
de5d9644cf Improved Permissions Error Messages for Initial Install (#2435)
- Made the wording of the error more generic
- Added link to the relevant section in the installation guide

Resolves #2327.
2020-11-07 14:48:11 -05:00
Sami Mazouz
0ae19a3da6 Add Service Provider Extender (#2437) 2020-11-06 13:30:10 -05:00
Sami Mazouz
185a737273 Add Notification Channel Extender (#2432) 2020-11-05 12:09:06 -05:00
Alexander Skvortsov
5dddc2e663 Refactor and improve formatter extender (#2098)
- Deprecated all events involved with Formatter
- Refactor ->configure() method on extender not to use events
- Add extender methods for ->render() and ->parse()
- Add integration tests
2020-11-03 13:05:33 -05:00
Alexander Skvortsov
9149489405 Added post extender with type method, deprecated ConfigurePostTypes (#2101) 2020-11-03 10:43:49 -05:00
Daniël Klabbers
7aee556a36 update version constant for beta 14.1 2020-11-02 13:53:20 +01:00
Daniël Klabbers
ac12a33fc0 bundled output for js changes beta 14.1 2020-11-02 11:53:27 +01:00
Daniël Klabbers
84a35fc642 changelog for v0.1.0-beta.14.1 2020-11-02 11:51:24 +01:00
Alexander Skvortsov
459d4b63b0 Validator extender (#2102)
Added validator extender, integration tests, and deprecated related Validating event
2020-11-01 11:31:16 -05:00
Sami Mazouz
10db7aad62 Add Notification Type Extender and Tests (#2424) 2020-10-31 17:17:14 -04:00
Alexander Skvortsov
339601a8a3 Fix exiting composer while in fullscreen mode. 2020-10-30 20:44:52 -04:00
flarum-bot
a7d7150b68 Bundled output for commit 67cb6aaffe [skip ci] 2020-10-31 00:28:56 +00:00
Lucas Henrique
67cb6aaffe Convert common time helpers to Typescript (#2391) 2020-10-30 20:27:40 -04:00
Alexander Skvortsov
bea0f3c05b Fix broken page title logic on subpath installs
The base path needs to be accounted for when calculating whether we're on the default route.
2020-10-30 14:18:09 -04:00
Alexander Skvortsov
f3e66f23b1 Updater should show on any subpath, like installer (#2426) 2020-10-30 13:28:20 -04:00
flarum-bot
0cd57d8cba Bundled output for commit 90584bd6ef [skip ci] 2020-10-29 16:54:36 +00:00
Alexander Skvortsov
90584bd6ef Ensure scripts provided by textformatter are run (#2415) 2020-10-29 12:53:23 -04:00
Daniël Klabbers
89f7827f6b Update Symfony components to v4 (#2407)
This matches the Symfony dependencies of our laravel dependencies.
2020-10-27 17:12:36 -04:00
flarum-bot
16a0881db4 Bundled output for commit 79ac8b01eb [skip ci] 2020-10-25 17:36:51 +00:00
Alexander Skvortsov
79ac8b01eb Export SuperTextarea util in compat 2020-10-25 13:35:15 -04:00
Daniël Klabbers
b4b56a120c update version constant 2020-10-20 16:34:54 +02:00
Alexander Skvortsov
6f8c99c2bf Update email 2020-10-20 10:32:24 -04:00
Daniël Klabbers
c716a8423e changelog v0.1.0-beta.14 and added core developer @askvortsov1 2020-10-20 16:24:43 +02:00
flarum-bot
1754ae3589 Bundled output for commit acfed14e0f [skip ci] 2020-10-17 17:43:39 +00:00
Alexander Skvortsov
acfed14e0f Page Scroll Cleanup (#2396)
- Reintroduce cancellable scroll top on page change
- IndexPage: rely on browser to retain scroll position on page reload
- Remove obsolete browser hack
- Fix broken selector
- When on mobile, only retain scroll for IndexPage if we're coming from a discussion
- Move app.cache.scrollTop save into `onbeforeremove` so we make sure to do it before DOM is detached
2020-10-17 13:42:33 -04:00
flarum-bot
4ed93aae45 Bundled output for commit 3d5f30453b [skip ci] 2020-10-16 20:32:13 +00:00
Alexander Skvortsov
3d5f30453b Fix scolling to first post via m.route.set
The default first post number is '1', so we scroll to that if we're calling `m.route.set` without a `near` parameter, as that means we're scrolling to the top.

This was present in beta 13's implementation, but accidentially omitted in 3f0b3c7.

We also remove unnecessary typecasting for simpler logic and increased consistency with beta 13.
2020-10-16 16:30:27 -04:00
flarum-bot
5a5982b2aa Bundled output for commit 6a0ea3a5a3 [skip ci] 2020-10-16 20:05:15 +00:00
Alexander Skvortsov
6a0ea3a5a3 Fix check for going between discussion pages.
The current implementation for checking whether we are on a discussion page, and going to a discussion page, checks the route we are going to. This is problematic, because the route resolver represents the route being considered, not the route we are currently on. So, if we are currently using a DiscussionPageResolver, we must be going to a route handled by DiscussionPage. Instead, we need to check the route that we are currently on, which is done via `app.current.matches(DiscussionPage)`.
2020-10-16 16:03:32 -04:00
flarum-bot
1b9f6f1502 Bundled output for commit 086c06145c [skip ci] 2020-10-16 16:07:09 +00:00
Alexander Skvortsov
086c06145c Fix scrolling to reply via 'reply' as near parameter 2020-10-16 12:04:45 -04:00
Alexander Skvortsov
2df4a1a4a8 Notification: fix wrong external attr for Link 2020-10-16 11:53:45 -04:00
flarum-bot
878e323f7c Bundled output for commit 388b5adb05 [skip ci] 2020-10-16 05:26:03 +00:00
Alexander Skvortsov
388b5adb05 Fix PostStream loadRange doesn't return all posts (#2384)
- Also, ensure that posts are ordered by creation timestamp
2020-10-16 01:24:45 -04:00
Wadim Kalmykov
ae01ea679b order posts by creation date 2020-10-16 01:20:54 -04:00
Wadim Kalmykov
a8c52bc3df Fix loadRange doesn't return all posts 2020-10-16 01:20:54 -04:00
flarum-bot
d00c932ffc Bundled output for commit 012e81ac40 [skip ci] 2020-10-16 01:59:56 +00:00
Alexander Skvortsov
012e81ac40 Fix broken import 2020-10-15 21:58:18 -04:00
Alexander Skvortsov
a120ebd3ba Rename resolver to resolvers for consistency 2020-10-15 21:26:34 -04:00
flarum-bot
f7beee9397 Bundled output for commit b393b57160 [skip ci] 2020-10-15 22:20:11 +00:00
Alexander Skvortsov
b393b57160 Default force attr to true on LinkButton
This retains beta 13 behavior.
2020-10-15 18:18:51 -04:00