feat: remove doubled upload button
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="app-container">
|
<div class="app-container">
|
||||||
<AppHeader {onUploadNewImage} />
|
<AppHeader />
|
||||||
|
|
||||||
<ErrorMessage {errorMessage} />
|
<ErrorMessage {errorMessage} />
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Button from "../ui/Button.svelte";
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
onUploadNewImage?: () => void;
|
onUploadNewImage?: () => void;
|
||||||
}
|
}
|
||||||
@@ -10,9 +8,6 @@
|
|||||||
|
|
||||||
<div class="app-header">
|
<div class="app-header">
|
||||||
<h1>Twitch Panels Creator</h1>
|
<h1>Twitch Panels Creator</h1>
|
||||||
{#if onUploadNewImage}
|
|
||||||
<Button variant="primary" onclick={onUploadNewImage}>Загрузить изображение</Button>
|
|
||||||
{/if}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { uiStore, setCurrentStep } from "../../stores/uiStore";
|
|
||||||
import type { Panel } from "$lib/types/panel";
|
import type { Panel } from "$lib/types/panel";
|
||||||
|
import { Image, Layer, Stage, Text } from "svelte-konva";
|
||||||
type TextItem = Panel["texts"][0];
|
import { setCurrentStep } from "../../stores/uiStore";
|
||||||
import { Stage, Layer, Image, Text } from "svelte-konva";
|
|
||||||
import Button from "../ui/Button.svelte";
|
import Button from "../ui/Button.svelte";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import pkg from "file-saver";
|
import pkg from "file-saver";
|
||||||
const { saveAs } = pkg;
|
|
||||||
import type { Panel } from "../types/panel";
|
|
||||||
import { ImageError } from "../types/errors";
|
import { ImageError } from "../types/errors";
|
||||||
|
import type { Panel } from "../types/panel";
|
||||||
import { handleError, logError } from "../utils/errorHandler";
|
import { handleError, logError } from "../utils/errorHandler";
|
||||||
|
const { saveAs } = pkg;
|
||||||
|
|
||||||
export interface ExportResult {
|
export interface ExportResult {
|
||||||
success: boolean;
|
success: boolean;
|
||||||
|
|||||||
@@ -1,10 +1,9 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import type { Panel } from "$lib/types/panel";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import { uiStore } from "../stores/uiStore";
|
import { exportService } from "../services/exportService";
|
||||||
import { imageService } from "../services/imageService";
|
import { imageService } from "../services/imageService";
|
||||||
import { panelService } from "../services/panelService";
|
import { panelService } from "../services/panelService";
|
||||||
import { exportService } from "../services/exportService";
|
|
||||||
import type { Panel } from "$lib/types/panel";
|
|
||||||
|
|
||||||
import AppContainer from "../components/layout/AppContainer.svelte";
|
import AppContainer from "../components/layout/AppContainer.svelte";
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { writable, type Writable } from "svelte/store";
|
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 { v4 as uuidv4 } from "uuid";
|
||||||
|
import { type Panel, type TextItem } from "../lib/types/panel";
|
||||||
|
|
||||||
export const panelStore: Writable<Panel | undefined> = writable(undefined);
|
export const panelStore: Writable<Panel | undefined> = writable(undefined);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user