Skip to content

Commit

Permalink
Merge pull request #77 from teomrd/fix-icons
Browse files Browse the repository at this point in the history
fix(icons): fix svg type declaration
  • Loading branch information
teomrd authored Nov 5, 2024
2 parents f0ea0e0 + e11c67a commit a9dc104
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 21 deletions.
61 changes: 41 additions & 20 deletions src/js/components/organisms/commander/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,47 @@ import { copyToClipboard } from "../../../utils/copyToClipboard.ts";
import { sleep } from "../../../utils/sleep.js";
import { publishGist, updateGist } from "../../../utils/github/api.ts";
import { icon } from "../../atoms/icon/icon.js";
import * as ListSVG from "../../../../assets/svg/list.svg";
import * as TrashSVG from "../../../../assets/svg/trash.svg";
import * as CheckmarkCircleSVG from "../../../../assets/svg/checkmark-circle.svg";
import * as CloudSyncSVG from "../../../../assets/svg/cloud-sync.svg";
import * as LighterSVG from "../../../../assets/svg/lighter.svg";
import * as EnterDownSVG from "../../../../assets/svg/enter-down.svg";
import * as DownloadSVG from "../../../../assets/svg/download.svg";
import * as EnvelopeSVG from "../../../../assets/svg/envelope.svg";
import * as BugSVG from "../../../../assets/svg/bug.svg";
import * as PictureSVG from "../../../../assets/svg/picture.svg";
import * as PrinterSVG from "../../../../assets/svg/printer.svg";
import * as PageBreakSVG from "../../../../assets/svg/page-break.svg";
import * as FrameExpandSVG from "../../../../assets/svg/frame-expand.svg";
import * as ArrowRightCircleSVG from "../../../../assets/svg/arrow-right-circle.svg";
import * as MagicWandSVG from "../../../../assets/svg/magic-wand.svg";
import * as RocketSVG from "../../../../assets/svg/rocket.svg";
import * as SpellCheckSVG from "../../../../assets/svg/spell-check.svg";
import * as PencilSVG from "../../../../assets/svg/pencil.svg";
import * as ShareSVG from "../../../../assets/svg/exit-up.svg";
import * as LeafSVG from "../../../../assets/svg/leaf.svg";
// @ts-types="../../../../../types.d.ts"
import ListSVG from "../../../../assets/svg/list.svg";
// @ts-types="../../../../../types.d.ts"
import TrashSVG from "../../../../assets/svg/trash.svg";
// @ts-types="../../../../../types.d.ts"
import CheckmarkCircleSVG from "../../../../assets/svg/checkmark-circle.svg";
// @ts-types="../../../../../types.d.ts"
import CloudSyncSVG from "../../../../assets/svg/cloud-sync.svg";
// @ts-types="../../../../../types.d.ts"
import LighterSVG from "../../../../assets/svg/lighter.svg";
// @ts-types="../../../../../types.d.ts"
import EnterDownSVG from "../../../../assets/svg/enter-down.svg";
// @ts-types="../../../../../types.d.ts"
import DownloadSVG from "../../../../assets/svg/download.svg";
// @ts-types="../../../../../types.d.ts"
import EnvelopeSVG from "../../../../assets/svg/envelope.svg";
// @ts-types="../../../../../types.d.ts"
import BugSVG from "../../../../assets/svg/bug.svg";
// @ts-types="../../../../../types.d.ts"
import PictureSVG from "../../../../assets/svg/picture.svg";
// @ts-types="../../../../../types.d.ts"
import PrinterSVG from "../../../../assets/svg/printer.svg";
// @ts-types="../../../../../types.d.ts"
import PageBreakSVG from "../../../../assets/svg/page-break.svg";
// @ts-types="../../../../../types.d.ts"
import FrameExpandSVG from "../../../../assets/svg/frame-expand.svg";
// @ts-types="../../../../../types.d.ts"
import ArrowRightCircleSVG from "../../../../assets/svg/arrow-right-circle.svg";
// @ts-types="../../../../../types.d.ts"
import MagicWandSVG from "../../../../assets/svg/magic-wand.svg";
// @ts-types="../../../../../types.d.ts"
import RocketSVG from "../../../../assets/svg/rocket.svg";
// @ts-types="../../../../../types.d.ts"
import SpellCheckSVG from "../../../../assets/svg/spell-check.svg";
// @ts-types="../../../../../types.d.ts"
import PencilSVG from "../../../../assets/svg/pencil.svg";
// @ts-types="../../../../../types.d.ts"
import ShareSVG from "../../../../assets/svg/exit-up.svg";
// @ts-types="../../../../../types.d.ts"
import LeafSVG from "../../../../assets/svg/leaf.svg";
// @ts-types="../../../../../types.d.ts"
import { share } from "../../../utils/webShare.js";
import { setSavedState } from "../../../ui/functions/savedState.ts";

Expand Down
3 changes: 2 additions & 1 deletion src/js/components/organisms/terminal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { nanoid } from "nanoid";
import * as TrashSVG from "../../../assets/svg/trash.svg";
// @ts-types="../../../../types.d.ts"
import TrashSVG from "../../../assets/svg/trash.svg";
import { configuration } from "../../../configuration.ts";
import { autoComplete } from "../../features/autoComplete.ts";
import { setSavedState } from "../../ui/functions/savedState.ts";
Expand Down
4 changes: 4 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.svg" {
const content: string;
export default content;
}

0 comments on commit a9dc104

Please sign in to comment.