Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/ContractDashboard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { useState } from "react";
import { logger } from "../utils/logger";

/**
* Multi-Network Contract Management Dashboard
Expand Down
6 changes: 6 additions & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_API_URL?: string;
}

declare module "monaco-editor" {
export type editor = typeof import("monaco-editor").editor;
export namespace editor {
Expand Down
6 changes: 0 additions & 6 deletions src/pages/BatchMultiCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,6 @@ export default function BatchMultiCall() {
>
Export as JSON
</button>
<button onClick={exportAsFoundry} disabled={calls.length === 0} style={{ fontSize: 12 }}>
Export as Foundry (.sol)
</button>
<button onClick={exportAsCli} disabled={calls.length === 0} style={{ fontSize: 12 }}>
Export as CLI (.sh)
</button>
</div>
</div>
</div>
Expand Down
7 changes: 0 additions & 7 deletions src/services/sandbox-api.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import { SandboxFile } from "./webcontainer";

declare global {
interface ImportMeta {
readonly env: {
readonly VITE_API_URL?: string;
};
}
}

const API_BASE = import.meta.env.VITE_API_URL || "http://localhost:3001";

Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"jsx": "react-jsx",
"strict": true,
"noEmit": true,
"skipLibCheck": true
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"include": ["src"]
}
15 changes: 15 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/// <reference types="vitest" />
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
import monacoEditorPluginPkg from "vite-plugin-monaco-editor";
const monacoEditorPlugin =
monacoEditorPluginPkg.default || monacoEditorPluginPkg;
Expand Down Expand Up @@ -103,9 +105,22 @@ export default defineConfig({
},
},
server: { proxy: { "/api": "http://localhost:3001" } },
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
test: {
environment: "jsdom",
globals: true,
setupFiles: ["./test/setup.ts"],
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
statements: 80,
branches: 80,
functions: 80,
lines: 80,
},
},
});
25 changes: 0 additions & 25 deletions vitest.config.ts

This file was deleted.

7 changes: 0 additions & 7 deletions vitest.setup.ts

This file was deleted.

Loading