0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-23 18:00:29 +01:00

Address deprecations

Dieser Commit ist enthalten in:
Angus McLeod 2024-11-22 16:45:50 +01:00
Ursprung 520dbc6d51
Commit 6d5e7e91ec
186 geänderte Dateien mit 682 neuen und 679 gelöschten Zeilen

Datei anzeigen

@ -1,19 +1,19 @@
{{#if showInputs}} {{#if this.showInputs}}
<td> <td>
{{wizard-subscription-selector {{wizard-subscription-selector
value=field.klass value=this.field.klass
feature="custom_field" feature="custom_field"
attribute="klass" attribute="klass"
onChange=(action (mut field.klass)) onChange=(action (mut this.field.klass))
options=(hash none="admin.wizard.custom_field.klass.select") options=(hash none="admin.wizard.custom_field.klass.select")
}} }}
</td> </td>
<td> <td>
{{wizard-subscription-selector {{wizard-subscription-selector
value=field.type value=this.field.type
feature="custom_field" feature="custom_field"
attribute="type" attribute="type"
onChange=(action (mut field.type)) onChange=(action (mut this.field.type))
options=(hash none="admin.wizard.custom_field.type.select") options=(hash none="admin.wizard.custom_field.type.select")
}} }}
</td> </td>
@ -25,48 +25,48 @@
</td> </td>
<td class="multi-select"> <td class="multi-select">
{{multi-select {{multi-select
value=field.serializers value=this.field.serializers
content=serializerContent content=this.serializerContent
onChange=(action (mut field.serializers)) onChange=(action (mut this.field.serializers))
options=(hash none="admin.wizard.custom_field.serializers.select") options=(hash none="admin.wizard.custom_field.serializers.select")
}} }}
</td> </td>
<td class="actions"> <td class="actions">
{{#if loading}} {{#if this.loading}}
{{loading-spinner size="small"}} {{loading-spinner size="small"}}
{{else}} {{else}}
{{#if saveIcon}} {{#if this.saveIcon}}
{{d-icon saveIcon}} {{d-icon this.saveIcon}}
{{/if}} {{/if}}
{{/if}} {{/if}}
{{d-button {{d-button
action=(action "destroy") action=(action "destroy")
icon="trash-alt" icon="trash-alt"
class="destroy" class="destroy"
disabled=destroyDisabled disabled=this.destroyDisabled
}} }}
{{d-button {{d-button
icon="save" icon="save"
action=(action "save") action=(action "save")
disabled=saveDisabled disabled=this.saveDisabled
class="save" class="save"
}} }}
{{d-button action=(action "close") icon="times" disabled=closeDisabled}} {{d-button action=(action "close") icon="times" disabled=this.closeDisabled}}
</td> </td>
{{else}} {{else}}
<td><label>{{field.klass}}</label></td> <td><label>{{this.field.klass}}</label></td>
<td><label>{{field.type}}</label></td> <td><label>{{this.field.type}}</label></td>
<td class="input"><label>{{field.name}}</label></td> <td class="input"><label>{{this.field.name}}</label></td>
<td class="multi-select"> <td class="multi-select">
{{#if isExternal}} {{#if this.isExternal}}
&mdash; &mdash;
{{else}} {{else}}
{{#each field.serializers as |serializer|}} {{#each this.field.serializers as |serializer|}}
<label>{{serializer}}</label> <label>{{serializer}}</label>
{{/each}} {{/each}}
{{/if}} {{/if}}
</td> </td>
{{#if isExternal}} {{#if this.isExternal}}
<td class="external"> <td class="external">
<label title={{i18n "admin.wizard.custom_field.external.title"}}> <label title={{i18n "admin.wizard.custom_field.external.title"}}>
{{i18n "admin.wizard.custom_field.external.label"}} {{i18n "admin.wizard.custom_field.external.label"}}

Datei anzeigen

@ -1,21 +1,21 @@
<div class={{this.fieldClass}}> <div class={{this.fieldClass}}>
<DEditor <DEditor
@tabindex={{field.tabindex}} @tabindex={{this.field.tabindex}}
@value={{composer.reply}} @value={{this.composer.reply}}
@placeholderOverride={{replyPlaceholder}} @placeholderOverride={{this.replyPlaceholder}}
@previewUpdated={{this.previewUpdated}} @previewUpdated={{this.previewUpdated}}
@markdownOptions={{markdownOptions}} @markdownOptions={{this.markdownOptions}}
@extraButtons={{this.extraButtons}} @extraButtons={{this.extraButtons}}
@importQuote={{this.importQuote}} @importQuote={{this.importQuote}}
@showUploadModal={{this.showUploadModal}} @showUploadModal={{this.showUploadModal}}
@togglePreview={{this.togglePreview}} @togglePreview={{this.togglePreview}}
@validation={{validation}} @validation={{this.validation}}
@loading={{composer.loading}} @loading={{this.composer.loading}}
@showLink={{showLink}} @showLink={{this.showLink}}
@wizardComposer={{true}} @wizardComposer={{true}}
@fieldId={{field.id}} @fieldId={{this.field.id}}
@disabled={{disableTextarea}} @disabled={{this.disableTextarea}}
@outletArgs={{hash composer=composer editorType="composer"}} @outletArgs={{hash composer=this.composer editorType="composer"}}
/> />
<input <input

Datei anzeigen

@ -0,0 +1,30 @@
{{#unless this.timeFirst}}
{{custom-wizard-date-input
date=this.date
relativeDate=this.relativeDate
onChange=(action "onChangeDate")
tabindex=this.dateTabindex
}}
{{/unless}}
{{#if this.showTime}}
{{custom-wizard-time-input
date=this.date
relativeDate=this.relativeDate
onChange=(action "onChangeTime")
tabindex=this.timeTabindex
}}
{{/if}}
{{#if this.timeFirst}}
{{custom-wizard-date-input
date=this.date
relativeDate=this.relativeDate
onChange=(action "onChangeDate")
tabindex=this.dateTabindex
}}
{{/if}}
{{#if this.clearable}}
{{d-button class="clear-date-time" icon="times" action=(action "onClear")}}
{{/if}}

Datei anzeigen

@ -1,23 +1,23 @@
<div class="d-editor-overlay hidden"></div> <div class="d-editor-overlay hidden"></div>
<div class="d-editor-container"> <div class="d-editor-container">
{{#if showPreview}} {{#if this.showPreview}}
<div class="d-editor-preview-wrapper {{if forcePreview 'force-preview'}}"> <div class="d-editor-preview-wrapper {{if this.forcePreview 'force-preview'}}">
<div class="d-editor-preview"> <div class="d-editor-preview">
{{html-safe preview}} {{html-safe this.preview}}
</div> </div>
</div> </div>
{{else}} {{else}}
<div class="d-editor-textarea-wrapper"> <div class="d-editor-textarea-wrapper">
<div class="d-editor-button-bar"> <div class="d-editor-button-bar">
{{#each toolbar.groups as |group|}} {{#each this.toolbar.groups as |group|}}
{{#each group.buttons as |b|}} {{#each group.buttons as |b|}}
{{#if b.popupMenu}} {{#if b.popupMenu}}
{{toolbar-popup-menu-options {{toolbar-popup-menu-options
onPopupMenuAction=onPopupMenuAction onPopupMenuAction=this.onPopupMenuAction
onExpand=(action b.action b) onExpand=(action b.action b)
class=b.className class=b.className
content=popupMenuOptions content=this.popupMenuOptions
options=(hash popupTitle=b.title icon=b.icon) options=(hash popupTitle=b.title icon=b.icon)
}} }}
{{else}} {{else}}
@ -42,7 +42,7 @@
{{/each}} {{/each}}
</div> </div>
{{conditional-loading-spinner condition=loading}} {{conditional-loading-spinner condition=this.loading}}
<Textarea <Textarea
tabindex={{this.tabindex}} tabindex={{this.tabindex}}
@value={{this.value}} @value={{this.value}}

Datei anzeigen

@ -0,0 +1,8 @@
{{custom-wizard-category-selector
categories=this.categories
class=this.fieldClass
whitelist=this.field.content
onChange=(action (mut this.categories))
tabindex=this.field.tabindex
options=(hash maximum=this.field.limit)
}}

Datei anzeigen

@ -1,5 +1,5 @@
<div class="wizard-composer-preview d-editor-preview-wrapper"> <div class="wizard-composer-preview d-editor-preview-wrapper">
<div class="d-editor-preview"> <div class="d-editor-preview">
{{html-safe field.preview_template}} {{html-safe this.field.preview_template}}
</div> </div>
</div> </div>

Datei anzeigen

@ -14,10 +14,10 @@
<DButton <DButton
@action={{this.togglePreview}} @action={{this.togglePreview}}
class="wizard-btn toggle-preview" class="wizard-btn toggle-preview"
@label={{togglePreviewLabel}} @label={{this.togglePreviewLabel}}
/> />
{{#if this.field.char_counter}} {{#if this.field.char_counter}}
{{wizard-char-counter this.field.value field.max_length}} {{wizard-char-counter this.field.value this.field.max_length}}
{{/if}} {{/if}}
</div> </div>

Datei anzeigen

@ -1,5 +1,5 @@
{{custom-wizard-date-time-input {{custom-wizard-date-time-input
date=dateTime date=this.dateTime
onChange=(action "onChange") onChange=(action "onChange")
tabindex=field.tabindex tabindex=this.field.tabindex
}} }}

Datei anzeigen

@ -0,0 +1,6 @@
{{custom-wizard-date-input
date=this.date
onChange=(action "onChange")
tabindex=this.field.tabindex
format=this.field.format
}}

Datei anzeigen

@ -0,0 +1,8 @@
{{combo-box
class=this.fieldClass
value=this.field.value
content=this.field.content
tabindex=this.field.tabindex
onChange=(action "onChangeValue")
options=(hash none="select_kit.default_header_text")
}}

Datei anzeigen

@ -0,0 +1,10 @@
{{custom-wizard-group-selector
groups=this.site.groups
class=this.fieldClass
field=this.field
whitelist=this.field.content
value=this.field.value
tabindex=this.field.tabindex
onChange=(action (mut this.field.value))
options=(hash none="select_kit.default_header_text")
}}

Datei anzeigen

@ -0,0 +1,8 @@
{{custom-wizard-tag-chooser
tags=this.field.value
class=this.fieldClass
tabindex=this.field.tabindex
tagGroups=this.field.tag_groups
everyTag=true
options=(hash maximum=this.field.limit allowAny=this.field.can_create_tag)
}}

Datei anzeigen

@ -1,5 +1,5 @@
{{custom-wizard-time-input {{custom-wizard-time-input
date=time date=this.time
onChange=(action "onChange") onChange=(action "onChange")
tabindex=field.tabindex tabindex=this.field.tabindex
}} }}

Datei anzeigen

@ -0,0 +1,6 @@
{{custom-wizard-topic-selector
topics=this.topics
category=this.field.category
onChange=(action "setValue")
options=(hash maximum=this.field.limit)
}}

Datei anzeigen

@ -0,0 +1,5 @@
{{custom-user-selector
usernames=this.field.value
placeholderKey=this.field.placeholder
tabindex=this.field.tabindex
}}

Datei anzeigen

@ -0,0 +1,38 @@
<label for={{this.field.id}} class="field-label">
{{html-safe this.field.translatedLabel}}
</label>
{{#if this.field.image}}
<div class="field-image"><img src={{this.field.image}} /></div>
{{/if}}
{{#if this.field.description}}
<div class="field-description">{{this.cookedDescription}}</div>
{{/if}}
{{#field-validators field=this.field as |validators|}}
{{#if this.inputComponentName}}
<div class="input-area">
{{component
this.inputComponentName
field=this.field
step=this.step
fieldClass=this.fieldClass
wizard=this.wizard
autocomplete=validators.autocomplete
}}
</div>
{{/if}}
{{/field-validators}}
{{#if this.field.char_counter}}
{{#if this.textType}}
{{wizard-char-counter this.field.value this.field.max_length}}
{{/if}}
{{/if}}
{{#if this.field.errorDescription}}
<div class="field-error-description">{{html-safe
this.field.errorDescription
}}</div>
{{/if}}

Datei anzeigen

@ -1,9 +1,9 @@
<div>{{text}}</div> <div>{{this.text}}</div>
<div class="no-access-gutter"> <div class="no-access-gutter">
<a class="return-to-site" {{action "skip"}} role="button"> <a class="return-to-site" {{action "skip"}} role="button">
{{i18n "wizard.return_to_site" siteName=siteName}} {{i18n "wizard.return_to_site" siteName=this.siteName}}
</a> </a>
{{#if showLoginButton}} {{#if this.showLoginButton}}
<DButton <DButton
class="btn-primary btn-small login-button" class="btn-primary btn-small login-button"
@action={{action "showLogin"}} @action={{action "showLogin"}}

Datei anzeigen

@ -0,0 +1,6 @@
<a href={{this.topic.url}} target="_blank" rel="noopener noreferrer">
<span class="title">{{html-safe this.topic.fancy_title}}</span>
<div class="blurb"><RelativeDate @date={{@topic.created_at}} />
-
{{html-safe this.topic.blurb}}</div>
</a>

Datei anzeigen

@ -1,6 +1,6 @@
{{#if showTopics}} {{#if this.showTopics}}
<ul> <ul>
{{#each topics as |topic|}} {{#each this.topics as |topic|}}
<li>{{custom-wizard-similar-topic topic=topic}}</li> <li>{{custom-wizard-similar-topic topic=topic}}</li>
{{/each}} {{/each}}
</ul> </ul>

Datei anzeigen

@ -1,21 +1,21 @@
<div class="wizard-step-contents"> <div class="wizard-step-contents">
{{#if step.title}} {{#if this.step.title}}
<h1 class="wizard-step-title">{{cookedTitle}}</h1> <h1 class="wizard-step-title">{{this.cookedTitle}}</h1>
{{/if}} {{/if}}
{{#if bannerImage}} {{#if this.bannerImage}}
<div class="wizard-step-banner"> <div class="wizard-step-banner">
<img src={{bannerImage}} /> <img src={{this.bannerImage}} />
</div> </div>
{{/if}} {{/if}}
{{#if step.description}} {{#if this.step.description}}
<div class="wizard-step-description">{{cookedDescription}}</div> <div class="wizard-step-description">{{this.cookedDescription}}</div>
{{/if}} {{/if}}
{{#custom-wizard-step-form step=step}} {{#custom-wizard-step-form step=this.step}}
{{#each step.fields as |field|}} {{#each this.step.fields as |field|}}
{{custom-wizard-field field=field step=step wizard=wizard}} {{custom-wizard-field field=field step=this.step wizard=this.wizard}}
{{/each}} {{/each}}
{{/custom-wizard-step-form}} {{/custom-wizard-step-form}}
</div> </div>
@ -24,57 +24,57 @@
<div class="wizard-progress"> <div class="wizard-progress">
<div class="white"></div> <div class="white"></div>
<div class="black" style={{barStyle}}></div> <div class="black" style={{this.barStyle}}></div>
<div class="screen"></div> <div class="screen"></div>
<span>{{i18n <span>{{i18n
"wizard.step" "wizard.step"
current=step.displayIndex current=this.step.displayIndex
total=wizard.totalSteps total=this.wizard.totalSteps
}}</span> }}</span>
</div> </div>
<div class="wizard-buttons"> <div class="wizard-buttons">
{{#if saving}} {{#if this.saving}}
{{loading-spinner size="small"}} {{loading-spinner size="small"}}
{{else}} {{else}}
{{#if showQuitButton}} {{#if this.showQuitButton}}
<a <a
href href
{{action "quit"}} {{action "quit"}}
class="action-link quit" class="action-link quit"
tabindex={{secondaryButtonIndex}} tabindex={{this.secondaryButtonIndex}}
>{{i18n "wizard.quit"}}</a> >{{i18n "wizard.quit"}}</a>
{{/if}} {{/if}}
{{#if showBackButton}} {{#if this.showBackButton}}
<a <a
href href
{{action "backStep"}} {{action "backStep"}}
class="action-link back" class="action-link back"
tabindex={{secondaryButtonIndex}} tabindex={{this.secondaryButtonIndex}}
>{{i18n "wizard.back"}}</a> >{{i18n "wizard.back"}}</a>
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if showNextButton}} {{#if this.showNextButton}}
<button <button
type="button" type="button"
class="wizard-btn next primary" class="wizard-btn next primary"
{{action "nextStep"}} {{action "nextStep"}}
disabled={{btnsDisabled}} disabled={{this.btnsDisabled}}
tabindex={{primaryButtonIndex}} tabindex={{this.primaryButtonIndex}}
> >
{{i18n "wizard.next"}} {{i18n "wizard.next"}}
{{d-icon "chevron-right"}} {{d-icon "chevron-right"}}
</button> </button>
{{/if}} {{/if}}
{{#if showDoneButton}} {{#if this.showDoneButton}}
<button <button
type="button" type="button"
class="wizard-btn done" class="wizard-btn done"
{{action "done"}} {{action "done"}}
disabled={{btnsDisabled}} disabled={{this.btnsDisabled}}
tabindex={{primaryButtonIndex}} tabindex={{this.primaryButtonIndex}}
> >
{{i18n "wizard.done_custom"}} {{i18n "wizard.done_custom"}}
</button> </button>

Datei anzeigen

@ -1,7 +1,7 @@
{{combo-box {{combo-box
value=time value=this.time
content=timeOptions content=this.timeOptions
tabindex=tabindex tabindex=this.tabindex
onChange=(action "onChangeTime") onChange=(action "onChangeTime")
options=(hash options=(hash
translatedNone="--:--" translatedNone="--:--"

Datei anzeigen

@ -1,8 +1,8 @@
{{#if field.validations}} {{#if this.field.validations}}
{{#each-in field.validations.above as |type validation|}} {{#each-in this.field.validations.above as |type validation|}}
{{component {{component
validation.component validation.component
field=field field=this.field
type=type type=type
validation=validation validation=validation
}} }}
@ -10,10 +10,10 @@
{{yield (hash perform=(action "perform") autocomplete="off")}} {{yield (hash perform=(action "perform") autocomplete="off")}}
{{#each-in field.validations.below as |type validation|}} {{#each-in this.field.validations.below as |type validation|}}
{{component {{component
validation.component validation.component
field=field field=this.field
type=type type=type
validation=validation validation=validation
}} }}

Datei anzeigen

@ -1,5 +1,5 @@
<DModal @closeModal={{@closeModal}} @title={{this.title}}> <DModal @closeModal={{@closeModal}} @title={{this.title}}>
{{#if loading}} {{#if this.loading}}
<LoadingSpinner size="large" /> <LoadingSpinner size="large" />
{{else}} {{else}}
<div class="edit-directory-columns-container"> <div class="edit-directory-columns-container">

Datei anzeigen

@ -0,0 +1,13 @@
<label class={{this.currentStateClass}}>
{{#if this.currentState}}
{{#if this.insufficientCharactersCategories}}
{{html-safe (i18n this.currentStateKey catLinks=this.catLinks)}}
{{else}}
{{i18n this.currentStateKey}}
{{/if}}
{{/if}}
</label>
{{#if this.showSimilarTopics}}
{{custom-wizard-similar-topics topics=this.similarTopics}}
{{/if}}

Datei anzeigen

@ -0,0 +1,5 @@
{{#if this.isValid}}
{{i18n this.validMessageKey}}
{{else}}
{{i18n this.invalidMessageKey}}
{{/if}}

Datei anzeigen

@ -1,8 +1,8 @@
{{#if showUndo}} {{#if this.showUndo}}
{{d-button {{d-button
action=(action "undoChanges") action=(action "undoChanges")
icon=undoIcon icon=this.undoIcon
label=undoKey label=this.undoKey
class="undo-changes" class="undo-changes"
}} }}
{{/if}} {{/if}}
@ -18,7 +18,7 @@
feature="action" feature="action"
attribute="type" attribute="type"
onChange=(action "changeType") onChange=(action "changeType")
wizard=wizard wizard=this.wizard
options=(hash none="admin.wizard.select_type") options=(hash none="admin.wizard.select_type")
}} }}
</div> </div>
@ -32,15 +32,15 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=this.action.run_after value=this.action.run_after
content=runAfterContent content=this.runAfterContent
onChange=(action (mut this.action.run_after)) onChange=(action (mut this.action.run_after))
}} }}
</div> </div>
</div> </div>
{{wizard-message key=messageKey url=messageUrl component="action"}} {{wizard-message key=this.messageKey url=this.messageUrl component="action"}}
{{#if basicTopicFields}} {{#if this.basicTopicFields}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.title"}}</label> <label>{{i18n "admin.wizard.action.title"}}</label>
@ -68,12 +68,12 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=this.action.post value=this.action.post
content=wizardFields content=this.wizardFields
nameProperty="label" nameProperty="label"
onChange=(action (mut this.action.post)) onChange=(action (mut this.action.post))
options=(hash options=(hash
none="admin.wizard.selector.placeholder.wizard_field" none="admin.wizard.selector.placeholder.wizard_field"
isDisabled=showPostBuilder isDisabled=this.showPostBuilder
) )
}} }}
@ -93,14 +93,14 @@
<div class="setting-value editor"> <div class="setting-value editor">
{{wizard-text-editor {{wizard-text-editor
value=this.action.post_template value=this.action.post_template
wizardFields=wizardFields wizardFields=this.wizardFields
}} }}
</div> </div>
</div> </div>
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if publicTopicFields}} {{#if this.publicTopicFields}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.create_topic.category"}}</label> <label>{{i18n "admin.wizard.action.create_topic.category"}}</label>
@ -163,7 +163,7 @@
</div> </div>
</div> </div>
{{#if hasEventField}} {{#if this.hasEventField}}
<div class="setting full"> <div class="setting full">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.create_topic.add_event"}}</label> <label>{{i18n "admin.wizard.action.create_topic.add_event"}}</label>
@ -180,7 +180,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if hasLocationField}} {{#if this.hasLocationField}}
<div class="setting full"> <div class="setting full">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.create_topic.add_location"}}</label> <label>{{i18n "admin.wizard.action.create_topic.add_location"}}</label>
@ -198,7 +198,7 @@
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if sendMessage}} {{#if this.sendMessage}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.send_message.recipient"}}</label> <label>{{i18n "admin.wizard.action.send_message.recipient"}}</label>
@ -224,7 +224,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if updateProfile}} {{#if this.updateProfile}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.update_profile.setting"}}</label> <label>{{i18n "admin.wizard.action.update_profile.setting"}}</label>
@ -247,7 +247,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if sendToApi}} {{#if this.sendToApi}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.send_to_api.api"}}</label> <label>{{i18n "admin.wizard.action.send_to_api.api"}}</label>
@ -256,7 +256,7 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=this.action.api value=this.action.api
content=availableApis content=this.availableApis
onChange=(action (mut this.action.api)) onChange=(action (mut this.action.api))
options=(hash options=(hash
isDisabled=this.action.custom_title_enabled isDisabled=this.action.custom_title_enabled
@ -274,10 +274,10 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=this.action.api_endpoint value=this.action.api_endpoint
content=availableEndpoints content=this.availableEndpoints
onChange=(action (mut this.action.api_endpoint)) onChange=(action (mut this.action.api_endpoint))
options=(hash options=(hash
isDisabled=apiEmpty isDisabled=this.apiEmpty
none="admin.wizard.action.send_to_api.select_an_endpoint" none="admin.wizard.action.send_to_api.select_an_endpoint"
) )
}} }}
@ -294,14 +294,14 @@
value=this.action.api_body value=this.action.api_body
previewEnabled=false previewEnabled=false
barEnabled=false barEnabled=false
wizardFields=wizardFields wizardFields=this.wizardFields
placeholder="admin.wizard.action.send_to_api.body_placeholder" placeholder="admin.wizard.action.send_to_api.body_placeholder"
}} }}
</div> </div>
</div> </div>
{{/if}} {{/if}}
{{#if addToGroup}} {{#if this.addToGroup}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.group"}}</label> <label>{{i18n "admin.wizard.group"}}</label>
@ -326,7 +326,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if routeTo}} {{#if this.routeTo}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.route_to.url"}}</label> <label>{{i18n "admin.wizard.action.route_to.url"}}</label>
@ -350,7 +350,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if watchCategories}} {{#if this.watchCategories}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_categories.categories"}}</label> <label>{{i18n "admin.wizard.action.watch_categories.categories"}}</label>
@ -404,7 +404,7 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=this.action.notification_level value=this.action.notification_level
content=availableNotificationLevels content=this.availableNotificationLevels
onChange=(action (mut this.action.notification_level)) onChange=(action (mut this.action.notification_level))
options=(hash options=(hash
isDisabled=this.action.custom_title_enabled isDisabled=this.action.custom_title_enabled
@ -445,7 +445,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if watchTags}} {{#if this.watchTags}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.watch_tags.tags"}}</label> <label>{{i18n "admin.wizard.action.watch_tags.tags"}}</label>
@ -478,7 +478,7 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=this.action.notification_level value=this.action.notification_level
content=availableNotificationLevels content=this.availableNotificationLevels
onChange=(action (mut this.action.notification_level)) onChange=(action (mut this.action.notification_level))
options=(hash options=(hash
isDisabled=this.action.custom_title_enabled isDisabled=this.action.custom_title_enabled
@ -519,7 +519,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if createGroup}} {{#if this.createGroup}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.create_group.name"}}</label> <label>{{i18n "admin.wizard.action.create_group.name"}}</label>
@ -743,7 +743,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if createCategory}} {{#if this.createCategory}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.create_category.name"}}</label> <label>{{i18n "admin.wizard.action.create_category.name"}}</label>
@ -871,7 +871,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if hasCustomFields}} {{#if this.hasCustomFields}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.custom_fields.label"}}</label> <label>{{i18n "admin.wizard.action.custom_fields.label"}}</label>
@ -889,14 +889,14 @@
wizardActionSelection="value" wizardActionSelection="value"
userFieldSelection="value" userFieldSelection="value"
keyPlaceholder="admin.wizard.action.custom_fields.key" keyPlaceholder="admin.wizard.action.custom_fields.key"
context=customFieldsContext context=this.customFieldsContext
) )
}} }}
</div> </div>
</div> </div>
{{/if}} {{/if}}
{{#if sendMessage}} {{#if this.sendMessage}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.required"}}</label> <label>{{i18n "admin.wizard.required"}}</label>
@ -919,7 +919,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if showPostAdvanced}} {{#if this.showPostAdvanced}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.poster.label"}}</label> <label>{{i18n "admin.wizard.action.poster.label"}}</label>
@ -994,7 +994,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if routeTo}} {{#if this.routeTo}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.action.route_to.code"}}</label> <label>{{i18n "admin.wizard.action.route_to.code"}}</label>

Datei anzeigen

@ -1,8 +1,8 @@
{{#if showUndo}} {{#if this.showUndo}}
{{d-button {{d-button
action=(action "undoChanges") action=(action "undoChanges")
icon=undoIcon icon=this.undoIcon
label=undoKey label=this.undoKey
class="undo-changes" class="undo-changes"
}} }}
{{/if}} {{/if}}
@ -42,12 +42,12 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{uppy-image-uploader {{uppy-image-uploader
imageUrl=field.image imageUrl=this.field.image
onUploadDone=(action "imageUploadDone") onUploadDone=(action "imageUploadDone")
onUploadDeleted=(action "imageUploadDeleted") onUploadDeleted=(action "imageUploadDeleted")
type="wizard-field-image" type="wizard-field-image"
class="no-repeat contain-image" class="no-repeat contain-image"
id=(concat "wizard-field-" field.id "-image-upload") id=(concat "wizard-field-" this.field.id "-image-upload")
}} }}
</div> </div>
</div> </div>
@ -59,19 +59,19 @@
<div class="setting-value"> <div class="setting-value">
{{wizard-subscription-selector {{wizard-subscription-selector
value=field.type value=this.field.type
feature="field" feature="field"
attribute="type" attribute="type"
onChange=(action "changeType") onChange=(action "changeType")
wizard=wizard wizard=this.wizard
options=(hash none="admin.wizard.select_type") options=(hash none="admin.wizard.select_type")
}} }}
</div> </div>
</div> </div>
{{wizard-message key=messageKey url=messageUrl component="field"}} {{wizard-message key=this.messageKey url=this.messageUrl component="field"}}
{{#if isTextType}} {{#if this.isTextType}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.min_length"}}</label> <label>{{i18n "admin.wizard.field.min_length"}}</label>
@ -128,7 +128,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if isComposerPreview}} {{#if this.isComposerPreview}}
<div class="setting full"> <div class="setting full">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.preview_template"}}</label> <label>{{i18n "admin.wizard.field.preview_template"}}</label>
@ -144,7 +144,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if isUpload}} {{#if this.isUpload}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.file_types"}}</label> <label>{{i18n "admin.wizard.field.file_types"}}</label>
@ -156,7 +156,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if showLimit}} {{#if this.showLimit}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.limit"}}</label> <label>{{i18n "admin.wizard.field.limit"}}</label>
@ -168,7 +168,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if isDateTime}} {{#if this.isDateTime}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{html-safe <label>{{html-safe
@ -185,7 +185,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if showPrefill}} {{#if this.showPrefill}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.prefill"}}</label> <label>{{i18n "admin.wizard.field.prefill"}}</label>
@ -193,16 +193,16 @@
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper {{wizard-mapper
inputs=field.prefill inputs=this.field.prefill
property="prefill" property="prefill"
onUpdate=(action "mappedFieldUpdated") onUpdate=(action "mappedFieldUpdated")
options=prefillOptions options=this.prefillOptions
}} }}
</div> </div>
</div> </div>
{{/if}} {{/if}}
{{#if showContent}} {{#if this.showContent}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.content"}}</label> <label>{{i18n "admin.wizard.field.content"}}</label>
@ -210,16 +210,16 @@
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper {{wizard-mapper
inputs=field.content inputs=this.field.content
property="content" property="content"
onUpdate=(action "mappedFieldUpdated") onUpdate=(action "mappedFieldUpdated")
options=contentOptions options=this.contentOptions
}} }}
</div> </div>
</div> </div>
{{/if}} {{/if}}
{{#if isTag}} {{#if this.isTag}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.tag_groups"}}</label> <label>{{i18n "admin.wizard.field.tag_groups"}}</label>
@ -227,9 +227,9 @@
<div class="setting-value"> <div class="setting-value">
{{tag-group-chooser {{tag-group-chooser
id=(concat field.id "-tag-groups") id=(concat this.field.id "-tag-groups")
tagGroups=field.tag_groups tagGroups=this.field.tag_groups
onChange=(action (mut field.tag_groups)) onChange=(action (mut this.field.tag_groups))
}} }}
</div> </div>
</div> </div>
@ -245,7 +245,7 @@
</div> </div>
{{/if}} {{/if}}
{{#if isTopic}} {{#if this.isTopic}}
<div class="setting full field-mapper-setting"> <div class="setting full field-mapper-setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.category.label"}}</label> <label>{{i18n "admin.wizard.field.category.label"}}</label>
@ -271,7 +271,7 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper inputs=field.condition options=fieldConditionOptions}} {{wizard-mapper inputs=this.field.condition options=this.fieldConditionOptions}}
</div> </div>
</div> </div>
@ -281,11 +281,11 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper inputs=field.index options=fieldIndexOptions}} {{wizard-mapper inputs=this.field.index options=this.fieldIndexOptions}}
</div> </div>
</div> </div>
{{#if isCategory}} {{#if this.isCategory}}
<div class="setting"> <div class="setting">
<div class="setting-label"> <div class="setting-label">
<label>{{i18n "admin.wizard.field.property"}}</label> <label>{{i18n "admin.wizard.field.property"}}</label>
@ -293,16 +293,16 @@
<div class="setting-value"> <div class="setting-value">
{{combo-box {{combo-box
value=field.property value=this.field.property
content=categoryPropertyTypes content=this.categoryPropertyTypes
onChange=(action (mut field.property)) onChange=(action (mut this.field.property))
options=(hash none="admin.wizard.selector.placeholder.property") options=(hash none="admin.wizard.selector.placeholder.property")
}} }}
</div> </div>
</div> </div>
{{/if}} {{/if}}
{{#if validations}} {{#if this.validations}}
{{wizard-realtime-validations field=field validations=validations}} {{wizard-realtime-validations field=this.field validations=this.validations}}
{{/if}} {{/if}}
{{/wizard-subscription-container}} {{/wizard-subscription-container}}

Datei anzeigen

@ -13,12 +13,12 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{uppy-image-uploader {{uppy-image-uploader
imageUrl=step.banner imageUrl=this.step.banner
onUploadDone=(action "bannerUploadDone") onUploadDone=(action "bannerUploadDone")
onUploadDeleted=(action "bannerUploadDeleted") onUploadDeleted=(action "bannerUploadDeleted")
type="wizard-step-banner" type="wizard-step-banner"
class="no-repeat contain-image" class="no-repeat contain-image"
id=(concat "wizard-step-" step.id "-banner-upload") id=(concat "wizard-step-" this.step.id "-banner-upload")
}} }}
</div> </div>
</div> </div>
@ -28,7 +28,7 @@
<label>{{i18n "admin.wizard.step.description"}}</label> <label>{{i18n "admin.wizard.step.description"}}</label>
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{wizard-text-editor value=step.raw_description}} {{wizard-text-editor value=this.step.raw_description}}
</div> </div>
</div> </div>
@ -39,7 +39,7 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper inputs=step.condition options=stepConditionOptions}} {{wizard-mapper inputs=this.step.condition options=this.stepConditionOptions}}
</div> </div>
</div> </div>
@ -59,7 +59,7 @@
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper {{wizard-mapper
inputs=step.required_data inputs=this.step.required_data
options=(hash options=(hash
inputTypes="validation" inputTypes="validation"
inputConnector="and" inputConnector="and"
@ -69,7 +69,7 @@
context="step" context="step"
) )
}} }}
{{#if step.required_data}} {{#if this.step.required_data}}
<div class="required-data-message"> <div class="required-data-message">
<div class="label"> <div class="label">
{{i18n "admin.wizard.step.required_data.not_permitted_message"}} {{i18n "admin.wizard.step.required_data.not_permitted_message"}}
@ -86,7 +86,7 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{wizard-mapper {{wizard-mapper
inputs=step.permitted_params inputs=this.step.permitted_params
options=(hash options=(hash
pairConnector="set" pairConnector="set"
inputTypes="association" inputTypes="association"
@ -101,20 +101,20 @@
{{wizard-links {{wizard-links
itemType="field" itemType="field"
current=currentField current=this.currentField
items=step.fields items=this.step.fields
parentId=step.id parentId=this.step.id
}} }}
{{#each step.fields as |field|}} {{#each this.step.fields as |field|}}
{{wizard-custom-field {{wizard-custom-field
field=field field=field
step=step step=this.step
wizard=wizard wizard=this.wizard
currentFieldId=currentField.id currentFieldId=this.currentField.id
fieldTypes=fieldTypes fieldTypes=this.fieldTypes
removeField="removeField" removeField="removeField"
wizardFields=wizardFields wizardFields=this.wizardFields
subscribed=subscribed subscribed=this.subscribed
}} }}
{{/each}} {{/each}}

Datei anzeigen

@ -1,8 +1,8 @@
<div class="wizard-header medium">{{html-safe (i18n header)}}</div> <div class="wizard-header medium">{{html-safe (i18n this.header)}}</div>
<div class="link-list"> <div class="link-list">
{{#if anyLinks}} {{#if this.anyLinks}}
{{#each links as |link|}} {{#each this.links as |link|}}
<div data-id={{link.id}}> <div data-id={{link.id}}>
{{d-button {{d-button
action=(action "change") action=(action "change")

Datei anzeigen

@ -1,13 +1,13 @@
{{#if hasMultiple}} {{#if this.hasMultiple}}
{{combo-box {{combo-box
value=connector value=this.connector
content=connectors content=this.connectors
onChange=(action "changeConnector") onChange=(action "changeConnector")
}} }}
{{else}} {{else}}
{{#if connector}} {{#if this.connector}}
<span class="connector-single"> <span class="connector-single">
{{connectorLabel}} {{this.connectorLabel}}
</span> </span>
{{/if}} {{/if}}
{{/if}} {{/if}}

Datei anzeigen

@ -8,7 +8,7 @@
onUpdate=this.onUpdate onUpdate=this.onUpdate
}} }}
{{#if hasPairs}} {{#if this.hasPairs}}
<div class="mapper-pairs mapper-block"> <div class="mapper-pairs mapper-block">
{{#each this.input.pairs as |pair|}} {{#each this.input.pairs as |pair|}}
{{wizard-mapper-pair {{wizard-mapper-pair
@ -21,7 +21,7 @@
}} }}
{{/each}} {{/each}}
{{#if canAddPair}} {{#if this.canAddPair}}
<a role="button" {{action "addPair"}} class="add-pair"> <a role="button" {{action "addPair"}} class="add-pair">
{{d-icon "plus"}} {{d-icon "plus"}}
</a> </a>
@ -29,8 +29,8 @@
</div> </div>
{{/if}} {{/if}}
{{#if hasOutput}} {{#if this.hasOutput}}
{{#if hasPairs}} {{#if this.hasPairs}}
{{wizard-mapper-connector {{wizard-mapper-connector
connector=this.input.output_connector connector=this.input.output_connector
connectors=this.connectors connectors=this.connectors
@ -53,6 +53,6 @@
</div> </div>
{{/if}} {{/if}}
<a role="button" class="remove-input" {{action remove this.input}}> <a role="button" class="remove-input" {{action this.remove this.input}}>
{{d-icon "times"}} {{d-icon "times"}}
</a> </a>

Datei anzeigen

@ -0,0 +1,41 @@
<div class="key mapper-block">
{{wizard-mapper-selector
selectorType="key"
inputType=this.inputType
value=this.pair.key
activeType=this.pair.key_type
options=this.options
onUpdate=this.onUpdate
}}
</div>
{{wizard-mapper-connector
connector=this.pair.connector
connectors=this.connectors
connectorType="pair"
inputType=this.inputType
options=this.options
onUpdate=this.onUpdate
}}
<div class="value mapper-block">
{{wizard-mapper-selector
selectorType="value"
inputType=this.inputType
value=this.pair.value
activeType=this.pair.value_type
options=this.options
onUpdate=this.onUpdate
connector=this.pair.connector
}}
</div>
{{#if this.showJoin}}
<span class="join-pair">&</span>
{{/if}}
{{#if this.showRemove}}
<a role="button" {{action this.removePair this.pair}} class="remove-pair">{{d-icon
"times"
}}</a>
{{/if}}

Datei anzeigen

@ -0,0 +1 @@
{{this.item.label}}

Datei anzeigen

@ -1,14 +1,14 @@
<div class="type-selector"> <div class="type-selector">
{{#if hasTypes}} {{#if this.hasTypes}}
<a role="button" {{action "toggleTypes"}} class="active"> <a role="button" {{action "toggleTypes"}} class="active">
{{activeTypeLabel}} {{this.activeTypeLabel}}
</a> </a>
{{#if showTypes}} {{#if this.showTypes}}
<div class="selector-types"> <div class="selector-types">
{{#each selectorTypes as |item|}} {{#each this.selectorTypes as |item|}}
{{wizard-mapper-selector-type {{wizard-mapper-selector-type
activeType=activeType activeType=this.activeType
item=item item=item
toggle=(action "toggleType") toggle=(action "toggleType")
}} }}
@ -16,62 +16,62 @@
</div> </div>
{{/if}} {{/if}}
{{else}} {{else}}
<span>{{activeTypeLabel}}</span> <span>{{this.activeTypeLabel}}</span>
{{/if}} {{/if}}
</div> </div>
<div class="input"> <div class="input">
{{#if showText}} {{#if this.showText}}
<Input <Input
@type="text" @type="text"
@value={{this.value}} @value={{this.value}}
placeholder={{i18n placeholderKey}} placeholder={{i18n this.placeholderKey}}
{{on "change" (action "changeInputValue")}} {{on "change" (action "changeInputValue")}}
/> />
{{/if}} {{/if}}
{{#if showComboBox}} {{#if this.showComboBox}}
{{combo-box {{combo-box
value=value value=this.value
content=comboBoxContent content=this.comboBoxContent
onChange=(action "changeValue") onChange=(action "changeValue")
options=(hash none=placeholderKey allowAny=comboBoxAllowAny) options=(hash none=this.placeholderKey allowAny=this.comboBoxAllowAny)
}} }}
{{/if}} {{/if}}
{{#if showMultiSelect}} {{#if this.showMultiSelect}}
{{multi-select {{multi-select
content=multiSelectContent content=this.multiSelectContent
value=value value=this.value
onChange=(action "changeValue") onChange=(action "changeValue")
options=multiSelectOptions options=this.multiSelectOptions
}} }}
{{/if}} {{/if}}
{{#if showList}} {{#if this.showList}}
{{wizard-value-list {{wizard-value-list
values=value values=this.value
addKey=placeholderKey addKey=this.placeholderKey
onChange=(action "changeValue") onChange=(action "changeValue")
}} }}
{{/if}} {{/if}}
{{#if showTag}} {{#if this.showTag}}
{{tag-chooser {{tag-chooser
tags=value tags=this.value
onChange=(action "changeValue") onChange=(action "changeValue")
everyTag=true everyTag=true
options=(hash none=placeholderKey filterable=true) options=(hash none=this.placeholderKey filterable=true)
}} }}
{{/if}} {{/if}}
{{#if showUser}} {{#if this.showUser}}
{{wizard-user-chooser {{wizard-user-chooser
placeholderKey=placeholderKey placeholderKey=this.placeholderKey
value=value value=this.value
autocomplete="discourse" autocomplete="discourse"
onChange=(action "changeUserValue") onChange=(action "changeUserValue")
options=userOptions options=this.userOptions
}} }}
{{/if}} {{/if}}
</div> </div>

Datei anzeigen

@ -1,4 +1,4 @@
{{#each inputs as |input|}} {{#each this.inputs as |input|}}
{{#if input.connector}} {{#if input.connector}}
{{wizard-mapper-connector {{wizard-mapper-connector
connector=input.connector connector=input.connector
@ -9,13 +9,13 @@
{{wizard-mapper-input {{wizard-mapper-input
input=input input=input
options=inputOptions options=this.inputOptions
remove=(action "remove") remove=(action "remove")
onUpdate=(action "inputUpdated") onUpdate=(action "inputUpdated")
}} }}
{{/each}} {{/each}}
{{#if canAdd}} {{#if this.canAdd}}
<span class="add-mapper-input"> <span class="add-mapper-input">
{{d-button action=(action "add") label="admin.wizard.add" icon="plus"}} {{d-button action=(action "add") label="admin.wizard.add" icon="plus"}}
</span> </span>

Datei anzeigen

@ -1,11 +1,11 @@
<div class="message-block primary"> <div class="message-block primary">
{{#if showIcon}} {{#if this.showIcon}}
{{d-icon icon}} {{d-icon this.icon}}
{{/if}} {{/if}}
<span class="message-content">{{html-safe message}}</span> <span class="message-content">{{html-safe this.message}}</span>
{{#if hasItems}} {{#if this.hasItems}}
<ul> <ul>
{{#each items as |item|}} {{#each this.items as |item|}}
<li> <li>
<span>{{d-icon item.icon}}</span> <span>{{d-icon item.icon}}</span>
<span>{{html-safe item.html}}</span> <span>{{html-safe item.html}}</span>
@ -15,12 +15,12 @@
{{/if}} {{/if}}
</div> </div>
{{#if showDocumentation}} {{#if this.showDocumentation}}
<div class="message-block"> <div class="message-block">
{{d-icon "question-circle"}} {{d-icon "question-circle"}}
<a href={{url}} target="_blank" rel="noopener noreferrer"> <a href={{this.url}} target="_blank" rel="noopener noreferrer">
{{documentation}} {{this.documentation}}
</a> </a>
</div> </div>
{{/if}} {{/if}}

Datei anzeigen

@ -3,7 +3,7 @@
</div> </div>
<div class="setting-value full"> <div class="setting-value full">
<ul> <ul>
{{#each-in field.validations as |type props|}} {{#each-in this.field.validations as |type props|}}
<li> <li>
<span class="setting-title"> <span class="setting-title">
<h4>{{i18n (concat "admin.wizard.field.validations." type)}}</h4> <h4>{{i18n (concat "admin.wizard.field.validations." type)}}</h4>
@ -42,7 +42,7 @@
/> />
{{combo-box {{combo-box
value=(readonly props.time_unit) value=(readonly props.time_unit)
content=timeUnits content=this.timeUnits
class="time-unit-selector" class="time-unit-selector"
onChange=(action (mut props.time_unit)) onChange=(action (mut props.time_unit))
}} }}
@ -54,13 +54,13 @@
</div> </div>
<div class="setting-value"> <div class="setting-value">
{{radio-button {{radio-button
name=(concat type field.id) name=(concat type this.field.id)
value="above" value="above"
selection=props.position selection=props.position
}} }}
<span>{{i18n "admin.wizard.field.validations.above"}}</span> <span>{{i18n "admin.wizard.field.validations.above"}}</span>
{{radio-button {{radio-button
name=(concat type field.id) name=(concat type this.field.id)
value="below" value="below"
selection=props.position selection=props.position
}} }}

Datei anzeigen

@ -5,9 +5,9 @@
<div class="subscription-header"> <div class="subscription-header">
<h4>{{i18n "admin.wizard.subscription.title"}}</h4> <h4>{{i18n "admin.wizard.subscription.title"}}</h4>
<a href={{subscriptionLink}} title={{i18n subscribedTitle}}> <a href={{this.subscriptionLink}} title={{i18n this.subscribedTitle}}>
{{d-icon subscribedIcon}} {{d-icon this.subscribedIcon}}
{{i18n subscribedLabel}} {{i18n this.subscribedLabel}}
</a> </a>
</div> </div>

Datei anzeigen

@ -0,0 +1,16 @@
<div class="select-kit-header-wrapper">
{{component
this.selectKit.options.selectedNameComponent
tabindex=this.tabindex
item=this.selectedContent
selectKit=this.selectKit
shouldDisplayClearableButton=this.shouldDisplayClearableButton
}}
{{#if this.subscriptionRequired}}
<span class="subscription-label">{{i18n this.selectorLabel}}</span>
{{/if}}
{{d-icon this.caretIcon class="caret-icon"}}
</div>

Datei anzeigen

@ -0,0 +1,15 @@
{{#if this.icons}}
<div class="icons">
<span class="selection-indicator"></span>
{{#each this.icons as |icon|}}
{{d-icon icon translatedtitle=(dasherize this.title)}}
{{/each}}
</div>
{{/if}}
<div class="texts">
<span class="name">{{html-safe this.label}}</span>
{{#if this.item.subscriptionRequired}}
<span class="subscription-label">{{i18n this.item.selectorLabel}}</span>
{{/if}}
</div>

Datei anzeigen

@ -1,11 +1,11 @@
<div class="supplier-authorize"> <div class="supplier-authorize">
<WizardSubscriptionBadge /> <WizardSubscriptionBadge />
{{#if authorized}} {{#if this.authorized}}
{{conditional-loading-spinner size="small" condition=unauthorizing}} <ConditionalLoadingSpinner @condition={{this.unauthorizing}} @size="small" />
<DButton <DButton
class="deauthorize" class="deauthorize"
@title="admin.wizard.subscription.deauthorize.title" @title="admin.wizard.subscription.deauthorize.title"
@disabled={{unauthorizing}} @disabled={{this.unauthorizing}}
@action={{this.deauthorize}} @action={{this.deauthorize}}
> >
{{i18n "admin.wizard.subscription.deauthorize.label"}} {{i18n "admin.wizard.subscription.deauthorize.label"}}

Datei anzeigen

@ -1,132 +1,132 @@
{{#if hasValue}} {{#if this.hasValue}}
{{#if isText}} {{#if this.isText}}
{{value.value}} {{this.value.value}}
{{/if}} {{/if}}
{{#if isLongtext}} {{#if this.isLongtext}}
<div class="wizard-table-long-text"> <div class="wizard-table-long-text">
<p class="wizard-table-long-text-content {{textState}}"> <p class="wizard-table-long-text-content {{this.textState}}">
{{value.value}} {{this.value.value}}
</p> </p>
<a href {{action "expandText"}}> <a href {{action "expandText"}}>
{{toggleText}} {{this.toggleText}}
</a> </a>
</div> </div>
{{/if}} {{/if}}
{{#if isComposer}} {{#if this.isComposer}}
<div class="wizard-table-long-text"> <div class="wizard-table-long-text">
<p <p
class="wizard-table-composer-text wizard-table-long-text-content class="wizard-table-composer-text wizard-table-long-text-content
{{textState}}" {{this.textState}}"
> >
{{value.value}} {{this.value.value}}
</p> </p>
<a href {{action "expandText"}}> <a href {{action "expandText"}}>
{{toggleText}} {{this.toggleText}}
</a> </a>
</div> </div>
{{/if}} {{/if}}
{{#if isComposerPreview}} {{#if this.isComposerPreview}}
{{d-icon "comment-alt"}} {{d-icon "comment-alt"}}
<span class="wizard-table-composer-text"> <span class="wizard-table-composer-text">
{{i18n "admin.wizard.submissions.composer_preview"}}: {{i18n "admin.wizard.submissions.composer_preview"}}:
{{value.value}} {{this.value.value}}
</span> </span>
{{/if}} {{/if}}
{{#if isTextOnly}} {{#if this.isTextOnly}}
{{value.value}} {{this.value.value}}
{{/if}} {{/if}}
{{#if isDate}} {{#if this.isDate}}
<span class="wizard-table-icon-item"> <span class="wizard-table-icon-item">
{{d-icon "calendar"}}{{value.value}} {{d-icon "calendar"}}{{this.value.value}}
</span> </span>
{{/if}} {{/if}}
{{#if isTime}} {{#if this.isTime}}
<span class="wizard-table-icon-item"> <span class="wizard-table-icon-item">
{{d-icon "clock"}}{{value.value}} {{d-icon "clock"}}{{this.value.value}}
</span> </span>
{{/if}} {{/if}}
{{#if isDateTime}} {{#if this.isDateTime}}
<span class="wizard-table-icon-item" title={{value.value}}> <span class="wizard-table-icon-item" title={{this.value.value}}>
{{d-icon "calendar"}}{{format-date value.value format="medium"}} {{d-icon "calendar"}}{{format-date this.value.value format="medium"}}
</span> </span>
{{/if}} {{/if}}
{{#if isNumber}} {{#if this.isNumber}}
{{value.value}} {{this.value.value}}
{{/if}} {{/if}}
{{#if isCheckbox}} {{#if this.isCheckbox}}
{{#if checkboxValue}} {{#if this.checkboxValue}}
<span class="wizard-table-icon-item checkbox-true"> <span class="wizard-table-icon-item checkbox-true">
{{d-icon "check"}}{{value.value}} {{d-icon "check"}}{{this.value.value}}
</span> </span>
{{else}} {{else}}
<span class="wizard-table-icon-item checkbox-false"> <span class="wizard-table-icon-item checkbox-false">
{{d-icon "times"}}{{value.value}} {{d-icon "times"}}{{this.value.value}}
</span> </span>
{{/if}} {{/if}}
{{/if}} {{/if}}
{{#if isUrl}} {{#if this.isUrl}}
<span class="wizard-table-icon-item url"> <span class="wizard-table-icon-item url">
{{d-icon "link"}} {{d-icon "link"}}
<a target="_blank" rel="noopener noreferrer" href={{value.value}}> <a target="_blank" rel="noopener noreferrer" href={{this.value.value}}>
{{value.value}} {{this.value.value}}
</a> </a>
</span> </span>
{{/if}} {{/if}}
{{#if isUpload}} {{#if this.isUpload}}
<a <a
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
class="attachment" class="attachment"
href={{file.url}} href={{this.file.url}}
download download
> >
{{file.original_filename}} {{this.file.original_filename}}
</a> </a>
{{/if}} {{/if}}
{{#if isDropdown}} {{#if this.isDropdown}}
<span class="wizard-table-icon-item"> <span class="wizard-table-icon-item">
{{d-icon "check-square"}} {{d-icon "check-square"}}
{{value.value}} {{this.value.value}}
</span> </span>
{{/if}} {{/if}}
{{#if isTag}} {{#if this.isTag}}
{{#each value.value as |tag|}} {{#each this.value.value as |tag|}}
{{discourse-tag tag}} {{discourse-tag tag}}
{{/each}} {{/each}}
{{/if}} {{/if}}
{{#if isCategory}} {{#if this.isCategory}}
<strong> <strong>
{{i18n "admin.wizard.submissions.category_id"}}: {{i18n "admin.wizard.submissions.category_id"}}:
</strong> </strong>
<a <a
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
href={{categoryUrl}} href={{this.categoryUrl}}
title={{value.value}} title={{this.value.value}}
> >
{{value.value}} {{this.value.value}}
</a> </a>
{{/if}} {{/if}}
{{#if isTopic}} {{#if this.isTopic}}
<strong> <strong>
{{i18n "admin.wizard.submissions.topic_id"}}: {{i18n "admin.wizard.submissions.topic_id"}}:
</strong> </strong>
{{#each value.value as |topic|}} {{#each this.value.value as |topic|}}
<a <a
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
@ -138,15 +138,15 @@
{{/each}} {{/each}}
{{/if}} {{/if}}
{{#if isGroup}} {{#if this.isGroup}}
<strong> <strong>
{{i18n "admin.wizard.submissions.group_id"}}: {{i18n "admin.wizard.submissions.group_id"}}:
</strong> </strong>
{{value.value}} {{this.value.value}}
{{/if}} {{/if}}
{{#if isUserSelector}} {{#if this.isUserSelector}}
{{#each submittedUsers as |user|}} {{#each this.submittedUsers as |user|}}
{{d-icon "user"}} {{d-icon "user"}}
<a <a
target="_blank" target="_blank"
@ -159,26 +159,26 @@
{{/each}} {{/each}}
{{/if}} {{/if}}
{{#if isUser}} {{#if this.isUser}}
<LinkTo @route="user" @model={{value.username}}> <LinkTo @route="user" @model={{this.value.username}}>
{{avatar value imageSize="tiny"}} {{avatar this.value imageSize="tiny"}}
</LinkTo> </LinkTo>
{{/if}} {{/if}}
{{#if showUsername}} {{#if this.showUsername}}
<a <a
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
href={{userProfileUrl}} href={{this.userProfileUrl}}
title={{username}} title={{this.username}}
> >
{{username}} {{this.username}}
</a> </a>
{{/if}} {{/if}}
{{#if isSubmittedAt}} {{#if this.isSubmittedAt}}
<span class="date" title={{value}}> <span class="date" title={{this.value}}>
{{raw-date value}} {{raw-date this.value}}
</span> </span>
{{/if}} {{/if}}
{{else}} {{else}}

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden Mehr anzeigen