discourse/public
David Taylor 0e303c7f5d
FEATURE: Automatically generate optimized site metadata icons (#7372)
This change automatically resizes icons for various purposes. Admins can now upload `logo` and `logo_small`, and everything else will be auto-generated. Specific icons can still be uploaded separately if required.

## Core

- Adds an SiteIconManager module which manages automatic resizing and fallback

- Icons are looked up in the OptimizedImage table at runtime, and then cached in Redis. If the resized version is missing for some reason, then most icons will fall back to the original files. Some icons (e.g. PWA Manifest) will return `nil` (because an incorrectly sized icon is worse than a missing icon). 

- `SiteSetting.site_large_icon_url` will return the optimized version, including any fallback. `SiteSetting.large_icon` continues to return the upload object. This means that (almost) no changes are required in core/plugins to support this new system.

- Icons are resized whenever a relevant site setting is changed, and during post-deploy migrations

## Wizard

- Allows `requiresRefresh` wizard steps to reload data via AJAX instead of a full page reload

- Add placeholders to the **icons** step of the wizard, which automatically update from the "Square Logo"

- Various copy updates to support the changes

- Remove the "upload-time" resizing for `large_icon`. This is no longer required.

## Site Settings UX

- Move logo/icon settings under a new "Branding" tab

- Various copy changes to support the changes

- Adds placeholder support to the `image-uploader` component

- Automatically reloads site settings after saving. This allows setting placeholders to change based on changes to other settings

- Upload site settings will be assigned a placeholder if SiteIconManager `responds_to?` an icon of the same name

## Dashboard Warnings

- Remove PWA icon and PWA title warnings. Both are now handled automatically.

## Bonus

- Updated the sketch logos to use @awesomerobot's new high-res designs
2019-05-01 14:44:45 +01:00
..
images FEATURE: Automatically generate optimized site metadata icons (#7372) 2019-05-01 14:44:45 +01:00
javascripts DEV: update ACE Editor to 1.4.2 2019-02-14 11:05:28 -05:00
403.ar.html Update translations. 2017-07-20 14:57:02 +05:30
403.bg.html FEATURE: Add Bulgarian language 2018-05-29 21:07:17 +02:00
403.bs_BA.html Update translations. 2017-07-20 14:57:02 +05:30
403.ca.html FEATURE: Catalan Translations (#5404) 2017-12-07 10:36:25 +01:00
403.cs.html Update translations 2017-12-06 10:25:12 -05:00
403.da.html Update translations. 2017-07-20 14:57:02 +05:30
403.de.html Update translations. 2017-07-20 14:57:02 +05:30
403.el.html Update translations. 2017-07-20 14:57:02 +05:30
403.es.html Update translations. 2017-07-20 14:57:02 +05:30
403.et.html Update translations. 2017-07-20 14:57:02 +05:30
403.fa_IR.html Update translations. 2017-07-20 14:57:02 +05:30
403.fi.html Update translations 2018-05-29 22:01:57 +02:00
403.fr.html Update translations 2019-01-28 10:27:20 -05:00
403.gl.html Update translations. 2017-07-20 14:57:02 +05:30
403.he.html Update translations. 2017-07-20 14:57:02 +05:30
403.html
403.hy.html FEATURE: Add Armenian language 2019-03-28 14:24:14 +01:00
403.id.html Update translations 2017-08-16 11:38:45 -04:00
403.it.html Update translations. 2017-07-20 14:57:02 +05:30
403.ja.html Update translations. 2017-07-20 14:57:02 +05:30
403.ko.html Update translations. 2017-07-20 14:57:02 +05:30
403.lt.html FEATURE: Add Lithuanian locale 2018-09-27 05:26:38 +02:00
403.lv.html FEATURE: add Latvian language 2017-08-15 11:40:00 -04:00
403.nb_NO.html Update translations 2018-01-31 11:19:21 -05:00
403.nl.html Update translations 2019-04-05 10:02:54 -04:00
403.pl_PL.html Update translations. 2017-07-20 14:57:02 +05:30
403.pt_BR.html Update translations 2019-03-28 10:07:51 -04:00
403.pt.html Update translations. 2017-07-20 14:57:02 +05:30
403.ro.html Update translations. 2017-07-20 14:57:02 +05:30
403.ru.html Update translations, except ur because of errors 2018-03-07 14:11:56 -05:00
403.sk.html Update translations. 2017-07-20 14:57:02 +05:30
403.sl.html Update translations 2019-01-02 12:32:38 -05:00
403.sq.html Update translations. 2017-07-20 14:57:02 +05:30
403.sr.html FEATURE: Serbian translation (#5443) 2017-12-19 12:26:06 +01:00
403.sv.html Update translations. 2017-07-20 14:57:02 +05:30
403.sw.html Add Swahili language 2018-07-16 18:11:38 +02:00
403.te.html Update translations. 2017-07-20 14:57:02 +05:30
403.th.html FEATURE: add Thai language 2017-08-25 12:33:09 -04:00
403.tr_TR.html Update translations. 2017-07-20 14:57:02 +05:30
403.uk.html Update translations. 2017-07-20 14:57:02 +05:30
403.ur.html Update translations. 2017-07-20 14:57:02 +05:30
403.vi.html Update translations. 2017-07-20 14:57:02 +05:30
403.zh_CN.html Update translations. 2017-07-20 14:57:02 +05:30
403.zh_TW.html Update translations. 2017-07-20 14:57:02 +05:30
404.json
422.ar.html Update translations. 2017-07-20 14:57:02 +05:30
422.bg.html FEATURE: Add Bulgarian language 2018-05-29 21:07:17 +02:00
422.bs_BA.html Update translations. 2017-07-20 14:57:02 +05:30
422.ca.html FEATURE: Catalan Translations (#5404) 2017-12-07 10:36:25 +01:00
422.cs.html Update translations 2017-12-06 10:25:12 -05:00
422.da.html Update translations. 2017-07-20 14:57:02 +05:30
422.de.html Update translations. 2017-07-20 14:57:02 +05:30
422.el.html Update translations. 2017-07-20 14:57:02 +05:30
422.es.html Update translations. 2017-07-20 14:57:02 +05:30
422.et.html Update translations. 2017-07-20 14:57:02 +05:30
422.fa_IR.html Update translations. 2017-07-20 14:57:02 +05:30
422.fi.html Update translations. 2017-07-20 14:57:02 +05:30
422.fr.html Update translations. 2017-07-20 14:57:02 +05:30
422.gl.html Update translations. 2017-07-20 14:57:02 +05:30
422.he.html Update translations. 2017-07-20 14:57:02 +05:30
422.html
422.hy.html FEATURE: Add Armenian language 2019-03-28 14:24:14 +01:00
422.id.html Update translations 2017-08-16 11:38:45 -04:00
422.it.html Update translations. 2017-07-20 14:57:02 +05:30
422.ja.html Update translations. 2017-07-20 14:57:02 +05:30
422.ko.html Update translations. 2017-07-20 14:57:02 +05:30
422.lt.html FEATURE: Add Lithuanian locale 2018-09-27 05:26:38 +02:00
422.lv.html FEATURE: add Latvian language 2017-08-15 11:40:00 -04:00
422.nb_NO.html Update translations. 2017-07-20 14:57:02 +05:30
422.nl.html Update translations 2019-04-05 10:02:54 -04:00
422.pl_PL.html Update translations. 2017-07-20 14:57:02 +05:30
422.pt_BR.html Update translations 2019-03-28 10:07:51 -04:00
422.pt.html Update translations. 2017-07-20 14:57:02 +05:30
422.ro.html Update translations. 2017-07-20 14:57:02 +05:30
422.ru.html Update translations. 2017-07-20 14:57:02 +05:30
422.sk.html Update translations. 2017-07-20 14:57:02 +05:30
422.sl.html Update translations 2018-10-12 10:40:25 -04:00
422.sq.html Update translations. 2017-07-20 14:57:02 +05:30
422.sr.html FEATURE: Serbian translation (#5443) 2017-12-19 12:26:06 +01:00
422.sv.html Update translations. 2017-07-20 14:57:02 +05:30
422.sw.html Add Swahili language 2018-07-16 18:11:38 +02:00
422.te.html Update translations. 2017-07-20 14:57:02 +05:30
422.th.html FEATURE: add Thai language 2017-08-25 12:33:09 -04:00
422.tr_TR.html Update translations. 2017-07-20 14:57:02 +05:30
422.uk.html Update translations. 2017-07-20 14:57:02 +05:30
422.ur.html Update translations. 2017-07-20 14:57:02 +05:30
422.vi.html Update translations. 2017-07-20 14:57:02 +05:30
422.zh_CN.html Update translations. 2017-07-20 14:57:02 +05:30
422.zh_TW.html Update translations. 2017-07-20 14:57:02 +05:30
500.ar.html Update translations 2017-12-06 10:25:12 -05:00
500.bg.html FEATURE: Add Bulgarian language 2018-05-29 21:07:17 +02:00
500.bs_BA.html Update translations. 2017-07-20 14:57:02 +05:30
500.ca.html FEATURE: Catalan Translations (#5404) 2017-12-07 10:36:25 +01:00
500.cs.html Update translations 2018-02-15 16:36:03 -05:00
500.da.html Update translations. 2017-07-20 14:57:02 +05:30
500.de.html Update translations. 2017-07-20 14:57:02 +05:30
500.el.html Update translations. 2017-07-20 14:57:02 +05:30
500.es.html Update translations. 2017-07-20 14:57:02 +05:30
500.et.html Update translations. 2017-07-20 14:57:02 +05:30
500.fa_IR.html Update translations. 2017-07-20 14:57:02 +05:30
500.fi.html Update translations 2017-12-06 10:25:12 -05:00
500.fr.html Update translations. 2017-07-20 14:57:02 +05:30
500.gl.html Update translations 2017-12-06 10:25:12 -05:00
500.he.html Update translations. 2017-07-20 14:57:02 +05:30
500.html FIX: remove link from 500.html since it often won't work, and update copy to not mention meta category name 2016-07-08 14:15:13 -04:00
500.hy.html FEATURE: Add Armenian language 2019-03-28 14:24:14 +01:00
500.id.html Update translations 2017-08-16 11:38:45 -04:00
500.it.html Update translations. 2017-07-20 14:57:02 +05:30
500.ja.html Update translations. 2017-07-20 14:57:02 +05:30
500.ko.html Update translations. 2017-07-20 14:57:02 +05:30
500.lt.html FEATURE: Add Lithuanian locale 2018-09-27 05:26:38 +02:00
500.lv.html FEATURE: add Latvian language 2017-08-15 11:40:00 -04:00
500.nb_NO.html Update translations 2018-05-29 22:01:57 +02:00
500.nl.html Update translations 2019-04-05 10:02:54 -04:00
500.pl_PL.html Update translations. 2017-07-20 14:57:02 +05:30
500.pt_BR.html Update translations 2019-03-28 10:07:51 -04:00
500.pt.html Update translations. 2017-07-20 14:57:02 +05:30
500.ro.html Update translations. 2017-07-20 14:57:02 +05:30
500.ru.html Update translations. 2017-07-20 14:57:02 +05:30
500.sk.html Update translations. 2017-07-20 14:57:02 +05:30
500.sl.html Add Slovenian translations 2018-03-06 20:51:41 +01:00
500.sq.html Update translations. 2017-07-20 14:57:02 +05:30
500.sr.html FEATURE: Serbian translation (#5443) 2017-12-19 12:26:06 +01:00
500.sv.html Update translations. 2017-07-20 14:57:02 +05:30
500.sw.html Update translations 2018-08-07 12:05:45 -04:00
500.te.html Update translations. 2017-07-20 14:57:02 +05:30
500.th.html FEATURE: add Thai language 2017-08-25 12:33:09 -04:00
500.tr_TR.html Update translations. 2017-07-20 14:57:02 +05:30
500.uk.html Update translations. 2017-07-20 14:57:02 +05:30
500.ur.html Update translations. 2017-07-20 14:57:02 +05:30
500.vi.html Update translations. 2017-07-20 14:57:02 +05:30
500.zh_CN.html Update translations. 2017-07-20 14:57:02 +05:30
500.zh_TW.html Update translations 2019-03-28 10:07:51 -04:00
503.ar.html Update translations 2017-12-06 10:25:12 -05:00
503.bg.html FEATURE: Add Bulgarian language 2018-05-29 21:07:17 +02:00
503.bs_BA.html Update translations. 2017-07-20 14:57:02 +05:30
503.ca.html FEATURE: Catalan Translations (#5404) 2017-12-07 10:36:25 +01:00
503.cs.html Update translations. 2017-07-20 14:57:02 +05:30
503.da.html Update translations. 2017-07-20 14:57:02 +05:30
503.de.html Update translations. 2017-07-20 14:57:02 +05:30
503.el.html Update translations. 2017-07-20 14:57:02 +05:30
503.es.html Update translations. 2017-07-20 14:57:02 +05:30
503.et.html Update translations. 2017-07-20 14:57:02 +05:30
503.fa_IR.html Update translations. 2017-07-20 14:57:02 +05:30
503.fi.html Update translations 2017-12-06 10:25:12 -05:00
503.fr.html Update translations. 2017-07-20 14:57:02 +05:30
503.gl.html Update translations. 2017-07-20 14:57:02 +05:30
503.he.html Update translations. 2017-07-20 14:57:02 +05:30
503.html
503.hy.html FEATURE: Add Armenian language 2019-03-28 14:24:14 +01:00
503.id.html Update translations. 2017-07-20 14:57:02 +05:30
503.it.html Update translations. 2017-07-20 14:57:02 +05:30
503.ja.html Update translations. 2017-07-20 14:57:02 +05:30
503.ko.html Update translations. 2017-07-20 14:57:02 +05:30
503.lt.html FEATURE: Add Lithuanian locale 2018-09-27 05:26:38 +02:00
503.lv.html FEATURE: add Latvian language 2017-08-15 11:40:00 -04:00
503.nb_NO.html Update translations. 2017-07-20 14:57:02 +05:30
503.nl.html Update translations. 2017-07-20 14:57:02 +05:30
503.pl_PL.html Update translations. 2017-07-20 14:57:02 +05:30
503.pt_BR.html Update translations 2019-03-28 10:07:51 -04:00
503.pt.html Update translations. 2017-07-20 14:57:02 +05:30
503.ro.html Update translations. 2017-07-20 14:57:02 +05:30
503.ru.html Update translations. 2017-07-20 14:57:02 +05:30
503.sk.html Update translations. 2017-07-20 14:57:02 +05:30
503.sl.html Add Slovenian translations 2018-03-06 20:51:41 +01:00
503.sq.html Update translations. 2017-07-20 14:57:02 +05:30
503.sr.html FEATURE: Serbian translation (#5443) 2017-12-19 12:26:06 +01:00
503.sv.html Update translations. 2017-07-20 14:57:02 +05:30
503.sw.html Add Swahili language 2018-07-16 18:11:38 +02:00
503.te.html Update translations. 2017-07-20 14:57:02 +05:30
503.th.html FEATURE: add Thai language 2017-08-25 12:33:09 -04:00
503.tr_TR.html Update translations. 2017-07-20 14:57:02 +05:30
503.uk.html Update translations. 2017-07-20 14:57:02 +05:30
503.ur.html Update translations. 2017-07-20 14:57:02 +05:30
503.vi.html Update translations. 2017-07-20 14:57:02 +05:30
503.zh_CN.html Update translations. 2017-07-20 14:57:02 +05:30
503.zh_TW.html Update translations. 2017-07-20 14:57:02 +05:30