Commit Graph

3342 Commits

Author SHA1 Message Date
Daniël Klabbers
90c6f3f567 updated core developers in authors 2020-03-03 15:47:00 +01:00
Daniël Klabbers
f8355e661a Update Application.php
updated version constant for b12
2020-03-03 15:38:15 +01:00
Franz Liedke
1a3f90daef Re-add mail settings backwards compatibility layer 2020-02-26 23:11:22 +01:00
Franz Liedke
3e154f9c25 Re-add util class and mark it as deprecated
This would be the only breaking change in beta.12. Let's stick to our
backwards compatibility promise / intentions as much as possible, even
if we assume the class has not been used anywhere.

This BC layer will be removed again for beta.13.

Refs #1975.
2020-02-26 22:14:23 +01:00
Franz Liedke
a41fef8d25 Prepare changelog for beta.12 release 2020-02-26 21:10:52 +01:00
Matt Kilgore
b83d848752 Force fixed version of text formatter 2020-02-25 11:27:59 +01:00
Franz Liedke
d30f2a0ca9 Merge pull request #2002 from flarum/fl/extender-tests
Start testing extenders
2020-02-14 18:47:58 +01:00
flarum-bot
4788c144cf Bundled output for commit ec59171ef1 [skip ci] 2020-02-14 14:57:19 +00:00
Clark Winkelmann
ec59171ef1 Add disabled prop to the Select component (#1978) 2020-02-14 15:56:04 +01:00
Clark Winkelmann
4350baa1f1 Rename dead is_activated references with the new is_email_confirmed (#1974) 2020-02-14 15:34:32 +01:00
Matt Kilgore
e28ef06435 Updates s9e/text-formatter to 2.x (#1982)
No additional changes required, tested with fof/formatting extension.
2020-02-14 12:34:40 +01:00
flarum-bot
4817cece9d Bundled output for commit 9ac54429d0 [skip ci] 2020-02-10 22:55:40 +00:00
D Mata
9ac54429d0 Update AvatarEditor.js onchange to oninput (#1570)
onchange does not work in IE11 and other IE browsers. This change works with all modern browsers as well.
2020-02-10 23:54:41 +01:00
Franz Liedke
1129e1333a CI: Test on PHP 7.4 as well
If we're lucky, this should fail right now, due to #1980.
2020-02-09 06:46:33 +01:00
Franz Liedke
16d65605d7 Switch to Wikimedia's less.php fork
The original library is no longer maintained. The fork supports PHP 7.4.
2020-02-09 06:46:33 +01:00
Franz Liedke
0ff686780e Try to fix installer in PHP 7.4 2020-02-09 06:46:33 +01:00
Franz Liedke
12ff8dbcc3 Start testing Route extender 2020-02-08 00:04:32 +01:00
Franz Liedke
b2c3392a83 Integration tests: Allow registering extenders 2020-02-07 23:29:14 +01:00
Franz Liedke
d0aa0b7920 Integration tests: Add lazy server helper
This allows sending requests directly in an integration test, without
having *explicitly* booted the app.
2020-02-07 23:28:37 +01:00
Franz Liedke
010f1939e0 Integration tests: Create app lazily when needed
This will allow registering extenders in test scenarios. Previously,
this would not have had any effect as the app would have booted already.
2020-02-07 23:22:22 +01:00
flarum-bot
930f6b06af Bundled output for commit 969bd18001 [skip ci] 2020-02-07 14:35:37 +00:00
Franz Liedke
969bd18001 Merge pull request #1938 from flarum/ds/1255-throttling-bypass-permission
Add permission to bypass throttling
2020-02-07 15:34:25 +01:00
David Sevilla Martín
935ea8cbbf Add permission to bypass throttling 2020-02-07 15:30:09 +01:00
flarum-bot
080e4c082c Bundled output for commit 5179221a08 [skip ci] 2020-02-07 11:18:30 +00:00
Franz Liedke
5179221a08 Fix race condition in post preview
The post composer could have been closed in between scheduling and
executing the callback.

Fixes flarum/org#58.
Refs #1881.
2020-02-07 12:17:11 +01:00
flarum-bot
1941d86c15 Bundled output for commit e13009ed07 [skip ci] 2020-02-07 11:06:58 +00:00
Franz Liedke
e13009ed07 Merge pull request #1921 from flarum/ds/1763-handle-incomplete-email-configuration
Improve handling of incomplete mail configuration
2020-02-07 12:05:41 +01:00
Franz Liedke
18ef23cb5f New extender for error handling (#1970)
This extender implements several methods for extending the new error
handling stack implemented in #1843.

Most use-cases should be covered, but I expect some challenges for more
complex setups. We can tackle those once they come up, though. Basic
use-cases should be covered.

Fixes #1781.
2020-01-31 14:01:12 +01:00
flarum-bot
0d60a811d3 Bundled output for commit c26c06faf6 [skip ci] 2020-01-31 12:34:20 +00:00
Franz Liedke
c26c06faf6 Merge pull request #1975 from flarum/fl/194-better-slugs
Use Laravel's slugger for basic transliteration
2020-01-31 13:32:55 +01:00
flarum-bot
77bb187520 Bundled output for commit fb99f59fff [skip ci] 2020-01-26 22:38:29 +00:00
Clark Winkelmann
fb99f59fff Fix the "reply posted" alert empty body 2020-01-26 23:37:19 +01:00
Franz Liedke
21dcaa4c1d Remove unnecessary use statement 2020-01-26 20:21:19 +01:00
ozzzzzzzam
50ccbfe627 Remove forum title from confirmation email subject (#1613)
The forum title is already used as the display name for the sender email address, so having it in the subject is just a duplication and waste of space.
2020-01-25 14:35:47 +01:00
Matthew Kilgore
93c6babc61 Additional functionality for Middleware extender
Implements the remove, insertBefore, insertAfter and replace
functionality for middlewares.

The IoC container now holds one array of middleware (bindings) per
frontend stack - the extender operates on that array, before it is
wrapped in a middleware "pipe".

Fixes #1957, closes #1971.
2020-01-24 21:20:33 +01:00
Franz Liedke
b7bda37380 Add BC layer for mail driver configuration
By commenting out the new methods on the `DriverInterface` and checking
for these methods' existence before calling them, old implementations in
extensions will not break right away.

This will be removed after beta.12 is released, giving extension authors
about two months time to update their extensions.
2020-01-24 18:04:16 +01:00
Franz Liedke
f22ba99214 Clarify the use-case of the JS slug helper 2020-01-24 17:42:14 +01:00
Franz Liedke
a2cc49b1d9 Use Laravel's slugger for basic transliteration
This is better than the current system, as it adds transliteration rules
for special characters, rather than just throwing all of them away.

For languages that cannot be transliterated to ASCII in a reasonable
manner, more possible improvements are outlined in #194.
2020-01-24 17:40:09 +01:00
Franz Liedke
1e6d7efdc0 Connect labels with their form fields 2020-01-24 15:41:26 +01:00
Franz Liedke
e70444d934 Style validation errors 2020-01-24 15:41:26 +01:00
Franz Liedke
89b0e16ef3 Mail drivers: Separate definition from validation 2020-01-24 15:41:26 +01:00
David Sevilla Martin
42861dd986 Change implementation to add validation rules, of which 'required' is shown in the frontend 2020-01-24 15:41:25 +01:00
David Sevilla Martin
96d3ae22f2 Add required fields, incomplete configuration warning, and null transport 2020-01-24 15:41:25 +01:00
flarum-bot
6f6958dd6b Bundled output for commit cb91d705c5 [skip ci] 2020-01-22 23:02:59 +00:00
David Sevilla Martín
cb91d705c5 Add Content for User page, preload user & throw 404 accordingly (#1901) 2020-01-23 00:01:26 +01:00
Franz Liedke
c80d704c0b Convert another test
Test the request, not a controller (implementation detail). This also
focuses on the observable behavior instead of hacking our way into the
middleware pipeline in order to observe internal behavior.

The authenticated user is now determined by looking at the API response
to compare permissions and (non-)existing JSON keys.
2020-01-22 23:39:41 +01:00
David Sevilla Martín
6697d3fb5e Initial template for Stale bot configuration (#1841) 2020-01-18 02:06:36 +01:00
Julian Berger
d0a23b756c Get translations from fallback catalogues (#1961) 2020-01-17 23:37:50 +01:00
Franz Liedke
152951f81b Add backwards compatibility layer for mail drivers
Support the old format (a simple list of available fields), in addition
to the new format (a map from field names to their types + metadata).

This will be removed after beta.12 is released.
2020-01-14 11:45:44 +01:00
Franz Liedke
dac47b5571 Document changes in mail driver interface 2020-01-14 11:44:29 +01:00