flarum-bot
353207a31f
Bundled output for commit 3b81aabe9b
[skip ci]
2020-09-30 20:34:47 +00:00
Alexander Skvortsov
3b81aabe9b
Improve PostStreamState.viewingEnd()
...
In some cases, such as if we've stickied a post, an event post
may have been added / removed.This means that `this.visibleEnd`
and`this.count()` will be out of sync by 1 post, but we are still
"viewing the end" of the post stream, so we should still reload
all posts up until the last one.
2020-09-30 16:33:10 -04:00
Daniël Klabbers
f332f5bfe4
Mark keys for Config required only with InstalledSite ( #2323 )
...
* use fallback on url to prevent errors in cli during install. The value of the fallback doesn't actually matter, we just need something.
2020-09-30 15:38:19 -04:00
Daniël Klabbers
99c47271be
Fix for a bug that would delete the new revision of less/js in case the filenames match.
2020-09-30 09:26:32 +02:00
Daniël Klabbers
656dec65dc
Allow easier overriding of js compiler ( #2318 )
2020-09-29 19:03:51 -04:00
flarum-bot
7629aad6ce
Bundled output for commit 4a85cc6813
[skip ci]
2020-09-29 22:42:20 +00:00
Alexander Skvortsov
4a85cc6813
Merge pull request #2314 from flarum/as/modal-fix
...
Frontend Rewrite Followup Modal Fixes
2020-09-29 18:41:03 -04:00
Alexander Skvortsov
12bfff9b5d
Rename onshow and onhide
...
animateShow and animateHide are more descriptive
2020-09-29 18:37:56 -04:00
Alexander Skvortsov
e798cb104b
Return on animateShow if already loaded
2020-09-29 18:37:56 -04:00
Alexander Skvortsov
4c3f36a53b
Pass ModalManagerState into Modal instances instead of calling the global.
2020-09-29 18:37:56 -04:00
Alexander Skvortsov
5127e7d063
Ensure that readyCallback is called on modals opened from other modals
2020-09-29 18:37:56 -04:00
Alexander Skvortsov
822ace668a
Prevent hide animation when opening modal from other modal
2020-09-29 18:37:56 -04:00
Alexander Skvortsov
b4f563c38f
Revert "Fix opening modals from other modals. ( #2263 )"
...
This reverts commit 1d7002a63f
.
2020-09-29 18:37:56 -04:00
flarum-bot
aa290898a5
Bundled output for commit 36faf92864
[skip ci]
2020-09-29 22:35:50 +00:00
Alexander Skvortsov
36faf92864
Merge pull request #2299 from flarum/as/poststream_improvements
...
[Frontend Rewrite] PostStream Improvements
2020-09-29 18:34:16 -04:00
Franz Liedke
f39c011e9c
README: Update badge to truly show latest release
...
Refs #2311 .
2020-09-29 23:23:37 +02:00
Abolade Eniseyin
f040e2ff95
Update logo and badges in README ( #2311 )
...
Fixes #2296 .
2020-09-29 23:22:51 +02:00
flarum-bot
9869ee0980
Bundled output for commit fc15249e5c
[skip ci]
2020-09-29 20:56:44 +00:00
Wadim Kalmykov
fc15249e5c
fix clear search ( #2325 )
2020-09-29 16:55:26 -04:00
flarum-bot
a8ea8b2931
Bundled output for commit 922cb8bb11
[skip ci]
2020-09-28 23:18:39 +00:00
Sami Mazouz
922cb8bb11
Fix mobile controls gesture on discussion deletion/restoration ( #2324 )
...
Because the Slidable class was always added on creation, it was lost every time the class list changed (in this case when the discussion was hidden/unhidden which added/removed DiscussionListItem--hidden class). So by determining the Slidable class's presence in elementAttrs() method, it guarantees it always properly set.
2020-09-28 19:07:05 -04:00
Wadim Kalmykov
948ac359dc
Improve developer experience by forcing LF line endings ( #2321 )
2020-09-28 14:04:08 -04:00
Alexander Skvortsov
3c3576c297
Pass a translator instance to getEmailSubject on MailableInterface ( #2244 )
...
* Pass a translator instance to getMailSubject (breaking change)
* Temporarily comment out getEmailSubject to avoid BC breaks
2020-09-28 00:04:28 -04:00
flarum-bot
1dfb01d067
Bundled output for commit 4b679a35e0
[skip ci]
2020-09-28 03:51:00 +00:00
Alexander Skvortsov
4b679a35e0
Put m.stream in flarum/utils/stream ( #2316 )
2020-09-27 23:49:33 -04:00
Franz Liedke
63745b73aa
Use reserved TLD for default dev hostname
...
See https://jdebp.eu/FGA/dns-use-domain-names-that-you-own.html .
2020-09-27 22:55:46 +02:00
flarum-bot
ce9093ab5d
Bundled output for commit bfa62dbe8f
[skip ci]
2020-09-27 02:14:07 +00:00
Alexander Skvortsov
bfa62dbe8f
Add warnings to Mithril 2 BC layer ( #2313 )
2020-09-26 22:12:43 -04:00
Alexander Skvortsov
98c684c979
Fixed noAnimation: previously, the opposite of what was requested happened
2020-09-25 16:02:39 -04:00
Alexander Skvortsov
2d7f8130c8
DiscussionPage: only set this.discussion
after the initial set of posts has loaded, this results in a slightly smoother initial load.
2020-09-25 15:54:54 -04:00
Alexander Skvortsov
71518112b3
Provide location data to scrubber earlier to avoid unnecessary and confusing scrubber animation on page load.
2020-09-25 15:52:18 -04:00
Alexander Skvortsov
63d0730784
Don't animate the initial Scrubber placement
2020-09-25 15:43:41 -04:00
Alexander Skvortsov
a6632fc1b4
Restore fadeIn to 400ms ( #2312 )
...
This is the jQuery fadeIn default, which we were relying on before this animation was changed to pure CSS.
2020-09-25 21:15:24 +02:00
Alexander Skvortsov
663ae95f1c
Merge pull request #2271 from flarum/fl/laravel-updates-config
...
This extracts another real class for dealing with the configuration options stored in `config.php`. The idea is to reduce the scope of the `Application` class and make it easier to inject exactly what's needed (rather than an array, which is complicated, or the bloated `Application` class).
2020-09-25 11:22:53 -04:00
Franz Liedke
5500753278
Use Config class for data from config.php
2020-09-25 11:10:52 +02:00
Franz Liedke
63f011f67a
Inject/use new config class where applicable
2020-09-25 10:58:53 +02:00
Franz Liedke
6c91ade4c6
Add a helper class for managing low-level config
2020-09-25 10:58:52 +02:00
flarum-bot
c40a0e38d9
Bundled output for commit 8832ea0666
[skip ci]
2020-09-25 02:32:11 +00:00
Alexander Skvortsov
8832ea0666
Add in BC layer for props, initProps, m.withAttr, and m.prop ( #2310 )
2020-09-24 22:30:55 -04:00
Daniël Klabbers
6fda1e02db
Changes methods and properties from private to protected ( #2308 )
...
The goal of this PR is to offer increased flexibility for integrators and
custom solutions in skeleton modifications.
2020-09-24 14:30:16 -04:00
Alexander Skvortsov
d1cf97df76
Replace $app->url() with url-generated link to index ( #2302 )
2020-09-24 11:30:57 -04:00
Alexander Skvortsov
3a02edb15f
Revert https://github.com/flarum/core/pull/1536 ( #2305 )
2020-09-24 11:30:27 -04:00
flarum-bot
abcf55152f
Bundled output for commit 077c28dc64
[skip ci]
2020-09-24 04:09:18 +00:00
Matteo Contrini
077c28dc64
Fix comment for the time gap feature in PostStream ( #2294 )
...
The time interval for the time gap feature is 4 days and not 4 hours.
2020-09-24 00:08:12 -04:00
flarum-bot
3012ec8da1
Bundled output for commit 1d7002a63f
[skip ci]
2020-09-24 03:13:43 +00:00
Alexander Skvortsov
1d7002a63f
Fix opening modals from other modals. ( #2263 )
...
While seemingly correct, an onremove method in Modal that triggers animateHide is problematic, because if one modal is opened from another, the one currently open will be removed from the DOM, triggering animateHide, and closing the new modal.
To compensate, an onupdate method now closes a modal if one is open but shouldn't be; this supports the functionality of the old method when the modal is closed not from the modal instance itself (e.g. app.modal.close())
This is not ideal, but necessary. We should consider eventually expanding the modal system to support showing multiple modals at the same time (stacked over each other). Then, we can move this back to individual modals.
2020-09-23 23:12:22 -04:00
Alexander Skvortsov
d57a9f100a
Only call updateScrubberValues onupdate when necessary
...
When the page is scrolled, goToIndex is called, or the page is loaded,
various listeners result in the scrubber being updated with a new
position and values. However, if goToNumber is called, the scrubber
will not be updated. Accordingly, we add logic to the scrubber's
onupdate to update itself, but only when needed, as indicated by this
This saves us a LOT of unnecessary calls, and makes scrubber movement smoother.
2020-09-23 23:06:25 -04:00
Alexander Skvortsov
8640ce83b5
Execute oncreate scrubber update after loadPromise has completed
...
This way, we ensure that the initial position (and data) of the scrubber is correct. Otherwise, we get blank dates / incorrect location.
2020-09-23 23:06:20 -04:00
Alexander Skvortsov
a17f1247a8
Fix $(...).offset() is undefined
on some scrolls.
2020-09-23 23:06:14 -04:00
flarum-bot
75d80b1c8a
Bundled output for commit 8d21f6f074
[skip ci]
2020-09-24 03:06:06 +00:00