Clark Winkelmann
29f7863b3a
Prevent saving invalid custom less ( #1273 )
...
* Prevent saving invalid custom less
* Fix formatting
* Fix formatting again
* Move custom less format check to its own listener
* Move listener to AdminServiceProvider
* Rename listener method
2017-12-13 22:39:09 +01:00
Daniël Klabbers
317d827046
re-using symfony translator
2017-12-13 21:45:55 +01:00
Toby Zerner
f4f4ce17b6
Filter out notifications with non-existent subjects
...
ref #1025 #1238 . This should prevent the frontend from crashing when
opening the notifications menu, but we still need to make sure
notifications are deleted properly when subjects are deleted.
2017-12-13 15:54:16 +10:30
Toby Zerner
3e29761d12
Add infinite scrolling in the notifications list
2017-12-13 15:28:54 +10:30
Toby Zerner
d56b792a9d
I think we're finally good with the timezone stuff now?
...
MySQL's UNIX_TIMESTAMP function interprets the date using MySQL's
configured timezone, which we don't want (may be misconfigured etc).
Instead, now we do the conversion to a timestamp on the PHP side. Then
JavaScript is given the offset between UTC and the configure timezone
so it can work out how to display the data.
2017-12-11 22:42:51 +10:30
Toby Zerner
6857d32d22
Add "today" period with hourly breakdown, and fix timezone issues
...
This fix ensures that before aggregating daily/hourly statistics, dates
are converted into the local timezone ("flarum-statistics.timezone" in
the settings table).
2017-12-11 19:01:38 +10:30
Toby Zerner
8860def12e
Only show this period's value in tooltip
2017-12-11 18:53:47 +10:30
Toby Zerner
b65ad8a5ce
Only update chart values if needed
2017-12-11 18:52:54 +10:30
Toby Zerner
3f1f92b565
Show a tick next to the selected period
2017-12-11 18:48:32 +10:30
Toby Zerner
ae063b52e8
Fix date range sometimes leaving out today
2017-12-11 07:52:48 +10:30
Toby Zerner
898469e398
Display tweaks
2017-12-11 07:52:05 +10:30
Toby Zerner
410dd2c679
Set default period to last 7 days
2017-12-10 21:26:54 +10:30
Toby Zerner
1780448e70
Abbreviate numbers
2017-12-10 21:26:42 +10:30
Toby Zerner
a595d9e846
Initial commit
2017-12-10 21:11:13 +10:30
Toby Zerner
e674b0181b
Extract admin dashboard statistics from core into an extension
2017-12-10 21:05:01 +10:30
Toby Zerner
0c1e90719c
Extract admin dashboard statistics from core into an extension
2017-12-10 21:03:48 +10:30
Toby Zerner
113ed7cbf8
Fix PHP 7.2 warning
2017-12-10 21:02:47 +10:30
Toby Zerner
54a5ee8edc
Fix crash when post's user has been deleted
2017-12-10 21:02:35 +10:30
Toby Zerner
e626323785
Merge pull request #1298 from sijad/remove-autolink
...
remove autolink
2017-12-03 08:15:31 +10:30
Sajjad Hashemian
85a13c1235
remove autolink #1214
2017-11-30 13:38:45 +03:30
Toby Zerner
8bdbacedcc
Merge pull request #110 from milescellar/patch-2
...
Create core.ref.posts reused translation to replace multiple occurences
2017-11-30 08:02:47 +10:30
Toby Zerner
68262e3f4a
Merge pull request #109 from milescellar/patch-1
...
Use reused translation on the Statistics dashboard widget
2017-11-30 08:02:40 +10:30
Miles Cellar
f2075ec3bf
Create core.ref.posts reused translation to replace multiple occurences
2017-11-29 19:49:12 +01:00
Miles Cellar
65813f1dbd
Use reused translation on the Statistics dashboard widget
2017-11-29 19:40:54 +01:00
Toby Zerner
6035615660
Move view logic into middleware
2017-11-29 22:25:57 +10:30
Toby Zerner
e10baaaf62
Fix last commit
2017-11-29 22:22:14 +10:30
Toby Zerner
1584261541
Generate URL in the controller instead of the view
2017-11-29 22:20:06 +10:30
Toby Zerner
a0587ec68a
Update translations for dashboard overhaul
2017-11-29 17:22:17 +10:30
Toby Zerner
d592322a61
Basic implementation of dashboard widgets, statistics
...
Currently not user-customizable. Just needed to display statistics for a
client, so figured I'd make a start at this. Nothing too fancy for now,
but I'm sure some people will be happy to have this information at their
fingertips.
2017-11-29 17:19:20 +10:30
Toby Zerner
50047851d1
More precise permission check for email gambit
2017-11-29 17:02:49 +10:30
Toby Zerner
cb8c6d71bc
Fix admin error handling
2017-11-29 16:10:22 +10:30
Daniël Klabbers
93355a3ceb
reverting translator contract
2017-11-29 06:26:48 +01:00
Toby Zerner
034ee27522
Preserve return URL when confirming logout
2017-11-29 13:47:00 +10:30
Toby Zerner
e4d863842a
Add translation for 404 error return link
2017-11-29 13:23:55 +10:30
Toby Zerner
21c9eae502
Add a "return home" link to 404 errors
2017-11-29 13:23:25 +10:30
Toby Zerner
4369ff350b
Add translations for errors messages, log out confirmation
2017-11-29 13:05:10 +10:30
Toby Zerner
8c900dec01
Update translations for reset password UI
2017-11-29 13:04:56 +10:30
Toby Zerner
ca1f2d8a80
New design for error pages. closes #252
2017-11-29 13:03:55 +10:30
Toby Zerner
68ca96cb7b
Add log out confirmation if CSRF token is invalid. fixes #1282
2017-11-29 13:03:16 +10:30
Toby Zerner
243275de89
Use HtmlResponse in AbstractHtmlController
2017-11-29 12:54:11 +10:30
Toby Zerner
41a4551d94
Make URLs more verbose
2017-11-29 12:53:39 +10:30
Toby Zerner
b43a60280a
New design for reset password view
2017-11-29 12:53:06 +10:30
Toby Zerner
35a8fe97f6
Restructure views
...
- Use Laravel's view namespacing rather than the full file path
- Organise views into directories
2017-11-29 12:51:24 +10:30
Daniel Klabbers
6e8b9f8814
must be an empty line
2017-11-27 14:19:18 +01:00
Daniel Klabbers
9e9136d9be
re-added a precious line
2017-11-27 14:18:28 +01:00
Daniel Klabbers
a7bcc79085
patched up the Scope implementation as requested
2017-11-27 14:17:17 +01:00
Daniel Klabbers
4b7eeb2564
Using Core Translator in Locale Manager, type hinted its methods and removed unnecessary phpdoc
2017-11-27 14:03:45 +01:00
Daniel Klabbers
2e571c425a
pleasing the angry god Circle
2017-11-27 11:05:15 +01:00
Daniel Klabbers
c8e1d71702
replaced the Symfony\Component\Translation\TranslationInterface with the Illuminate\Contracts\Translation\Translator, deprecating the Symfony version
2017-11-27 10:42:16 +01:00
Daniel Klabbers
386416c017
fixed alias/reference loading for translation strings
2017-11-27 10:35:57 +01:00