refactor: reorganize components

This commit is contained in:
2026-02-04 16:42:33 +05:00
parent 1996719fcb
commit 62254acdb9
11 changed files with 8 additions and 10 deletions
@@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
interface Props { interface Props {
backgroundImage?: string | undefined; backgroundImage?: string | undefined;
+1 -1
View File
@@ -4,7 +4,7 @@
import type { ImageCropResult } from "$lib/types/panel"; import type { ImageCropResult } from "$lib/types/panel";
import { ImageService } from "$lib/services/imageService"; import { ImageService } from "$lib/services/imageService";
import { uiStore, setLoading } from "../../stores/uiStore"; import { uiStore, setLoading } from "../../stores/uiStore";
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
interface Props { interface Props {
imageSrc: string; imageSrc: string;
+1 -1
View File
@@ -5,7 +5,7 @@
import { ImageService } from "$lib/services/imageService"; import { ImageService } from "$lib/services/imageService";
import { handleError } from "$lib/utils/errorHandler"; import { handleError } from "$lib/utils/errorHandler";
import type { ImageUploadResult } from "$lib/types/panel"; import type { ImageUploadResult } from "$lib/types/panel";
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
let imageService = new ImageService(); let imageService = new ImageService();
+1 -1
View File
@@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
interface Props { interface Props {
onUploadNewImage?: () => void; onUploadNewImage?: () => void;
+1 -1
View File
@@ -3,7 +3,7 @@
import { panelStore } from "../../stores/panelStore"; import { panelStore } from "../../stores/panelStore";
import { panelStorage } from "$lib/utils/panelStorage"; import { panelStorage } from "$lib/utils/panelStorage";
import type { Panel } from "$lib/types/panel"; import type { Panel } from "$lib/types/panel";
import { IconButton } from "$lib/components/ui"; import IconButton from "../ui/IconButton.svelte";
interface Props { interface Props {
onPanelSelect: (panel: Panel) => void; onPanelSelect: (panel: Panel) => void;
+1 -1
View File
@@ -4,7 +4,7 @@
type TextItem = Panel["texts"][0]; type TextItem = Panel["texts"][0];
import { Stage, Layer, Image, Text } from "svelte-konva"; import { Stage, Layer, Image, Text } from "svelte-konva";
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
interface Props { interface Props {
panel: Panel; panel: Panel;
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import type { Panel } from "$lib/types/panel"; import type { Panel } from "$lib/types/panel";
import PanelPreview from "./PanelPreview.svelte"; import PanelPreview from "./PanelPreview.svelte";
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
interface Props { interface Props {
panels: Panel[]; panels: Panel[];
+1 -1
View File
@@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import { Button } from "$lib/components/ui"; import Button from "../ui/Button.svelte";
interface Props { interface Props {
onTextAdd: (text: string) => void; onTextAdd: (text: string) => void;
-2
View File
@@ -1,2 +0,0 @@
export { default as Button } from "./Button.svelte";
export { default as IconButton } from "./IconButton.svelte";