Skip to content

Commit

Permalink
fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Dobe committed Jul 1, 2023
1 parent 21f73ab commit af0d32a
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 5 deletions.
4 changes: 4 additions & 0 deletions frontend/src/components/ImageUpload.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@

<div class="container">
<div
role="button"
tabindex="0"
class="btn"
on:click={() => inputRef.click()}
on:keypress={() => inputRef.click()}
>
<IconUpload width={22}/>
</div>
<div
role="button"
tabindex="0"
class="text noselect font-label"
on:click={() => inputRef.click()}
on:keypress={() => inputRef.click()}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@

{#if password}
<div class="rel">
<div class="btn show" on:click={toggle} on:keypress={toggle}>
<div
role="none"
class="btn show"
on:click={toggle}
on:keypress={toggle}
>
{#if type === 'password'}
<IconEyeSlash width={22} color={colors.err} />
{:else}
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/admin/config/jwks/JWK.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
</script>

<div
role="none"
class="cert"
on:mouseenter={() => isHover = true}
on:mouseleave={() => isHover = false}
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/lib/ExpandContainer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
>
<div class="containerHeader">
<div
role="button"
tabindex="0"
class="expand"
on:mouseenter={() => isHover = true}
on:mouseleave={() => isHover = false}
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/lib/Switch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
</script>

<div
role="switch"
aria-checked={selected}
tabindex="0"
class="outer"
class:selectedOuter={selected}
on:click={handleClick}
Expand Down
16 changes: 14 additions & 2 deletions frontend/src/lib/itemTiles/AddItemTile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
</script>

<div class="wrapper">
<div class="icon" on:click={() => show = !show} on:keypress={() => show = !show}>
<div
role="button"
tabindex="0"
class="icon"
on:click={() => show = !show}
on:keypress={() => show = !show}
>
<IconPlus/>
</div>

Expand All @@ -48,7 +54,13 @@
style="width: {mindWidth}; max-height: {items.length > searchThreshold ? maxHeight - 29 : maxHeight}px"
>
{#each resItems as item}
<div class="item" on:click={() => handleSelect(item)} on:keypress={() => handleSelect(item)}>
<div
role="button"
tabindex="0"
class="item"
on:click={() => handleSelect(item)}
on:keypress={() => handleSelect(item)}
>
{item}
</div>
{/each}
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/lib/itemTiles/DeleteItemTile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@

<div class="label font-label">
{label}
<div class="icon" on:click={() => onDelete(label)} on:keypress={() => onDelete(label)}>
<div
role="button"
tabindex="0"
class="icon"
on:click={() => onDelete(label)}
on:keypress={() => onDelete(label)}
>
<IconStop width="14"/>
</div>
</div>
Expand Down
8 changes: 7 additions & 1 deletion frontend/src/lib/search/OrderBy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@
{/if}

{#if options.length > 0}
<div class="icon" on:click={switchDirection} on:keypress={switchDirection}>
<div
role="button"
tabindex="0"
class="icon"
on:click={switchDirection}
on:keypress={switchDirection}
>
{#if direction === 1}
<IconBarsArrowUp/>
{:else}
Expand Down

0 comments on commit af0d32a

Please sign in to comment.