feat: remove doubled upload button
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
</script>
|
||||
|
||||
<div class="app-container">
|
||||
<AppHeader {onUploadNewImage} />
|
||||
<AppHeader />
|
||||
|
||||
<ErrorMessage {errorMessage} />
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user