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

8263 Commits

Author SHA1 Message Date
dependabot[bot]
61c99013ab Bump elliptic from 6.5.2 to 6.5.3 in /js (#28)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:08:32 +02:00
dependabot[bot]
e415e5ebc2 Bump elliptic from 6.5.2 to 6.5.3 in /js (#27)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:08:28 +02:00
dependabot[bot]
fb01d767c7 Bump elliptic from 6.5.2 to 6.5.3 in /js (#26)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:08:17 +02:00
dependabot[bot]
b663d9b199 Bump elliptic from 6.5.2 to 6.5.3 in /js (#21)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:08:11 +02:00
dependabot[bot]
f390676f2f Bump elliptic from 6.5.2 to 6.5.3 in /js (#17)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:07:59 +02:00
dependabot[bot]
300015927f Bump elliptic from 6.5.2 to 6.5.3 in /js (#9)
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.2...v6.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-31 01:07:53 +02:00
Alexander Skvortsov
a215fc9ed5 Fix optional parameters in url generator (#2246)
* Fix route collection getting wrong path when optional parameters present, add unit tests
2020-07-28 20:51:14 -04:00
Alexander Skvortsov
39bf9af538 Don't typehint the view factory in the closure in extend.php
This causes the view factory to resolve early, breaking all future extensions that use the view extender
2020-07-27 19:31:13 -04:00
Alexander Skvortsov
5d7f1d87d5 Don't typehint the view factory in the closure in extend.php
This causes the view factory to resolve early, breaking all future extensions that use the view extender
2020-07-27 19:30:24 -04:00
Franz Liedke
52394776ff Apply fixes from StyleCI
[ci skip] [skip ci]
2020-07-27 19:42:23 +00:00
Franz Liedke
352f537c9d Merge pull request #2243 from flarum/fl/2055-l6-translator
Upgrade to Laravel 6, finally!
2020-07-27 21:42:01 +02:00
Alexander Skvortsov
1ee33de48f Added translations for Send Test Mail feature (#156)
* Added translations for Send Test Mail feature
2020-07-26 16:59:02 -04:00
Matthew Kilgore
bd46db8741 Replace depreciated functions with classfull verions 2020-07-25 21:17:43 -04:00
Matthew Kilgore
4c88d093f1 Replace depreciated helper functions with classfull ones 2020-07-25 21:16:39 -04:00
Matthew Kilgore
e6734ab62a Replace depreciated helper function with classfull one 2020-07-25 21:10:33 -04:00
Matthew Kilgore
d1cf21dcd2 Replaced depreciated helper function with classfull function 2020-07-25 21:08:49 -04:00
Matthew Kilgore
e9022d5710 Replace depreciated helpers with class variant 2020-07-25 18:41:01 -04:00
flarum-bot
b96d8dba50 Bundled output for commit 505068de95 [skip ci] 2020-07-24 22:34:32 +00:00
Franz Liedke
505068de95 Fix extension to work with Composer state changes
Refs flarum/core#2162.
2020-07-25 00:28:06 +02:00
flarum-bot
cb95c136df Bundled output for commit ba0e2db8a7 [skip ci] 2020-07-24 22:18:35 +00:00
Alexander Skvortsov
ba0e2db8a7 Extract Composer state (#2161)
Like previous "state PRs", this moves app-wide logic relating to
our "composer" widget to its own "state" class, which can be
referenced and called from all parts of the app. This lets us
avoid storing component instances, which we cannot do any longer
once we update to Mithril v2.

This was not as trivial as some of the other state changes, as we
tried to separate DOM effects (e.g. animations) from actual state
changes (e.g. minimizing or opening the composer).

New features:

- A new `app.screen()` method returns the current responsive screen
  mode. This lets us check what breakpoint we're on in JS land  
  without hardcoding / duplicating the actual breakpoints from CSS.
- A new `SuperTextarea` util exposes useful methods for directly
  interacting with and manipulating the text contents of e.g. our
  post editor.
- A new `ConfirmDocumentUnload` wrapper component encapsulates the
  logic for asking the user for confirmation when trying to close
  the browser window or navigating to another page. This is used in
  the composer to prevent accidentally losing unsaved post content.

There is still potential for future cleanups, but we finally want   
to unblock the Mithril update, so these will have to wait:

- Composer height change logic is very DOM-based, so should maybe
  not sit in the state.
- I would love to experiment with using composition rather than
  inheritance for the `ComposerBody` subclasses.
2020-07-25 00:17:25 +02:00
flarum-bot
0dde2dcc9f Bundled output for commit 6480c6f937 [skip ci] 2020-07-24 21:53:31 +00:00
Franz Liedke
6480c6f937 Fix an irrelevant export name :P 2020-07-24 23:51:44 +02:00
Franz Liedke
c6ed69b549 Simplify a few unnecessary Arr::get() calls 2020-07-24 22:56:31 +02:00
Alexander Skvortsov
a5cff3a352 Revert "Fixes wrong IP address when using a reverse proxy (#2236)" (#2242)
This reverts commit a6cb962f97 pending further discussion of https://github.com/flarum/core/pull/2236#issuecomment-663645583
2020-07-24 14:19:10 -04:00
flarum-bot
5df2f11ace Bundled output for commit 5a60d9d7a1 [skip ci] 2020-07-24 17:03:04 +00:00
Alexander Skvortsov
5a60d9d7a1 Notifications Dropdown: Remove init method that doesn't do anything (cleanup) 2020-07-24 13:01:45 -04:00
Alexander Skvortsov
c36d13e8dc Revert "Inject Url Generator and Translator Interface into notification mailer (#2169)"
This was actually already present and functional, so adding additional code for it
is unnecessary.

This reverts commit c73ce3e768.
2020-07-24 12:44:59 -04:00
Franz Liedke
aeffe31cc1 Update to Laravel 6, finally!
Fixes #2055.
2020-07-24 17:34:40 +02:00
Franz Liedke
bf774d8a9b Make Translator compatible with Laravel 6
It's contract will change in Laravel 6. We extend from Symfony's
translator, but need to be compatible with that from Laravel in
order to use its validation package.

References:
- https://laravel.com/docs/6.x/upgrade#trans-and-trans-choice
- 8557dc56b1 (diff-88bc04a1548d09aa6250d902d1ac2b4c)
2020-07-24 17:32:50 +02:00
Franz Liedke
8a7e70550e Inject Symfony translator contract, not Laravel's
The Laravel changes with v6, and our translator is primarily an
implementation of the Symfony contract.
2020-07-24 17:31:46 +02:00
Franz Liedke
1b78f0ca60 Replace a few forgotten obsolete helpers
- Apparently, I forgot that `array_flatten` comes from Laravel. :)
- When I did this previously, I did not search the views directory.
2020-07-24 17:28:56 +02:00
Franz Liedke
9de0901293 Explicitly bundle Carbon library
We have used this transitive dependency (via illuminate/support)
for a while, so let's make this explicit.

Incidentally, we now also explicitly require version 2.x - the
previous 1.x branch will no longer be supported after the
upcoming upgrade to Laravel 6.

Refs #2055.
2020-07-24 16:46:33 +02:00
Franz Liedke
2b76b169d3 Remove Mandrill mail driver
This is in preparation for the upcoming upgrade to Laravel 6,
which dropped this driver.

Refs #2055.
2020-07-24 16:39:28 +02:00
Franz Liedke
c7a8c20b8d Remove locales for Mandrill mail driver
Refs flarum/core#2055.
2020-07-24 16:39:00 +02:00
Jake Esser
a6cb962f97 Fixes wrong IP address when using a reverse proxy (#2236)
Added reverse proxy support to preserve forwarded IPs
2020-07-22 08:55:44 -04:00
Matt Kilgore
e85063fbf7 Remove AssertPermissionTrait (#26)
* Remove AssertPermissionTrait

* Apply fixes from StyleCI

* Fix my dumb mistake

* Fix another small mistake ->assertRegistered

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-20 08:02:29 +02:00
Matt Kilgore
9246bdc985 Removes AssertPermissionTrait (#21)
* Removes AssertPermissionTrait

* Fix my dumb mistake
2020-07-20 07:59:51 +02:00
Matt Kilgore
38c0e3c500 Removes AssertPermissionTrait (#17)
* Removes AssertPermissionTrait

* Fix my dumb mistake
2020-07-20 07:59:16 +02:00
Matt Kilgore
e8490bd991 Removes AssertPermissionTrait (#20)
* Removes AssertPermissionTrait

* Fix my dumb mistake
2020-07-20 07:58:22 +02:00
Matt Kilgore
2237e597d0 Removes AssertPermissionTrait (#90)
* Removes AssertPermissionTrait

* Apply fixes from StyleCI

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 17:37:27 -04:00
Matt Kilgore
d90d0e5fbc Removes AssertPermissionTrait (#25)
* Removes AssertPermissionTrait

* Fix ->can to ->assertCan
2020-07-19 17:37:14 -04:00
Matt Kilgore
1fe034460b Removes AssertPermissionTrait (#29)
* Removes AssertPermissionTrait

* Apply fixes from StyleCI

* Fix my dumb mistake

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 17:37:05 -04:00
Alexander Skvortsov
86d3c0ce0a Use $actor->assertCan instead of $actor->can 2020-07-19 16:24:56 -04:00
Matt Kilgore
425ba74903 Remove AssertPermissionTrait (#19)
* Removed AssertPermissionTrait

* Apply fixes from StyleCI

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-07-19 16:23:03 -04:00
Alexander Skvortsov
89a2a9786e Deprecate AssertPermissionTrait (#2044) 2020-07-17 15:16:15 +02:00
Franz Liedke
dda253cd8e Fix deprecation and removal date 2020-07-17 12:19:48 +02:00
Alexander Skvortsov
c10ebea00c User Extender (prepareGroups functionality) (#2110) 2020-07-17 12:18:35 +02:00
Franz Liedke
b033b61164 Use new View extender
Refs flarum/core#2134.
2020-07-17 12:11:42 +02:00
Franz Liedke
2648ee2031 Use new View extender
Refs flarum/core#2134.
2020-07-17 12:11:25 +02:00