19 Commits

Author SHA1 Message Date
Jarek Radosz
4c860995e0
DEV: Remove unnecessary rails_helper requiring () 2024-03-26 11:32:01 +01:00
Jarek Radosz
fd3c3fa565
DEV: Use service: lookups instead of :main ()
where applicable
2024-01-24 15:59:44 +01:00
Discourse Translator Bot
50f8a51923
Update translations () 2024-01-16 14:54:32 +01:00
Discourse Translator Bot
2e0ec679c5
Update translations () 2024-01-09 15:09:36 +01:00
Discourse Translator Bot
c90772fd3a
Update translations () 2023-11-29 10:41:27 +01:00
Jarek Radosz
916e1371b3
DEV: Fix "ember/no-global-jquery" lint () 2023-11-28 10:53:38 +01:00
Martin Brennan
e37fb3042d
FEATURE: Admin plugin list redesign ()
* Remove checkmark for official plugins
* Add author for plugin, which is By Discourse for all discourse
  and discourse-org github plugins
* Link to meta topic instead of github repo
* Add experimental flag for plugin metadata and show this as a
  badge on the plugin list if present

---------

Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com>
2023-11-21 09:37:11 +10:00
Godfrey Chan
c34f8b65cb
DEV: Rename I18n imports to discourse-i18n ()
As of  this is now a real package, so updating the imports to
use the real package name, rather than relying on the alias. The
name change in the package name is because `I18n` is not a valid
name as NPM packages must be all lowercase.

This commit also introduces an eslint rule to prevent importing from
the old I18n path.

For themes/plugins, the old 'i18n' name remains functional.
2023-10-18 11:07:09 +01:00
David Taylor
48193767bf DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00
Andrei Prigorshnev
fcc9d99ba2
DEV: Start renaming cookAsync() function to cook() ()
Some time ago, we introduced the `cookAsync` instead of the existing 
`cook` function, and planned to migrate everything to it. Then after 
migrating, we wanted to raname the function to simply `cook`.

I've checked Core and plugins, and currently we call `cookAsync` everywhere, 
there are no calls to the `cook` function anymore. So we're good 
to proceed with this refactoring.

This PR makes the first step by making current cookAsync and cook functions 
do the same thing. Effectively now the `cook` function becomes an alias 
for the `cookAsync` function.
2023-10-09 20:22:46 +04:00
Jarek Radosz
c75b379d6f
DEV: Future-proof htmlSafe interactions ()
See https://github.com/discourse/discourse-encrypt/pull/282

> `cooked` was an Ember SafeString. The internal storage of the string changed from `.string` to `.__string` at some point between Ember 3.28 and Ember 5. Instead, we can use `toString()` which is guaranteed to work in all situations
2023-09-14 23:04:57 +02:00
David Taylor
c3061d580c
DEV: Remove decorateCookedElement id parameters ()
These are no longer required per https://github.com/discourse/discourse/pull/23543
2023-09-12 16:32:04 +01:00
Discourse Translator Bot
93de8c8daa
Update translations () 2023-09-12 15:27:48 +02:00
Martin Brennan
97a812f022
FIX: Hide core plugins from the admin Plugins list ()
Most of the core plugins were already hidden, this hides
chat, styleguide, and checklist to avoid potential confusion
for end users.

Also removes respond_to? :hide_plugin, since that API has been
in place for a while now.
2023-08-31 10:01:01 +10:00
Discourse Translator Bot
23222aa2d4
Update translations () 2023-08-15 21:24:57 +02:00
Discourse Translator Bot
5b6493ff4b
Update translations () 2023-08-08 15:42:28 +02:00
Jarek Radosz
f9b4cfe67e
DEV: Use async/await in checklist () 2023-08-02 23:24:20 +02:00
Jarek Radosz
7405aae85a
DEV: Remove checklist syntax migrator ()
Added in https://github.com/discourse/discourse-checklist/pull/23

Those who wanted to convert most likely did in the last three years :]
2023-08-02 22:31:56 +02:00
David Taylor
2d4be458a5
FEATURE: Bundle discourse-checklist plugin into core ()
Formerly https://github.com/discourse/discourse-checklist
2023-08-02 10:17:24 +01:00