[ui] lint fixes, cosmetics
This commit is contained in:
parent
1ff17a2d92
commit
bac46cff88
3 changed files with 2 additions and 5 deletions
|
@ -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";
|
||||
|
|
|
@ -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 = {
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue