David Taylor
32665cf9dd
DEV: Consolidate i18n import paths ( #29804 )
...
Enables our new eslint rules which enforce consistent i18n imports. For more info, see 0d58b40cd7
2024-11-19 20:45:18 +00:00
David Taylor
d4479eab73
DEV: Remove object-property-decorators from admin mixins ( #28172 )
...
Ember's legacy mixin system does not support native-class syntax, so we have to use the non-decorator syntaxes for `action()` and `computed()`.
Eventually, we will need to refactor things to remove these mixins... but today is not that day.
2024-07-31 17:37:15 +01:00
Alan Guo Xiang Tan
5b8652965a
DEV: Add save button to editing typed objects theme setting route ( #26133 )
...
Why this change?
This is still a work in progress but allows objects type theme setting
to be saved.
2024-03-13 06:52:46 +08:00
Godfrey Chan
c34f8b65cb
DEV: Rename I18n imports to discourse-i18n ( #23915 )
...
As of #23867 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
Jarek Radosz
9028df0fda
DEV: Use includes()
instead of indexOf() >= 0
( #17553 )
...
Missed those cases in #17541
2022-07-19 10:27:40 +08:00
Jarek Radosz
0db6ae1e1f
DEV: Fix typos and other spell-checker warnings ( #17554 )
2022-07-19 10:27:10 +08:00
Bianca Nenciu
4fe99e39c3
FEATURE: Add new site setting list type with name and values ( #16045 )
...
These changes include a bug fix because allow_any attribute of site
settings was completely ignored before.
2022-03-08 13:18:43 +02:00
Joffrey JAFFEUX
c9bd4b4c64
FIX: ensures validValues is an array ( #13435 )
...
Before this fix the setting object would have exceptions on 3 fields: computedNameProperty, computedValueProperty and validValues
```
TypeError: Cannot read property 'forEach' of undefined
at Class.validValues (http://localhost:4200/assets/admin.js:10468:19 )
at Class.<anonymous> (http://localhost:4200/assets/vendor.js:82492:19 )
at http://localhost:4200/assets/vendor.js:28633:34
at untrack (http://localhost:4200/assets/vendor.js:26641:7 )
at ComputedProperty.get (http://localhost:4200/assets/vendor.js:28632:13 )
at Class.CPGETTER_FUNCTION [as validValues] (http://localhost:4200/assets/vendor.js:26259:25 )
at Class.r (<anonymous>:1:83)
```
2021-06-18 14:02:21 +02:00
Roman Rizzi
bbe5d8d5cf
DEV: Sort imports alphabetically ( #11382 )
2020-12-01 15:31:26 -03:00
Robin Ward
ce3fe2f4c4
REFACTOR: Support bundling our admin
section as an ember addon
2020-09-22 15:14:29 -04:00