Commit Graph

287 Commits

Author SHA1 Message Date
435a9913a4 REFACTOR: Replace global find with queryAll
In newer Embers jQuery is removed. There is a `find` but it only returns
one element and not a jQuery selector. This patch migrates our code to a
new helper `queryAll` which allows us to remove the global.
2020-10-29 14:45:51 -04:00
dbec3792b7 FIX: pretty text allow list (#10977)
Reword whitelist to allowlist in pretty-text.
This library is used by plugins so we need deprecation notice.
2020-10-28 13:22:06 +11:00
1e4c0d1857 Remove more global variables from tests.
* Use `sinon` instead of `sandbox` and require an import.
* You need to import `currentURL` to use it.
2020-10-26 13:32:11 -04:00
919f488358 REFACTOR: All remaining acceptance tests converted to new format
Also contains fixes to leaky state in pretender.
2020-10-23 09:28:13 -04:00
b6492356cb FIX: removes duplicate “ and adds ‘ and ’ (#11010) 2020-10-23 10:35:43 +02:00
6811902a70 FIX: converts “ and ” to " in local dates (#10987) 2020-10-21 17:16:36 +02:00
f4842ae283 FIX: attempts to convert french quotes to regular quotes in dates (#10986) 2020-10-21 16:36:51 +02:00
7eef10c6d7 Update translations (#10944) 2020-10-17 00:07:21 +02:00
85894537b1 Update translations 2020-10-13 15:40:37 +02:00
3862036422 REFACTOR: Use imports for sinon and setResolver
I also took the opportunity with this commit to move some test specific
stuff out of `discourse-loader` which is loaded on the front end of the
application. The test module building now happens in the `test_helper`
bundle.
2020-10-09 13:54:54 -04:00
71d37953d5 REFACTOR: Import QUnit and related helpers rather than globals
We used many global functions to handle tests when they should be
imported like other libraries in our application. This also gets us
closer to the way Ember CLI prefers our tests to be laid out.
2020-10-07 11:50:49 -04:00
7b34433fc2 REVERT: revert change from action + mut to mut (#10844)
* Revert "FIX: fixes regression where wizard dropdown couldn't update (#10838)"

This reverts commit e3b2fc60749ca3b584955d13a02cbe7f783a90a7.

* Revert "DEV: replaces unecessary (action (mut .*)) by (mut .*) (#10822)"

This reverts commit c0350dc362ce97af7424e8b7b93113a0a2e50510.
2020-10-06 23:50:05 +02:00
c0350dc362 DEV: replaces unecessary (action (mut .*)) by (mut .*) (#10822) 2020-10-06 17:17:45 +02:00
29a9ae1b50 Update translations 2020-10-06 15:43:13 +02:00
e6821fbaae DEV: fixes linting of hbs files in core plugins (#10820) 2020-10-05 14:42:36 +02:00
23f24bfb51 REFACTOR: Move javascript tests inside discourse app
This is where they should be as far as ember is concerned. Note this is
a huge commit and we should be really careful everything continues to
work properly.
2020-10-02 11:29:36 -04:00
ecfca965f2 Update translations 2020-09-29 13:01:52 +00:00
2b254f4305 FIX: removes time from date in calendar range at midnight (#10751) 2020-09-28 10:39:21 +02:00
6734a82260 Update translations 2020-09-16 10:17:56 +00:00
44aac1b44b Update translations 2020-09-16 04:27:51 +00:00
5990c71c29 Update translations 2020-09-15 13:04:17 +00:00
1c71f81144 Update translations 2020-09-09 14:59:40 +00:00
110f6ec6dd DEV: fixes eslint/prettier on github actions (#10601) 2020-09-04 20:01:14 +02:00
bf88410126 DEV: apply coding standards to plugins (#10594) 2020-09-04 13:51:53 +02:00
71da5e0e27 Update translations 2020-09-01 13:02:16 +00:00
6c3b1eb9b9 Update translations 2020-08-26 09:27:35 +00:00
c792f36966 UX: clarify timezone formatting (#10526) 2020-08-26 10:18:55 +02:00
d495464ead Update translations 2020-08-25 13:02:37 +00:00
4f7a9802e7 FIX: prefer timezones over timezone for previews (#10506)
eg:

timezone="America/Detroit"
timezones="US/Eastern"

Before this commit we would show America/Detroit in previews and not US/Eastern, given US/Eastern and America/Detroit are equivalent.

After this commit, we will display the date with America/Detroit but show US/Eastern in the previews.
2020-08-21 16:31:50 +02:00
d0faee3bd8 Update translations 2020-08-18 13:02:44 +00:00
1a78a429b5 Update translations 2020-08-11 13:04:00 +00:00
a68533b394 Update translations 2020-08-05 13:55:12 +00:00
14eec43889 DEV: Use CSS custom properties for colors in core plugins 2020-08-04 11:14:33 -04:00
b2a2e4f1e5 FIX: ensures seconds are displayed when used with dates (#10170) 2020-07-06 09:26:31 +02:00
26260d50b1 DEV: Import I18n in standard plugins (#10098) 2020-06-22 02:36:45 +02:00
390dc5c7a9 Update translations 2020-06-21 11:58:21 +02:00
36a3675e0a Update translations 2020-06-14 23:39:33 +02:00
65dd8e2fa2 Update translations 2020-06-10 12:01:02 -04:00
e990d8adce FIX: ensures preview is correctly computing timezone for current user (#9758)
This also fixes a related bug with timezones on displayed date when in calendar range.
2020-05-12 12:30:41 -07:00
1dd9df9cd0 REFACTOR: removes overwritten properties and duplicates fn (#9686) 2020-05-07 16:39:53 +02:00
2f714c7412 FIX: end date of ranges in html preview was incorrect (#9654)
This commit also remove an unused block of code as previewedTimezones can't be empty anymore.
2020-05-06 17:16:36 +02:00
3cce608379 Update translations 2020-05-04 10:39:01 -04:00
30cb5f7d86 Update translations 2020-04-24 15:16:29 +02:00
82f9dcf301 Update translations 2020-04-20 11:37:59 +02:00
6171141211 UX: displays full date time when displaying ranges (#9386) 2020-04-08 10:44:06 +01:00
6d0ba74b98 UX: Ensures timezone is used over localTimezone when displaying dates 2020-04-08 10:43:47 +01:00
66d375cb1d UX: display zones without prefix to reduce noise (#9383) 2020-04-08 11:02:00 +02:00
25f95af418 REFACTOR: local dates to improve reliability with DST and recurrence (#9379)
This commit improves testing and separates local-date generation from dates with zone manipulations.
2020-04-08 08:53:21 +02:00
6c2717eda0 UX: ensures esc key is correctly working when in dates form (#9299)
1 esc close modal focus date button in toolbar
2 esc reduces composer
2020-03-30 17:59:25 +02:00
6102c287f7 FIX: prevents i18n helper to return a SafeString (#9191)
For convenience the i18n helper has been made returning a SafeString, but when used with other helpers, a String is expected and will cause unexpected behaviors.

This is the root cause of the initial bug fixed in d2bb127e2c

This commit is kept as it's a better security in case of unexpected behavior.
2020-03-12 16:50:20 +01:00