Compare commits

...
Author SHA1 Message Date
Brandon Thomas 83a2aba77b IDE mistakenly included this 2025-08-17 21:06:48 -04:00
Brandon Thomas 23b036928a refactor frontend event package 2025-08-17 00:57:11 -04:00
8 changed files with 12 additions and 19 deletions
@@ -20,22 +20,21 @@ import {
showPrecisionSelector,
} from "./signals/precisionSelectorMenu";
import { InstallSounds } from "~/pages/PageEnigma/InstallSounds";
import { useGenerationEnqueueFailureEvent } from "./TauriEvents/generations/useGenerationEnqueueFailureEvent";
import { useGenerationEnqueueSuccessEvent } from "./TauriEvents/generations/useGenerationEnqueueSuccessEvent";
import { useGenerationFailedEvent } from "./TauriEvents/generations/useGenerationFailedEvent";
import { useGenerationCompleteEvent } from "./TauriEvents/generations/useGenerationCompleteEvent";
import { PageEditor } from "~/pages/PageEnigma/PageEditor";
import { GalleryDragComponent } from "@storyteller/ui-gallery-modal";
import { LoadingDots } from "@storyteller/ui-loading";
import { PricingModal } from "@storyteller/ui-pricing-modal";
import { ProviderSetupModal } from "@storyteller/provider-setup-modal";
import {
isActionReminderOpen,
actionReminderProps,
ActionReminderModal,
} from "@storyteller/ui-action-reminder-modal";
import { useFlashUserInputErrorEvent } from "@storyteller/tauri-events";
import { useGenerationCompleteEvent } from "@storyteller/tauri-events";
import { useGenerationEnqueueFailureEvent } from "@storyteller/tauri-events";
import { useGenerationEnqueueSuccessEvent } from "@storyteller/tauri-events";
import { useGenerationFailedEvent } from "@storyteller/tauri-events";
export const PageEnigma = ({ sceneToken }: { sceneToken?: string }) => {
useSignals();
@@ -1,10 +0,0 @@
export enum BasicEventStatus {
Success = "success",
Failure = "failure",
};
export interface BasicEventWrapper<T> {
status: BasicEventStatus,
data: T,
};
+4
View File
@@ -2,4 +2,8 @@ export * from './lib/common/BasicEventWrapper';
export * from './lib/events/FlashUserInputErrorEvent';
export * from './lib/events/RefreshAccountStateEvent';
export * from './lib/events/ShowProviderLoginModalEvent';
export * from './lib/events/generation/useGenerationCompleteEvent';
export * from './lib/events/generation/useGenerationEnqueueFailureEvent';
export * from './lib/events/generation/useGenerationEnqueueSuccessEvent';
export * from './lib/events/generation/useGenerationFailedEvent';
export * from './lib/tauri-events';
@@ -4,7 +4,7 @@ import { SoundRegistry } from "@storyteller/soundboard";
import { GetAppPreferences } from "@storyteller/tauri-api";
import { toast } from "@storyteller/ui-toaster";
import { GenerationAction, GenerationModel, GenerationServiceProvider } from "./common";
import { BasicEventWrapper } from "../BasicEventWrapper";
import { BasicEventWrapper } from "../../common/BasicEventWrapper";
type GenerationCompleteEvent = {
action?: GenerationAction,
@@ -4,7 +4,7 @@ import { SoundRegistry } from "@storyteller/soundboard";
import { GetAppPreferences } from "@storyteller/tauri-api";
import { toast } from "@storyteller/ui-toaster";
import { GenerationAction, GenerationModel, GenerationServiceProvider } from "./common";
import { BasicEventWrapper } from "../BasicEventWrapper";
import { BasicEventWrapper } from "../../common/BasicEventWrapper";
type GenerationEnqueueFailureEvent = {
action: GenerationAction,
@@ -4,7 +4,7 @@ import { SoundRegistry } from "@storyteller/soundboard";
import { GetAppPreferences } from "@storyteller/tauri-api";
import { toast } from "@storyteller/ui-toaster";
import { GenerationAction, GenerationModel, GenerationServiceProvider } from "./common";
import { BasicEventWrapper } from "../BasicEventWrapper";
import { BasicEventWrapper } from "../../common/BasicEventWrapper";
type GenerationEnqueueSuccessEvent = {
action: GenerationAction,
@@ -4,7 +4,7 @@ import { SoundRegistry } from "@storyteller/soundboard";
import { GetAppPreferences } from "@storyteller/tauri-api";
import { toast } from "@storyteller/ui-toaster";
import { GenerationAction, GenerationModel, GenerationServiceProvider } from "./common";
import { BasicEventWrapper } from "../BasicEventWrapper";
import { BasicEventWrapper } from "../../common/BasicEventWrapper";
type GenerationFailedEvent = {
action: GenerationAction,