Alexander Skvortsov
d14ca79dfa
update: listItems (filter out null/falsy values)
2020-09-18 22:19:44 +02:00
Alexander Skvortsov
5cd5f27769
update: forum/components/HeaderSecondary (add search, finishing the header)
2020-09-18 22:19:44 +02:00
Alexander Skvortsov
d05b63eddd
update: forum/states/GlobalSearchState
2020-09-18 22:19:43 +02:00
Alexander Skvortsov
48c7354c08
update: forum/components/Search
2020-09-18 22:19:43 +02:00
Alexander Skvortsov
0fe635d32c
update: common/components/Badge
2020-09-18 22:19:43 +02:00
Alexander Skvortsov
2c2a42030a
update: UsersSearchSource
...
- mithril 2 prefers to store single text children in vnode.text, so we need to move it back to children to give us a consistent API
2020-09-18 22:19:42 +02:00
Alexander Skvortsov
37d2902cd1
Fix m.route => m.route.set in NotificationsDropdown
2020-09-18 22:19:42 +02:00
Alexander Skvortsov
66c2f6b76a
update: forum/components/DiscussionSearchSource
2020-09-18 22:19:42 +02:00
Alexander Skvortsov
4d68636544
update: forum/components/SessionDropdown
2020-09-18 22:19:41 +02:00
Alexander Skvortsov
73891b751b
update: forum/components/Notification, forum/components/DiscussionRenamedNotification
...
- Not yet tested
2020-09-18 22:19:41 +02:00
Alexander Skvortsov
fe011bf285
Add notifications to HeaderSecondary
2020-09-18 22:19:41 +02:00
Alexander Skvortsov
524dde31d4
update: forum/components/NotificationList
2020-09-18 22:19:41 +02:00
Alexander Skvortsov
b69fc01ab3
Uncomment notifications in ForumApplication
2020-09-18 22:19:40 +02:00
Alexander Skvortsov
20e69e6351
update: NotificationsDropdown
2020-09-18 22:19:40 +02:00
Alexander Skvortsov
d097e7ed4b
Remove stray console.log
2020-09-18 22:19:40 +02:00
Alexander Skvortsov
63e07b2044
update: forum/utils/DiscussionControls
...
- replyAction has not yet been tested.
2020-09-18 22:19:39 +02:00
Alexander Skvortsov
60c3f23667
update: forum/components/DiscussionListItem
2020-09-18 22:19:39 +02:00
Alexander Skvortsov
9793c10610
infrastructure: For SubtreeRetainer, return a boolean, not a vnode, as subtree retaining is now managed by onbeforeupdate
2020-09-18 22:18:32 +02:00
Alexander Skvortsov
29af3e6d8b
infrastructure: use params instead of data for get requests in common/Store
2020-09-18 22:18:32 +02:00
Alexander Skvortsov
703c3442da
update: forum/components/UserCard
2020-09-18 22:18:32 +02:00
Alexander Skvortsov
e0d3a8c733
update: common/helpers/listItems: fix isSeparator
2020-09-18 22:18:32 +02:00
Alexander Skvortsov
527748ff66
update: forum/components/TerminalPost
2020-09-18 22:18:31 +02:00
Alexander Skvortsov
eb440bb9b6
update: forum/components/DiscussionList
2020-09-18 22:18:31 +02:00
Matthew Kilgore
d71f77d592
update: common/components/Placeholder.js
2020-09-18 22:18:31 +02:00
Matthew Kilgore
8b891abb2b
update: forum/components/IndexPage.js
2020-09-18 22:18:30 +02:00
Matthew Kilgore
5f0dcc71ba
update: common/components.Page.js
2020-09-18 22:18:30 +02:00
Matthew Kilgore
4fcafe3b2f
Set application drawer
2020-09-18 22:18:30 +02:00
Matthew Kilgore
29065e1ee9
infrastructure: provide component classes instead of instances to routes.js
2020-09-18 22:18:29 +02:00
Matthew Kilgore
2b39bd7a0d
Fix classList usage in listItems
2020-09-18 22:18:29 +02:00
Matthew Kilgore
94fe3236d7
infrastructure: Add routing to common/Application
2020-09-18 22:18:29 +02:00
Matthew Kilgore
3b6e5a0caf
infrastructure: Add routes, history, search to ForumApplication
2020-09-18 22:18:29 +02:00
Matthew Kilgore
9ac8f1543a
update: forum/utils/History.js
2020-09-18 22:18:28 +02:00
Matthew Kilgore
439e3a5a9a
update: common/components/LinkButton
2020-09-18 22:18:28 +02:00
Matthew Kilgore
883e1a9d6a
infrastruture: include the class name of the component where children is provided
2020-09-18 22:18:28 +02:00
Matthew Kilgore
2ac2edbbad
Replace mithril-stream with mithril/stream, set it as a global via m.stream
2020-09-18 22:18:27 +02:00
Matthew Kilgore
18148141c3
update: common/components/RequestErrorModal
2020-09-18 22:18:27 +02:00
Matthew Kilgore
10f4223028
Add error warning if children attr is ever used
2020-09-18 22:18:27 +02:00
Matthew Kilgore
e10220ae47
update: Fix Alert on modals
2020-09-18 22:18:26 +02:00
Matthew Kilgore
dcd14821c2
infrastructure: revert to using this.attrs
2020-09-18 22:18:26 +02:00
Alexander Skvortsov
edeaa5855c
update: SignUpModal
2020-09-18 22:18:26 +02:00
Alexander Skvortsov
cc91244f1a
update: LoginModal
2020-09-18 22:18:25 +02:00
Alexander Skvortsov
5faab8bdbd
update: ForgotPasswordModal
2020-09-18 22:18:25 +02:00
Alexander Skvortsov
99d79e7571
update: Modal
2020-09-18 22:18:25 +02:00
Alexander Skvortsov
5606eae0f1
update: ModalManager
2020-09-18 22:18:25 +02:00
Alexander Skvortsov
62cb71d4e1
update: ModalManagerState
2020-09-18 22:18:24 +02:00
Alexander Skvortsov
e28ba4acff
infrastructure: fix broken translation of strings with html tags (vnodes) passed into them
...
Under the old system, we would set the "childen" property of the vnode in the translation to an array containing the text between the tag as a raw string. Mithril 2 expects everything to be a vnode, and as such, errors when processing this raw string. This commit runs that "children" array of raw strings (and possibly other vnodes) through m.fragment to convert everything to vnodes.
2020-09-18 22:18:24 +02:00
Alexander Skvortsov
5b3914535d
infrastructure: Replace m.deferred in Application with native promise functionality
2020-09-18 22:18:24 +02:00
Alexander Skvortsov
44975bc606
update: common/Session.js
...
- Use body instead of data
- Use template literal instead of concatenation
2020-09-18 22:18:23 +02:00
Alexander Skvortsov
f7931e8a30
infrastructure: uncomment modal manager mount in application mount
2020-09-18 22:18:23 +02:00
Alexander Skvortsov
3ba655b2f9
infrastructure: install mithril streams package
2020-09-18 22:18:23 +02:00