[ui] lint fixes, cosmetics

feat/vaults
Tomáš Mládek 2022-02-17 16:45:03 +01:00
parent 1ff17a2d92
commit bac46cff88
3 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<script lang="ts">
import UpLink from "./display/UpLink.svelte";
import { Component, UNTYPED, UpType, Widget } from "../lib/types";
import type { Component, UpType, Widget } from "../lib/types";
import Table from "./widgets/Table.svelte";
import TableComponent from "./widgets/Table.svelte"; // silence false svelte(reactive-component) warnings
import type { UpEntry } from "upend";

View File

@ -22,7 +22,7 @@ export function xywh(mediaItem: HTMLImageElement | HTMLVideoElement) {
const source = mediaItem.src || mediaItem.currentSrc;
// See http://www.w3.org/TR/media-frags/#naming-space
const xywhRegEx =
/[#&\?]xywh\=(pixel\:|percent\:)?([\d\.]+),([\d\.]+),([\d\.]+),([\d\.]+)/;
/[#&?]xywh=(pixel:|percent:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)/;
const match = xywhRegEx.exec(source);
if (match) {
const mediaFragment = {

View File

@ -1,12 +1,9 @@
<script lang="ts">
import { formatRelative } from "date-fns";
import { UpListing } from "upend";
import type { ListingResult } from "upend/types";
import AttributeView from "../components/AttributeView.svelte";
import UpObject from "../components/display/UpObject.svelte";
import UpObjectCard from "../components/display/UpObjectCard.svelte";
import Spinner from "../components/utils/Spinner.svelte";
import Table from "../components/widgets/Table.svelte";
import { query } from "../lib/entity";
import { UpType } from "../lib/types";
import { vaultInfo } from "../util/info";