feat: remove doubled upload button

This commit is contained in:
2026-02-04 16:58:06 +05:00
parent 64dfc2c441
commit d31e446fbd
6 changed files with 8 additions and 16 deletions
+1 -1
View File
@@ -39,7 +39,7 @@
</script>
<div class="app-container">
<AppHeader {onUploadNewImage} />
<AppHeader />
<ErrorMessage {errorMessage} />
-5
View File
@@ -1,6 +1,4 @@
<script lang="ts">
import Button from "../ui/Button.svelte";
interface Props {
onUploadNewImage?: () => void;
}
@@ -10,9 +8,6 @@
<div class="app-header">
<h1>Twitch Panels Creator</h1>
{#if onUploadNewImage}
<Button variant="primary" onclick={onUploadNewImage}>Загрузить изображение</Button>
{/if}
</div>
<style>
+2 -4
View File
@@ -1,9 +1,7 @@
<script lang="ts">
import { uiStore, setCurrentStep } from "../../stores/uiStore";
import type { Panel } from "$lib/types/panel";
type TextItem = Panel["texts"][0];
import { Stage, Layer, Image, Text } from "svelte-konva";
import { Image, Layer, Stage, Text } from "svelte-konva";
import { setCurrentStep } from "../../stores/uiStore";
import Button from "../ui/Button.svelte";
interface Props {
+2 -2
View File
@@ -1,8 +1,8 @@
import pkg from "file-saver";
const { saveAs } = pkg;
import type { Panel } from "../types/panel";
import { ImageError } from "../types/errors";
import type { Panel } from "../types/panel";
import { handleError, logError } from "../utils/errorHandler";
const { saveAs } = pkg;
export interface ExportResult {
success: boolean;
+2 -3
View File
@@ -1,10 +1,9 @@
<script lang="ts">
import type { Panel } from "$lib/types/panel";
import { onMount } from "svelte";
import { uiStore } from "../stores/uiStore";
import { exportService } from "../services/exportService";
import { imageService } from "../services/imageService";
import { panelService } from "../services/panelService";
import { exportService } from "../services/exportService";
import type { Panel } from "$lib/types/panel";
import AppContainer from "../components/layout/AppContainer.svelte";
+1 -1
View File
@@ -1,6 +1,6 @@
import { writable, type Writable } from "svelte/store";
import { type Panel, type TextAlign, type TextItem } from "../lib/types/panel";
import { v4 as uuidv4 } from "uuid";
import { type Panel, type TextItem } from "../lib/types/panel";
export const panelStore: Writable<Panel | undefined> = writable(undefined);