lint
This commit is contained in:
parent
2be60b8c71
commit
4ccb326ece
|
@ -9,7 +9,8 @@
|
||||||
<p
|
<p
|
||||||
class:noPadding
|
class:noPadding
|
||||||
class="spectrum-Body spectrum-Body--size{size}"
|
class="spectrum-Body spectrum-Body--size{size}"
|
||||||
class:spectrum-Body--serif={serif}>
|
class:spectrum-Body--serif={serif}
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -74,9 +74,9 @@
|
||||||
on:change={e => (block.inputs[key] = e.detail)}
|
on:change={e => (block.inputs[key] = e.detail)}
|
||||||
{bindings}
|
{bindings}
|
||||||
/>
|
/>
|
||||||
{:else if value.customType === 'query'}
|
{:else if value.customType === "query"}
|
||||||
<QuerySelector bind:value={block.inputs[key]} />
|
<QuerySelector bind:value={block.inputs[key]} />
|
||||||
{:else if value.customType === 'queryParams'}
|
{:else if value.customType === "queryParams"}
|
||||||
<QueryParamSelector bind:value={block.inputs[key]} {bindings} />
|
<QueryParamSelector bind:value={block.inputs[key]} {bindings} />
|
||||||
{:else if value.customType === "table"}
|
{:else if value.customType === "table"}
|
||||||
<TableSelector bind:value={block.inputs[key]} />
|
<TableSelector bind:value={block.inputs[key]} />
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
<pre>{JSON.stringify(bindings, null, 2)}</pre>
|
<pre>{JSON.stringify(bindings, null, 2)}</pre>
|
||||||
<Editor
|
<Editor
|
||||||
mode="javascript"
|
mode="javascript"
|
||||||
on:change={e => {
|
on:change={e => {
|
||||||
block.inputs[key] = e.detail.value
|
block.inputs[key] = e.detail.value
|
||||||
}}
|
}}
|
||||||
value={block.inputs[key]}
|
value={block.inputs[key]}
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
size="XL"
|
size="XL"
|
||||||
title="Edit Code"
|
title="Edit Code"
|
||||||
showConfirmButton={false}
|
showConfirmButton={false}
|
||||||
showCancelButton={false}>
|
showCancelButton={false}
|
||||||
|
>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
|
|
||||||
if (destroyed) return
|
if (destroyed) return
|
||||||
|
|
||||||
CodeMirror.commands.autocomplete = function(cm) {
|
CodeMirror.commands.autocomplete = function (cm) {
|
||||||
CodeMirror.showHint(cm, CodeMirror.hint.javascript)
|
CodeMirror.showHint(cm, CodeMirror.hint.javascript)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,14 +161,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Modal bind:this={htmlModal}>
|
<Modal bind:this={htmlModal}>
|
||||||
<ModalContent title="Edit Template HTML" onConfirm={saveTemplate} size="XL">
|
<ModalContent
|
||||||
<Editor
|
title="Edit Template HTML"
|
||||||
mode="handlebars"
|
onConfirm={saveTemplate}
|
||||||
on:change={e => {
|
size="XL"
|
||||||
selectedTemplate.contents = e.detail.value
|
>
|
||||||
}}
|
<Editor
|
||||||
value={selectedTemplate.contents} />
|
mode="handlebars"
|
||||||
</ModalContent>
|
on:change={e => {
|
||||||
|
selectedTemplate.contents = e.detail.value
|
||||||
|
}}
|
||||||
|
value={selectedTemplate.contents}
|
||||||
|
/>
|
||||||
|
</ModalContent>
|
||||||
</Modal>
|
</Modal>
|
||||||
{/if}
|
{/if}
|
||||||
</Page>
|
</Page>
|
||||||
|
|
Loading…
Reference in New Issue