Commit Graph

4208 Commits

Author SHA1 Message Date
Daniel Klabbers
7906660a9b allows replacing maintenance mode handler using ioc 2021-06-22 00:10:41 +02:00
Daniël Klabbers
79abf87e8c Dw/huntr fix path traversal (#2931)
* Fix Huntr vuln with possible directory traversal
* Use `active_url` in Laravel validator
2021-06-21 10:14:15 +02:00
David Wheatley
97ed44f0f2 Fix image avatar alignment in notifications (#2906) 2021-06-11 12:13:57 +01:00
Daniël Klabbers
12c9334448 minor improvements to the security policy 2021-06-10 21:56:30 +02:00
Daniël Klabbers
8a8c902695 huntr.dev as first point for security vuln (#2918)
* huntr.dev as first point for security vuln

* add badge for huntr.dev
2021-06-10 16:26:40 +02:00
Daniël Klabbers
71f15e550a clean up of composer.json, added funding and more support links 2021-06-08 01:58:37 +02:00
Daniël Klabbers
0e1cf50d6f remove tidelift, we stopped doing that 2021-06-08 01:54:11 +02:00
Daniël Klabbers
6c4eafda32 Remove [forum] prefix in some mails
fixes #2515
2021-06-08 01:28:04 +02:00
David Wheatley
0d642bd394 Mark typings as generated code (#2886) 2021-06-07 13:12:43 +01:00
flarum-bot
fbc000d445 Bundled output for commit 31c6bae4d5
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-06-06 01:50:56 +00:00
David Wheatley
31c6bae4d5 npm audit fix 2021-06-06 02:47:58 +01:00
David Wheatley
f14c6b1285 Update changelog 2021-06-06 02:44:32 +01:00
David Wheatley
5ae2eb9f1e Fix XSS vulnerability 2021-06-06 02:41:48 +01:00
David Wheatley
571e9c95d3 Update version constant to 1.0.2 2021-06-06 02:09:03 +01:00
Daniel Klabbers
688ca6ad3d update version constant for 1.0.2-dev 2021-06-02 09:10:01 +02:00
Daniel Klabbers
0bb0797245 v1.0.1 changelog and constant 2021-06-02 09:05:36 +02:00
luceos
3865fc21f9 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-05-31 14:08:49 +00:00
Daniel Klabbers
f229e3478e ref #2890, no longer using process and dump 2021-05-31 16:08:15 +02:00
Daniel Klabbers
795918c274 Revert "Revert "Squash core migrations (#2842)""
This reverts commit 3a524e6845.
2021-05-31 15:49:20 +02:00
Daniel Klabbers
11c66f52b9 updated version constraint string 2021-05-29 22:42:28 +02:00
Daniel Klabbers
3a524e6845 Revert "Squash core migrations (#2842)"
This reverts commit 03e4f31bda.
2021-05-29 22:38:25 +02:00
Daniel Klabbers
322b1a083b changelog and version constraint fix for flarum/testing 2021-05-25 23:01:54 +02:00
Daniël Klabbers
db7c7911d4 Version constant for 1.0.0 (#2885) 2021-05-25 15:00:21 +02:00
Alexander Skvortsov
99ecc6f917 Apply fixes from StyleCI
[ci skip] [skip ci]
2021-05-18 07:08:50 +00:00
Alexander Skvortsov
2042eed99f Fix onOneServer, withoutOverlapping console scheduling options
Flarum doesn't fully use Laravel's cache system, but rather
creates and binds a single cache store.
See \Flarum\Foundation\InstalledSite::registerCache
Since certain config options (e.g. withoutOverlapping, onOneServer)
need the cache, we must override the cache factory we give to the scheduling
mutexes so it returns our single custom cache.
2021-05-18 03:08:32 -04:00
flarum-bot
09615f1a85 Bundled output for commit 2b3691e7cc
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-18 05:39:33 +00:00
Alexander Skvortsov
2b3691e7cc Fix insertText
In 60dea59815, insertText was modified from the original to work with reply mentioning. This was done due to a misunderstanding of the API: the selection range isn't the selection to replace, but rather the final selection state after replacing the *current* selection with the text. This commit restores the original, correct implementation of insertText and instead adjusts the `insertBetween`method of BasicEditorDriver to set selection state before executing `insertText`.

Fixes https://github.com/flarum/core/issues/2877
2021-05-18 01:37:19 -04:00
Alexander Skvortsov
c39724eae2 Fix filesystem wrong method call
The proper method is `exists`, not `has`.
2021-05-17 18:04:08 -04:00
Daniel Klabbers
54b52051a9 fix missing import of container for resolving the queue connection from ioc 2021-05-17 21:13:30 +02:00
flarum-bot
4db6810e40 Bundled output for commit fbe6beef28
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-17 00:29:54 +00:00
David Wheatley
fbe6beef28 Fix Badge className not being correctly set
Fixes group icons on Admin permissions page
2021-05-17 01:27:30 +01:00
David Wheatley
1785e6b8cb Update copyright date (#2863) 2021-05-16 19:10:33 -04:00
flarum-bot
f41c22df6f Bundled output for commit 3b52df1d5d
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 23:04:41 +00:00
SychO9
3b52df1d5d Remove Beta leftover warning code 2021-05-17 00:02:21 +01:00
Alexander Skvortsov
f9c0bda172 Bump composer reqs for 1.0.0 2021-05-16 18:27:36 -04:00
flarum-bot
2ab5bb26eb Bundled output for commit 130a07df78
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-16 00:14:08 +00:00
Alexander Skvortsov
130a07df78 Drop JS copyright blocks 2021-05-15 20:11:38 -04:00
flarum-bot
48344069a9 Bundled output for commit a325444799
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-15 23:09:46 +00:00
Alexander Skvortsov
a325444799 Merge pull request #2867 from flarum/as/1.0-qa-fixes
Assorted 1.0 QA fixes
2021-05-15 19:07:41 -04:00
Alexander Skvortsov
e835e36b8e Fix glitchy group editing
Currently, when groups are edited, the new groups flicker, but the UI soon reverts to the old groups. This is because the returned API response has the old group values. This, in turn, is because we eager load groups, and when we sync the new group relation, that doesn't update the groups saved in memory. By unsetting the relation, we make sure the right groups are returned (and also available to the GroupsChanged event).

See https://github.com/flarum/core/issues/2514
2021-05-15 02:30:03 -04:00
Alexander Skvortsov
4436d82c36 Fix CustomFooterModal Appearance
The textarea in the CustomFooterModal was much larger than in the other appearance page modals, and did not use a monospaced font. Turns out the other 2 were explicitly specified in the less. This commit adds a class that can be applied to all these modals for simpler maintenance.

Fixes https://github.com/flarum/core/issues/2865
2021-05-14 21:36:06 -04:00
Alexander Skvortsov
c90f05cb94 Fix KeyboardNavigatable
In acd3873bbd, I tried to be clever and create a new KeyboardNavigatable object as a return value for `when`. My approach to cloning was incorrect, and caused the util to break entirely.

My original intent for having this "clone"-based behavior is that a single KeyboardNavigatable instance could be created with multiple listeners, and then "cloned" like this with different "activators" registered via "then" calls. In hindsight, this change introduces more issues than it solves: outside of just not working, the cloned "KeyboardNavigatable" instances have shared internal state (the set of callbacks), and each has write access to this internal state. This is a recipe for unpredictable behavior and confusing bugs, so best to keep things simple for now, and maybe introduce more functional behavior in later releases.

Fixes https://github.com/flarum/QualityAssurance/issues/25
2021-05-14 21:21:58 -04:00
Alexander Skvortsov
0289a3b714 Fix 0s in notification dropdown
By casting the length int to a bool, if there are no badges, we don't display a  0. It seems that mithril will render integers, but not booleans.

Fixes https://github.com/flarum/QualityAssurance/issues/28
2021-05-14 21:08:48 -04:00
Alexander Skvortsov
99deb2514d NotificationListState separate content method
This fixes an error where an empty notification list wouldn't show the "empty" text.

It also simplifies flow of logic and breaks the component up a bit for readability.
2021-05-14 21:04:26 -04:00
David Wheatley
a2e5b30f37 Update copyright year 2021-05-15 00:45:09 +01:00
flarum-bot
21e251599a Bundled output for commit a012029521
Includes transpiled JS/TS, and Typescript declaration files (typings).

[skip ci]
2021-05-14 22:37:39 +00:00
Sami Mazouz
a012029521 Use slugs for user pages (#2864) 2021-05-14 23:35:50 +01:00
Alexander Skvortsov
ef64c2ab35 Fix "add numbered list" styleSelectedText action
Looks like I missed the `numberedLines` function used by the `orderedList` function in 60dea59815
2021-05-14 18:35:11 -04:00
Sami Mazouz
aa7ea1940f Fix version update page (#2862)
* Binding closures only get the container instance as argument
2021-05-14 16:10:05 +01:00
SychO9
ccc7a43913 Update Application version constant to 1.0.0-dev 2021-05-13 22:19:01 +01:00