feat(frontend): add API client, layout, and routing
- Create Axios-based API client with sources, jobs, and dashboard endpoints - Add responsive Layout component with navigation sidebar - Set up React Router with Dashboard, Backups, and Settings routes - Configure TanStack Query provider with default options - Use lucide-react for navigation icons
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
import * as v8 from 'v8';
|
||||
import { d as BirpcOptions, e as RuntimeRPC, f as ContextRPC, W as WorkerGlobalState, g as WorkerContext, R as ResolvedConfig } from './reporters-w_64AS5f.js';
|
||||
import { Awaitable } from '@vitest/utils';
|
||||
import 'vite';
|
||||
import '@vitest/runner';
|
||||
import 'vite-node';
|
||||
import '@vitest/snapshot';
|
||||
import '@vitest/expect';
|
||||
import '@vitest/runner/utils';
|
||||
import 'tinybench';
|
||||
import 'node:stream';
|
||||
import 'vite-node/client';
|
||||
import '@vitest/snapshot/manager';
|
||||
import 'vite-node/server';
|
||||
import 'node:worker_threads';
|
||||
import 'node:fs';
|
||||
import 'chai';
|
||||
|
||||
type WorkerRpcOptions = Pick<BirpcOptions<RuntimeRPC>, 'on' | 'post' | 'serialize' | 'deserialize'>;
|
||||
interface VitestWorker {
|
||||
getRpcOptions: (ctx: ContextRPC) => WorkerRpcOptions;
|
||||
runTests: (state: WorkerGlobalState) => Awaitable<unknown>;
|
||||
}
|
||||
|
||||
declare function createThreadsRpcOptions({ port }: WorkerContext): WorkerRpcOptions;
|
||||
declare function createForksRpcOptions(nodeV8: typeof v8): WorkerRpcOptions;
|
||||
/**
|
||||
* Reverts the wrapping done by `utils/config-helpers.ts`'s `wrapSerializableConfig`
|
||||
*/
|
||||
declare function unwrapSerializableConfig(config: ResolvedConfig): ResolvedConfig;
|
||||
|
||||
declare function provideWorkerState(context: any, state: WorkerGlobalState): WorkerGlobalState;
|
||||
|
||||
declare function run(ctx: ContextRPC): Promise<void>;
|
||||
|
||||
declare function runVmTests(state: WorkerGlobalState): Promise<void>;
|
||||
|
||||
declare function runBaseTests(state: WorkerGlobalState): Promise<void>;
|
||||
|
||||
export { type VitestWorker, type WorkerRpcOptions, createForksRpcOptions, createThreadsRpcOptions, provideWorkerState, runBaseTests, run as runVitestWorker, runVmTests, unwrapSerializableConfig };
|
||||
Reference in New Issue
Block a user