Commit Graph

216 Commits

Author SHA1 Message Date
Discourse Translator Bot
1f88354c5e Update translations (#20559) 2023-03-07 14:58:31 +01:00
David Taylor
055310cea4 DEV: Apply syntax_tree formatting to plugins/* 2023-01-07 11:11:37 +00:00
Discourse Translator Bot
58ffa06d4a Update translations (#19340) 2022-12-06 16:22:23 +01:00
Discourse Translator Bot
2eee6fb644 Update translations (#19150) 2022-11-22 15:01:19 +01:00
Discourse Translator Bot
d7844a797f Update translations (#18948) 2022-11-09 00:00:28 +01:00
Martin Brennan
ac7bf98ad1 DEV: Load client site settings YML into JS tests (#18413)
Our method of loading a subset of client settings into tests via
tests/helpers/site-settings.js can be improved upon. Currently we have a
hardcoded subset of the client settings, which may get out of date and not have
the correct defaults. As well as this plugins do not get their settings into the
tests, so whenever you need a setting from a plugin, even if it has a default,
you have to do needs.setting({ ... }) which is inconvenient.

This commit introduces an ember CLI build step to take the site_settings.yml and
all the plugin settings.yml files, pull out the client settings, and dump them
into a variable in a single JS file we can load in our tests, so we have the
correct selection of settings and default values in our JS tests. It also fixes
many, many tests that were operating under incorrect assumptions or old
settings.

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2022-11-08 09:17:43 +10:00
Discourse Translator Bot
5f02f11acc Update translations (#18740) 2022-10-25 17:00:49 +02:00
Discourse Translator Bot
0af2837b73 Update translations (#18642) 2022-10-19 15:19:28 +02:00
Phil Pirozhkov
493d437e79 Add RSpec 4 compatibility (#17652)
* Remove outdated option

04078317ba

* Use the non-globally exposed RSpec syntax

https://github.com/rspec/rspec-core/pull/2803

* Use the non-globally exposed RSpec syntax, cont

https://github.com/rspec/rspec-core/pull/2803

* Comply to strict predicate matchers

See:
 - https://github.com/rspec/rspec-expectations/pull/1195
 - https://github.com/rspec/rspec-expectations/pull/1196
 - https://github.com/rspec/rspec-expectations/pull/1277
2022-07-28 10:27:38 +08:00
Jarek Radosz
7b6cd44c32 DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
Jarek Radosz
624c684d51 DEV: Transpile all plugin js by default (#17175)
Goodbye `# transpile_js: true`? 🙂
2022-06-21 22:07:10 +02:00
Jarek Radosz
ba2c7b8f35 DEV: Use the block form of module() (#17151) 2022-06-20 15:42:10 +02:00
Discourse Translator Bot
7ac485fb9f FEATURE: Add Croatian language (#17130)
Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org>
2022-06-18 00:18:22 +02:00
Discourse Translator Bot
fe689115d4 Update translations (#16378) 2022-04-05 15:28:19 +02:00
Discourse Translator Bot
216dfbb895 Update translations (#16314) 2022-03-30 14:52:59 +02:00
Jarek Radosz
2fc70c5572 DEV: Correctly tag heredocs (#16061)
This allows text editors to use correct syntax coloring for the heredoc sections.

Heredoc tag names we use:

languages: SQL, JS, RUBY, LUA, HTML, CSS, SCSS, SH, HBS, XML, YAML/YML, MF, ICS
other: MD, TEXT/TXT, RAW, EMAIL
2022-02-28 20:50:55 +01:00
Discourse Translator Bot
c665003203 Update translations (#15416) 2021-12-28 14:13:58 +01:00
Discourse Translator Bot
4afd6f0189 Update translations (#15292) 2021-12-14 14:53:35 +01:00
Jarek Radosz
906a71a607 DEV: Fix linting issues in core plugins (#14916) 2021-11-13 15:31:42 +01:00
Jarek Radosz
f414d5eace DEV: Use method definition syntax consistently (#14915) 2021-11-13 14:01:55 +01:00
Jarek Radosz
4ad77f3382 DEV: Remove .es6 extensions from core (#14912)
Still supported in plugins though.
2021-11-13 12:51:53 +01:00
Jarek Radosz
d162229758 DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
Discourse Translator Bot
b44119cdb2 Update translations (#14579) 2021-10-12 16:00:22 +02:00
Discourse Translator Bot
0f5d737a61 Update translations (#14513) 2021-10-05 15:59:26 +02:00
Robin Ward
09764291b1 FIX: In test mode, initializers were modifying classes over and over
This adds a new property, `pluginId` which you can pass to `modifyClass`
which prevent the class from being modified over and over again.

This also includes a fix for polls which was leaking state between tests
which this new functionality exposed.
2021-09-02 11:22:01 -04:00
Discourse Translator Bot
c995b20ca4 Update translations (#14063) 2021-08-24 15:25:44 +02:00
Discourse Translator Bot
e951cb9aef Update translations (#13860) 2021-07-27 15:24:03 +02:00
Discourse Translator Bot
28b5e6e47d Update translations (#13796) 2021-07-21 10:30:34 +02:00
Michael Brown
5f7e60d9dc discourse/discourse change from 'master' to 'main' 2021-07-19 11:46:15 -04:00
Discourse Translator Bot
53fe8b2e77 Update translations (#13647) 2021-07-13 20:30:09 +02:00
Discourse Translator Bot
23930738a7 Update translations (#13565) 2021-06-29 16:02:02 +02:00
Discourse Translator Bot
252dd169a4 Update translations (#13476) 2021-06-22 15:21:20 +02:00
Robin Ward
77d33ebe21 FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320) 2021-06-09 10:58:55 -04:00
Jarek Radosz
21e8a33177 DEV: Clean up QUnit tests (#13328)
* DEV: Use `query` helper instead of `queryAll()[0]`
* DEV: Replace `queryAll().length` w/ `exists()`/`count()`
* DEV: Use `exists()` instead of `count() > 0`, `count() === 0`
* DEV: Use `count()`/`exists()` instead of `find().length`
2021-06-08 17:54:12 +02:00
Discourse Translator Bot
e2e13a70f6 Update translations (#13136) 2021-05-25 15:29:11 +02:00
Discourse Translator Bot
8ac184c636 Update translations (#13088) 2021-05-18 15:11:41 +02:00
Discourse Translator Bot
21c301aa72 Update translations (#13030) 2021-05-11 19:01:59 +02:00
Discourse Translator Bot
d45c7973f9 Update translations (#12940) 2021-05-04 16:34:37 +02:00
Discourse Translator Bot
3b2f2b533f Update translations (#12851) 2021-04-27 16:01:06 +02:00
Discourse Translator Bot
606860e75a Update translations (#12764) 2021-04-20 15:33:17 +02:00
Discourse Translator Bot
27eff709c4 Update translations (#12684) 2021-04-13 16:02:08 +02:00
Discourse Translator Bot
93f74add7d Update translations (#12614) 2021-04-07 11:58:41 +02:00
tshenry
c672ee282a Improve details_enabled site setting description copy (#12560)
The `details_enabled` site setting description did not clearly convey what it controls.

The copy change was discussed here: https://meta.discourse.org/t/183923
2021-03-30 13:51:12 -07:00
Discourse Translator Bot
c21cba70f6 Update translations (#12258) 2021-03-02 15:28:30 +01:00
Penar Musaraj
45c5fd2172 DEV: Remove JoyPixels emoji option (#12197)
- removes the option from site settings
- deletes the site setting on existing sites that have it
- marks posts using emojis as requiring a rebake

Note that the actual image files are not removed here, the plan is to
remove them in a few weeks/months (when presumably the rebaking of old
posts has been completed).
2021-02-26 07:44:52 -05:00
Discourse Translator Bot
f283bde25a Update translations (#12097) 2021-02-16 15:24:37 +01:00
Discourse Translator Bot
a3c363c8f0 Update translations (#12065) 2021-02-12 13:18:05 +01:00
Discourse Translator Bot
b3fa521bf4 Update translations (#12019) 2021-02-09 14:56:15 +01:00
Discourse Translator Bot
0e8c155b70 Update translations (#11779) 2021-01-20 22:58:26 +01:00
Discourse Translator Bot
09f9d4b281 Update translations (#11601) 2020-12-29 19:44:53 +01:00