mirror of
https://github.com/flarum/core.git
synced 2025-08-13 11:54:32 +02:00
Compare commits
4 Commits
dk/improve
...
v0.1.0-bet
Author | SHA1 | Date | |
---|---|---|---|
|
fd371c1203 | ||
|
d72416cd8a | ||
|
937ff1a0d5 | ||
|
097a87dbb6 |
45
CHANGELOG.md
45
CHANGELOG.md
@@ -1,5 +1,50 @@
|
||||
# Changelog
|
||||
|
||||
## [0.1.0-beta.13](https://github.com/flarum/core/compare/v0.1.0-beta.12...v0.1.0-beta.13)
|
||||
|
||||
### Added
|
||||
- Middleware extender (#2017, #2063, #2084)
|
||||
- Console extender (#2057)
|
||||
- CSRF extender (#2095)
|
||||
- Event extender (#2097)
|
||||
- Mail extender (#2012)
|
||||
- Model extender (#2100)
|
||||
- Show discussion start user as html class on post
|
||||
- PHPUnit 8 compatibility.
|
||||
- Composer 2 compatibility
|
||||
- Permission groups can now be hidden (#2129)
|
||||
- Confirmation popup when hiding or deleting posts (#2135)
|
||||
|
||||
### Changed
|
||||
- Updated less.php dependency version to 3.0.
|
||||
- All notifications now processed through the queue (#1931)
|
||||
- Updated JS dependencies
|
||||
- Simplified uploads, removing need to store intermediate files (#2117)
|
||||
- Improved date handling for dates older than 1 year (#2034)
|
||||
- Linting and automatic formatting for JS (#2099)
|
||||
- Translation files from Language Packs are only loaded for extensions that are enabled (#2020)
|
||||
|
||||
### Fixed
|
||||
- Users can no longer restore discussions hidden by others (#2037)
|
||||
- Issues of the Modal not showing or auto hiding (#2080)
|
||||
- Extensions page in admin showning columns incorrectly (#2111)
|
||||
- Non dismissable modals can be dismissed using the ESC key (#1917)
|
||||
- New post injected above unread sticky (#1868)
|
||||
- New discussions not visible to users when using Pusher (#2077)
|
||||
- Icons on admin permissions page (#2016, #2018)
|
||||
- Notification bubble contrast on mobile with colored header (#2109)
|
||||
- PostStreamScrubber click jumps back to first position (#1945)
|
||||
- Loading state of Switch toggle component is hard to see (#2039, #1491)
|
||||
- Allowing permission check to use class name based gate checks (#1977)
|
||||
|
||||
### Removed
|
||||
- Zend compatibility bridge (#2010)
|
||||
- SES mail support (#2011)
|
||||
- Backward compatibility dropped for mail drivers
|
||||
- Support for PHP 7.1
|
||||
- Deprecated Flarum\Util\Str helper class
|
||||
- Deprecated ConfigureMiddleware event
|
||||
|
||||
## [0.1.0-beta.12](https://github.com/flarum/core/compare/v0.1.0-beta.11.1...v0.1.0-beta.12)
|
||||
|
||||
### Added
|
||||
|
@@ -2,6 +2,7 @@ import EditPostComposer from '../components/EditPostComposer';
|
||||
import Button from '../../common/components/Button';
|
||||
import Separator from '../../common/components/Separator';
|
||||
import ItemList from '../../common/utils/ItemList';
|
||||
import extractText from '../../common/utils/extractText';
|
||||
|
||||
/**
|
||||
* The `PostControls` utility constructs a list of buttons for a post which
|
||||
@@ -145,6 +146,7 @@ export default {
|
||||
* @return {Promise}
|
||||
*/
|
||||
hideAction() {
|
||||
if (!confirm(extractText(app.translator.trans('core.forum.post_controls.hide_confirmation')))) return;
|
||||
this.pushAttributes({ hiddenAt: new Date(), hiddenUser: app.session.user });
|
||||
|
||||
return this.save({ isHidden: true }).then(() => m.redraw());
|
||||
@@ -167,6 +169,7 @@ export default {
|
||||
* @return {Promise}
|
||||
*/
|
||||
deleteAction(context) {
|
||||
if (!confirm(extractText(app.translator.trans('core.forum.post_controls.delete_confirmation')))) return;
|
||||
if (context) context.loading = true;
|
||||
|
||||
return this.delete()
|
||||
|
@@ -23,7 +23,7 @@ class Application extends Container implements ApplicationContract
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const VERSION = '0.1.0-beta.13-dev';
|
||||
const VERSION = '0.1.0-beta.13';
|
||||
|
||||
/**
|
||||
* The base path for the Flarum installation.
|
||||
|
@@ -51,19 +51,6 @@ class DiscussionRenamedBlueprint implements BlueprintInterface
|
||||
return ['postNumber' => (int) $this->post->number];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getAttributes(): array
|
||||
{
|
||||
return [
|
||||
'type' => static::getType(),
|
||||
'from_user_id' => $this->post->user ? $this->post->user->id : null,
|
||||
'subject_id' => $this->post->discussion ? $this->post->discussion->id : null,
|
||||
'data' => json_encode(['postNumber' => (int) $this->post->number]),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
@@ -17,7 +17,7 @@ class ListTest extends TestCase
|
||||
{
|
||||
use RetrievesAuthorizedUsers;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
|
@@ -21,7 +21,7 @@ class AbstractPolicyTest extends TestCase
|
||||
private $policy;
|
||||
private $dispatcher;
|
||||
|
||||
public function setUp()
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->policy = m::mock(CustomUserPolicy::class)->makePartial();
|
||||
$this->dispatcher = new Dispatcher();
|
||||
|
Reference in New Issue
Block a user