1
0
mirror of https://github.com/flarum/core.git synced 2025-07-19 07:41:22 +02:00
Commit Graph

1222 Commits

Author SHA1 Message Date
flarum-bot
403ee77c6c Bundled output for commit f6478096ee [skip ci] 2021-01-07 15:26:14 +00:00
Sami Mazouz
f6478096ee Fix composer header hidden by mobile browser (#2279) 2021-01-07 10:25:12 -05:00
Daniël Klabbers
7a6284c760 npm audit fix 2020-12-20 20:55:51 +01:00
flarum-bot
f9ee8e02fd Bundled output for commit 445923fb11 [skip ci] 2020-12-20 17:15:07 +00:00
Sami Mazouz
445923fb11 Add ExtensionPermissionGrid to compat (#2501) 2020-12-20 12:14:00 -05:00
flarum-bot
2d22a8a1cd Bundled output for commit 68b0554c2f [skip ci] 2020-12-15 22:50:49 +00:00
Alexander Skvortsov
68b0554c2f Support multiple callback-based settings per-extension 2020-12-15 17:49:24 -05:00
flarum-bot
c2b3bfe1d9 Bundled output for commit a7306addf1 [skip ci] 2020-12-14 19:07:44 +00:00
Alexander Skvortsov
a7306addf1 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
flarum-bot
2ffb2dbab7 Bundled output for commit 6d07820952 [skip ci] 2020-12-07 20:15:49 +00:00
Charlie
6d07820952 AdminUX Overhaul Small Patches (#2468) 2020-12-07 15:14:22 -05:00
flarum-bot
d6a20567af Bundled output for commit 0fcbca8f4a [skip ci] 2020-12-07 18:35:10 +00:00
Matt Kilgore
0fcbca8f4a 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
flarum-bot
0df35e8796 Bundled output for commit b6c4aae067 [skip ci] 2020-12-07 18:26:51 +00:00
David Sevilla Martín
b6c4aae067 Replace forum and admin global compat exports with a Proxy to allow namespace use (#2488) 2020-12-07 13:25:24 -05:00
flarum-bot
720dfceb25 Bundled output for commit 3b953941b1 [skip ci] 2020-12-01 16:22:59 +00:00
Alexander Skvortsov
3b953941b1 Remove Deprecated Beta14 Code (#2428) 2020-12-01 11:21:28 -05:00
flarum-bot
d1c8d88ddd Bundled output for commit 35228b4b27 [skip ci] 2020-11-30 19:02:41 +00:00
Alexander Skvortsov
35228b4b27 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
flarum-bot
c100316451 Bundled output for commit e3acc0a9e3 [skip ci] 2020-11-29 23:34:50 +00:00
Alexander Skvortsov
e3acc0a9e3 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
flarum-bot
4a165a13c2 Bundled output for commit d85e5c31b7 [skip ci] 2020-11-29 22:47:21 +00:00
Alexander Skvortsov
d85e5c31b7 Merge pull request #2465 from flarum/0.1.0-beta.14.1 2020-11-29 17:45:58 -05:00
Alexander Skvortsov
cb7f8cf92f Reset dist js 2020-11-29 17:41:16 -05:00
flarum-bot
8536285106 Bundled output for commit d1f5bd8df5 [skip ci] 2020-11-26 22:54:38 +00:00
Mohammad Reza
d1f5bd8df5 Clear error alerts in change email modal on success (#2467) 2020-11-26 17:53:38 -05:00
Nina Pypchenko
3792509521 Update tsconfig file to include .tsx files (#2457) 2020-11-26 12:00:13 -05:00
flarum-bot
46fd65a2d1 Bundled output for commit bd3c330217 [skip ci] 2020-11-26 06:56:10 +00:00
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
Daniël Klabbers
ac12a33fc0 bundled output for js changes beta 14.1 2020-11-02 11:53:27 +01: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
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
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
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