1
0
mirror of https://github.com/flarum/core.git synced 2025-08-18 22:31:32 +02:00
Commit Graph

3714 Commits

Author SHA1 Message Date
Toby Zerner
15039737b8 Don't over-cache the disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
6f07aef206 Performance: Reuse list of disallowed tags 2017-12-26 19:44:53 +10:30
Toby Zerner
88228df6f2 Clean up some variable/method names 2017-12-19 08:57:55 +10:30
Toby Zerner
d827fd36fe Prevent statistics from being loaded outside of admin
closes flarum/core#1311
2017-12-19 08:52:13 +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
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
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
a0587ec68a Update translations for dashboard overhaul 2017-11-29 17:22:17 +10:30
Toby Zerner
e4d863842a Add translation for 404 error return link 2017-11-29 13:23:55 +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
20f6a256d5 Only touch orders property if we're going to add to it 2017-11-13 13:18:36 +10:30
Toby Zerner
c7d7b2d360 Fix subsequent pages of results not working properly 2017-11-13 09:17:55 +10:30
Toby Zerner
0ce00c6d16 Performance: Refactor SQL that pins unread sticky posts to the top
Ordering by `is_sticky and (unread subquery) desc` removes MySQL's
ability to use an index for ordering by `last_time`, which triggers a
filesort across the whole discussions table which is BAD.

This commit uses a union to add all stickied discussions to the query.
The results of the unioned queries are then ordered by the `is_sticky
and (unread subquery)` criteria, so the filesort only takes place on
a maximum of limit * 2 rows. Big performance win when you get up to
thousands of discussions!
2017-11-12 21:28:17 +10:30
Toby Zerner
89f417097b Performance: Load only basic information about lastDiscussion 2017-11-11 22:40:48 +10:30
Toby Zerner
6a21d292c5 Performance: Eager load parent tags 2017-11-11 22:40:22 +10:30
Toby Zerner
14215773b3 Fix positioning of quote button when parents are positioned relatively 2017-11-10 17:45:21 +10:30
Toby Zerner
41616e45ca Revert omission of image size
Turns out this is still required in SVG mode :D
2017-11-09 21:00:27 +10:30
Toby Zerner
ca788d711c Remove B) shortcut
It's pretty common in text (eg. and A), B), C) list) and is usually not
intended.
2017-11-08 20:21:41 +10:30
Zeokat
996f1724de Use SVG emoji instead of PNG 2017-11-08 20:18:26 +10:30
Toby Zerner
7ff57e1ba4 Refactor sticky order clause into a subquery
Based on some limited testing, using a subquery seems to outperform a
join in this case (the join was invoking a temporary table, which is
always a bad sign).

This also adds logic to fix a bug where sticky discussions would remain
at the top even when marked as read using the "mark all as read" button.
I thought we had an open issue for this somewhere, but I can't seem to
find one. ref #988 #1003
2017-11-08 11:34:37 +10:30
Toby Zerner
f00f522d6c Merge pull request #108 from milescellar/patch-1
Remove unnecessary double quotes
2017-11-05 12:57:07 +02:00
Toby Zerner
60f111ca87 Add translation for Preview tooltip 2017-11-05 16:28:00 +10:30
Toby Zerner
101af171b1 Don't sanitize values in plain-text emails 2017-11-05 15:29:46 +10:30
Toby Zerner
a95a89cb58 Don't sanitize values in plain-text emails 2017-11-05 15:29:29 +10:30
Miles Cellar
f16ccc775c Remove unnecessary double quotes
Due to 0ec346fbfb (the comma was the special character which needed double quotes before its removal)
2017-11-02 23:33:14 +01:00
Franz Liedke
b36bf98d8a Remove user bio placeholder
Refs flarum/core#1214.
2017-11-02 01:01:35 +01:00
Franz Liedke
0ec346fbfb Remove obsolete help text
The custom path field has been removed a while ago.

Refs flarum/core#1231.
2017-11-02 00:27:53 +01:00
Mark
4bc06b4276 Fix downscaled image rendering in chrome 2017-10-28 10:13:26 +10:30
Toby Zerner
e3e7da3f52 Add class to IndexPage when viewing a tag 2017-10-25 20:23:06 +10:30
Franz Liedke
1bed2fefa3 Fix class names 2017-10-03 20:52:33 +02:00
Franz Liedke
b28f116b06 Fix class names 2017-10-03 19:45:54 +02:00
Franz Liedke
96f073c45f Fix class names 2017-10-03 19:45:42 +02:00
Franz Liedke
bd635b55f7 Fix class names 2017-10-03 19:45:26 +02:00
Franz Liedke
0b5a9d59ba Fix class names 2017-10-03 19:44:53 +02:00
Franz Liedke
41980082ea Fix class names 2017-10-03 19:44:29 +02:00
Franz Liedke
d528cd03e2 Fix class names 2017-10-03 19:22:33 +02:00
Franz Liedke
7518578a13 Fix class names 2017-10-03 19:22:11 +02:00
Franz Liedke
1ad71264c3 Fix a namespace 2017-10-03 19:15:16 +02:00