1
0
mirror of https://github.com/flarum/core.git synced 2025-09-02 12:43:28 +02:00
Commit Graph

8867 Commits

Author SHA1 Message Date
Daniel Klabbers
4c94ad5df4 applied laravel contract 2017-11-27 09:49:19 +01:00
Toby Zerner
95285a9a54 Actually list users returned from the API when searching 2017-11-20 10:37:21 +10:30
Toby Zerner
78dafa76c5 Fix email gambit 2017-11-20 09:17:44 +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
68f9baf974 Merge pull request #1261 from josephnle/drag-and-drop-avatar-upload
Add drag and drop avatar uploading
2017-11-13 01:33:29 +02:00
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
a05e8c817e Don't over-cache the disallowed tags 2017-11-12 21:14:53 +10:30
Toby Zerner
19794bb19b Performance: Assign parent discussions to posts so they don't have to be reloaded 2017-11-12 21:14:19 +10:30
Toby Zerner
5116cf7d75 Performance: Load only basic information about post discussion/users 2017-11-11 23:15:36 +10:30
Toby Zerner
a4849355aa Performance: Load only basic information about terminal/relevant posts 2017-11-11 22:57:41 +10:30
Toby Zerner
89a43d1adf Performance: Cache translation catalogue to avoid reparsing YAML 2017-11-11 22:45:38 +10:30
Toby Zerner
99686ef8bb Performance: Assign parent discussion to posts so it doesn't have to be reloaded 2017-11-11 22:44:45 +10:30
Toby Zerner
0479c03502 Performance: Reuse list of disallowed tags 2017-11-11 22:43:07 +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
b4375e4f7d Fix Composer textarea losing its height across route changes
There is a Mithril bug which causes context.retain to be ineffective for
children nodes. https://github.com/MithrilJS/mithril.js/issues/1300

Thus, we have to assume that the children nodes (like the textarea)
may be recreated and thus we need to update its height on each redraw.

fixes #948
2017-11-07 21:12:03 +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
091305cce2 Oops, recompile JS properly 2017-11-05 17:57:56 +10:30
Toby Zerner
e0079f2e60 Recompile JS 2017-11-05 17:38:30 +10:30
Toby Zerner
659be3811d Give the mobile composer a bit more height 2017-11-05 17:35:13 +10:30
Toby Zerner
f638fb9300 Remove FastClick. Fixes #1268
Turns out FastClick was causing textareas to be buggy on iOS Safari,
and it wasn't really doing any good.
2017-11-05 17:32:43 +10:30
Toby Zerner
60f111ca87 Add translation for Preview tooltip 2017-11-05 16:28:00 +10:30
Toby Zerner
a8cce49b85 Update asset revision whenever custom LESS is changed
This should remove the need for a hard browser refresh whenever you
update the custom LESS.
2017-11-05 16:27:28 +10:30
Toby Zerner
1cc6c06946 Add a tooltip to the Preview button 2017-11-05 16:25:34 +10:30
Toby Zerner
141d6dfbbc Improve mobile composer behaviour
- Don't scroll to the bottom of the discussion when selecting "Reply"
  from the menu if the composer is in full screen mode (ie. on mobile).
  ref #1271

- After posting a reply, scroll to the end of the discussion

- Reduce the textarea height - previously it was 100vh, but this doesn't
  account for the height of the iOS keyboard, so I've just arbitrarily
  chosen 300px instead. There may be a better solution for this.
  ref #1269
2017-11-05 16:25:21 +10:30
Toby Zerner
16e55f724d Attempt fix for #1268
I believe the constant overlay of a loading div may be what's causing
the iOS cursor issues. This commit removes the fade animation so that
we can simply set display to none, which will hopefully fix the issue.
2017-11-05 16:21:18 +10:30
Toby Zerner
9682cd5f26 Make sure dropdowns don't go above the edge of the screen 2017-11-05 16:17:50 +10:30
Toby Zerner
a6553954e2 Revert color to text input type
#1074 changed the input type for these fields to "color", but it turns
out the browser support for this input type sucks (they give you a very
limited color picker, and make it hard to input hex codes).
2017-11-05 16:17:15 +10:30
Toby Zerner
5343d6eff9 Fix admin navigation not rendering
Not sure why this started happening now, but the admin navigation
dropdown wasn't receiving its children properly. This commit fixes a
flaw in our Mithril patch and allows an array of children to be passed
in the normal JSX way, rather than as an attribute.
2017-11-05 16:12:26 +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
Daniel Klabbers
1d0df71c19 moved from boot to register 2017-11-02 10:52:52 +01:00
Daniel Klabbers
ccfa3482f1 fixed the Bus command Handling forwarding the call to a matching Handler class 2017-11-02 10:48:33 +01:00
Franz Liedke
6614fddbcd Remove user bio feature (#1214)
The feature is very limited in scope, and we hope for community
extensions to take over this feature and make it much better.
2017-11-02 01:12:49 +01:00
Franz Liedke
b36bf98d8a Remove user bio placeholder
Refs flarum/core#1214.
2017-11-02 01:01:35 +01:00
Lukas
a18088f385 The CookieFactory now also works if no configuration exists (#1258)
* Returning the $default value if there's no config

This is especially important for the CookieFactory which accesses
the configuration before the application is installed

* Injecting the configuration values into the CookieFactory
2017-11-02 00:51:31 +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
Daniël Klabbers
0bd569aa75 fixed renamed interface for Scope 2017-11-01 22:12:56 +01:00
Daniel Klabbers
59dc82eb70 array_build => array_map 2017-11-01 17:20:12 +01:00
Daniel Klabbers
949244ae56 fixed symfony translator now using catalogues 2017-11-01 17:07:22 +01:00
Daniel Klabbers
ab42c3bc8b fixed an issue where the mail provider would not be able to instantiate 2017-11-01 17:01:50 +01:00
Daniel Klabbers
1cc6deabec using blade @json directive to parse raw json into frontend` 2017-11-01 13:22:16 +01:00
Franz Liedke
deb4bed0cf Merge pull request #12 from markv/master
Fix downscaled image rendering in chrome
2017-10-29 17:25:32 +01:00