Commit Graph

30647 Commits

Author SHA1 Message Date
Sam
912a7105d2 DEV: polyfill Object.values and use where needed
We now have polyfills for `values` IE and `entries` IE

This commit uses values where appropriate to eliminate an extra lookup
This simplifies the code a bit.

Followup to: 7f089f07a773c2d6dd26ed000ff0123318c37b0f
2018-11-28 10:07:05 +11:00
Sam
3cb88bc566 DEV: Run file through prettier
We only alert on .js.es6 this is a js file so it is bypassed
2018-11-28 10:03:54 +11:00
bdb1268528 FIX: static page title should be consistent on client side and server side 2018-11-27 22:03:52 +05:30
04558b6ca4 FIX: makes sure we have a zone (#6686) 2018-11-27 16:42:23 +01:00
7f089f07a7 FIX: better fix for #ca84c06 (#6684) 2018-11-27 16:12:07 +01:00
f993aca363 FIX: Fix editing built-in badges after removing _.include
We want to send the unprotected fields to the server. Corrects 4c8cfe0f
2018-11-27 15:01:02 +00:00
ca84c06c59 FIX: revert to using _.each (#6683)
Should be replaced with Object.keys variation when reproducible
2018-11-27 15:55:56 +01:00
964fd983b7 z-index fix for tooltips within posts 2018-11-27 09:49:34 -05:00
3e116bb14e FIX: better handling of same offset timezones (#6680) 2018-11-27 15:17:23 +01:00
a2bff038e8 FIX: set overridden param for customize site text query only when checkbox value changes 2018-11-27 14:29:48 +01:00
a0fca2b6ed FIX: popular posts font weight in summary email 2018-11-27 12:58:28 +01:00
886ef7251d REFACTOR: Simplify extraction of mentions 2018-11-27 12:46:02 +01:00
75dac31323 FIX: compares timezones on utc offset and not name (#6672) 2018-11-27 12:36:19 +01:00
54c599c7a3 copyedit on max consecutive replies help 2018-11-27 03:35:27 -08:00
d461794fbf FIX: removes country from timezone indicator (#6677) 2018-11-27 11:52:02 +01:00
ac556298ca FIX: resets timezone default after callback (#6675) 2018-11-27 09:56:31 +01:00
c92c56d986 FIX: Randomly failing QUnit test.
The `post` variable can be an actual post object or a `new Placeholder("post-placeholder")` which does not define the function `get`.

* QUNIT_SEED=11414431645131211212599424733847938795
2018-11-27 16:00:46 +08:00
a1e77aa2ed FEATURE: Reimplement SiteSetting.max_oneboxes_per_post. (#6668)
Previously, the site setting was only effective on the client side of
things. Once the site setting was been reached, all oneboxes are not
rendered. This commit changes it such that the site setting is respected
both on the client and server side. The first N oneboxes are rendered and
once the limit has been reached, subsequent oneboxes will not be
rendered.
2018-11-27 16:00:31 +08:00
Sam
74b300110f DEV: lint run-qunit
also handles situation where startsWith is missing, when this happens
simply log

This corrects an issue where console.log explodes autospec
2018-11-27 17:41:29 +11:00
6cb49cd42c Merge pull request #6671 from techAPJ/destroy-posts-flags
FIX: do not agree flags by default when deleting posts
2018-11-27 11:27:23 +05:30
9cf9dee4cc DEV: Locale dates test needs to set default moment timzone.
The tests were breaking on a machine configured to use SGT timezone.
2018-11-27 13:50:57 +08:00
cb6fc8057b FIX: do not agree flags by default when deleting posts 2018-11-27 10:57:20 +05:30
68bef91dd6 DEV: Minor clean up of specs. 2018-11-27 13:09:58 +08:00
92af202d29 DEV: Add test for edit conflicts. 2018-11-27 13:07:45 +11:00
147c6b1e8a DEV: Fix tests. 2018-11-27 13:05:27 +11:00
38e29d8c94 DEV: Fix coding style. 2018-11-27 13:05:27 +11:00
d657ce844b DEV: Call onClose for closing modals. 2018-11-27 13:05:27 +11:00
0005bded6c DEV: Added composer-action-after plugin outlet. 2018-11-27 13:05:27 +11:00
1f9f00a629 DEV: Add data-topic-id to more elements containing titles. 2018-11-27 13:05:27 +11:00
8837fe47d7 DEV: Add app event triggered when composer's reply is reloaded. 2018-11-27 13:05:27 +11:00
b65e5d263e DEV: Add a plugin outlet for top-side notices. 2018-11-27 13:05:27 +11:00
1da265db11 UX: category images have no sizes (#6662) 2018-11-27 08:40:06 +08:00
03deda2147 Upgrade to FontAwesome 5 (take two) (#6673)
* Add missing icons to set

* Revert FA5 revert

 This reverts commit 42572ff

* use new SVG syntax in locales

* Noscript page changes (remove login button, center "powered by" footer text)

* Cast wider net for SVG icons in settings

- include any _icon setting for SVG registry (offers better support for plugin settings)

- let themes store multiple pipe-delimited icons in a setting

- also replaces broken onebox image icon with SVG reference in cooked post processor

* interpolate icons in locales

* Fix composer whisper icon alignment

* Add support for stacked icons

* SECURITY: enforce hostname to match discourse hostname

This ensures that the hostname rails uses for various helpers always matches
the Discourse hostname

* load SVG sprite with pre-initializers

* FIX: enable caching on SVG sprites

* PERF: use JSONP for SVG sprites so they are served from CDN

This avoids needing to deal with CORS for loading of the SVG

Note, added the svg- prefix to the filename so we can quickly tell in
dev tools what the file is

* Add missing SVG sprite JSONP script to CSP

* Upgrade to FA 5.5.0

* Add support for all FA4.7 icons

- adds complete frontend and backend for renamed FA4.7 icons

- improves performance of SvgSprite.bundle and SvgSprite.all_icons

* Fix group avatar flair preview

- adds an endpoint at /svg-sprites/search/:keyword

- adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset

* Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
818761c3a4 FIX: uses appropriate z-index for tooltips (#6674) 2018-11-26 22:47:12 +01:00
5640166b27 FIX: Notify only invited users about mentions in PMs 2018-11-26 22:42:56 +01:00
bcdf5b2f47 DEV: improve missing uploads query and skip checking file size 2018-11-27 02:21:33 +05:30
593cd831e1 Wrap long lists of admin tabs on large screens 2018-11-26 14:51:45 -05:00
4ccf9d28eb Remove trailing whitespaces 2018-11-27 01:15:29 +05:30
fd272eee44 FEATURE: Make uploads:missing task compatible with s3 uploads 2018-11-27 00:54:51 +05:30
cedd2118c4 FEATURE: If PM email bounced for staged user then alert in whisper reply (#6648) 2018-11-27 00:29:37 +05:30
8bca2647ea FIX: Upwards scrolling occasionally broken
This fixes a bug in Chrome where upwards scrolling would occasionally
not work properly.
2018-11-26 13:37:12 -05:00
afcf149c34 FIX: Fix mentions for mixed case group names 2018-11-26 15:34:56 +00:00
2e4706b787 FIX: bug and typo in admin user badges 2018-11-26 10:24:46 -05:00
b0d08b5a8c FEATURE: refactoring and better handling of special cases (#6666) 2018-11-26 14:20:32 +01:00
3453707784 FEATURE: allows html tooltips (#6665) 2018-11-26 11:15:23 +01:00
e47b478b83 DEV: removes _.toArray from codebase (#6654) 2018-11-26 11:15:05 +01:00
4546d8fbbf FEATURE: allows plugins to register no module files (#6664) 2018-11-26 16:01:28 +08:00
565603ad0d Remove unused variable. 2018-11-26 14:45:00 +08:00
3188d3506d Re-add option that was removed by mistake in 482013a1d4. 2018-11-26 14:24:23 +08:00
482013a1d4 FIX: Group mentions missing after post processing. 2018-11-26 12:57:07 +08:00