Linting.
This commit is contained in:
parent
d3d840e42a
commit
1d38dda79b
|
@ -106,7 +106,9 @@ export const getContextBindings = (rootComponent, componentId) => {
|
||||||
|
|
||||||
contextBindings.push({
|
contextBindings.push({
|
||||||
type: "context",
|
type: "context",
|
||||||
runtimeBinding: `${makePropSafe(component._id)}.${makePropSafe(runtimeBoundKey)}`,
|
runtimeBinding: `${makePropSafe(component._id)}.${makePropSafe(
|
||||||
|
runtimeBoundKey
|
||||||
|
)}`,
|
||||||
readableBinding: `${component._instanceName}.${table.name}.${key}`,
|
readableBinding: `${component._instanceName}.${table.name}.${key}`,
|
||||||
fieldSchema,
|
fieldSchema,
|
||||||
providerId: component._id,
|
providerId: component._id,
|
||||||
|
|
|
@ -78,15 +78,19 @@
|
||||||
bind:value
|
bind:value
|
||||||
placeholder="Add options from the left, type text, or do both" />
|
placeholder="Add options from the left, type text, or do both" />
|
||||||
{#if !validity}
|
{#if !validity}
|
||||||
<p class="syntax-error">Current Handlebars syntax is invalid, please check the guide
|
<p class="syntax-error">
|
||||||
<a href="https://handlebarsjs.com/guide/">here</a> for more details.
|
Current Handlebars syntax is invalid, please check the guide
|
||||||
|
<a href="https://handlebarsjs.com/guide/">here</a>
|
||||||
|
for more details.
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<a href="https://docs.budibase.com/design/binding">
|
<a href="https://docs.budibase.com/design/binding">
|
||||||
<Body small>Learn more about binding</Body>
|
<Body small>Learn more about binding</Body>
|
||||||
</a>
|
</a>
|
||||||
<Button on:click={popover.hide} disabled={!validity} primary>Done</Button>
|
<Button on:click={popover.hide} disabled={!validity} primary>
|
||||||
|
Done
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
import { Button, TextArea, Drawer, Heading, Spacer } from "@budibase/bbui"
|
import { Button, TextArea, Drawer, Heading, Spacer } from "@budibase/bbui"
|
||||||
import { createEventDispatcher } from "svelte"
|
import { createEventDispatcher } from "svelte"
|
||||||
import { isValid } from "@budibase/string-templates"
|
import { isValid } from "@budibase/string-templates"
|
||||||
import {getBindableProperties, readableToRuntimeBinding} from "builderStore/dataBinding"
|
import {
|
||||||
|
getBindableProperties,
|
||||||
|
readableToRuntimeBinding,
|
||||||
|
} from "builderStore/dataBinding"
|
||||||
import { currentAsset, store } from "../../../builderStore"
|
import { currentAsset, store } from "../../../builderStore"
|
||||||
|
|
||||||
const dispatch = createEventDispatcher()
|
const dispatch = createEventDispatcher()
|
||||||
|
@ -73,8 +76,10 @@
|
||||||
placeholder="Add text, or click the objects on the left to add them to the
|
placeholder="Add text, or click the objects on the left to add them to the
|
||||||
textbox." />
|
textbox." />
|
||||||
{#if !validity}
|
{#if !validity}
|
||||||
<p class="syntax-error">Current Handlebars syntax is invalid, please check the guide
|
<p class="syntax-error">
|
||||||
<a href="https://handlebarsjs.com/guide/">here</a> for more details.
|
Current Handlebars syntax is invalid, please check the guide
|
||||||
|
<a href="https://handlebarsjs.com/guide/">here</a>
|
||||||
|
for more details.
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -22,7 +22,9 @@ module.exports.preprocess = (string, finalise = true) => {
|
||||||
// the pre-processor finalisation stops handlebars from ever throwing an error
|
// the pre-processor finalisation stops handlebars from ever throwing an error
|
||||||
// might want to pre-process for other benefits but still want to see errors
|
// might want to pre-process for other benefits but still want to see errors
|
||||||
if (!finalise) {
|
if (!finalise) {
|
||||||
processors = processors.filter(processor => processor.name !== preprocessor.PreprocessorNames.FINALISE)
|
processors = processors.filter(
|
||||||
|
processor => processor.name !== preprocessor.PreprocessorNames.FINALISE
|
||||||
|
)
|
||||||
}
|
}
|
||||||
return process(string, processors)
|
return process(string, processors)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue