1
0
mirror of https://github.com/flarum/core.git synced 2025-08-23 08:33:45 +02:00
Commit Graph

8592 Commits

Author SHA1 Message Date
flarum-bot
6ff20798c3 Bundled output for commit ab63a55d60 [skip ci] 2020-09-24 02:52:46 +00:00
Alexander Skvortsov
ab63a55d60 Mithril 2 Update (#19)
Update for Mithril 2
2020-09-23 22:51:50 -04:00
flarum-bot
bf7e002442 Bundled output for commit 63198e67c6 [skip ci] 2020-09-24 02:50:35 +00:00
flarum-bot
679075407f Bundled output for commit 080f553a08 [skip ci] 2020-09-24 02:49:58 +00:00
Alexander Skvortsov
63198e67c6 Mithril 2 Update (#23)
Update for Mithril 2
2020-09-23 22:49:53 -04:00
flarum-bot
ccf9fae68c Bundled output for commit df74cc4a96 [skip ci] 2020-09-24 02:49:19 +00:00
Alexander Skvortsov
080f553a08 Mithril 2 Update (#22)
Update for Mithril 2
2020-09-23 22:49:05 -04:00
Alexander Skvortsov
df74cc4a96 Mithril 2 Update (#29)
Update for Mithril 2
2020-09-23 22:48:20 -04:00
flarum-bot
b90d637731 Bundled output for commit 77d5e2cd83 [skip ci] 2020-09-24 02:47:59 +00:00
Alexander Skvortsov
77d5e2cd83 Mithril 2 Update (#29)
Update for Mithril 2

- Please note that AutocompleteDropdown is now a Fragment, not a Component. Accordingly, it's location has been changed.
2020-09-23 22:46:54 -04:00
flarum-bot
a3119e151e Bundled output for commit f23a3833fa [skip ci] 2020-09-24 02:46:21 +00:00
Alexander Skvortsov
f23a3833fa Mithril 2 Update (#10)
Update for Mithril 2
2020-09-23 22:45:14 -04:00
flarum-bot
527f43273c Bundled output for commit 389ac5a9b7 [skip ci] 2020-09-24 02:45:06 +00:00
flarum-bot
3c6edc1802 Bundled output for commit 8b4380254e [skip ci] 2020-09-24 02:44:30 +00:00
Alexander Skvortsov
389ac5a9b7 Mithril 2 Update (#21)
Update for Mithril 2
2020-09-23 22:44:15 -04:00
Alexander Skvortsov
8b4380254e Mithril 2 Update (#15)
Update for Mithril 2
2020-09-23 22:43:34 -04:00
flarum-bot
83cfb331c2 Bundled output for commit 30cdf0acc0 [skip ci] 2020-09-24 02:41:41 +00:00
David Sevilla Martín
30cdf0acc0 Mithril 2 update (#2255)
* Update frontend to Mithril 2

- Update Mithril version to v2.0.4
- Add Typescript typings for Mithril
- Rename "props" to "attrs"; "initProps" to "initAttrs"; "m.prop" to "m.stream"; "m.withAttr" to "utils/withAttr".
- Use Mithril 2's new lifecycle hooks
- SubtreeRetainer has been rewritten to be more useful for the new system
- Utils for forcing page re-initializations have been added (force attr in links, setRouteWithForcedRefresh util)
- Other mechanical changes, following the upgrade guide
- Remove some of the custom stuff in our Component base class
- Introduce "fragments" for non-components that control their own DOM
- Remove Mithril patches, introduce a few new ones (route attrs in <a>; 
- Redesign AlertManagerState `show` with 3 overloads: `show(children)`, `show(attrs, children)`, `show(componentClass, attrs, children)`
- The `affixedSidebar` util has been replaced with an `AffixedSidebar` component

Challenges:
- `children` and `tag` are now reserved, and can not be used as attr names
- Behavior of links to current page changed in Mithril. If moving to a page that is handled by the same component, the page component WILL NOT be re-initialized by default. Additional code to keep track of the current url is needed (See IndexPage, DiscussionPage, and UserPage for examples)
- Native Promise rejections are shown on console when not handled
- Instances of components can no longer be stored. The state pattern should be used instead.

Refs #1821.

Co-authored-by: Alexander Skvortsov <sasha.skvortsov109@gmail.com>
Co-authored-by: Matthew Kilgore <tankerkiller125@gmail.com>
Co-authored-by: Franz Liedke <franz@develophp.org>
2020-09-23 22:40:37 -04:00
Alexander Skvortsov
ea7d31e15e Revert "Use lifecycle interface for frontend extender (#2211)" (#2301)
This reverts commit 368a9836bd.
2020-09-23 00:21:45 -04:00
flarum-bot
39437ff1c9 Bundled output for commit e3b8b8dd46 [skip ci] 2020-09-18 19:33:18 +00:00
Alexander Skvortsov
e3b8b8dd46 Add missing exports to compat 2020-09-18 21:31:35 +02:00
Alexander Skvortsov
a6876f0db8 Fix Post-actions being on top of Post Controls Dropdown
- This was accidentially introduced when an explicit z-index was added to reply-actions to prevent Post-footer from covering it
- Here, we revert that zindex, while making Post-footer inline-block to stop it from covering everything. We also set height=0 to stop implicitly added height
2020-09-18 15:33:01 +02:00
Wadim Kalmykov
3536db5103 Fix issue where posts API doesn't return the right amount of posts (#2291) 2020-09-17 23:59:34 -04:00
Alexander Skvortsov
f066817daa Allow upper case TLS and SSL for SMTP encryption (#2289) 2020-09-12 17:43:06 -04:00
phanlyhuynh
207d9c9578 Fix SMTP username and password shouldn't be required (#2287) 2020-09-06 15:12:03 -04:00
flarum-bot
e59c3fa279 Bundled output for commit eb0d3de3f6 [skip ci] 2020-09-04 17:00:30 +00:00
Franz Liedke
eb0d3de3f6 app.composer.show: Trigger synchronous redraw
This is needed to have access to the newly created SuperTextarea
instance (app.composer.editor) directly after calling show().

Discovered when making ext-mentions work with the Composer state
changes. As far as I could reconstruct, a synchronous redraw was also
triggered in this situation before the changes in #2161.
2020-09-04 18:58:40 +02:00
flarum-bot
a48a84fcd0 Bundled output for commit 1674e7a313 [skip ci] 2020-09-04 16:26:07 +00:00
Franz Liedke
1674e7a313 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-09-04 18:19:27 +02:00
flarum-bot
8f1ba6e7d2 Bundled output for commit 921db74fe4 [skip ci] 2020-09-04 14:47:16 +00:00
Franz Liedke
921db74fe4 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-09-04 16:46:01 +02:00
flarum-bot
1ce62ca3c5 Bundled output for commit ce039d3dd6 [skip ci] 2020-09-04 14:43:38 +00:00
Franz Liedke
ce039d3dd6 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-09-04 16:42:07 +02:00
Daniël Klabbers
619796b102 Reduces friction with flarum/tags (#25)
Instead of blatantly triggering a 500 let's try to see whether
the tags relation is even returning anything before we try
to pluck tag ids from it when we publish that data to the pusher
server.
2020-09-02 13:55:45 -04:00
Johannes Nilsson
2aa4312886 Remove unwanted semicolon in assets files (#2280) 2020-08-31 23:52:37 -04:00
flarum-bot
ecf174d62f Bundled output for commit 400a9a6267 [skip ci] 2020-08-28 16:31:50 +00:00
Franz Liedke
400a9a6267 Use dayjs, not moment.js
Refs flarum/core#2219.
2020-08-28 18:30:52 +02:00
flarum-bot
1e6f94c366 Bundled output for commit 2d923c83a1 [skip ci] 2020-08-28 16:12:36 +00:00
Franz Liedke
2d923c83a1 Use dayjs, not moment.js
Refs flarum/core#2219.
2020-08-28 18:11:47 +02:00
Franz Liedke
749052783f Make queue error handler compatible with Laravel 6 (#2270) 2020-08-27 22:41:36 -04:00
flarum-bot
4f21e22236 Bundled output for commit f011974bf1 [skip ci] 2020-08-28 02:41:03 +00:00
fengkx
f011974bf1 fix: escape regexp from query (#2273)
* fix: escape regexp from query
2020-08-27 22:39:49 -04:00
Alexander Skvortsov
447d26e9c8 Bump fontawesome version to ^5.14.0 (#2274) 2020-08-27 23:01:57 +02:00
flarum-bot
18bf17bb47 Bundled output for commit 933b25ee8e [skip ci] 2020-08-25 14:54:57 +00:00
Karan Sanjeev
933b25ee8e Added an empty alt attribute to avatar's img tag (#2269)
fixes #2256
2020-08-25 10:53:44 -04:00
flarum-bot
94c4b37799 Bundled output for commit 5038ec4590 [skip ci] 2020-08-18 21:04:28 +00:00
David Sevilla Martín
5038ec4590 Update modal show call for the modal state changes (#28) 2020-08-18 17:03:37 -04:00
flarum-bot
98dc5a0ea1 Bundled output for commit f26db4d3f2 [skip ci] 2020-08-18 00:39:39 +00:00
Alexander Skvortsov
f26db4d3f2 Extract flags list state (#24)
* Extract flags list state
2020-08-17 20:38:35 -04:00
flarum-bot
5081cd47c1 Bundled output for commit c0aa73f01a [skip ci] 2020-08-17 00:44:32 +00:00