1
0
Fork 0

Commits vergleichen

...

1 Commit

Autor SHA1 Nachricht Datum
angusmcleod
748c60154b Setup wizard modal structure 2021-09-20 15:29:46 +08:00
5 geänderte Dateien mit 24 neuen und 5 gelöschten Zeilen

Datei anzeigen

@ -12,12 +12,15 @@
//= require message-bus //= require message-bus
//= require_tree_discourse discourse/app/models //= require_tree_discourse discourse/app/models
//= require discourse/app/controllers/basic-modal-body
//= require discourse/app/controllers/modal
//= require discourse/app/helpers/category-link //= require discourse/app/helpers/category-link
//= require discourse/app/helpers/user-avatar //= require discourse/app/helpers/user-avatar
//= require discourse/app/helpers/format-username //= require discourse/app/helpers/format-username
//= require discourse/app/helpers/share-url //= require discourse/app/helpers/share-url
//= require discourse/app/helpers/decorate-username-selector //= require discourse/app/helpers/decorate-username-selector
//= require discourse/app/helpers/route-action
//= require discourse-common/addon/helpers/component-for-collection //= require discourse-common/addon/helpers/component-for-collection
//= require discourse-common/addon/helpers/component-for-row //= require discourse-common/addon/helpers/component-for-row
//= require discourse-common/addon/lib/raw-templates //= require discourse-common/addon/lib/raw-templates
@ -39,7 +42,8 @@
//= require discourse/app/components/date-input //= require discourse/app/components/date-input
//= require discourse/app/components/date-time-input //= require discourse/app/components/date-time-input
//= require discourse/app/components/text-field //= require discourse/app/components/text-field
//= require discourse/app/components/d-textarea //= require discourse/app/components/d-textarea
//= require discourse/app/components/d-modal
//= require discourse/app/templates/components/conditional-loading-spinner //= require discourse/app/templates/components/conditional-loading-spinner
//= require discourse/app/templates/components/d-button //= require discourse/app/templates/components/d-button
@ -53,6 +57,7 @@
//= require discourse/app/templates/category-tag-autocomplete //= require discourse/app/templates/category-tag-autocomplete
//= require discourse/app/templates/emoji-selector-autocomplete //= require discourse/app/templates/emoji-selector-autocomplete
//= require discourse/app/templates/user-selector-autocomplete //= require discourse/app/templates/user-selector-autocomplete
//= require discourse/app/templates/modal
//= require discourse/app/initializers/jquery-plugins //= require discourse/app/initializers/jquery-plugins
//= require discourse/app/pre-initializers/sniff-capabilities //= require discourse/app/pre-initializers/sniff-capabilities
@ -81,4 +86,4 @@
//= require_tree ./wizard/lib //= require_tree ./wizard/lib
//= require_tree ./wizard/models //= require_tree ./wizard/models
//= require_tree ./wizard/routes //= require_tree ./wizard/routes
//= require_tree ./wizard/templates //= require_tree ./wizard/templates

Datei anzeigen

@ -105,10 +105,11 @@ export default {
}); });
ApplicationRoute.reopen({ ApplicationRoute.reopen({
redirect() {
this.transitionTo("custom");
},
model() {}, model() {},
renderTemplate() {
this.render("application");
this.render("modal", { into: "application", outlet: "modal" });
}
}); });
$.ajaxPrefilter(function (_, __, jqXHR) { $.ajaxPrefilter(function (_, __, jqXHR) {

Datei anzeigen

@ -1,5 +1,6 @@
import WizardI18n from "../lib/wizard-i18n"; import WizardI18n from "../lib/wizard-i18n";
import { getCachedWizard } from "../models/custom"; import { getCachedWizard } from "../models/custom";
import showModal from "discourse/lib/show-modal";
export default Ember.Route.extend({ export default Ember.Route.extend({
beforeModel() { beforeModel() {
@ -43,4 +44,14 @@ export default Ember.Route.extend({
controller.setProperties(props); controller.setProperties(props);
}, },
renderTemplate() {
this.render("custom.step");
const modalController = showModal('resume-popup-modal');
},
actions: {
closeModal(initiatedBy) {
}
}
}); });

Datei anzeigen

@ -1 +1,2 @@
{{outlet}} {{outlet}}
{{outlet "modal"}}

Datei anzeigen

@ -0,0 +1 @@
<h1>hello world</h1>