[ui] lints

feat/vaults
Tomáš Mládek 2022-03-22 21:57:00 +01:00
parent 46f8f38ac8
commit 0bfdc8eb4c
5 changed files with 14 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts">
import { createEventDispatcher, tick } from "svelte";
import { createEventDispatcher } from "svelte";
import Icon from "./utils/Icon.svelte";
import Selector from "./utils/Selector.svelte";

View File

@ -1,11 +1,11 @@
<script lang="ts">
import AttributeView from "./AttributeView.svelte";
import { query, useEntity } from "../lib/entity";
import UpObjectDisplay from "./display/UpObject.svelte";
import UpObject from "./display/UpObject.svelte";
import { UpType } from "../lib/types";
import { createEventDispatcher, setContext } from "svelte";
import { writable } from "svelte/store";
import type { UpEntry, UpObject } from "upend";
import type { UpEntry } from "upend";
import Spinner from "./utils/Spinner.svelte";
import NotesEditor from "./utils/NotesEditor.svelte";
import type { AttributeChange } from "../types/base";
@ -100,9 +100,14 @@
$: filteredUntypedAttributes = untypedAttributes.filter(
(entry) =>
!["IS", "LBL", "NOTE", "LAST_VISITED", "NUM_VISITED", "LAST_ATTRIBUTE_WIDGET"].includes(
entry.attribute
)
![
"IS",
"LBL",
"NOTE",
"LAST_VISITED",
"NUM_VISITED",
"LAST_ATTRIBUTE_WIDGET",
].includes(entry.attribute)
);
$: currentUntypedAttributes = editable
@ -215,7 +220,7 @@
<header>
<h2>
{#if $entity}
<UpObjectDisplay banner {address} on:resolved={onResolved} />
<UpObject banner {address} on:resolved={onResolved} />
{:else}
<Spinner centered />
{/if}
@ -228,7 +233,7 @@
<div class="content">
{#each groups as [entryAddress, address]}
<div class="group">
<UpObjectDisplay {address} link />
<UpObject {address} link />
{#if editable}
<IconButton
name="x-circle"

View File

@ -194,7 +194,7 @@
}
});
wavesurfer.on("region-dblclick", (region: Region, ev: MouseEvent) => {
wavesurfer.on("region-dblclick", (region: Region, _ev: MouseEvent) => {
currentAnnotation = region;
setTimeout(() => wavesurfer.setCurrentTime(region.start));
});

View File

@ -4,7 +4,6 @@
export let address: string;
export let detail: boolean;
import { xywh } from "../../../util/fragments/xywh";
import UpLink from "../UpLink.svelte";
const { entity } = useEntity(address);

View File

@ -1,4 +1,3 @@
import type { UpEntry } from "upend";
import type { InEntry } from "upend/types";
import { putEntry, queryOnce } from "../lib/api";
import { query as queryFn } from "../lib/entity";