DEV: Resolve and unsilence ember string prototype deprecation (#20448)
This commit is contained in:
parent
b12e51d309
commit
e82b8c2b06
|
@ -4,6 +4,7 @@ import TagShowRoute from "discourse/routes/tag-show";
|
||||||
import User from "discourse/models/user";
|
import User from "discourse/models/user";
|
||||||
import buildCategoryRoute from "discourse/routes/build-category-route";
|
import buildCategoryRoute from "discourse/routes/build-category-route";
|
||||||
import buildTopicRoute from "discourse/routes/build-topic-route";
|
import buildTopicRoute from "discourse/routes/build-topic-route";
|
||||||
|
import { dasherize } from "@ember/string";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
after: "inject-discourse-objects",
|
after: "inject-discourse-objects",
|
||||||
|
@ -39,7 +40,7 @@ export default {
|
||||||
|
|
||||||
const site = Site.current();
|
const site = Site.current();
|
||||||
site.get("filters").forEach((filter) => {
|
site.get("filters").forEach((filter) => {
|
||||||
const filterDasherized = filter.dasherize();
|
const filterDasherized = dasherize(filter);
|
||||||
app.register(
|
app.register(
|
||||||
`controller:discovery.${filterDasherized}`,
|
`controller:discovery.${filterDasherized}`,
|
||||||
DiscoverySortableController.extend()
|
DiscoverySortableController.extend()
|
||||||
|
@ -106,7 +107,7 @@ export default {
|
||||||
);
|
);
|
||||||
|
|
||||||
site.get("filters").forEach(function (filter) {
|
site.get("filters").forEach(function (filter) {
|
||||||
const filterDasherized = filter.dasherize();
|
const filterDasherized = dasherize(filter);
|
||||||
|
|
||||||
app.register(
|
app.register(
|
||||||
`route:tag.show-${filterDasherized}`,
|
`route:tag.show-${filterDasherized}`,
|
||||||
|
|
|
@ -4,7 +4,6 @@ globalThis.deprecationWorkflow.config = {
|
||||||
// `throwOnUnhandled` here since it is easier to toggle.
|
// `throwOnUnhandled` here since it is easier to toggle.
|
||||||
workflow: [
|
workflow: [
|
||||||
{ handler: "silence", matchId: "ember-global" },
|
{ handler: "silence", matchId: "ember-global" },
|
||||||
{ handler: "silence", matchId: "ember-string.prototype-extensions" },
|
|
||||||
{ handler: "silence", matchId: "ember.built-in-components.reopen" },
|
{ handler: "silence", matchId: "ember.built-in-components.reopen" },
|
||||||
{ handler: "silence", matchId: "ember.built-in-components.import" },
|
{ handler: "silence", matchId: "ember.built-in-components.import" },
|
||||||
{ handler: "silence", matchId: "implicit-injections" },
|
{ handler: "silence", matchId: "implicit-injections" },
|
||||||
|
|
Loading…
Reference in New Issue