Commit Graph

3934 Commits

Author SHA1 Message Date
ddac07d991 Move TextEditor to common (#2649) 2021-03-04 16:51:34 -05:00
08ba2599d7 Refactor Access Tokens (#2651)
- Make session token-based instead of user-based
- Clear current session access tokens on logout
- Introduce increment ID so we can show tokens to moderators in the future without exposing secrets
- Switch to type classes to manage the different token types. New implementation fixes #2075
- Drop ability to customize lifetime per-token
- Add developer access keys that don't expire. These must be created from the database for now
- Add title in preparation for the developer token UI
- Add IP and user agent logging
- Delete all non-remember tokens in migration
2021-03-04 16:50:38 -05:00
8eef7230e9 Updated GroupFilterGambit to prevent hidden groups being visible wher… (#2657)
Updated GroupFilterGambit to prevent hidden groups being visible where they shouldn't be and to ensure that only the selected groups are returned on a search. Fixes #2559
2021-03-04 10:08:12 -05:00
a61f9e7328 Bundled output for commit a65e1de641f061859a4495949597fc6da453f6df [skip ci] 2021-03-03 23:52:04 +00:00
a65e1de641 Convert common helpers to Typescript (#2541) 2021-03-03 18:50:54 -05:00
bed3207798 Fix CI (#2654) 2021-03-03 08:48:03 -05:00
fc73d47e4c Deprecate event helper (#2608) 2021-03-02 16:21:30 -05:00
6e01c47c11 Restrict who can use the lastSeenAt user sort (#2634) 2021-03-02 09:59:14 -05:00
a9526917b8 Query Namespace (#2645)
Move shared classes in search and filter namespaces to a new query namespace
2021-03-02 09:57:40 -05:00
e37fdef709 Hide boot error (#2633)
Completely redact boot error unless debug mode or display_errors is enabled. Attempt to use Flarum log file when possible. Fixes #2290
2021-03-02 09:57:06 -05:00
56d7796c47 Bundled output for commit b7379bf91bb16888e2a63b7b818eaf03263aee58 [skip ci] 2021-03-01 22:27:09 +00:00
b7379bf91b Simplify Extension Categories (#2604) 2021-03-01 17:25:55 -05:00
7fa22a131f clear cache files from storage/views (#2648)
Co-authored-by: Emamul Khan <emamul.khan@oxid-esales.com>
2021-03-01 13:45:19 -08:00
f0c6050654 Bundled output for commit 9627eb73f103fae4dff1680cc5f972277db6cae7 [skip ci] 2021-03-01 20:53:52 +00:00
9627eb73f1 User edit permission tightening (#2620)
- Split user edit permision into edit attributes, edit credentials, and edit groups
- Only Admins can edit Admin Credentials
- Only Admins can Promote/Demote to/from Admin
2021-03-01 15:52:29 -05:00
d0adb244da Fix missing PostRepository argument
This was accidentially removed in 458a5cc6be82ef8bf5296f719a95d4b1801d0c6f
2021-03-01 00:30:04 -05:00
458a5cc6be Use filterer for ListPostsController (#2479) 2021-02-28 14:06:07 -05:00
ea840ba594 Allow overriding routes (#2577) 2021-02-28 14:01:30 -05:00
ea291508ab Bundled output for commit 7d79912d3651f49e045302946b99a562f791b730 [skip ci] 2021-02-26 21:18:01 +00:00
7d79912d36 Editor Driver Abstraction (#2594)
This will allow drop-in replacements of the editor with a more advanced WYSIWYG solution such as ProseMirror
2021-02-26 16:17:05 -05:00
67306a9d34 Fix keyboard on small mobile screens hiding composer (#2631) 2021-02-26 16:07:29 -05:00
8cc207b139 Centralized IP Handler (#2624) 2021-02-25 20:08:52 -05:00
023871ef86 Search Filter Split, Use Same Controller (#2454) 2021-02-24 11:17:40 -05:00
1c578a83e4 Recalculate enabled extensions and their dependencies if some listed in settings aren't installed (#2629) 2021-02-23 17:57:53 -05:00
454c525cb2 Bundled output for commit 49009d268f9dfb59fe0ce20121cc659a06e3ea77 [skip ci] 2021-02-23 19:23:05 +00:00
49009d268f NotificationList: Fix load on mobile
Followup to https://github.com/flarum/core/pull/2524.

In that PR, we fixed infinite scroll for the panel, but accidentially used document.body. Since scrollTop on body is (almost always) 0, this means that new pages of notifications were loaded on every scroll, which quickly becomes overwhelming. Instead, we can use `document.documentElement` for getting scrollTop, which results in the expected behavior.
2021-02-23 14:21:18 -05:00
ef2d6a65f4 Update composer.json (#2625)
update authors
2021-02-23 10:32:03 +01:00
509adf228a Refactor password checker, add extender (#2176) 2021-02-22 17:08:36 -05:00
fa10d794a4 Optional Dependencies (#2579)
* Add and calculate optional dependencies
* Add extension dependency resolver (Kahn's algorithm), plus unit tests
* Resolve extension dependency on enable/disable
2021-02-21 13:49:33 -05:00
40ede179cd Adminux Patch Translations (#2616) 2021-02-19 16:12:11 -05:00
0ed71ed581 Adminux locale 2021-02-19 13:03:26 -08:00
dc75ebad00 Adminux locale 2021-02-19 13:02:42 -08:00
900711687f Bundled output for commit 71ccdc00e69b7a092844d53c921156230e85dc18 [skip ci] 2021-02-18 23:46:54 +00:00
71ccdc00e6 AdminUX Patch and Admin Page (#2593)
* AdminPage

* More fixes

* Settings Modal Drop

* Translation and docblock

* settingS

* Convert Fieldset to JSX

* info -> headerInfo, className

* Overflow fixes

* MailPage

* Admin Less

* Basics Page

* Changes

* Cleanup

* Permission Page

* Add padding
2021-02-18 15:45:43 -08:00
c4ebebe48e Move locale files from language pack to core (#2408) 2021-02-17 16:23:13 -05:00
56d8301b2d Bundled output for commit 09076e005b0df0da7a6b525302436a6648bb8d07 [skip ci] 2021-02-17 15:37:58 +00:00
09076e005b Various iOS scroll improvements (#2548)
* Don't update scrubber while post pages loading

This alleviates the scrubber bouncing around when scrolling up on iOS

* Throttle loadMore loadPrevious

Throttle loadMore and loadPrevious functions to alleviate skipping over pages and pages of posts during one scroll. This sometimes happens on iOS
2021-02-17 10:36:30 -05:00
73a8efaec2 Update DiscussionListItem.less to fix double tap on mobile (#2607)
Adds a rule to the discussion list less file which targets touch devices whose primary way of interacting does not include a mouse / ability to hover. For those devices the toggle button is hidden which fixes the double tap issue.
2021-02-17 08:51:09 -05:00
cdeb229396 Bundled output for commit 122a99b51e10cd63e701820e68b38469c26a8f06 [skip ci] 2021-02-16 22:49:29 +00:00
122a99b51e Don't push bidi function to DOM (#2602) 2021-02-16 17:48:16 -05:00
e7aed89e8f Broader support for callables in ContainerUtil (#2596)
It can be very annoying if we want to use something like boolval, but have to define an entire anonymous function to pass it in. This PR adds support for tpassing it in directly as a string, like is posible with User::registerPreference.
2021-02-10 14:51:31 -05:00
a1254bc21a Bundled output for commit 03231b2931b420cae3395374a4bc49e69b518ec1 [skip ci] 2021-02-10 19:23:42 +00:00
03231b2931 PostStream: Fix minor load more issue (#2388) 2021-02-10 14:22:26 -05:00
a2901cef23 Bundled output for commit 95b021a839908f11ee035121092a99d2f0123138 [skip ci] 2021-02-10 18:55:13 +00:00
95b021a839 Add user badges to post preview #1765 (#2555) 2021-02-10 13:53:59 -05:00
76d6442557 Simple Flarum Search Extender and tests (#2483) 2021-02-10 09:59:23 -05:00
5df22e92ae Bundled output for commit 7306d8ef1328556faab82b590be7e952f3ba05e7 [skip ci] 2021-02-10 14:11:35 +00:00
7306d8ef13 Export DiscussionListPane in compat
We forgot to do this in beta 14 when introducing the component.

Fixes https://github.com/flarum/core/issues/2591
2021-02-10 09:09:58 -05:00
0595aba76a Rename ApiSerializer's mutate to attributes (#2578) 2021-02-05 13:21:36 -05:00
8366ec720e Deprecate GetModelIsPrivate, replace with extender (#2587) 2021-02-04 10:56:10 -05:00