From 6d5e7e91ec87934f162c3d7f18f35dcaa6d2767e Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 22 Nov 2024 16:45:50 +0100 Subject: [PATCH] Address deprecations --- .../components/custom-field-input.hbs | 40 +++--- ...eld-input.js.es6 => custom-field-input.js} | 0 ...es6 => custom-wizard-category-selector.js} | 0 .../custom-wizard-composer-editor.hbs | 20 +-- .../components/custom-wizard-date-input.hbs | 0 ...put.js.es6 => custom-wizard-date-input.js} | 0 .../custom-wizard-date-time-input.hbs | 30 +++++ ...s.es6 => custom-wizard-date-time-input.js} | 0 .../components/custom-wizard-editor.hbs | 14 +-- .../custom-wizard-field-category.hbs | 8 ++ ...js.es6 => custom-wizard-field-category.js} | 0 .../custom-wizard-field-checkbox.hbs | 0 ...js.es6 => custom-wizard-field-checkbox.js} | 0 .../custom-wizard-field-composer-preview.hbs | 2 +- ...> custom-wizard-field-composer-preview.js} | 0 .../custom-wizard-field-composer.hbs | 4 +- ...js.es6 => custom-wizard-field-composer.js} | 0 .../custom-wizard-field-date-time.hbs | 4 +- ...s.es6 => custom-wizard-field-date-time.js} | 0 .../components/custom-wizard-field-date.hbs | 6 + ...ate.js.es6 => custom-wizard-field-date.js} | 0 .../custom-wizard-field-dropdown.hbs | 8 ++ ...js.es6 => custom-wizard-field-dropdown.js} | 0 .../components/custom-wizard-field-group.hbs | 10 ++ ...up.js.es6 => custom-wizard-field-group.js} | 0 .../components/custom-wizard-field-number.hbs | 0 ...r.js.es6 => custom-wizard-field-number.js} | 0 .../components/custom-wizard-field-tag.hbs | 8 ++ ...-tag.js.es6 => custom-wizard-field-tag.js} | 0 .../components/custom-wizard-field-text.hbs | 0 ...ext.js.es6 => custom-wizard-field-text.js} | 0 .../custom-wizard-field-textarea.hbs | 0 ...js.es6 => custom-wizard-field-textarea.js} | 0 .../components/custom-wizard-field-time.hbs | 4 +- ...ime.js.es6 => custom-wizard-field-time.js} | 0 .../components/custom-wizard-field-topic.hbs | 6 + ...ic.js.es6 => custom-wizard-field-topic.js} | 0 .../components/custom-wizard-field-upload.hbs | 0 ...d.js.es6 => custom-wizard-field-upload.js} | 0 .../components/custom-wizard-field-url.hbs | 0 ...-url.js.es6 => custom-wizard-field-url.js} | 0 .../custom-wizard-field-user-selector.hbs | 5 + ...6 => custom-wizard-field-user-selector.js} | 0 .../components/custom-wizard-field.hbs | 38 ++++++ ...rd-field.js.es6 => custom-wizard-field.js} | 0 ...js.es6 => custom-wizard-group-selector.js} | 0 .../components/custom-wizard-no-access.hbs | 6 +- ...cess.js.es6 => custom-wizard-no-access.js} | 0 .../custom-wizard-similar-topic.hbs | 6 + .../custom-wizard-similar-topics.hbs | 4 +- ...js.es6 => custom-wizard-similar-topics.js} | 0 ...form.js.es6 => custom-wizard-step-form.js} | 0 .../components/custom-wizard-step.hbs | 46 +++---- ...zard-step.js.es6 => custom-wizard-step.js} | 0 ...er.js.es6 => custom-wizard-tag-chooser.js} | 0 ...r.js.es6 => custom-wizard-tag-selector.js} | 0 ...eld.js.es6 => custom-wizard-text-field.js} | 0 .../components/custom-wizard-time-input.hbs | 6 +- ...put.js.es6 => custom-wizard-time-input.js} | 0 ...js.es6 => custom-wizard-topic-selector.js} | 0 .../components/field-validators.hbs | 10 +- ...-validators.js.es6 => field-validators.js} | 0 .../modal/admin-wizards-columns.hbs | 2 +- .../components/similar-topics-validator.hbs | 13 ++ ...tor.js.es6 => similar-topics-validator.js} | 0 .../discourse/components/validator.hbs | 5 + .../{validator.js.es6 => validator.js} | 0 .../components/wizard-custom-action.hbs | 66 +++++----- ...-action.js.es6 => wizard-custom-action.js} | 0 .../components/wizard-custom-field.hbs | 64 +++++----- ...om-field.js.es6 => wizard-custom-field.js} | 0 .../components/wizard-custom-step.hbs | 34 ++--- ...stom-step.js.es6 => wizard-custom-step.js} | 0 .../components/wizard-links.hbs | 6 +- .../{wizard-links.js.es6 => wizard-links.js} | 0 .../components/wizard-mapper-connector.hbs | 10 +- ...ctor.js.es6 => wizard-mapper-connector.js} | 0 .../components/wizard-mapper-input.hbs | 10 +- ...er-input.js.es6 => wizard-mapper-input.js} | 0 .../components/wizard-mapper-pair.hbs | 41 +++++++ ...pper-pair.js.es6 => wizard-mapper-pair.js} | 0 .../wizard-mapper-selector-type.hbs | 1 + ....js.es6 => wizard-mapper-selector-type.js} | 0 .../components/wizard-mapper-selector.hbs | 52 ++++---- ...ector.js.es6 => wizard-mapper-selector.js} | 0 .../components/wizard-mapper.hbs | 6 +- ...{wizard-mapper.js.es6 => wizard-mapper.js} | 0 .../components/wizard-message.hbs | 16 +-- ...izard-message.js.es6 => wizard-message.js} | 0 .../wizard-realtime-validations.hbs | 8 +- ....js.es6 => wizard-realtime-validations.js} | 0 .../wizard-subscription-container.hbs | 6 +- ...js.es6 => wizard-subscription-selector.js} | 0 .../wizard-subscription-selector-header.hbs | 16 +++ ...=> wizard-subscription-selector-header.js} | 0 .../wizard-subscription-selector-row.hbs | 15 +++ ...s6 => wizard-subscription-selector-row.js} | 0 .../components/wizard-subscription-status.hbs | 6 +- .../components/wizard-table-field.hbs | 116 +++++++++--------- ...ble-field.js.es6 => wizard-table-field.js} | 0 .../components/wizard-text-editor.hbs | 34 +++++ ...xt-editor.js.es6 => wizard-text-editor.js} | 0 ...-chooser.js.es6 => wizard-user-chooser.js} | 0 .../wizard-user-chooser-row.hbs | 0 ...value-list.js.es6 => wizard-value-list.js} | 0 .../admin-menu/wizards-nav-button.hbs | 4 +- ...es6 => custom-wizard-category-settings.js} | 0 ...completion.js.es6 => prompt-completion.js} | 0 ...-show.js.es6 => admin-wizards-api-show.js} | 0 ....js.es6 => admin-wizards-custom-fields.js} | 0 ...show.js.es6 => admin-wizards-logs-show.js} | 0 ...ards-logs.js.es6 => admin-wizards-logs.js} | 0 ...anager.js.es6 => admin-wizards-manager.js} | 0 ....es6 => admin-wizards-submissions-show.js} | 0 ...ns.js.es6 => admin-wizards-submissions.js} | 0 ...ow.js.es6 => admin-wizards-wizard-show.js} | 0 ...-wizard.js.es6 => admin-wizards-wizard.js} | 0 ...{admin-wizards.js.es6 => admin-wizards.js} | 0 ...rd-index.js.es6 => custom-wizard-index.js} | 0 ...zard-step.js.es6 => custom-wizard-step.js} | 0 ...{custom-wizard.js.es6 => custom-wizard.js} | 0 ...s.es6 => custom-wizard-admin-route-map.js} | 0 ...-map.js.es6 => custom-wizard-route-map.js} | 0 ...rd-edits.js.es6 => custom-wizard-edits.js} | 0 ...irect.js.es6 => custom-wizard-redirect.js} | 0 .../{wizard-json.js.es6 => wizard-json.js} | 0 ...{wizard-mapper.js.es6 => wizard-mapper.js} | 0 ...{wizard-schema.js.es6 => wizard-schema.js} | 0 ...submission.js.es6 => wizard-submission.js} | 0 .../lib/{wizard.js.es6 => wizard.js} | 0 .../{subscription.js.es6 => subscription.js} | 0 .../{undo-changes.js.es6 => undo-changes.js} | 0 .../{valid-state.js.es6 => valid-state.js} | 0 ...rd-admin.js.es6 => custom-wizard-admin.js} | 0 ...wizard-api.js.es6 => custom-wizard-api.js} | 0 ...d.js.es6 => custom-wizard-custom-field.js} | 0 ...rd-field.js.es6 => custom-wizard-field.js} | 0 ...zard-logs.js.es6 => custom-wizard-logs.js} | 0 ...anager.js.es6 => custom-wizard-manager.js} | 0 ...zard-step.js.es6 => custom-wizard-step.js} | 0 ...{custom-wizard.js.es6 => custom-wizard.js} | 0 ...-show.js.es6 => admin-wizards-api-show.js} | 0 ...izards-api.js.es6 => admin-wizards-api.js} | 0 ....js.es6 => admin-wizards-custom-fields.js} | 0 ...show.js.es6 => admin-wizards-logs-show.js} | 0 ...ards-logs.js.es6 => admin-wizards-logs.js} | 0 ...anager.js.es6 => admin-wizards-manager.js} | 0 ....es6 => admin-wizards-submissions-show.js} | 0 ...ns.js.es6 => admin-wizards-submissions.js} | 0 ...ow.js.es6 => admin-wizards-wizard-show.js} | 0 ...-wizard.js.es6 => admin-wizards-wizard.js} | 0 ...{admin-wizards.js.es6 => admin-wizards.js} | 0 ...rd-index.js.es6 => custom-wizard-index.js} | 0 ...zard-step.js.es6 => custom-wizard-step.js} | 0 ...{custom-wizard.js.es6 => custom-wizard.js} | 0 .../templates/admin-wizards-api-show.hbs | 86 ++++++------- .../discourse/templates/admin-wizards-api.hbs | 4 +- .../templates/admin-wizards-custom-fields.hbs | 14 +-- .../templates/admin-wizards-logs-show.hbs | 10 +- .../templates/admin-wizards-logs.hbs | 10 +- .../templates/admin-wizards-manager.hbs | 24 ++-- .../admin-wizards-submissions-show.hbs | 14 +-- .../templates/admin-wizards-submissions.hbs | 10 +- .../templates/admin-wizards-wizard-show.hbs | 62 +++++----- .../templates/admin-wizards-wizard.hbs | 29 +++-- .../discourse/templates/admin-wizards.hbs | 2 +- .../custom-wizard-date-time-input.hbs | 30 ----- .../custom-wizard-field-category.hbs | 8 -- .../components/custom-wizard-field-date.hbs | 6 - .../custom-wizard-field-dropdown.hbs | 8 -- .../components/custom-wizard-field-group.hbs | 10 -- .../components/custom-wizard-field-tag.hbs | 8 -- .../components/custom-wizard-field-topic.hbs | 6 - .../custom-wizard-field-user-selector.hbs | 5 - .../components/custom-wizard-field.hbs | 38 ------ .../custom-wizard-similar-topic.hbs | 6 - .../components/similar-topics-validator.hbs | 13 -- .../templates/components/validator.hbs | 5 - .../components/wizard-mapper-pair.hbs | 41 ------- .../wizard-mapper-selector-type.hbs | 1 - .../wizard-subscription-selector-header.hbs | 16 --- .../wizard-subscription-selector-row.hbs | 15 --- .../components/wizard-text-editor.hbs | 34 ----- .../templates/custom-wizard-index.hbs | 12 +- .../templates/custom-wizard-step.hbs | 14 +-- .../discourse/templates/custom-wizard.hbs | 4 +- 186 files changed, 682 insertions(+), 679 deletions(-) rename assets/javascripts/discourse/{templates => }/components/custom-field-input.hbs (63%) rename assets/javascripts/discourse/components/{custom-field-input.js.es6 => custom-field-input.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-category-selector.js.es6 => custom-wizard-category-selector.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-composer-editor.hbs (52%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-date-input.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-date-input.js.es6 => custom-wizard-date-input.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-date-time-input.hbs rename assets/javascripts/discourse/components/{custom-wizard-date-time-input.js.es6 => custom-wizard-date-time-input.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-editor.hbs (78%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-category.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-category.js.es6 => custom-wizard-field-category.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-checkbox.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-field-checkbox.js.es6 => custom-wizard-field-checkbox.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-composer-preview.hbs (70%) rename assets/javascripts/discourse/components/{custom-wizard-field-composer-preview.js.es6 => custom-wizard-field-composer-preview.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-composer.hbs (82%) rename assets/javascripts/discourse/components/{custom-wizard-field-composer.js.es6 => custom-wizard-field-composer.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-date-time.hbs (55%) rename assets/javascripts/discourse/components/{custom-wizard-field-date-time.js.es6 => custom-wizard-field-date-time.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-date.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-date.js.es6 => custom-wizard-field-date.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-dropdown.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-dropdown.js.es6 => custom-wizard-field-dropdown.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-group.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-group.js.es6 => custom-wizard-field-group.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-number.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-field-number.js.es6 => custom-wizard-field-number.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-tag.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-tag.js.es6 => custom-wizard-field-tag.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-text.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-field-text.js.es6 => custom-wizard-field-text.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-textarea.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-field-textarea.js.es6 => custom-wizard-field-textarea.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-time.hbs (55%) rename assets/javascripts/discourse/components/{custom-wizard-field-time.js.es6 => custom-wizard-field-time.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-topic.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-topic.js.es6 => custom-wizard-field-topic.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-upload.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-field-upload.js.es6 => custom-wizard-field-upload.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-field-url.hbs (100%) rename assets/javascripts/discourse/components/{custom-wizard-field-url.js.es6 => custom-wizard-field-url.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field-user-selector.hbs rename assets/javascripts/discourse/components/{custom-wizard-field-user-selector.js.es6 => custom-wizard-field-user-selector.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-field.hbs rename assets/javascripts/discourse/components/{custom-wizard-field.js.es6 => custom-wizard-field.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-group-selector.js.es6 => custom-wizard-group-selector.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-no-access.hbs (69%) rename assets/javascripts/discourse/components/{custom-wizard-no-access.js.es6 => custom-wizard-no-access.js} (100%) create mode 100644 assets/javascripts/discourse/components/custom-wizard-similar-topic.hbs rename assets/javascripts/discourse/{templates => }/components/custom-wizard-similar-topics.hbs (79%) rename assets/javascripts/discourse/components/{custom-wizard-similar-topics.js.es6 => custom-wizard-similar-topics.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-step-form.js.es6 => custom-wizard-step-form.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-step.hbs (53%) rename assets/javascripts/discourse/components/{custom-wizard-step.js.es6 => custom-wizard-step.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-tag-chooser.js.es6 => custom-wizard-tag-chooser.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-tag-selector.js.es6 => custom-wizard-tag-selector.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-text-field.js.es6 => custom-wizard-text-field.js} (100%) rename assets/javascripts/discourse/{templates => }/components/custom-wizard-time-input.hbs (74%) rename assets/javascripts/discourse/components/{custom-wizard-time-input.js.es6 => custom-wizard-time-input.js} (100%) rename assets/javascripts/discourse/components/{custom-wizard-topic-selector.js.es6 => custom-wizard-topic-selector.js} (100%) rename assets/javascripts/discourse/{templates => }/components/field-validators.hbs (60%) rename assets/javascripts/discourse/components/{field-validators.js.es6 => field-validators.js} (100%) create mode 100644 assets/javascripts/discourse/components/similar-topics-validator.hbs rename assets/javascripts/discourse/components/{similar-topics-validator.js.es6 => similar-topics-validator.js} (100%) create mode 100644 assets/javascripts/discourse/components/validator.hbs rename assets/javascripts/discourse/components/{validator.js.es6 => validator.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-custom-action.hbs (96%) rename assets/javascripts/discourse/components/{wizard-custom-action.js.es6 => wizard-custom-action.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-custom-field.hbs (84%) rename assets/javascripts/discourse/components/{wizard-custom-field.js.es6 => wizard-custom-field.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-custom-step.hbs (80%) rename assets/javascripts/discourse/components/{wizard-custom-step.js.es6 => wizard-custom-step.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-links.hbs (87%) rename assets/javascripts/discourse/components/{wizard-links.js.es6 => wizard-links.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-mapper-connector.hbs (50%) rename assets/javascripts/discourse/components/{wizard-mapper-connector.js.es6 => wizard-mapper-connector.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-mapper-input.hbs (87%) rename assets/javascripts/discourse/components/{wizard-mapper-input.js.es6 => wizard-mapper-input.js} (100%) create mode 100644 assets/javascripts/discourse/components/wizard-mapper-pair.hbs rename assets/javascripts/discourse/components/{wizard-mapper-pair.js.es6 => wizard-mapper-pair.js} (100%) create mode 100644 assets/javascripts/discourse/components/wizard-mapper-selector-type.hbs rename assets/javascripts/discourse/components/{wizard-mapper-selector-type.js.es6 => wizard-mapper-selector-type.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-mapper-selector.hbs (50%) rename assets/javascripts/discourse/components/{wizard-mapper-selector.js.es6 => wizard-mapper-selector.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-mapper.hbs (83%) rename assets/javascripts/discourse/components/{wizard-mapper.js.es6 => wizard-mapper.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-message.hbs (50%) rename assets/javascripts/discourse/components/{wizard-message.js.es6 => wizard-message.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-realtime-validations.hbs (92%) rename assets/javascripts/discourse/components/{wizard-realtime-validations.js.es6 => wizard-realtime-validations.js} (100%) rename assets/javascripts/discourse/components/{wizard-subscription-selector.js.es6 => wizard-subscription-selector.js} (100%) create mode 100644 assets/javascripts/discourse/components/wizard-subscription-selector/wizard-subscription-selector-header.hbs rename assets/javascripts/discourse/components/wizard-subscription-selector/{wizard-subscription-selector-header.js.es6 => wizard-subscription-selector-header.js} (100%) create mode 100644 assets/javascripts/discourse/components/wizard-subscription-selector/wizard-subscription-selector-row.hbs rename assets/javascripts/discourse/components/wizard-subscription-selector/{wizard-subscription-selector-row.js.es6 => wizard-subscription-selector-row.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-table-field.hbs (52%) rename assets/javascripts/discourse/components/{wizard-table-field.js.es6 => wizard-table-field.js} (100%) create mode 100644 assets/javascripts/discourse/components/wizard-text-editor.hbs rename assets/javascripts/discourse/components/{wizard-text-editor.js.es6 => wizard-text-editor.js} (100%) rename assets/javascripts/discourse/components/{wizard-user-chooser.js.es6 => wizard-user-chooser.js} (100%) rename assets/javascripts/discourse/{templates => }/components/wizard-user-chooser/wizard-user-chooser-row.hbs (100%) rename assets/javascripts/discourse/components/{wizard-value-list.js.es6 => wizard-value-list.js} (100%) rename assets/javascripts/discourse/connectors/category-custom-settings/{custom-wizard-category-settings.js.es6 => custom-wizard-category-settings.js} (100%) rename assets/javascripts/discourse/connectors/top-notices/{prompt-completion.js.es6 => prompt-completion.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-api-show.js.es6 => admin-wizards-api-show.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-custom-fields.js.es6 => admin-wizards-custom-fields.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-logs-show.js.es6 => admin-wizards-logs-show.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-logs.js.es6 => admin-wizards-logs.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-manager.js.es6 => admin-wizards-manager.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-submissions-show.js.es6 => admin-wizards-submissions-show.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-submissions.js.es6 => admin-wizards-submissions.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-wizard-show.js.es6 => admin-wizards-wizard-show.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards-wizard.js.es6 => admin-wizards-wizard.js} (100%) rename assets/javascripts/discourse/controllers/{admin-wizards.js.es6 => admin-wizards.js} (100%) rename assets/javascripts/discourse/controllers/{custom-wizard-index.js.es6 => custom-wizard-index.js} (100%) rename assets/javascripts/discourse/controllers/{custom-wizard-step.js.es6 => custom-wizard-step.js} (100%) rename assets/javascripts/discourse/controllers/{custom-wizard.js.es6 => custom-wizard.js} (100%) rename assets/javascripts/discourse/{custom-wizard-admin-route-map.js.es6 => custom-wizard-admin-route-map.js} (100%) rename assets/javascripts/discourse/{custom-wizard-route-map.js.es6 => custom-wizard-route-map.js} (100%) rename assets/javascripts/discourse/initializers/{custom-wizard-edits.js.es6 => custom-wizard-edits.js} (100%) rename assets/javascripts/discourse/initializers/{custom-wizard-redirect.js.es6 => custom-wizard-redirect.js} (100%) rename assets/javascripts/discourse/lib/{wizard-json.js.es6 => wizard-json.js} (100%) rename assets/javascripts/discourse/lib/{wizard-mapper.js.es6 => wizard-mapper.js} (100%) rename assets/javascripts/discourse/lib/{wizard-schema.js.es6 => wizard-schema.js} (100%) rename assets/javascripts/discourse/lib/{wizard-submission.js.es6 => wizard-submission.js} (100%) rename assets/javascripts/discourse/lib/{wizard.js.es6 => wizard.js} (100%) rename assets/javascripts/discourse/mixins/{subscription.js.es6 => subscription.js} (100%) rename assets/javascripts/discourse/mixins/{undo-changes.js.es6 => undo-changes.js} (100%) rename assets/javascripts/discourse/mixins/{valid-state.js.es6 => valid-state.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-admin.js.es6 => custom-wizard-admin.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-api.js.es6 => custom-wizard-api.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-custom-field.js.es6 => custom-wizard-custom-field.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-field.js.es6 => custom-wizard-field.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-logs.js.es6 => custom-wizard-logs.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-manager.js.es6 => custom-wizard-manager.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard-step.js.es6 => custom-wizard-step.js} (100%) rename assets/javascripts/discourse/models/{custom-wizard.js.es6 => custom-wizard.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-api-show.js.es6 => admin-wizards-api-show.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-api.js.es6 => admin-wizards-api.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-custom-fields.js.es6 => admin-wizards-custom-fields.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-logs-show.js.es6 => admin-wizards-logs-show.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-logs.js.es6 => admin-wizards-logs.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-manager.js.es6 => admin-wizards-manager.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-submissions-show.js.es6 => admin-wizards-submissions-show.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-submissions.js.es6 => admin-wizards-submissions.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-wizard-show.js.es6 => admin-wizards-wizard-show.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards-wizard.js.es6 => admin-wizards-wizard.js} (100%) rename assets/javascripts/discourse/routes/{admin-wizards.js.es6 => admin-wizards.js} (100%) rename assets/javascripts/discourse/routes/{custom-wizard-index.js.es6 => custom-wizard-index.js} (100%) rename assets/javascripts/discourse/routes/{custom-wizard-step.js.es6 => custom-wizard-step.js} (100%) rename assets/javascripts/discourse/routes/{custom-wizard.js.es6 => custom-wizard.js} (100%) delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-date-time-input.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-category.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-date.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-dropdown.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-group.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-tag.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-topic.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field-user-selector.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-field.hbs delete mode 100644 assets/javascripts/discourse/templates/components/custom-wizard-similar-topic.hbs delete mode 100644 assets/javascripts/discourse/templates/components/similar-topics-validator.hbs delete mode 100644 assets/javascripts/discourse/templates/components/validator.hbs delete mode 100644 assets/javascripts/discourse/templates/components/wizard-mapper-pair.hbs delete mode 100644 assets/javascripts/discourse/templates/components/wizard-mapper-selector-type.hbs delete mode 100644 assets/javascripts/discourse/templates/components/wizard-subscription-selector/wizard-subscription-selector-header.hbs delete mode 100644 assets/javascripts/discourse/templates/components/wizard-subscription-selector/wizard-subscription-selector-row.hbs delete mode 100644 assets/javascripts/discourse/templates/components/wizard-text-editor.hbs diff --git a/assets/javascripts/discourse/templates/components/custom-field-input.hbs b/assets/javascripts/discourse/components/custom-field-input.hbs similarity index 63% rename from assets/javascripts/discourse/templates/components/custom-field-input.hbs rename to assets/javascripts/discourse/components/custom-field-input.hbs index 4e3fa2f0..82c7c62a 100644 --- a/assets/javascripts/discourse/templates/components/custom-field-input.hbs +++ b/assets/javascripts/discourse/components/custom-field-input.hbs @@ -1,19 +1,19 @@ -{{#if showInputs}} +{{#if this.showInputs}} {{wizard-subscription-selector - value=field.klass + value=this.field.klass feature="custom_field" attribute="klass" - onChange=(action (mut field.klass)) + onChange=(action (mut this.field.klass)) options=(hash none="admin.wizard.custom_field.klass.select") }} {{wizard-subscription-selector - value=field.type + value=this.field.type feature="custom_field" attribute="type" - onChange=(action (mut field.type)) + onChange=(action (mut this.field.type)) options=(hash none="admin.wizard.custom_field.type.select") }} @@ -25,48 +25,48 @@ {{multi-select - value=field.serializers - content=serializerContent - onChange=(action (mut field.serializers)) + value=this.field.serializers + content=this.serializerContent + onChange=(action (mut this.field.serializers)) options=(hash none="admin.wizard.custom_field.serializers.select") }} - {{#if loading}} + {{#if this.loading}} {{loading-spinner size="small"}} {{else}} - {{#if saveIcon}} - {{d-icon saveIcon}} + {{#if this.saveIcon}} + {{d-icon this.saveIcon}} {{/if}} {{/if}} {{d-button action=(action "destroy") icon="trash-alt" class="destroy" - disabled=destroyDisabled + disabled=this.destroyDisabled }} {{d-button icon="save" action=(action "save") - disabled=saveDisabled + disabled=this.saveDisabled class="save" }} - {{d-button action=(action "close") icon="times" disabled=closeDisabled}} + {{d-button action=(action "close") icon="times" disabled=this.closeDisabled}} {{else}} - - - + + + - {{#if isExternal}} + {{#if this.isExternal}} — {{else}} - {{#each field.serializers as |serializer|}} + {{#each this.field.serializers as |serializer|}} {{/each}} {{/if}} - {{#if isExternal}} + {{#if this.isExternal}}