1
0
mirror of https://github.com/flarum/core.git synced 2025-08-29 19:09:58 +02:00
Commit Graph

8249 Commits

Author SHA1 Message Date
Franz Liedke
cf764d2c00 Use new Model extender 2020-04-24 15:55:19 +02:00
Franz Liedke
6fa5cc4408 Use new Model extender 2020-04-24 15:54:12 +02:00
Franz Liedke
6dc362f760 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-04-24 13:10:36 +00:00
Alexander Skvortsov
ef44ff5603 Add model extender (#2100)
This covers default attribute values, date attributes and custom relationships.
2020-04-24 15:10:24 +02:00
Franz Liedke
dfbff262f2 npm audit fix 2020-04-24 14:33:48 +02:00
flarum-bot
f022018be3 Bundled output for commit 751c14c889 [skip ci] 2020-04-24 12:33:10 +00:00
flarum-bot
25ba9b70a5 Bundled output for commit 8b2c90c142 [skip ci] 2020-04-24 12:32:41 +00:00
flarum-bot
86577e26d2 Bundled output for commit cb3f14b186 [skip ci] 2020-04-24 12:32:32 +00:00
flarum-bot
a5f87d4e2e Bundled output for commit 5beb553730 [skip ci] 2020-04-24 12:31:59 +00:00
Franz Liedke
cadb279bf1 npm audit fix 2020-04-24 14:30:31 +02:00
Franz Liedke
2d9c38674b npm audit fix 2020-04-24 14:30:31 +02:00
Franz Liedke
751c14c889 npm audit fix 2020-04-24 14:30:31 +02:00
Franz Liedke
fbd50d390a npm audit fix 2020-04-24 14:30:30 +02:00
Franz Liedke
8b2c90c142 npm audit fix 2020-04-24 14:30:30 +02:00
Franz Liedke
912254864c npm audit fix 2020-04-24 14:30:29 +02:00
Franz Liedke
9587d3b416 npm audit fix 2020-04-24 14:30:29 +02:00
Franz Liedke
cb3f14b186 npm audit fix 2020-04-24 14:30:29 +02:00
Franz Liedke
d01f3cde0e npm audit fix 2020-04-24 14:30:28 +02:00
Franz Liedke
e308a7ae60 npm audit fix 2020-04-24 14:30:28 +02:00
Franz Liedke
474b1296b6 npm audit fix 2020-04-24 14:30:27 +02:00
Franz Liedke
92b18063f5 npm audit fix 2020-04-24 14:30:27 +02:00
Franz Liedke
5beb553730 npm audit fix 2020-04-24 14:30:27 +02:00
Franz Liedke
e3740876b7 npm audit fix 2020-04-24 14:30:25 +02:00
Franz Liedke
519fc3d970 npm audit fix 2020-04-24 14:30:25 +02:00
Franz Liedke
173a698fb4 npm audit fix 2020-04-24 14:30:16 +02:00
flarum-bot
e2db63253f Bundled output for commit d30b2dee3e [skip ci] 2020-04-22 21:38:57 +00:00
Franz Liedke
d30b2dee3e CI: Shorten the lint job name 2020-04-22 23:37:37 +02:00
Franz Liedke
82c67588e4 Add translations for hidden permission groups
Refs flarum/core#2129, flarum/core#845, closes #153.
2020-04-21 21:05:49 +02:00
Alexander Skvortsov
7dd5c92c31 Implement hidden permission groups (#2129)
Only users that have the new `viewHiddenGroups` permissions will be able to see these groups.

You might want this when you want to give certain users special permissions, but don't want to make your authorization scheme public to regular users.

Co-authored-by: luceos <daniel+github@klabbers.email>
2020-04-21 17:49:53 +02:00
Franz Liedke
b479a22186 Statically access Flarum version everywhere
One less reason to inject the huge Application class.

Refs #2055.
2020-04-21 16:48:36 +02:00
Franz Liedke
af932c3c20 Use Container contract where easily possible
Less usages of the Application god-class simplifies splitting it up.

Refs #2055.
2020-04-21 16:48:06 +02:00
Franz Liedke
afc0fae966 Add compatiblity with Composer 2.0
- The structure of vendor/composer/installed.json will change.
- The same file will now contain the relative path to package locations.

References:
- https://github.com/composer/composer/blob/master/UPGRADE-2.0.md
- https://php.watch/articles/composer-2
2020-04-21 15:47:58 +02:00
Franz Liedke
c1db2b5a45 Format code
- Early returns
- Comments
- Write variables only when needed

Refs #2020.
2020-04-19 16:53:52 +02:00
Robert Korulczyk
9b925a5071 Load only translations for enabled extensions from language packs (#2020)
fix #1837

Co-authored-by: Daniel Klabbers <daniel+git@klabbers.email>
2020-04-19 16:29:45 +02:00
Franz Liedke
8b808bfc85 Inline test class
Refs #1977.
2020-04-19 15:55:10 +02:00
Clark Winkelmann
7143e13073 Make AbstractPolicy compatible with both object and class as $model (#1977) 2020-04-19 15:52:59 +02:00
flarum-bot
738e95f024 Bundled output for commit 440e7a7b00 [skip ci] 2020-04-17 09:59:47 +00:00
Franz Liedke
440e7a7b00 Run prettier for all JS files 2020-04-17 11:57:55 +02:00
Franz Liedke
915375fc7c Merge pull request #2099 from flarum/fl/prettier
Install prettier for consistent JS styling
2020-04-17 11:20:52 +02:00
Franz Liedke
da4f835c15 CI: Run prettier to check for JS code formatting 2020-04-17 11:14:37 +02:00
Franz Liedke
45474ccc1b Setup husky for automatic formatting before commit 2020-04-17 10:45:36 +02:00
Franz Liedke
c098423c00 Add NPM shortcut for running prettier 2020-04-17 10:45:05 +02:00
Franz Liedke
19adcf33dd Configure prettier via JSON file 2020-04-17 10:44:36 +02:00
Franz Liedke
37450dabf3 Install prettier 2020-04-17 10:44:31 +02:00
Franz Liedke
bebcf04280 Merge pull request #2117 from flarum/fl/2055-streamline-uploads
Simplify uploads, avoid Application contract
2020-04-15 22:52:03 +02:00
Franz Liedke
699ffec331 Apply fixes from StyleCI
[ci skip] [skip ci]
2020-04-13 09:59:07 +00:00
Franz Liedke
8b30734ffb Tweak event extender (tests)
- Inject contract, not implementation
- Do not dispatch event in test, let the core do that
- Ensure the relevant database tables are reset prior to the test
- Use correct parameter order for assertions

Refs #2097.
2020-04-13 11:58:47 +02:00
Franz Liedke
cde69480bf Tweak mail extender (tests)
- Use private over protected
- Use "public" API for building requests in tests
- Add more assertions
- Formatting
- Use correct parameter order for assertions

Refs #2012.
2020-04-13 11:58:46 +02:00
flarum-bot
88bd7fc53f Bundled output for commit e98145d627 [skip ci] 2020-04-13 09:22:40 +00:00
Alexander Skvortsov
e98145d627 Add year, localization support for displaying things older than 1 year (#2034) 2020-04-13 11:21:27 +02:00