prettier: format project
This commit is contained in:
94 files changed
+261
-252
No files matched your search
@@ -40,11 +40,11 @@
|
||||
'cursor-pointer min-h-36 transition-colors bg-white dark:bg-zinc-950',
|
||||
dragover && 'border-sky-500 text-sky-500',
|
||||
]}
|
||||
ondrop={event => {
|
||||
ondrop={(event) => {
|
||||
event.preventDefault()
|
||||
files = event.dataTransfer?.files ?? null
|
||||
}}
|
||||
ondragover={event => {
|
||||
ondragover={(event) => {
|
||||
event.preventDefault()
|
||||
|
||||
if (event.dataTransfer) {
|
||||
@@ -52,7 +52,7 @@
|
||||
dragover = true
|
||||
}
|
||||
}}
|
||||
ondragleave={e => {
|
||||
ondragleave={(e) => {
|
||||
e.preventDefault()
|
||||
dragover = false
|
||||
}}
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
const context = getContext<SelectContext>('select')
|
||||
|
||||
$effect(() => {
|
||||
if ($locale || !context.options.find(v => v == option)) {
|
||||
const index = context.options.findIndex(i => i.value == option.value)
|
||||
if ($locale || !context.options.find((v) => v == option)) {
|
||||
const index = context.options.findIndex((i) => i.value == option.value)
|
||||
|
||||
if (index != -1) {
|
||||
context.options.splice(index, 1, option)
|
||||
@@ -44,7 +44,7 @@
|
||||
})
|
||||
|
||||
onDestroy(() => {
|
||||
const index = context.options.findIndex(i => i.value == option.value)
|
||||
const index = context.options.findIndex((i) => i.value == option.value)
|
||||
if (index != -1) {
|
||||
context.options.splice(index, 1)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user