2022-07-09 10:24:27 +02:00
|
|
|
import { buildResolver } from "discourse/plugins/discourse-custom-wizard/legacy/resolver";
|
2022-03-16 12:33:34 +01:00
|
|
|
import Application from "@ember/application";
|
|
|
|
import WizardInitializer from "./lib/initialize/wizard";
|
|
|
|
import { isTesting } from "discourse-common/config/environment";
|
|
|
|
|
|
|
|
export default Application.extend({
|
|
|
|
rootElement: "#custom-wizard-main",
|
|
|
|
Resolver: buildResolver("discourse/plugins/discourse-custom-wizard/wizard"),
|
|
|
|
|
|
|
|
customEvents: {
|
|
|
|
paste: "paste",
|
|
|
|
},
|
|
|
|
|
|
|
|
start() {
|
|
|
|
if (!isTesting()) {
|
|
|
|
this.initializer(WizardInitializer);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
});
|