[ui] lints
parent
46f8f38ac8
commit
0bfdc8eb4c
|
@ -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";
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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));
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue