Skip to content

CanvasAnvil is an open source AI diagram maker and flowchart generator - an infinite-canvas diagram editor and self-hosted drawio alternative that writes editable .drawio files. Text to diagram, then fix nodes, layout and labels in place. Also AI presentations, interior design CAD/BOM, posters and infographics.

deploy_fix

codingFeng101b1194bfc96f1
diff --git a/index.html b/index.html
index 7650e18..2e04c85 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>My Trae Project</title>
+ <title>CanvasAnvil</title>
<script type="module">
if (import.meta.hot?.on) {
import.meta.hot.on('vite:error', (error) => {
diff --git a/package-lock.json b/package-lock.json
index f86fdbc..ae456b5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -67,7 +67,6 @@
"@types/three": "^0.182.0",
"@vitejs/plugin-react": "^4.4.1",
"autoprefixer": "^10.4.23",
- "babel-plugin-react-dev-locator": "^1.0.0",
"concurrently": "^9.2.1",
"eslint": "^9.25.0",
"eslint-plugin-react-hooks": "^5.2.0",
@@ -78,7 +77,6 @@
"typescript": "~5.8.3",
"typescript-eslint": "^8.30.1",
"vite": "^6.3.5",
- "vite-plugin-trae-solo-badge": "^1.0.0",
"vite-tsconfig-paths": "^5.1.4"
}
},
@@ -3426,23 +3424,6 @@
"postcss": "^8.1.0"
}
},
- "node_modules/babel-plugin-react-dev-locator": {
- "version": "1.0.6",
- "resolved": "https://registry.npmmirror.com/babel-plugin-react-dev-locator/-/babel-plugin-react-dev-locator-1.0.6.tgz",
- "integrity": "sha512-XWi+6x6e4NvVwvOqwitci/BZU1xbNfNuL94kfT4kWfP/d9p3RYRVOrogs1Z1otlYfQUO07cy/20z8eY9blFSpw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@babel/core": "^7.27.1",
- "@babel/generator": "^7.27.1",
- "@babel/parser": "^7.27.1",
- "@babel/traverse": "^7.27.1",
- "@babel/types": "^7.27.1"
- },
- "engines": {
- "node": ">=12.0.0"
- }
- },
"node_modules/bail": {
"version": "2.0.2",
"resolved": "https://registry.npmmirror.com/bail/-/bail-2.0.2.tgz",
@@ -9073,19 +9054,6 @@
}
}
},
- "node_modules/vite-plugin-trae-solo-badge": {
- "version": "1.0.0",
- "resolved": "https://registry.npmmirror.com/vite-plugin-trae-solo-badge/-/vite-plugin-trae-solo-badge-1.0.0.tgz",
- "integrity": "sha512-vrNr4QmbcqqMeJPzHBqef70nqDzN6CQngFwuXTJMAgn3zMU4TWzvY0B3BRdjUjvg/BtvNJLlwu2cPKXTUjalHg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "tslib": "^2.8.1"
- },
- "peerDependencies": {
- "vite": ">=4.0.0"
- }
- },
"node_modules/vite-tsconfig-paths": {
"version": "5.1.4",
"resolved": "https://registry.npmmirror.com/vite-tsconfig-paths/-/vite-tsconfig-paths-5.1.4.tgz",
diff --git a/package.json b/package.json
index 85c0ab5..9f1fd5c 100644
--- a/package.json
+++ b/package.json
@@ -74,7 +74,6 @@
"@types/three": "^0.182.0",
"@vitejs/plugin-react": "^4.4.1",
"autoprefixer": "^10.4.23",
- "babel-plugin-react-dev-locator": "^1.0.0",
"concurrently": "^9.2.1",
"eslint": "^9.25.0",
"eslint-plugin-react-hooks": "^5.2.0",
@@ -85,7 +84,6 @@
"typescript": "~5.8.3",
"typescript-eslint": "^8.30.1",
"vite": "^6.3.5",
- "vite-plugin-trae-solo-badge": "^1.0.0",
"vite-tsconfig-paths": "^5.1.4"
}
}
diff --git a/vite.config.ts b/vite.config.ts
index f7ec173..cbb7ae7 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -3,7 +3,6 @@ import type { IncomingMessage, ServerResponse } from "node:http";
import type { Connect, Plugin } from "vite";
import react from '@vitejs/plugin-react'
import tsconfigPaths from "vite-tsconfig-paths";
-import { traeBadgePlugin } from 'vite-plugin-trae-solo-badge';
import { GET as getConfig } from "./api/routes/config";
import { POST as postVerifyAccessCode } from "./api/routes/verify-access-code";
import { POST as postLogFeedback } from "./api/routes/log-feedback";
@@ -124,22 +123,7 @@ export default defineConfig({
},
plugins: [
createLocalApiPlugin(),
- react({
- babel: {
- plugins: [
- 'react-dev-locator',
- ],
- },
- }),
- traeBadgePlugin({
- variant: 'dark',
- position: 'bottom-right',
- prodOnly: true,
- clickable: true,
- clickUrl: 'https://www.trae.ai/solo?showJoin=1',
- autoTheme: true,
- autoThemeTarget: '#root'
- }),
+ react(),
tsconfigPaths()
],
})