[webui] lint fixes
parent
f9e5c19d21
commit
355ba80ebe
|
@ -16,7 +16,9 @@
|
|||
"processor": "svelte3/svelte3"
|
||||
}
|
||||
],
|
||||
"rules": {},
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }]
|
||||
},
|
||||
"settings": {
|
||||
"svelte3/typescript": true // load TypeScript as peer dependency
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
$: {
|
||||
components = availableWidgets.find(
|
||||
(w) => w.name === currentWidget
|
||||
)!.components;
|
||||
).components;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -11,15 +11,15 @@
|
|||
dragging = false;
|
||||
}
|
||||
|
||||
function onDragEnter(ev: DragEvent) {
|
||||
function onDragEnter() {
|
||||
// noop
|
||||
}
|
||||
|
||||
function onDragOver(ev: DragEvent) {
|
||||
function onDragOver() {
|
||||
dragging = true;
|
||||
}
|
||||
|
||||
function onDragLeave(ev: DragEvent) {
|
||||
function onDragLeave() {
|
||||
dragging = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
<script lang="ts">
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { BLOB_TYPE_ADDR } from "upend/constants";
|
||||
import HashBadge from "./HashBadge.svelte";
|
||||
import Ellipsis from "../utils/Ellipsis.svelte";
|
||||
import UpLink from "./UpLink.svelte";
|
||||
import { useEntity } from "../../lib/entity";
|
||||
import { readable } from "svelte/store";
|
||||
import { notify, UpNotification } from "../../notifications";
|
||||
import { Link } from "svelte-navigator";
|
||||
const dispatch = createEventDispatcher();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { Link, useLocation, useNavigate, useParams } from "svelte-navigator";
|
||||
import { Link, useLocation, useNavigate } from "svelte-navigator";
|
||||
import { useMatch } from "svelte-navigator";
|
||||
import { addEmitter } from "../AddModal.svelte";
|
||||
import Icon from "../utils/Icon.svelte";
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
let jobs: JobWithId[] = [];
|
||||
let activeJobs: JobWithId[] = [];
|
||||
let timeout: NodeJS.Timeout;
|
||||
let timeout: number;
|
||||
async function updateJobs() {
|
||||
clearTimeout(timeout);
|
||||
let request = await fetch("/api/jobs");
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
<script lang="ts">
|
||||
import { tick } from "svelte";
|
||||
|
||||
export let value: string;
|
||||
let root: HTMLDivElement;
|
||||
|
||||
$: valueStart = value.substring(0, value.length - 7).replace(" ", "\xa0");
|
||||
$: valueEnd = value
|
||||
|
@ -10,7 +7,7 @@
|
|||
.replace(" ", "\xa0");
|
||||
</script>
|
||||
|
||||
<div class="ellipsis" bind:this={root} title={value}>
|
||||
<div class="ellipsis" title={value}>
|
||||
<div class="start">{valueStart}</div>
|
||||
<div class="end">{valueEnd}</div>
|
||||
</div>
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
}
|
||||
|
||||
options.push(
|
||||
...objects.slice(0, 25).map(([address, label]) => {
|
||||
...objects.slice(0, 25).map(([address, _]) => {
|
||||
return {
|
||||
value: {
|
||||
t: "Address",
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
import { format, fromUnixTime } from "date-fns";
|
||||
import Ellipsis from "../utils/Ellipsis.svelte";
|
||||
import UpObject from "../display/UpObject.svelte";
|
||||
import { createEventDispatcher, getContext } from "svelte";
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import type { AttributeChange, AttributeUpdate } from "../../types/base";
|
||||
import { useParams } from "svelte-navigator";
|
||||
import type { Writable } from "svelte/store";
|
||||
import type { UpEntry } from "upend";
|
||||
import IconButton from "../utils/IconButton.svelte";
|
||||
import Selector from "../utils/Selector.svelte";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<script lang="ts">
|
||||
import debounce from "lodash/debounce";
|
||||
import { Readable, readable } from "svelte/store";
|
||||
import type { UpEntry, UpListing, UpObject } from "upend";
|
||||
import type { UpListing } from "upend";
|
||||
import Spinner from "../components/utils/Spinner.svelte";
|
||||
import UpEntryDisplay from "../components/display/UpEntry.svelte";
|
||||
import UpObjectDisplay from "../components/display/UpObject.svelte";
|
||||
|
|
Loading…
Reference in New Issue