refactor: reorganize components
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
backgroundImage?: string | undefined;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import type { ImageCropResult } from "$lib/types/panel";
|
||||
import { ImageService } from "$lib/services/imageService";
|
||||
import { uiStore, setLoading } from "../../stores/uiStore";
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
imageSrc: string;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
import { ImageService } from "$lib/services/imageService";
|
||||
import { handleError } from "$lib/utils/errorHandler";
|
||||
import type { ImageUploadResult } from "$lib/types/panel";
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
let imageService = new ImageService();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
onUploadNewImage?: () => void;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { panelStore } from "../../stores/panelStore";
|
||||
import { panelStorage } from "$lib/utils/panelStorage";
|
||||
import type { Panel } from "$lib/types/panel";
|
||||
import { IconButton } from "$lib/components/ui";
|
||||
import IconButton from "../ui/IconButton.svelte";
|
||||
|
||||
interface Props {
|
||||
onPanelSelect: (panel: Panel) => void;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
type TextItem = Panel["texts"][0];
|
||||
import { Stage, Layer, Image, Text } from "svelte-konva";
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
panel: Panel;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import type { Panel } from "$lib/types/panel";
|
||||
import PanelPreview from "./PanelPreview.svelte";
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
panels: Panel[];
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { Button } from "$lib/components/ui";
|
||||
import Button from "../ui/Button.svelte";
|
||||
|
||||
interface Props {
|
||||
onTextAdd: (text: string) => void;
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export { default as Button } from "./Button.svelte";
|
||||
export { default as IconButton } from "./IconButton.svelte";
|
||||
Reference in New Issue
Block a user