Skip to content

Commit

Permalink
fix issues!
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-sg committed Nov 24, 2023
1 parent 573862b commit 2712de6
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
10 changes: 7 additions & 3 deletions src/chooser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { LitElement, html, css } from "lit";
import { IS_APP, wrapCss } from "./misc";

import fasUpload from "@fortawesome/fontawesome-free/svgs/solid/upload.svg";
import { customElement, property } from "lit/decorators";
import { customElement, property } from "lit/decorators.js";

export interface FileWithPath extends File {
readonly path: string;
}

// ===========================================================================
@customElement("wr-chooser")
Expand All @@ -11,10 +15,10 @@ export class Chooser extends LitElement {
fileDisplayName = "";

@property({ attribute: false })
file: File | null = null;
file: FileWithPath | null = null;

@property({ attribute: false })
droppedFile: File | null = null;
droppedFile: FileWithPath | null = null;

@property({ type: Boolean })
hasNativeFS = !!window.showOpenFilePicker && !IS_APP;
Expand Down
2 changes: 1 addition & 1 deletion src/embed-receipt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { clickOnSpacebarPress } from "./misc";
import { LitElement, html, css } from "lit";
import { tsToDate } from "./pageutils";
import prettyBytes from "pretty-bytes";
import { property } from "lit/decorators";
import { property } from "lit/decorators.js";
import type { Item as ItemType } from "./types";
import { assertNonNullish } from "./utils/assertNonNullish";

Expand Down
2 changes: 1 addition & 1 deletion src/embed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ifDefined } from "lit/directives/if-defined.js";

import { wrapCss, rwpLogo } from "./misc";
import { SWManager } from "./swmanager";
import { property } from "lit/decorators";
import { property } from "lit/decorators.js";

const scriptSrc =
document.currentScript && (document.currentScript as HTMLScriptElement).src;
Expand Down
4 changes: 2 additions & 2 deletions src/item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ import fasAngleLeft from "@fortawesome/fontawesome-free/svgs/solid/angle-left.sv
import fasAngleRight from "@fortawesome/fontawesome-free/svgs/solid/angle-right.svg";
import fasCaretDown from "@fortawesome/fontawesome-free/svgs/solid/caret-down.svg";

import { RWPEmbedReceipt } from "./embed-receipt.js";
import { RWPEmbedReceipt } from "./embed-receipt";
import Split from "split.js";

import type { Item as ItemInfo } from "./types";
import type { Replay } from "./replay";
import { ifDefined } from "lit/directives/if-defined";
import { ifDefined } from "lit/directives/if-defined.js";

import "./item-info";

Expand Down
2 changes: 1 addition & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { wrapCss } from "./misc";
import prettyBytes from "pretty-bytes";

import { parseURLSchemeHostPath } from "./pageutils";
import { property } from "lit/decorators";
import { property } from "lit/decorators.js";
import { LoadInfo } from "./item";

// ===========================================================================
Expand Down

0 comments on commit 2712de6

Please sign in to comment.