almost working with library imports, dev mode not working

This commit is contained in:
Brandon Thomas committed 2025-04-16 18:21:58 -04:00
1 parent dd55d7f205
commit 1d9e0087d6
3 files changed
+17

No files matched your search

@@ -36,6 +36,7 @@ import { PopoverItem } from "~/components/reusable/Popover";
import { Api, ApiManager } from "~/KonvaApp/Api";
import { useJobContext } from "~/components/JobContext";
import { Login } from "@storyteller/login";
//import { ApiFoo } from "@storyteller/api";
interface ReferenceImage {
id: string;
url: string;
@@ -48,6 +49,11 @@ export const PromptBox = () => {
const isDesktopApp = window.navigator.userAgent.includes("Tauri");
console.log("Is this a desktop app?", isDesktopApp);
//const apiFoo = new ApiFoo();
//const result = apiFoo.add(1, 2);
//console.log("Result of apiFoo.add(1, 2):", result);
const { jobTokens, addJobToken, removeJobToken, clearJobTokens } =
useJobContext();
+1
View File
@@ -1 +1,2 @@
export * from './lib/api.js';
export * from './lib/ApiFoo.js';
+10
View File
@@ -0,0 +1,10 @@
class ApiFoo {
constructor() {
console.log("ApiFoo constructor");
}
public add(a: number, b: number) {
return a + b;
}
}
export default ApiFoo;