Lint
This commit is contained in:
parent
cee0decfcc
commit
5da828a11c
|
@ -1,12 +1,12 @@
|
||||||
<script>
|
<script>
|
||||||
import { createEventDispatcher } from 'svelte'
|
import { createEventDispatcher } from "svelte"
|
||||||
import Colorpicker from "@budibase/colorpicker"
|
import Colorpicker from "@budibase/colorpicker"
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
const dispatch = createEventDispatcher()
|
||||||
|
|
||||||
export let value
|
export let value
|
||||||
|
|
||||||
const WAIT = 150;
|
const WAIT = 150
|
||||||
|
|
||||||
function throttle(callback, wait, immediate = false) {
|
function throttle(callback, wait, immediate = false) {
|
||||||
let timeout = null
|
let timeout = null
|
||||||
|
@ -30,9 +30,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onChange = throttle(e => {
|
const onChange = throttle(
|
||||||
dispatch('change', e.detail)
|
e => {
|
||||||
}, WAIT, true)
|
dispatch("change", e.detail)
|
||||||
|
},
|
||||||
|
WAIT,
|
||||||
|
true
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Colorpicker value={value || '#C4C4C4'} on:change={onChange} />
|
<Colorpicker value={value || '#C4C4C4'} on:change={onChange} />
|
||||||
|
|
|
@ -5,8 +5,6 @@ const { resolve, join } = require("../../../utilities/centralPath")
|
||||||
const fetch = require("node-fetch")
|
const fetch = require("node-fetch")
|
||||||
const fs = require("fs-extra")
|
const fs = require("fs-extra")
|
||||||
const uuid = require("uuid")
|
const uuid = require("uuid")
|
||||||
const AWS = require("aws-sdk")
|
|
||||||
const { prepareUpload } = require("../deploy/utils")
|
|
||||||
const { processString } = require("@budibase/string-templates")
|
const { processString } = require("@budibase/string-templates")
|
||||||
const {
|
const {
|
||||||
budibaseAppsDir,
|
budibaseAppsDir,
|
||||||
|
|
Loading…
Reference in New Issue