Alexander Skvortsov
41d6e91318
update: common/states/AlertManagerState
...
- Children is now the first argument of the alerts.show function, since it's no longer managed through attrs. It's also more relvant than attrs, which is why I put it first, but we can definitely reverse the two.
2020-09-18 22:19:59 +02:00
Alexander Skvortsov
87414995b6
fix: forum/components/UserSearchSource
...
- Use route attr instead of href and config
2020-09-18 22:19:59 +02:00
Alexander Skvortsov
2c93b5f801
update: forum/components/PostUser
2020-09-18 22:19:59 +02:00
Alexander Skvortsov
7498f5e506
fix: forum/components/UserCard
...
- Use route attr instead of href and config
2020-09-18 22:19:58 +02:00
Alexander Skvortsov
79f5291f04
update: forum/states/PostStreamState
...
- Change m.deferred to native promise
2020-09-18 22:19:58 +02:00
Alexander Skvortsov
ed3b923f58
update: forum/components/ReplyPlaceholder
...
- The preview has been extracted to ReplyPlaceholderPreview
2020-09-18 22:19:58 +02:00
Alexander Skvortsov
1ce06611ce
add: Extract ReplyPlaceholderPreview from ReplyPlaceholder
2020-09-18 22:19:57 +02:00
Alexander Skvortsov
27bacd779b
Update patchMithril modified link documentation with a better link to mithril's docs.
2020-09-18 22:19:57 +02:00
Alexander Skvortsov
02acacfdcb
Merge branch 'mithril-2-update' of github.com:flarum/core into mithril-2-update
2020-09-18 22:19:57 +02:00
Alexander Skvortsov
23d95a7566
Add Pane to ForumApplication
2020-09-18 22:19:56 +02:00
Alexander Skvortsov
43164df79e
formatting fix
2020-09-18 22:19:56 +02:00
Alexander Skvortsov
46e704b27b
update: IndexPage (move onunload contents into onremove)
2020-09-18 22:19:56 +02:00
David Sevilla Martin
e55867acb4
format
2020-09-18 22:19:55 +02:00
Alexander Skvortsov
3596425bde
update: History (re-init component even if already on index page)
2020-09-18 22:19:55 +02:00
David Sevilla Martin
b43452223f
fix: Button not appearing disabled when loading
2020-09-18 22:19:55 +02:00
Alexander Skvortsov
70697be8c0
infrastructure: (mostly) force re-calling oninit when a route change is handled by the same component
...
- Due to mithril 2.0, setting a route will not re-call oninit if the component handling the route has not changed.
- Mithril allows us to provide an options parameter to m.route.set, which, if has the state.key parameter changed, will force a re-oninit. However, manually implementing this on every button and component is both tedious, and will make further changes in functionality difficult
- To that end, we can add in this patch here, which will take care of most cases. Code that explicitly calls m.route.set will still need to include this options parameter.
2020-09-18 22:19:55 +02:00
Alexander Skvortsov
c20ae678f5
Move config method of IndexPage into oncreate and onremove
2020-09-18 22:19:54 +02:00
Alexander Skvortsov
30a61b8b42
fix: forum/components/DiscussionListItem (use route instead of config)
2020-09-18 22:19:54 +02:00
Alexander Skvortsov
824fe95346
update: DisussionSearchSource (use route attr to support linking without refreshing)
2020-09-18 22:19:54 +02:00
David Sevilla Martin
8475d176e0
fix: forum/routes /:filter handling /settings
2020-09-18 22:19:53 +02:00
David Sevilla Martin
95f4dc771d
update: forum/components/SettingsPage
2020-09-18 22:19:53 +02:00
David Sevilla Martin
68caf45f33
update: forum/components/NotificationGrid
2020-09-18 22:19:53 +02:00
David Sevilla Martin
f72d118bec
cleanup: common/components/Button
2020-09-18 22:19:52 +02:00
David Sevilla Martin
652d961907
update: common/components/FieldSet
2020-09-18 22:19:52 +02:00
David Sevilla Martin
71178245fc
update: common/components/Switch
2020-09-18 22:19:52 +02:00
David Sevilla Martin
cfd1f01299
update: common/components/Checkbox
2020-09-18 22:19:52 +02:00
David Sevilla Martin
674f55e91d
fix: support text-only vnodes with extractText
...
Also seems to fix not having a space between 'Posts' and the number of posts in the UserPage tooltips
2020-09-18 22:19:51 +02:00
David Sevilla Martin
f897b58f29
add: common/utils/withAttr
...
Replaces m.withAttr
2020-09-18 22:19:51 +02:00
David Sevilla Martin
5c49b71c02
update: forum/utils/UserControls
2020-09-18 22:19:51 +02:00
David Sevilla Martin
b9ba5b63f1
update: forum/components/DiscussionsUserPage
2020-09-18 22:19:50 +02:00
David Sevilla Martin
6e88dfb2cb
update: forum/components/PostsUserPage
2020-09-18 22:19:50 +02:00
David Sevilla Martin
c899e11070
update: forum/components/UserPage
2020-09-18 22:19:50 +02:00
David Sevilla Martin
784b5cc03c
update: forum/components/AvatarEditor
2020-09-18 22:19:49 +02:00
David Sevilla Martin
c17d7cd23f
fix: Application#updateTitle using m.route() instead of m.route.get()
2020-09-18 22:19:49 +02:00
David Sevilla Martin
4af34265cc
update: common/components/GroupBadge
2020-09-18 22:19:49 +02:00
Alexander Skvortsov
1616d8f1c7
Fix patchMithril for route
2020-09-18 22:19:48 +02:00
Alexander Skvortsov
57b85f501a
Add composer mount to ForumApplication
2020-09-18 22:19:48 +02:00
Alexander Skvortsov
91609b8a71
update: forum/components/DiscussionComposer
2020-09-18 22:19:48 +02:00
Alexander Skvortsov
9d8b466d57
update: forum/states/ComposerState
2020-09-18 22:19:48 +02:00
Alexander Skvortsov
02154d05e5
update: forum/components/TextEditor
2020-09-18 22:19:47 +02:00
Alexander Skvortsov
a454b185e9
update forum/components/ComposerButton
2020-09-18 22:19:47 +02:00
Alexander Skvortsov
84c5248872
update: forum/components/ComposerBody
2020-09-18 22:19:47 +02:00
Alexander Skvortsov
2a784009fb
update: Composer
2020-09-18 22:19:46 +02:00
Alexander Skvortsov
070865f825
update: IndexPage to fix newDiscussionAction (use promise instead of deferred)
2020-09-18 22:19:46 +02:00
Alexander Skvortsov
9615fd3e39
update: common/components/ConfirmDocumentUnload
2020-09-18 22:19:46 +02:00
Alexander Skvortsov
dde9c9c51b
Mount navigation in ForumApplication
2020-09-18 22:19:45 +02:00
Alexander Skvortsov
6547290472
update: common/components/Navigation
2020-09-18 22:19:45 +02:00
Alexander Skvortsov
74f6a3e6ce
Set empty object as default attrs for all components
2020-09-18 22:19:45 +02:00
Alexander Skvortsov
98740472a8
update: common/Model (use body instead of data on m.request)
2020-09-18 22:19:45 +02:00
Alexander Skvortsov
1e9825de4f
update: forum/components/WelcomeHero
2020-09-18 22:19:44 +02:00