Files
NiJingzhe ff6c8a573e editor-web: a feature tree, a command bar and spec-generated parameter dialogs
The Features tab lists the notebook's features (GUI-made ones editable, code ones marked), shows each one's errors, offers
undo/redo and a banner when the product does not build from the tip. Operations are added from a floating command bar
(category chips, keyword search, Up/Down/Enter, docked top or bottom, collapsible) fed by a command registry; each one opens a
non-modal dialog generated from the operation's typed slots, with viewport picks for faces and edges and a 'use picked face'
helper for holes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 01:44:08 +08:00

32 lines
985 B
TypeScript

import path from "node:path";
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
// The studio webui. In dev, API/WebSocket traffic proxies to the runtime
// server (`sca edit`, default :7180); `npm run build` emits the
// static bundle the server hosts from simplecadapi/editor/webui.
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(import.meta.dirname, "./src"),
},
},
// settle.test.ts is a node:test file (see its header); vitest runs the others.
test: { include: ["src/**/*.test.ts"], exclude: ["src/lib/settle.test.ts", "node_modules/**"] },
server: {
port: 5180,
proxy: {
"/api": "http://127.0.0.1:7180",
"/ws": { target: "ws://127.0.0.1:7180", ws: true },
},
},
build: {
outDir: "../src/simplecadapi/editor/webui",
emptyOutDir: true,
chunkSizeWarningLimit: 1600,
},
});