8498 Commits

Author SHA1 Message Date
Alexander Skvortsov
1fbf5fd029 Add setting method to integration TestCase
This allows adding settings before the app is booted. In the past we've used hacky workarounds like manually resetting a binding to override singletons to use custom setting values. It makes sense to support this through `TestCase`.
2021-04-07 15:01:40 -04:00
flarum-bot
8e660587d6 Bundled output for commit d8dbe5ab605b08996aa10a6997d94f0744bdd75a [skip ci] 2021-04-07 18:31:38 +00:00
David Wheatley
d8dbe5ab60 Merge "Remove unneeded vendor prefixes" (#2766) 2021-04-07 19:30:15 +01:00
Daniël Klabbers
cedee652db Removes duplication of cache clearing (#2738) 2021-04-07 17:29:32 +01:00
Sami Mazouz
d5149b7406 Eager load post.user.groups relation and allow extensions to eager load relations (#38)
* Allow extensions to eager load relations
* Eager load post.user.groups
2021-04-07 16:24:52 +01:00
Alexander Skvortsov
0b65a4c375 Update changelog for 0.1.0-beta.16.1 2021-04-06 18:20:14 -04:00
David Wheatley
316c9dac34 Fix missing vendor prefix on post scrubber; move styles to Less 2021-04-05 23:19:52 +01:00
David Wheatley
9392343aa4 Remove unneeded vendor prefixes 2021-04-05 20:27:47 +00:00
flarum-bot
54155dbe1e Bundled output for commit ce453096ecfbef6ecac8b4f759fa0a59e38cda50 [skip ci] 2021-04-05 15:28:37 +00:00
David Wheatley
ce453096ec Replace classList with clsx library (#2760) 2021-04-05 16:27:16 +01:00
Alexander Skvortsov
c9d9e85780 Fix FullTextGambit interface compatibility 2021-04-04 15:44:07 -04:00
Alexander Skvortsov
ac4edef78c Use extender for setting NicknameFullTextGambit 2021-04-04 13:41:15 -04:00
Alexander Skvortsov
e7837baa63 Remove unnecessary and imperceptible fade (#2685)
This concern was raised in https://discuss.flarum.org/d/26422-idearequest-make-header-background-color-match-exact-value-from-config.
2021-04-04 01:49:31 +01:00
flarum-bot
4f32d2d919 Bundled output for commit 9d872cc95ed406639dd2d4f6c19e85fb894df18f [skip ci] 2021-04-03 02:16:32 +00:00
David Wheatley
9d872cc95e Merge "Small Admin Patches" (#2739) from flarum/ck/adminux-patch2 into master
- Fixes #2736
- Fixes #2728
2021-04-03 03:14:41 +01:00
David Wheatley
905510e4e4 Pin GitHub Actions at specific tags and commits (#2748)
* Pin 3rd party action

* Pin GitHub-maintained actions to tag

* Bump Bundlewatch Node.js to v14 LTS

I have no clue what my thought process was when creating this workflow
initially. Thrown this in here as it's a minor change and it's silly to
make a PR just to update this number, in my opinion.
2021-04-03 01:00:26 +01:00
flarum-bot
232867b44a Bundled output for commit 79751d50e973dbf7d10fddd1209ba245a226496b [skip ci] 2021-03-30 00:20:26 +00:00
David Sevilla Martin
79751d50e9 Move forum & admin app declarations to separate files 2021-03-29 20:19:15 -04:00
Alexander Skvortsov
4ec8b87cdc Update changelog for v0.1.0-beta.16.1 2021-03-25 13:54:43 -04:00
flarum-bot
2c8f88a72b Bundled output for commit 61e61f5e8c18d017079d8a20f4185a74cda153b2 [skip ci] 2021-03-25 17:52:17 +00:00
Alexander Skvortsov
61e61f5e8c Allow disabling mdarea via admin setting (#27) 2021-03-25 13:51:21 -04:00
Sami Mazouz
46aabd2ae5 Eager load mentionedBy and only missing relations (#64) 2021-03-25 15:37:47 +01:00
Sami Mazouz
a1ba21ec69 Eager load tags relation in discussion, posts and flags listing endpoints (#125)
* Eager load tags relation when listing posts & discussions
* Eager load ListFlags post.discussion.tags relation
2021-03-25 15:37:14 +01:00
Sami Mazouz
e60bf67c61 Eager loading extender (#2724)
* Eager loading extender
* Add tests for the eager loading extender
2021-03-25 15:36:39 +01:00
KyrneDev
de6adc0bce Help on redraw 2021-03-24 17:30:13 -10:00
KyrneDev
abbd46dced Null name/desc breaks search fix 2021-03-24 17:29:54 -10:00
Sami Mazouz
4cc9aeeb28 Improve ApiSerializer tests (#2733)
The ApiSerializerTest was added before the ApiController extender, so I used a workaround at the time to check for the existence of the relationships on the serializer.
2021-03-23 17:33:51 -04:00
Alexander Skvortsov
aabf88e6d6 Use anonymous class for FakeApp (#2725)
It's a better implementation than declaring a second class in the same file, which can confuse IDEs. Furthermore, FakeApp shouldn't be used outside this file.
2021-03-22 19:00:36 +01:00
Sami Mazouz
397c4c10ed Eager load ListPostsController needed relations (#2717)
* Eager load ListPostsController needed relations
* Add comment explaining the reason for eagerloading
2021-03-22 09:54:18 +01:00
Clark Winkelmann
3506991d3e Requirement and formatting fixes (#5)
Add ext-json to composer requirements
Update editorconfig to match core
Update phpdoc to not reference missing import
2021-03-21 19:26:25 +01:00
Clark Winkelmann
f410f69b36 Add missing import for ExtensionManager (#6)
Replace bind with singleton, otherwise singleton behavior is lost
2021-03-21 19:25:02 +01:00
Clark Winkelmann
082a600adf Fix variable names (#4)
It's not causing any issue because the correct variable name is always used to set and read the value, and PHP is fine setting new attributes on a class dynamically. It's just the explicit variables declared don't match with those actually used later.
2021-03-20 18:46:03 -04:00
Alexander Skvortsov
512b756804 Include task scheduler in core 2021-03-19 18:01:38 -04:00
Alexander Skvortsov
7a2dbf8f9b Move laravel helpers back in, deprecate perpetually 2021-03-19 18:01:38 -04:00
flarum-bot
b9a7730168 Bundled output for commit 897e778800e161d052e304090323e339ad5fa419 [skip ci] 2021-03-19 18:14:58 +00:00
Alexander Skvortsov
897e778800 Remove deprecated code from beta 16 (#2705) 2021-03-19 19:13:50 +01:00
sl-kr
dd2712d5c8 Refactor AccountActivationMailer and SendConfirmationEmailController (#2493)
* Add AccountActivationMailerTrait and use in AccountActivationMailer and SendConfirmationEmailController
* Remove prefix

Co-authored-by: Alexander Skvortsov <38059171+askvortsov1@users.noreply.github.com>
2021-03-19 18:06:41 +01:00
flarum-bot
2114af59a3 Bundled output for commit c0ed43c08e53be3fb520996905c71a3e1a7eaf05 [skip ci] 2021-03-18 22:04:58 +00:00
David Wheatley
c0ed43c08e [A11Y] Add aria-label and landmark role to search input (#2669)
* Adds role="search" to Search container
* Add aria-label to search input

See this page for more info:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Search_role
2021-03-18 23:03:01 +01:00
flarum-bot
3bcd710ee1 Bundled output for commit 5278024a5d21fd1749e99450182e08ecd5f0f4f0 [skip ci] 2021-03-18 21:39:56 +00:00
David Wheatley
5278024a5d [A11Y] Fix nav drawer being focusable when off-screen on small viewports (#2666)
* Fix nav drawer being focusable when off-screen on small viewports

Fixes #2565

* Implement review suggestions

* Format
2021-03-18 22:38:32 +01:00
David Wheatley
ed3832481e Speed up JS linting (#2709)
* Install Prettier only, instead of all deps

* Allow running on workflow dispatch

Allows manually triggered CI runs by org members

* Update Node to latest LTS; update step descriptions
2021-03-18 21:14:10 +00:00
flarum-bot
e12320a25d Bundled output for commit e783a7603d4830a2c7a468d9c19fcbe5d166e42f [skip ci] 2021-03-18 16:39:31 +00:00
sl-kr
e783a7603d change value of subscribed from false to null in the JSON API (#37) 2021-03-18 12:38:21 -04:00
flarum-bot
14c10d400e Bundled output for commit 4f63399d4aa66c22d8da9d85adab62073f7351b8 [skip ci] 2021-03-18 15:59:27 +00:00
Daniël Klabbers
4f63399d4a Adds the ability to push new posts onto discussions that aren't public. (#17)
It's very frustrating having pusher installed, but not seeing new posts pop up on non public
discussions. This PR simply re-uses the existing channels per user by reading
all similar private user channels (which require authentication) and then pushing
the websocket message over the line. This only happens in case the discussion is
not public and it only sends to connected users.
2021-03-18 11:58:29 -04:00
Alexander Skvortsov
c1c47e81aa SubscriptionFilterGambit: properly implement conditions method 2021-03-17 14:22:10 -04:00
David Wheatley
dc990a6e37 Add bundlewatch to track bundle size changes in PRs (#2695)
(Below steps already performed, but kept for future reference.)

Head here to get auth ID: https://service.bundlewatch.io/setup-github
Create repo secret called `BUNDLEWATCH_GITHUB_TOKEN` with the token inside
2021-03-17 14:54:42 +00:00
Alexander Skvortsov
49701d20f3 Drop the generate:migration command (#2686)
Core source code should contain things necessary for core to run. Development tooling like this belongs in external packages, like the upcoming Flarum CLI.
2021-03-16 12:41:07 -04:00
flarum-bot
c62e630ef9 Bundled output for commit 78020dfba8a154f3432ce75ac12802bfe8e28290 [skip ci] 2021-03-16 14:52:59 +00:00