Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-30 12:31:10 +01:00
Fix linting
Dieser Commit ist enthalten in:
Ursprung
6d5e7e91ec
Commit
c54602a9ce
16 geänderte Dateien mit 62 neuen und 43 gelöschten Zeilen
|
@ -51,7 +51,11 @@
|
|||
disabled=this.saveDisabled
|
||||
class="save"
|
||||
}}
|
||||
{{d-button action=(action "close") icon="times" disabled=this.closeDisabled}}
|
||||
{{d-button
|
||||
action=(action "close")
|
||||
icon="times"
|
||||
disabled=this.closeDisabled
|
||||
}}
|
||||
</td>
|
||||
{{else}}
|
||||
<td><label>{{this.field.klass}}</label></td>
|
||||
|
|
|
@ -122,7 +122,7 @@ export default Component.extend({
|
|||
setTimeout(() => {
|
||||
if (this.isDestroyed) {
|
||||
return;
|
||||
};
|
||||
}
|
||||
this.set("saveIcon", null);
|
||||
}, 10000);
|
||||
});
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
<div class="d-editor-container">
|
||||
{{#if this.showPreview}}
|
||||
<div class="d-editor-preview-wrapper {{if this.forcePreview 'force-preview'}}">
|
||||
<div
|
||||
class="d-editor-preview-wrapper {{if this.forcePreview 'force-preview'}}"
|
||||
>
|
||||
<div class="d-editor-preview">
|
||||
{{html-safe this.preview}}
|
||||
</div>
|
||||
|
|
|
@ -271,7 +271,10 @@
|
|||
</div>
|
||||
|
||||
<div class="setting-value">
|
||||
{{wizard-mapper inputs=this.field.condition options=this.fieldConditionOptions}}
|
||||
{{wizard-mapper
|
||||
inputs=this.field.condition
|
||||
options=this.fieldConditionOptions
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -303,6 +306,9 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if this.validations}}
|
||||
{{wizard-realtime-validations field=this.field validations=this.validations}}
|
||||
{{wizard-realtime-validations
|
||||
field=this.field
|
||||
validations=this.validations
|
||||
}}
|
||||
{{/if}}
|
||||
{{/wizard-subscription-container}}
|
|
@ -39,7 +39,10 @@
|
|||
</div>
|
||||
|
||||
<div class="setting-value">
|
||||
{{wizard-mapper inputs=this.step.condition options=this.stepConditionOptions}}
|
||||
{{wizard-mapper
|
||||
inputs=this.step.condition
|
||||
options=this.stepConditionOptions
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -35,7 +35,9 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if this.showRemove}}
|
||||
<a role="button" {{action this.removePair this.pair}} class="remove-pair">{{d-icon
|
||||
"times"
|
||||
}}</a>
|
||||
<a
|
||||
role="button"
|
||||
{{action this.removePair this.pair}}
|
||||
class="remove-pair"
|
||||
>{{d-icon "times"}}</a>
|
||||
{{/if}}
|
|
@ -1,7 +1,10 @@
|
|||
<div class="supplier-authorize">
|
||||
<WizardSubscriptionBadge />
|
||||
{{#if this.authorized}}
|
||||
<ConditionalLoadingSpinner @condition={{this.unauthorizing}} @size="small" />
|
||||
<ConditionalLoadingSpinner
|
||||
@condition={{this.unauthorizing}}
|
||||
@size="small"
|
||||
/>
|
||||
<DButton
|
||||
class="deauthorize"
|
||||
@title="admin.wizard.subscription.deauthorize.title"
|
||||
|
|
|
@ -1,12 +1,22 @@
|
|||
{{d-editor value=this.value forcePreview=this.forcePreview placeholder=this.placeholder}}
|
||||
{{d-editor
|
||||
value=this.value
|
||||
forcePreview=this.forcePreview
|
||||
placeholder=this.placeholder
|
||||
}}
|
||||
|
||||
<div class="wizard-editor-gutter">
|
||||
{{#if this.previewEnabled}}
|
||||
{{d-button action=(action "togglePreview") translatedLabel=this.previewLabel}}
|
||||
{{d-button
|
||||
action=(action "togglePreview")
|
||||
translatedLabel=this.previewLabel
|
||||
}}
|
||||
{{/if}}
|
||||
|
||||
{{#if this.fieldsEnabled}}
|
||||
{{d-button action=(action "togglePopover") translatedLabel=this.popoverLabel}}
|
||||
{{d-button
|
||||
action=(action "togglePopover")
|
||||
translatedLabel=this.popoverLabel
|
||||
}}
|
||||
|
||||
{{#if this.showPopover}}
|
||||
<div class="wizard-editor-gutter-popover">
|
||||
|
|
|
@ -31,19 +31,16 @@ export default Controller.extend({
|
|||
}
|
||||
}
|
||||
|
||||
setTimeout(
|
||||
() => {
|
||||
if (this.isDestroyed) {
|
||||
return;
|
||||
}
|
||||
this.setProperties({
|
||||
messageKey: "create",
|
||||
messageType: null,
|
||||
messageOpts: null,
|
||||
});
|
||||
},
|
||||
10000
|
||||
);
|
||||
setTimeout(() => {
|
||||
if (this.isDestroyed) {
|
||||
return;
|
||||
}
|
||||
this.setProperties({
|
||||
messageKey: "create",
|
||||
messageType: null,
|
||||
messageOpts: null,
|
||||
});
|
||||
}, 10000);
|
||||
|
||||
return result;
|
||||
});
|
||||
|
|
|
@ -28,7 +28,7 @@ export default Controller.extend({
|
|||
setTimeout(() => {
|
||||
if (this.isDestroyed) {
|
||||
return;
|
||||
};
|
||||
}
|
||||
this.setProperties({
|
||||
messageKey: "info",
|
||||
messageOpts: null,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import DiscourseURL from "discourse/lib/url";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
import getUrl from "discourse-common/lib/get-url";
|
||||
import { observes } from "discourse-common/utils/decorators";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import CustomWizardTextareaEditor from "../components/custom-wizard-textarea-editor";
|
||||
|
|
|
@ -181,7 +181,11 @@
|
|||
{{/wizard-subscription-container}}
|
||||
</div>
|
||||
|
||||
{{wizard-links itemType="step" current=this.currentStep items=this.wizard.steps}}
|
||||
{{wizard-links
|
||||
itemType="step"
|
||||
current=this.currentStep
|
||||
items=this.wizard.steps
|
||||
}}
|
||||
|
||||
{{#if this.currentStep}}
|
||||
{{wizard-custom-step
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{#if this.noAccess}}
|
||||
<CustomWizardNoAccess
|
||||
@text={{i18n this.noAccessI18nKey}}
|
||||
@wizardId=this.wizardId
|
||||
@wizardId={{this.wizardId}}
|
||||
@reason={{this.noAccessReason}}
|
||||
/>
|
||||
{{/if}}
|
|
@ -13,7 +13,6 @@ import {
|
|||
getUnsubscribedAdminWizards,
|
||||
getWizard,
|
||||
} from "../helpers/admin-wizard";
|
||||
import { Promise } from "rsvp";
|
||||
|
||||
acceptance("Admin | Custom Fields Unsubscribed", function (needs) {
|
||||
needs.user();
|
||||
|
|
|
@ -1,16 +1,8 @@
|
|||
import { getOwner } from "@ember/application";
|
||||
import {
|
||||
click,
|
||||
fillIn,
|
||||
settled,
|
||||
triggerKeyEvent,
|
||||
visit,
|
||||
} from "@ember/test-helpers";
|
||||
import { click, fillIn, triggerKeyEvent, visit } from "@ember/test-helpers";
|
||||
import { test } from "qunit";
|
||||
import {
|
||||
acceptance,
|
||||
count,
|
||||
createFile,
|
||||
exists,
|
||||
query,
|
||||
visible,
|
||||
|
@ -19,8 +11,6 @@ import { allFieldsWizard } from "../helpers/wizard";
|
|||
import tagsJson from "../fixtures/tags";
|
||||
import usersJson from "../fixtures/users";
|
||||
|
||||
const wizardComposerEdtiorEventPrefix = "wizard-editor";
|
||||
|
||||
acceptance("Field | Fields", function (needs) {
|
||||
needs.pretender((server, helper) => {
|
||||
server.get("/w/wizard.json", () => helper.response(allFieldsWizard));
|
||||
|
|
Laden …
In neuem Issue referenzieren