Commit Graph

8565 Commits

Author SHA1 Message Date
Alexander Skvortsov
6ff50874fa Use Symfony TranslatorInterface for tests
This seems to be a leftover change missed in https://github.com/flarum/core/pull/2243
2020-10-05 16:02:12 -04:00
flarum-bot
bf2a56e404 Bundled output for commit f347a45fd1 [skip ci] 2020-10-05 18:41:55 +00:00
Alexander Skvortsov
f347a45fd1 Catch promise reject when not logged in on reply 2020-10-05 14:40:33 -04:00
flarum-bot
bdb55e45c4 Bundled output for commit c6829edd85 [skip ci] 2020-10-05 15:53:24 +00:00
Wadim Kalmykov
c6829edd85 fix tagLabel links (#96) 2020-10-05 11:52:11 -04:00
flarum-bot
401c31a71d Bundled output for commit 7c5b274731 [skip ci] 2020-10-05 14:56:45 +00:00
Wadim Kalmykov
7c5b274731 call parent onremove (#2362) 2020-10-05 10:55:14 -04:00
Abhishek Verma
312bc7d1f4 Fixed Broken Badges in ReadMe.md (#2358) 2020-10-04 16:11:39 -04:00
flarum-bot
24b3e2ed4b Bundled output for commit 51fe530285 [skip ci] 2020-10-03 22:48:56 +00:00
Alexander Skvortsov
51fe530285 Fix email confirmation alert
Currently, the controls are on a new line due to the container div. We want to wrap ALL children of the alert, including the controls, in the container div.

We need to split it into a separate class so that we can add modify the alert vnode AFTER the alert component's `view` logic has been applied.
2020-10-03 18:47:27 -04:00
Sami Mazouz
e787048af1 Fix Editing Discussion Tags Permission (#95) 2020-10-03 18:37:56 -04:00
Alexander Skvortsov
80f6e9c808 Remove unused import 2020-10-03 18:04:06 -04:00
flarum-bot
ddc2711146 Bundled output for commit c2bb7d45f6 [skip ci] 2020-10-03 00:51:55 +00:00
Alexander Skvortsov
c2bb7d45f6 Use Link component instead of route patch 2020-10-02 20:51:03 -04:00
flarum-bot
955309cc5f Bundled output for commit 88508c459c [skip ci] 2020-10-03 00:50:15 +00:00
Alexander Skvortsov
88508c459c Use Stream util instead of m.stream 2020-10-02 20:49:17 -04:00
flarum-bot
0a7edacc4e Bundled output for commit 961bb3178f [skip ci] 2020-10-03 00:23:17 +00:00
Alexander Skvortsov
961bb3178f Use Stream util instead of m.stream 2020-10-02 20:22:09 -04:00
flarum-bot
d94dfa6090 Bundled output for commit 26c84b9e5b [skip ci] 2020-10-03 00:20:06 +00:00
Alexander Skvortsov
26c84b9e5b Use Link component instead of route patch 2020-10-02 20:19:10 -04:00
flarum-bot
e9492a2900 Bundled output for commit 99b4f707be [skip ci] 2020-10-03 00:18:29 +00:00
Alexander Skvortsov
99b4f707be Use Link component instead of route patch 2020-10-02 20:17:15 -04:00
David Sevilla Martín
ba772ab4fc Remove Mithril namespace export from shims.d.ts (#2347)
From using PhpStorm to try and see if the autocomplete works properly, it appears as it doesn't. The intention was to not have to import Mithril every time we wanted to type something with Mithril.*, but that doesn't seem to be possible - and it's not a big deal anyway
2020-10-02 19:34:06 -04:00
flarum-bot
d864a287a8 Bundled output for commit ede3a33952 [skip ci] 2020-10-02 23:23:49 +00:00
Alexander Skvortsov
ede3a33952 Use Link component instead of route patch 2020-10-02 19:22:43 -04:00
Alexander Skvortsov
07e93eb6f9 Use flarum/utils/Stream instead of m.stream 2020-10-02 19:22:19 -04:00
flarum-bot
bae0f5b6ff Bundled output for commit 5dfc037719 [skip ci] 2020-10-02 23:20:02 +00:00
Alexander Skvortsov
5dfc037719 Use flarum/utils/Stream instead of m.stream 2020-10-02 19:19:05 -04:00
flarum-bot
4446a6fd2e Bundled output for commit 42b3a09c26 [skip ci] 2020-10-02 23:06:45 +00:00
Alexander Skvortsov
42b3a09c26 Eliminate temporary BC layers from rewrite
During the frontend rewrite, we introduced mithril patches for a `route` attr, and for `m.stream`. Later, we decided not to go that route, but not to remove the patches yet to avoid breaking extensions while we were finalizing the replacements. We can now remove these.

Other BC layers are for things from before beta 14, so those remain in place.
2020-10-02 19:05:26 -04:00
flarum-bot
530ab7c715 Bundled output for commit c8cc1ed665 [skip ci] 2020-10-02 22:50:48 +00:00
Alexander Skvortsov
c8cc1ed665 Various TypeScript improvements (#2309)
- Use Mithril.Attributes as base for ComponentAttrs, remove =any from class signature for Component
- Convert Alert to TypeScript, introduce AlertAttrs interface
- Convert AlertManagerState to TypeScript, add overload signatures for `show`, introduce AlertState interface for stored Alerts.
- Set ComponentAttrs as default T for Component
- Make attrs in AlertAttrs optional
- Add AlertIdentifier interface, simplify show type signature
- Remove mithril patch shim, as all patches onto m are now deprecated
- Use Mithril.Static for shim
2020-10-02 18:49:40 -04:00
flarum-bot
d2f55e941b Bundled output for commit 0232ec0edd [skip ci] 2020-10-02 22:05:01 +00:00
Wadim Kalmykov
0232ec0edd Improve DiscussionListState refresh method (#2322)
- Ensure that the discussion list is cleared before it is updated with fetched results
- Rename `clear` to `deferClear`, improve documentation to make its purpose clearer.
2020-10-02 18:03:44 -04:00
Alexander Skvortsov
563c03fc07 Add extension dependency error translations (#172) 2020-10-02 18:01:16 -04:00
flarum-bot
81435a5ca0 Bundled output for commit eb717bb034 [skip ci] 2020-10-02 21:55:59 +00:00
Alexander Skvortsov
eb717bb034 Basic Extension Dependency Support (#2188)
- Don't enable an extension if its dependencies are not enabled
- Don't disable an extension if its dependencies are not disabled
2020-10-02 17:54:28 -04:00
flarum-bot
9251aa925f Bundled output for commit 9e88609a56 [skip ci] 2020-10-02 21:11:38 +00:00
Alexander Skvortsov
9e88609a56 Minor improvements to onNewRoute (#2328)
- Call onNewRoute when page changed with same component in DiscussionPage and UserPage

- Make app.previous and app.current changed in onNewRoute, not in oninit. This way, when the route is changed, but still handled by the same component, a new PageState object will still be created.
2020-10-02 17:10:38 -04:00
flarum-bot
d968f50a64 Bundled output for commit 0aa6eb2b44 [skip ci] 2020-10-02 20:58:06 +00:00
Alexander Skvortsov
0aa6eb2b44 Use Link component for links instead of mithril route patch (#2315)
This new component now also supports external links.
2020-10-02 16:56:40 -04:00
Rafael Horvat
1f0b87fede Renamed TagWillBeSaved => Saving. Deprecated the old event. (#92) 2020-10-02 12:55:25 -04:00
flarum-bot
6f8aa0ed5a Bundled output for commit b69abb87b5 [skip ci] 2020-10-02 15:15:05 +00:00
Alexander Skvortsov
b69abb87b5 Adjust PostStreamScrubber height after scroll (#2333) 2020-10-02 11:13:55 -04:00
Alexander Skvortsov
28056d0c0e Ensure that modal hide animates (#2332)
We want to return a promise in``onbeforeremove` with arbitrary loading time to ensure that the animateHide animation has time to complete.
2020-10-02 11:12:49 -04:00
flarum-bot
07b1ed4d76 Bundled output for commit 2696f02ce1 [skip ci] 2020-10-01 18:52:08 +00:00
Alexander Skvortsov
2696f02ce1 Fix multiple scrolls to same post in PostStream (#2264)
While more pleasant from an FSM standpoint, comparing the current targetPost to the previous one does not work if goToNumber is called twice in a row for the same post. For instance, if a user clicks the mentions link to a post twice, the post stream breaks.
2020-10-01 14:50:54 -04:00
Alexander Skvortsov
a91ec31637 Translate emails for mentions (#167) 2020-10-01 11:18:44 -04:00
Alexander Skvortsov
9ef207fa85 Translate notification emails (#50) 2020-10-01 11:16:20 -04:00
flarum-bot
8e8cfe28ec Bundled output for commit 9b3c94964c [skip ci] 2020-10-01 01:03:05 +00:00