Rafael dos Santos Silva
fa4a462517
FEATURE: Optimize images before upload ( #13432 )
...
Integrates [mozJPEG](https://github.com/mozilla/mozjpeg ) and [Resize](https://github.com/PistonDevelopers/resize ) using WebAssembly to optimize user uploads in the composer on the client-side.
NPM libraries are sourced from our [Squoosh fork](https://github.com/discourse/squoosh/tree/discourse ), which was needed because we have an older asset pipeline.
2021-06-23 12:31:12 -03:00
Discourse Translator Bot
252dd169a4
Update translations ( #13476 )
2021-06-22 15:21:20 +02:00
Discourse Translator Bot
f941bbc147
Update translations ( #13327 )
2021-06-08 16:32:36 +02:00
Penar Musaraj
9d6780f03d
DEV: Remove emoji_one files ( #13236 )
...
And add a symlink so requests to those assets fallback to the default
emoji set (Twitter).
2021-06-02 09:18:25 -04:00
Discourse Translator Bot
8ac184c636
Update translations ( #13088 )
2021-05-18 15:11:41 +02:00
Jarek Radosz
b24270845f
DEV: Update chart.js from 2.9.3 to 2.9.4 ( #13026 )
...
Release notes: https://github.com/chartjs/Chart.js/releases/tag/v2.9.4
2021-05-12 17:28:16 +02:00
Discourse Translator Bot
21c301aa72
Update translations ( #13030 )
2021-05-11 19:01:59 +02:00
Discourse Translator Bot
3b2f2b533f
Update translations ( #12851 )
2021-04-27 16:01:06 +02:00
Discourse Translator Bot
27eff709c4
Update translations ( #12684 )
2021-04-13 16:02:08 +02:00
Penar Musaraj
abb0a4bae2
DEV: Add SCSS helper to replace asset-uri
and image-uri
( #12664 )
2021-04-12 13:57:39 +10:00
Discourse Translator Bot
93f74add7d
Update translations ( #12614 )
2021-04-07 11:58:41 +02:00
Discourse Translator Bot
598718a19d
Update translations ( #12556 )
2021-03-30 15:44:13 +02:00
Discourse Translator Bot
bc88ea5976
Update translations ( #12412 )
2021-03-16 15:49:29 +01:00
Discourse Translator Bot
c21cba70f6
Update translations ( #12258 )
2021-03-02 15:28:30 +01:00
Penar Musaraj
6809cccd88
DEV: Add experimental json_scheme site setting type ( #12226 )
2021-03-01 09:15:17 -05:00
Discourse Translator Bot
2757003ef1
Update translations ( #12186 )
2021-02-23 15:10:04 +01:00
Bianca Nenciu
08acf51be0
FEATURE: Use diffhtml to update composer preview ( #11237 )
...
Displaying videos, animated GIFs or any kind of rich content in preview
used to refresh on every keystroke, which could cause performance
problems.
2021-02-18 16:07:26 +02:00
Discourse Translator Bot
f283bde25a
Update translations ( #12097 )
2021-02-16 15:24:37 +01:00
Vinoth Kannan
9d2eaec88f
DEV: enable CORS to all CDN get requests from workbox. ( #11896 )
...
To prevent opaque cache files, now all the CDN files will be requested in 'cors' mode if the cdn_cors_enabled global setting is enabled. Before enabling the setting, should enable the cors in the CDN server by adding the response header `access-control-allow-origin: *` or `access-control-allow-origin: https://discourse.example.com .`
And other external file requests other than CDN will not be cached if the response type is opaque.
2021-02-02 11:38:29 +05:30
Discourse Translator Bot
3c028cb67f
Update translations ( #11848 )
2021-01-26 14:52:35 +01:00
Discourse Translator Bot
0e8c155b70
Update translations ( #11779 )
2021-01-20 22:58:26 +01:00
Discourse Translator Bot
440b63e833
Update translations ( #11756 )
2021-01-19 16:14:59 +01:00
Discourse Translator Bot
0e8e3f4813
Update translations ( #11689 )
2021-01-12 14:29:05 +01:00
Discourse Translator Bot
09f9d4b281
Update translations ( #11601 )
2020-12-29 19:44:53 +01:00
Discourse Translator Bot
e113ddc73c
Update translations ( #11557 )
2020-12-22 14:49:40 +01:00
Joffrey JAFFEUX
abb89475a3
FIX: issues with frowning/grinning ( #11235 )
...
- frowning was using slighty_frowning
- slightly_frowning was using frowning
- grinning_face_with_smiling_eyes was not defined
- fronwing_face_with_open_mouth was not defined
2020-11-25 09:09:35 +01:00
Discourse Translator Bot
7fecad41db
Update translations ( #11264 )
2020-11-17 14:49:58 +01:00
Discourse Translator Bot
9904a007c5
Update translations ( #11182 )
2020-11-10 15:23:06 +01:00
Discourse Translator Bot
886d619d3f
Update translations ( #11108 )
2020-11-03 18:08:07 +01:00
Vinoth Kannan
af4938baf1
Revert "DEV: enable cors to all cdn get requests from workbox. ( #10684 )" ( #11076 )
...
This reverts commit e3de45359f
.
We need to improve out strategy by adding a cache breaker with this change ... some assets on CDNs and clients may have incorrect CORS headers which can cause stuff to break.
2020-10-30 16:05:35 +11:00
Robin Ward
79b414d2a1
FIX: The attribute is discourse-url
not data-discourse-url
2020-10-28 17:12:29 -04:00
Vinoth Kannan
e3de45359f
DEV: enable cors to all cdn get requests from workbox. ( #10685 )
...
Now all external requests from the service worker will be in CORS mode without credentials.
2020-10-28 23:36:19 +05:30
Discourse Translator Bot
9648122b51
Update translations ( #11042 )
2020-10-27 15:36:21 +01:00
Discourse Translator Bot
b5933e2b49
Update translations ( #10970 )
2020-10-20 15:34:57 +02:00
Discourse Translator Bot
7eef10c6d7
Update translations ( #10944 )
2020-10-17 00:07:21 +02:00
Robin Ward
4669e60ce5
FEATURE: Use "no-referrer-when-downgrade" as our embed policy
...
This allows our iframes to pass through the proper referer so that
embedding continues to work in modern browsers with different security
models.
2020-10-16 13:23:06 -04:00
Gerhard Schlager
7adf71a203
Fix i18n issues reported on Crowdin ( #10925 )
...
* Pluralize `discourse_narrative_bot.dice.not_enough_dice`
The number of dice requires a pluralized string.
Fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/278/en-ar#51346
* Always use "two-factor" instead of "second factor" or "two factor"
Using different terms for the same thing is quite confusing.
Fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-nl#40096
* Remove whitespace before ellipsis for consistency
Fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-nl#53978
* Remove unused strings from locale file
* Correct grammar in `site_settings.review_media_unless_trust_level`
Fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-nl#54018
* Correct grammar in `reviewables.reasons.contains_media`
Fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-nl#54020
* Correct grammar in user notifications
It also adds a link to the /about page in order to give the user a clue who the site admins are.
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-nl#54084
* Use "log in" instead of "login" when it's a verb
This fixes multiple issues:
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-nl#40940
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-nl#47858
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-nl#49458
* Replace "Github" with "GitHub"
* Remove "discourse.org" from title of 503 error page
* Replace weirdly formatted multi line string
* Pluralize `js.composer.group_mentioned_limit`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41158
* Remove unused string and pluralize `js.topic.feature_topic.confirm_pin_globally`
This kinda fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#42114 as `js.topic.feature_topic.confirm_pin` wasn't used anymore.
* Pluralize `js.user.second_factor_backup.remaining_codes`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#40054
* Pluralize `js.composer.error.tags_missing`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41184
* Pluralize `js.post.errors.too_many_dragged_and_dropped_files`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#42408
* Remove unused `js.posts_long` and `js.likes_long`
This fixes the following issues in an unexpected way:
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#42974
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#42994
* Pluralize `js.bootstrap_mode_enabled`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#38726
* Remove unused `long_form` from `post_action_types`
This more or less fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/248/en-ar#47158
* Pluralize `js.presence.replying` and `js.presence.replying`
This fixes the following issues:
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/282/en-ar#51588
* https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/282/en-ar#51590
* Pluralize `js.user.second_factor_backup.manage`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#40044
* Stop using concatenated strings for "Recently Used Devices"
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#40308
* Pluralize `js.category_row.topic_count`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41056
* Pluralize `js.select_kit.invalid_selection_length`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41072
* Pluralize `js.notifications.membership_request_consolidated`
This fixes https://discourse.crowdin.com/translate/f3230e7607a36bb0a2f97fd90605a44e/246/en-ar#41416
2020-10-16 15:24:58 +02:00
Discourse Translator Bot
85894537b1
Update translations
2020-10-13 15:40:37 +02:00
Penar Musaraj
40460fa00a
FIX: missing SVG mask asset in wizard ( #10856 )
...
The dark-mode-friendly SVG mask for the wizard's background image
introduced in 8fcfb9586c
does not work with
CDNs, because CORS restrictions apply to SVG masks.
It would be complicated to modify CDN access origin rules for this one
specific assets, so instead, this PR moves the contents of the SVG file
inside the stylesheet.
2020-10-07 16:23:14 -04:00
Penar Musaraj
4efbf8dc4f
Remove "further reading" step from wizard ( #10825 )
...
Instead, add link to top themes on meta in wizard's last step.
2020-10-05 15:06:05 -04:00
Discourse Translator Bot
ecfca965f2
Update translations
2020-09-29 13:01:52 +00:00
Penar Musaraj
8fcfb9586c
FEATURE: Dark-mode-friendly wizard ( #10739 )
...
Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>
2020-09-25 08:56:23 -04:00
jbrw
8dac8abdb4
DEV - write JS files to versioned subdirectories ( #10707 )
...
* DEV - write JS files to versioned subdirectories
* Cleaner JS in cacheBuster
2020-09-21 15:06:56 -04:00
Discourse Translator Bot
6734a82260
Update translations
2020-09-16 10:17:56 +00:00
Discourse Translator Bot
5990c71c29
Update translations
2020-09-15 13:04:17 +00:00
Discourse Translator Bot
1c71f81144
Update translations
2020-09-09 14:59:40 +00:00
Discourse Translator Bot
71da5e0e27
Update translations
2020-09-01 13:02:16 +00:00
Discourse Translator Bot
d495464ead
Update translations
2020-08-25 13:02:37 +00:00
Penar Musaraj
eae8b0465c
DEV: Upgrade ACE Editor to 1.4.12, remove extra ACE files ( #10431 )
2020-08-13 21:53:27 -04:00
Discourse Translator Bot
1a78a429b5
Update translations
2020-08-11 13:04:00 +00:00
Jarek Radosz
cd4f251891
FEATURE: Poll breakdown 2.0 ( #10345 )
...
The poll breakdown modal replaces the grouped pie charts feature.
Includes:
* MODAL: Untangle `onSelectPanel`
Previously modal-tab component would call on click the onSelectPanel callback with itself (modal-tab) as `this` which severely limited its usefulness. Now showModal binds the callback to its controller.
"The PR includes a fix/change to d-modal (b7f6ec6
) that hasn't been extracted to a separate PR because it's not currently possible to test a change like this in abstract, i.e. with dynamically created controllers/components in tests. The percentage/count toggle test for the poll breakdown feature is essentially a test for that d-modal modification."
2020-08-06 17:57:06 +02:00
Discourse Translator Bot
a68533b394
Update translations
2020-08-05 13:55:12 +00:00
Robin Ward
9889b7277f
FIX: Silence route-recognizer source map errors in development mode
2020-07-15 15:42:04 -04:00
Robin Ward
e8bf304f05
FIX: Add popper sourcemap
2020-07-15 15:29:12 -04:00
Gerhard Schlager
390dc5c7a9
Update translations
2020-06-21 11:58:21 +02:00
Gerhard Schlager
36a3675e0a
Update translations
2020-06-14 23:39:33 +02:00
Neil Lalonde
65dd8e2fa2
Update translations
2020-06-10 12:01:02 -04:00
Neil Lalonde
72c09ab4ae
Update translations
2020-06-01 13:58:51 -04:00
Arpit Jalan
feff8b7425
Revert "FIX: lower case URLs before comparing for embedding comments"
...
This reverts commit 6ea040dd5f
.
2020-01-23 20:36:05 +05:30
Robin Ward
ba00d87a16
Update moment and spectrum
...
These were updated in yarn.lock but not run via rake
2020-01-06 12:56:47 -05:00
Neil Lalonde
50b98a47ac
Update translations
2019-12-05 11:20:52 -05:00
Joffrey JAFFEUX
22eb1828f6
DEV: supports unicorn emoji 13.0beta ( #8402 )
...
This update will most likely reduce images weight and also adds support for 🏳️⚧️
2019-11-25 10:23:18 +01:00
Joffrey JAFFEUX
fa317becc8
DEV: upgrades chart.js from 2.7.3 to 2.9.3 ( #8374 )
2019-11-20 11:08:26 +01:00
Gerhard Schlager
94a34af702
Update translations
2019-11-05 16:52:48 +01:00
Gerhard Schlager
3dfe9f3b8d
Update translations
2019-10-08 12:25:24 +02:00
Joffrey JAFFEUX
29659ef31e
DEV: updates emojis images to latest version available on unicode site ( #8143 )
2019-10-02 17:50:53 -04:00
Gerhard Schlager
8adec48b33
Update translations
2019-09-26 04:29:44 +02:00
Joffrey JAFFEUX
441e573439
FIX: ensures google classic has correct man_facepalming emoji ( #8065 )
2019-09-02 19:38:32 -05:00
Gerhard Schlager
8841563f8a
Update translations
2019-08-26 14:36:46 +02:00
Robin Ward
23367e79ea
FEATURE: Embed topics list on remote sites via Javascript API. ( #8008 )
...
This adds support for a `<d-topics-list>` tag you can embed in your site
that will be rendered as a list of discourse topics. Any attributes on
the tag will be passed as filters. For example:
`<d-topics-list discourse-url="URL" category="1234">` will filter to category 1234.
To use this feature, enable the `embed topics list` site setting. Then
on the site you want to embed, include the following javascript:
`<script
src="http://URL/javascripts/embed-topics.js "></script>`
Where `URL` is your discourse forum's URL.
Then include the `<d-topics-list discourse-url="URL">` tag in your HTML document and it will
be replaced with the list of topics.
2019-08-15 13:41:06 -04:00
Rafael dos Santos Silva
1221d34284
FEATURE: Make Discourse work offline with WorkboxJS ( #7870 )
2019-07-15 13:05:55 -03:00
Neil Lalonde
97e9599ecc
Update translations
2019-07-15 09:43:22 -04:00
Gerhard Schlager
a5e80079d6
FEATURE: Add Belarusian language
2019-07-04 11:37:37 +02:00
Joffrey JAFFEUX
cd6a130cd0
FEATURE: adds early support for new emojis ( #7785 )
...
🟫 🟪 🟦 🟩 🟨 🟧 🟥 🟤 🟣 🟢 🟡 🟠 🪒 🪑 🩺 🩹 🩸 🦯 🪓 🪔 🪕 🩰 🩳 :briefs: 🩱 🥻 🦺 🤿 🛺 🦼 🦽 🛕 :maté: 🧃 🦪 🧈 🧆 🧅 🧄 🦨 🦮 🧑🤝🧑 👩🦽 👨🦽 👩🦼 👨🦼 👩🦯 👨🦯 :woman_kneeling: :man_kneeling: :man_standing: :woman_standing: 🧏♀️ 🧏♂️ :hear_with_hearing_aid: 🦿 🦾 🤍 🤎
2019-06-20 11:30:09 +02:00
Neil Lalonde
5d7e34e0ad
Update translations
2019-06-10 10:36:08 -04:00
Penar Musaraj
16982d2a69
Update UI for wizard themes further reading step ( #7669 )
2019-06-03 10:47:17 -04:00
Gerhard Schlager
a58aa9b4bf
Update translations
2019-05-20 13:42:05 +02:00
Joffrey JAFFEUX
3912d6f806
DEV: pikaday 1.8.0 ( #7536 )
2019-05-13 15:09:04 +02:00
Joffrey JAFFEUX
c487dff776
early preview of new emojis ( #7486 )
2019-05-07 10:49:15 +02:00
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
Neil Lalonde
e7a6f0698d
Update translations
2019-04-05 10:02:54 -04:00
Joffrey JAFFEUX
7c97df6a89
FIX: correctly uses woman version of previously genderless emojis ( #7285 )
2019-03-29 10:53:29 +01:00
Neil Lalonde
4a7e83d880
Update translations
2019-03-28 10:07:51 -04:00
Gerhard Schlager
d43f4206c7
FEATURE: Add Armenian language
2019-03-28 14:24:14 +01:00
Joffrey JAFFEUX
d91b47064e
FIX: windows has no country flags ( #7199 )
2019-03-18 19:28:49 +01:00
Joffrey JAFFEUX
126c25a84b
FEATURE: adding early relase unicode emojis ( #7188 )
2019-03-18 07:23:22 +01:00
Joffrey JAFFEUX
fcb56c7f9d
FIX: emoji sets were inverted due to unicode order change ( #7186 )
2019-03-15 22:13:14 +01:00
Penar Musaraj
0afa2f4c4c
FIX: Use correct emojis for Twitter and Facebook
2019-03-15 16:08:31 -04:00
Joffrey JAFFEUX
aa4b84925a
FEATURE: updates emoji to latest 12.0 version ( #7095 )
...
* improved emoji support
- always optimize images as part of the task
- use the unicode standard ordering/naming for sections
* UX: more height for when there are recently used
2019-03-15 16:12:07 +01:00
Penar Musaraj
e55c19d8ce
DEV: update ACE Editor to 1.4.2
...
Remove duplicate "src-min" folder and fix rake task
Remove unused "snippets" folder
2019-02-14 11:05:28 -05:00
Neil Lalonde
024ba28525
Update translations
2019-01-28 10:27:20 -05:00
Joffrey JAFFEUX
b520d0efad
pull last Chart.js file ( #6902 )
2019-01-18 12:25:34 +01:00
Neil Lalonde
d7656f30c3
Update translations
2019-01-02 12:32:38 -05:00
Neil Lalonde
af39624d19
Update translations
2018-10-12 10:40:25 -04:00
Penar Musaraj
4ae9cb28e4
remove probes.js, highlight.pack.js
2018-10-04 13:50:54 -04:00
Penar Musaraj
dc8a16b43b
Use Yarn to manage dependencies, cleanup unused bootstrap libs ( #6436 )
2018-10-03 10:15:43 -04:00
Gerhard Schlager
b0a383561e
FEATURE: Add Lithuanian locale
2018-09-27 05:26:38 +02:00
Joffrey JAFFEUX
4486e238d1
FIX: smiling face with three hearts emoji typo ( #6286 )
2018-08-19 15:08:05 +02:00
Joffrey JAFFEUX
3fbf7b164d
FEATURE: emoji 11.0 "recently added" update ( #6275 )
...
Adds support for emojis in the http://www.unicode.org/emoji/charts-11.0/emoji-released.html list
2018-08-16 11:59:45 +02:00
Neil Lalonde
5c248e3a7a
Update translations
2018-08-07 12:05:45 -04:00