[ui] lint fixes, cosmetics
parent
1ff17a2d92
commit
bac46cff88
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import UpLink from "./display/UpLink.svelte";
|
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 Table from "./widgets/Table.svelte";
|
||||||
import TableComponent from "./widgets/Table.svelte"; // silence false svelte(reactive-component) warnings
|
import TableComponent from "./widgets/Table.svelte"; // silence false svelte(reactive-component) warnings
|
||||||
import type { UpEntry } from "upend";
|
import type { UpEntry } from "upend";
|
||||||
|
|
|
@ -22,7 +22,7 @@ export function xywh(mediaItem: HTMLImageElement | HTMLVideoElement) {
|
||||||
const source = mediaItem.src || mediaItem.currentSrc;
|
const source = mediaItem.src || mediaItem.currentSrc;
|
||||||
// See http://www.w3.org/TR/media-frags/#naming-space
|
// See http://www.w3.org/TR/media-frags/#naming-space
|
||||||
const xywhRegEx =
|
const xywhRegEx =
|
||||||
/[#&\?]xywh\=(pixel\:|percent\:)?([\d\.]+),([\d\.]+),([\d\.]+),([\d\.]+)/;
|
/[#&?]xywh=(pixel:|percent:)?([\d.]+),([\d.]+),([\d.]+),([\d.]+)/;
|
||||||
const match = xywhRegEx.exec(source);
|
const match = xywhRegEx.exec(source);
|
||||||
if (match) {
|
if (match) {
|
||||||
const mediaFragment = {
|
const mediaFragment = {
|
||||||
|
|
|
@ -1,12 +1,9 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { formatRelative } from "date-fns";
|
|
||||||
import { UpListing } from "upend";
|
import { UpListing } from "upend";
|
||||||
import type { ListingResult } from "upend/types";
|
import type { ListingResult } from "upend/types";
|
||||||
import AttributeView from "../components/AttributeView.svelte";
|
import AttributeView from "../components/AttributeView.svelte";
|
||||||
import UpObject from "../components/display/UpObject.svelte";
|
|
||||||
import UpObjectCard from "../components/display/UpObjectCard.svelte";
|
import UpObjectCard from "../components/display/UpObjectCard.svelte";
|
||||||
import Spinner from "../components/utils/Spinner.svelte";
|
import Spinner from "../components/utils/Spinner.svelte";
|
||||||
import Table from "../components/widgets/Table.svelte";
|
|
||||||
import { query } from "../lib/entity";
|
import { query } from "../lib/entity";
|
||||||
import { UpType } from "../lib/types";
|
import { UpType } from "../lib/types";
|
||||||
import { vaultInfo } from "../util/info";
|
import { vaultInfo } from "../util/info";
|
||||||
|
|
Loading…
Reference in New Issue