Commit Graph

3528 Commits

Author SHA1 Message Date
Alexander Skvortsov
2f9beccf2a Add index page title, add mechanism to clear title from defaultRoute. (#2047)
* Add "All Descriptions title to index

* Added system to clear custom title if we're on the default route
2020-06-27 14:18:49 -04:00
flarum-bot
d6de442b8a Bundled output for commit 8513e013f4 [skip ci] 2020-06-26 16:25:45 +00:00
Franz Liedke
8513e013f4 Fix typo and update outdated doc block 2020-06-26 18:23:56 +02:00
flarum-bot
c659b3e72b Bundled output for commit c8185a22df [skip ci] 2020-06-26 14:08:35 +00:00
Franz Liedke
c8185a22df Remove documentation for obsolete component prop 2020-06-26 16:06:56 +02:00
Franz Liedke
0b9e8e0408 Expose a method for clearing notification list
Needed for pusher extension.

Refs #2185.
2020-06-26 15:10:41 +02:00
flarum-bot
365ae0464e Bundled output for commit 301495478d [skip ci] 2020-06-26 12:32:40 +00:00
Franz Liedke
301495478d Move DiscussionListState to correct folder 2020-06-26 12:52:33 +02:00
Franz Liedke
070b4b1c21 Expose state classes via compat
This way, they can be extended by extensions.
2020-06-26 12:50:43 +02:00
flarum-bot
c2bea8cde3 Bundled output for commit 144e38049e [skip ci] 2020-06-24 00:51:55 +00:00
David Sevilla Martín
144e38049e Call liveHumanTimes() to update ago times every 10s (#2208)
This file has existed for 5 years, yet it was never used.
2020-06-23 20:50:57 -04:00
flarum-bot
d4905437bd Bundled output for commit 395ee845ae [skip ci] 2020-06-20 14:19:53 +00:00
w-4
395ee845ae Fix discussion unreadCount could be higher than commentCount (#2195)
* Fix discussion unreadCount being higher than commentCount if posts have been deleted
2020-06-20 10:18:26 -04:00
flarum-bot
f14da4b159 Bundled output for commit 1c1a3b363e [skip ci] 2020-06-19 21:42:28 +00:00
Alexander Skvortsov
1c1a3b363e Clean up app.current, app.previous in JS (#2156)
- Encapsulate app.current, app.previous in PageState objects
- Reorganize Page classes to use one central base class in common

Co-authored-by: Franz Liedke <franz@develophp.org>
2020-06-19 17:41:26 -04:00
Franz Liedke
17eac0fa4a Clean up usages / deprecate path helpers (#2155)
* Write source map without creating temp file

Less I/O, and one less place where we access the global path helpers.

* Drop useless app_path() helper

This was probably taken straight from Laravel. There is no equivalent
concept in Flarum, so this should be safe to remove.

* Deprecate global path helpers

Developers using these helpers can inject the `Paths` class instead.

* Stop storing paths as strings in container

* Avoid using path helpers from Application class

* Deprecate path helpers from Application class

* Avoid using public_path() in prerequisite check

a) The comparison was already outdated, as a different path was passed.
b) We're trying to get rid of these global helpers.
2020-06-19 16:16:03 -04:00
flarum-bot
be5ffad574 Bundled output for commit 85deb7ae03 [skip ci] 2020-06-19 00:30:16 +00:00
Franz Liedke
85deb7ae03 Remove leftover property
Refs #2150.
2020-06-19 02:27:01 +02:00
flarum-bot
b3aed8f6c4 Bundled output for commit 6f3ad1999e [skip ci] 2020-06-19 00:11:51 +00:00
Alexander Skvortsov
6f3ad1999e Don't store PostUser instance in CommentPost (#2184)
* Don't save component state in CommentPost
2020-06-18 20:10:25 -04:00
flarum-bot
7e9b9ec638 Bundled output for commit 4803457824 [skip ci] 2020-06-18 23:54:42 +00:00
Alexander Skvortsov
4803457824 Move Discussion List State into its own class (#2150)
Extract discussion list state
2020-06-18 19:53:40 -04:00
flarum-bot
3feaa9a3ac Bundled output for commit 4013aed078 [skip ci] 2020-06-18 22:48:18 +00:00
Alexander Skvortsov
4013aed078 Remove app.search instance, cache app.cache.searched (#2151)
* Moved search state logic into search state
2020-06-18 18:47:01 -04:00
flarum-bot
df15d9ae3f Bundled output for commit ffc7fc966e [skip ci] 2020-06-18 21:29:07 +00:00
Alexander Skvortsov
ffc7fc966e Don't store checkbox instances in NotificationGrid (#2183)
* Don't store checkbox states in NotificaitonGrid, use props for loading in Checkbox and Switch, replace preferenceSaver with internal management of loading state
2020-06-18 17:28:05 -04:00
flarum-bot
37fbc3350d Bundled output for commit 289ebeb5ce [skip ci] 2020-06-18 21:09:49 +00:00
Alexander Skvortsov
289ebeb5ce Extract NotificationList state (#2185)
* Extract NotificationList state
2020-06-18 17:08:06 -04:00
Alexander Skvortsov
ebf17b72ff Return the proper error code when wrong password when changing email (#2171) 2020-06-17 20:43:04 -04:00
Clark Winkelmann
fa304a0f37 Remove BioChanged event which is no longer used since beta 8 (#2196) 2020-06-15 00:21:06 -04:00
Clark Winkelmann
2261f4f220 Fix AvatarChanged event (#2197)
* Fix AvatarChanged event not being dispatched when changing avatar
Also fix the uploader to trigger the event only once
2020-06-15 00:20:24 -04:00
Alexander Skvortsov
b3c2672634 Group Gambit Improvements (#2192)
* - Add ID to fields searched in group gambit
- Use joins instead of looping in group gambit
* Add visibility scoping to group gambit
* call IDs userIds
* If group identifier is numerical, treat it as an ID
2020-06-08 17:35:24 -04:00
Matt Kilgore
07b9866cfb Fixes #2157, Explicitly set SameSite value for cookies (#2159)
* Fixes #2157, Explicitly set SameSite value for cookies by making samesite a config option in config.php. Also contains an update for the cookie library dependency
2020-06-03 22:53:30 -04:00
flarum-bot
42a9300a9d Bundled output for commit 8d9e20f217 [skip ci] 2020-05-31 02:50:39 +00:00
Alexander Skvortsov
8d9e20f217 Send Test Mail Feature (#2023)
- Add UI, backend for sending test emails
- Change mail settings endpoint to /api/mail/settings
2020-05-30 22:49:36 -04:00
flarum-bot
17f46fd9d0 Bundled output for commit 909e741c62 [skip ci] 2020-05-31 02:29:29 +00:00
Hasan Özbey
909e741c62 Scroll to edited post or inform the user (#2108)
* scroll to edit or inform the user
2020-05-30 22:28:08 -04:00
Alexander Skvortsov
af22f5f89a Get rid of Laravel Gate contract (#2181)
* Get rid of unnecessary uses of gate

* Move gate off of Laravel's gate contract
2020-05-28 18:00:44 -04:00
Sami Mazouz
004d80b860 Fix Paths test failing on Windows (#2187)
* Fix directory separator for windows os

* Change Paths to use a forward slash instead
2020-05-28 12:42:54 -04:00
Alexander Skvortsov
063df058b6 Instances of models should not matter when checking permissions (#2186) 2020-05-27 12:22:08 -04:00
Matt Kilgore
88090660d4 Fix installer removing URL port (#2182)
* Fix installer removing URL port
2020-05-25 14:35:22 +02:00
Franz Liedke
82c110c7b6 Allow manipulating error handler through extender
By giving each middleware a name, they can now be replaced or moved
around using the Middleware extender.

Fixes #2115.
2020-05-24 08:47:26 +02:00
w-4
c6fc8a8cd6 Fix header contents moving when opening modal (#2131)
* add navbar-fixed-top css class

* App-header position:fixed
2020-05-23 14:41:54 -04:00
Franz Liedke
12aad66049 Tests: Actually accept multiple extenders
We did pass multiple extenders to this method in the tests for the
`Model` extender - now this actually has the desired effect.
2020-05-23 02:00:25 +02:00
Franz Liedke
00761946c7 Stop using app() helper in tests 2020-05-23 01:56:21 +02:00
Sami Mazouz
13c33c409e Add z-index rule as part of fixing replies dropdown menu width (#2178) 2020-05-22 18:50:39 -04:00
Alexander Skvortsov
c73ce3e768 Inject Url Generator and Translator Interface into notification mailer (#2169) 2020-05-22 18:10:31 -04:00
flarum-bot
24161507d8 Bundled output for commit af26bd22f6 [skip ci] 2020-05-20 00:53:05 +00:00
Alexander Skvortsov
af26bd22f6 Removed excess Widget class in favor of DashboardWidget (#2164) 2020-05-19 20:52:07 -04:00
flarum-bot
389d86c7f0 Bundled output for commit f7985bac61 [skip ci] 2020-05-19 22:46:59 +00:00