mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
fix circular dep
This commit is contained in:
1 parent
165a7d74b3
commit
6b1f456753
4 files changed
+63
-7059
No files matched your search
@@ -0,0 +1,43 @@
|
||||
// NB(bt,2025-05-27): This is also declared in "editor3d".
|
||||
// I'm duplicating here to remove a circular dependency.
|
||||
// We should consolidate definitions eventually.
|
||||
export enum FilterEngineCategories {
|
||||
ANIMATION = "animation",
|
||||
AUDIO = "audio",
|
||||
CHARACTER = "character",
|
||||
CREATURE = "creature",
|
||||
EXPRESSION = "expression",
|
||||
IMAGE_PLANE = "image_plane",
|
||||
LOCATION = "location",
|
||||
OBJECT = "object",
|
||||
SCENE = "scene",
|
||||
SET_DRESSING = "set_dressing",
|
||||
SKYBOX = "skybox",
|
||||
VIDEO_PLANE = "video_plane",
|
||||
}
|
||||
|
||||
// NB(bt,2025-05-27): This is also declared in "editor3d".
|
||||
// I'm duplicating here to remove a circular dependency.
|
||||
// We should consolidate definitions eventually.
|
||||
export enum UploaderStates {
|
||||
ready,
|
||||
uploadingAsset,
|
||||
uploadingImage,
|
||||
uploadingCover,
|
||||
settingCover,
|
||||
success,
|
||||
assetError,
|
||||
coverCreateError,
|
||||
coverSetError,
|
||||
imageCreateError,
|
||||
}
|
||||
|
||||
export interface UploaderState {
|
||||
status: UploaderStates;
|
||||
errorMessage?: string;
|
||||
data?: string;
|
||||
}
|
||||
|
||||
export const initialUploaderState = {
|
||||
status: UploaderStates.ready,
|
||||
};
|
||||
@@ -4,8 +4,12 @@ import { Modal } from "@storyteller/ui-modal";
|
||||
import { UploadAssetError } from "./UploadAssetError";
|
||||
import { UploadSuccess } from "./UploadSuccess";
|
||||
import { UploadFiles } from "./UploadFiles";
|
||||
import { FilterEngineCategories, UploaderStates } from "~/enums";
|
||||
import { UploaderState, initialUploaderState } from "~/models";
|
||||
import {
|
||||
FilterEngineCategories,
|
||||
UploaderStates,
|
||||
UploaderState,
|
||||
initialUploaderState
|
||||
} from "./Types";
|
||||
|
||||
interface Props {
|
||||
onClose: () => void;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./UploadModal";
|
||||
export * from "./UploadAssetError";
|
||||
export * from "./UploadSuccess";
|
||||
export * from "./Types";
|
||||
Generated
+13
-7057
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user