refactor: move shared utilities to lib/shared/ sub-packages

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-05-05 14:35:15 +02:00
parent 7cb922e90f
commit d6db7a07bd
117 changed files with 97 additions and 97 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import TrainingHistory from './TrainingHistory.svelte';
import { m } from '$lib/paraglide/messages.js';
import type { TrainingRun } from '$lib/types/training.js';
import type { TrainingRun } from '$lib/ocr/training.js';
interface TrainingInfo {
availableBlocks?: number;

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import TrainingHistory from './TrainingHistory.svelte';
import { m } from '$lib/paraglide/messages.js';
import type { TrainingRun } from '$lib/types/training.js';
import type { TrainingRun } from '$lib/ocr/training.js';
interface TrainingInfo {
availableSegBlocks?: number;

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { m } from '$lib/paraglide/messages.js';
import type { TrainingRun } from '$lib/types/training.js';
import type { TrainingRun } from '$lib/ocr/training.js';
interface Props {
runs: TrainingRun[];

View File

@@ -0,0 +1,13 @@
export interface TrainingRun {
id: string;
status: 'QUEUED' | 'RUNNING' | 'DONE' | 'FAILED';
personId?: string;
blockCount: number;
documentCount: number;
modelName: string;
errorMessage?: string;
triggeredBy?: string;
createdAt: string;
completedAt?: string;
cer?: number;
}