Commit Graph

4067 Commits

Author SHA1 Message Date
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
Alexander Skvortsov
2e1331b1fe Fix routeName attr not being passed into pages 2020-10-15 18:14:20 -04:00
flarum-bot
ccf8b2448f Bundled output for commit 3f0b3c789f [skip ci] 2020-10-15 22:02:46 +00:00
Alexander Skvortsov
3f0b3c789f Allow extensions to use route resolvers (#2275)
- mapRoutes: don't wrap components in resolvers if they are already resolvers
- Extract defaultResolver into its own class
- Allow either route resolver instances, or components with an optional resolverClass which should accept the component and route name in its constructor.
- Introduce a resolver for DiscussionPage, so that routing from one post to another on the same discussion triggers a scroll instead of rerendering
2020-10-15 18:01:17 -04:00
flarum-bot
b8b91f2760 Bundled output for commit b561c119ea [skip ci] 2020-10-15 21:47:33 +00:00
Alexander Skvortsov
b561c119ea Fix PostStream Reply Scroll (#2366)
- Add an index to reply placeholder so we can scroll to it directly when replying.
- Stop pretending that the currently broken `bottom` scroll functionality works, and explicitly call it `reply` scrolling to be clearer
- Directly get target from state
- Explicitly scroll to placeholder on reply
- Clean up scrollToItem code a bit
- Account for edge case where index is undefined when scrolling to post

Co-authored-by: Wadim Kalmykov <36057469+w-4@users.noreply.github.com>
2020-10-15 17:46:02 -04:00
flarum-bot
6d2bd81dda Bundled output for commit 6cf716dc81 [skip ci] 2020-10-15 21:41:56 +00:00
Wadim Kalmykov
6cf716dc81 Fix lifecyle method workarounds (#2378)
Essentially, whenever a route is loaded, we add a key to that component. If the key changes, the page completely rerenders. Switching between different routes handled by the same key triggers those rerenders.
2020-10-15 17:40:25 -04:00
flarum-bot
38dc21246d Bundled output for commit 0e90ca675f [skip ci] 2020-10-15 21:36:46 +00:00
Wadim Kalmykov
0e90ca675f Make PostStreamScrubber work for Posts that have top margin (#2369)
Also fixes incorrect page count when scrolling to bottom (https://github.com/flarum/core/issues/1897)
2020-10-15 17:35:22 -04:00
Alexander Skvortsov
465ab54ff3 Refactor PostStream animations (#2364)
- If the fadeIn animation is specified on the PostStream class itself, any time we add/remove another animation, it will redo fadeIn. To avoid this, we move fadeIn into it's own css class, which is applied, and then immediately removed after the animation is completed to ensure it only runs once.
- The "fix" for flashItem was actually broken, as it resulted in 'flash' never being removed, so we never went back to .PostStream's fadeIn. We adjust flashItem to ensure that '.flash' is removed. We also remove 'fadeIn' in case it hasn't yet been removed in oncreate.
2020-10-15 17:34:35 -04:00
flarum-bot
5664c138d6 Bundled output for commit 995cd7ea1f [skip ci] 2020-10-15 18:32:09 +00:00
Wadim Kalmykov
995cd7ea1f make scroll listener passive (#2387)
see: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
2020-10-15 14:30:32 -04:00
Wadim Kalmykov
d8141c7caa Make header and navigation components redraw after page components (#2390)
Make header and navigation components redraw after page components. Page components manipulate the header (state), but the header redraws before the page on route change. By changing the mount order, we change also the redraw order.
2020-10-15 14:29:42 -04:00