Commit Graph

3884 Commits

Author SHA1 Message Date
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
c3989cc952 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
9cb9097b24 Bundled output for commit 571a835be02dabe64f41d72a4755dd163e7a4e99 [skip ci] 2020-11-14 22:23:04 +00:00
571a835be0 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
0c95774333 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
67741c7a6f Make checkbox switch component background stand out in modals (#2443) 2020-11-09 20:54:21 -05:00
f5cfec15e3 Add missing import 2020-11-08 21:49:11 -05:00
47d2eee9ce 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
c10cc92deb 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
529d2edcaf Add Service Provider Extender (#2437) 2020-11-06 13:30:10 -05:00
f0e77a5789 Add Notification Channel Extender (#2432) 2020-11-05 12:09:06 -05:00
87c258b2f8 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
cee87848fe Added post extender with type method, deprecated ConfigurePostTypes (#2101) 2020-11-03 10:43:49 -05:00
967cd0e3ca update version constant for beta 14.1 v0.1.0-beta.14.1 2020-11-02 13:53:20 +01:00
b79152b977 bundled output for js changes beta 14.1 2020-11-02 11:53:27 +01:00
ace624db66 changelog for v0.1.0-beta.14.1 2020-11-02 11:51:24 +01:00
5842dd1200 Validator extender (#2102)
Added validator extender, integration tests, and deprecated related Validating event
2020-11-01 11:31:16 -05:00
b311512502 Add Notification Type Extender and Tests (#2424) 2020-10-31 17:17:14 -04:00
9b9f2c4bb7 Fix exiting composer while in fullscreen mode. 2020-10-30 20:44:52 -04:00
0b2a5fa5b8 Bundled output for commit 52e45aacad158dfc7832020c9dcf4e73b477dcf9 [skip ci] 2020-10-31 00:28:56 +00:00
52e45aacad Convert common time helpers to Typescript (#2391) 2020-10-30 20:27:40 -04:00
8b1de457bf 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
21c2a4b2a4 Updater should show on any subpath, like installer (#2426) 2020-10-30 13:28:20 -04:00
12c03dc4e1 Bundled output for commit d2927cfdb9b721f3e71deb569ae2a95953600bf3 [skip ci] 2020-10-29 16:54:36 +00:00
d2927cfdb9 Ensure scripts provided by textformatter are run (#2415) 2020-10-29 12:53:23 -04:00
24b7a21507 Update Symfony components to v4 (#2407)
This matches the Symfony dependencies of our laravel dependencies.
2020-10-27 17:12:36 -04:00
c9a04fe009 Bundled output for commit bd7fa11b5a56b5955dfb4fc276ef5dec4a7e46b1 [skip ci] 2020-10-25 17:36:51 +00:00
bd7fa11b5a Export SuperTextarea util in compat 2020-10-25 13:35:15 -04:00
7055f6d941 update version constant v0.1.0-beta.14 2020-10-20 16:34:54 +02:00
f765001f06 Update email 2020-10-20 10:32:24 -04:00
683739a617 changelog v0.1.0-beta.14 and added core developer @askvortsov1 2020-10-20 16:24:43 +02:00
69b7fe8d01 Bundled output for commit 1936b9117ded44be291cb002c734081497933e13 [skip ci] 2020-10-17 17:43:39 +00:00
1936b9117d 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
d53eeded44 Bundled output for commit 0650788e7c0b8d1c43baa31a6ec238e8c59742db [skip ci] 2020-10-16 20:32:13 +00:00
0650788e7c 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 988b6c9.

We also remove unnecessary typecasting for simpler logic and increased consistency with beta 13.
2020-10-16 16:30:27 -04:00
6a77184611 Bundled output for commit a8b36cb76dd71e30b75bb29da0b6e99759df7d21 [skip ci] 2020-10-16 20:05:15 +00:00
a8b36cb76d 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
5cd14d594b Bundled output for commit f4ad9d2d5afea8e35b52adfcc3a11a5e4724c93e [skip ci] 2020-10-16 16:07:09 +00:00
f4ad9d2d5a Fix scrolling to reply via 'reply' as near parameter 2020-10-16 12:04:45 -04:00
d409484abf Notification: fix wrong external attr for Link 2020-10-16 11:53:45 -04:00
1fc24635f6 Bundled output for commit ff7ac0b32246044713857fba51b13c5ed45d6550 [skip ci] 2020-10-16 05:26:03 +00:00
ff7ac0b322 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
d460aaa3ad order posts by creation date 2020-10-16 01:20:54 -04:00
7634a766cb Fix loadRange doesn't return all posts 2020-10-16 01:20:54 -04:00
e5f53b93a6 Bundled output for commit a38c92d4097175432de87527825bcf1ae4e28b24 [skip ci] 2020-10-16 01:59:56 +00:00