π OpenHands: AI-Driven Development
chore: remove unused assets, env var, and obsolete script (#564)
Hiep Le3300768da8fa
diff --git a/.env.sample b/.env.sampleindex 7ff3196ad6..a07368204d 100644--- a/.env.sample+++ b/.env.sample@@ -23,7 +23,6 @@ VITE_INSECURE_SKIP_VERIFY="false" # Skip TLS certificate verification for proxie# Mocking / test helpersVITE_MOCK_API="false" # Enable/disable API mocking with MSW-# VITE_GITHUB_TOKEN="" # GitHub token for repository access (used in some tests)# `npm run dev` (scripts/dev-safe.mjs) β isolated local backend via uvx# OH_CANVAS_SAFE_BACKEND_PORT="18000" # Port the spawned agent-server listens ondiff --git a/DEVELOPMENT.md b/DEVELOPMENT.mdindex e6b848b822..d093251ae6 100644--- a/DEVELOPMENT.md+++ b/DEVELOPMENT.md@@ -161,4 +161,3 @@ You can create a `.env` file in the project directory with these variables based| `VITE_USE_TLS` | Use HTTPS/WSS for the Vite proxy target | `false` || `VITE_FRONTEND_PORT` | Port to run the frontend application | `3001` || `VITE_INSECURE_SKIP_VERIFY` | Skip TLS certificate verification for proxied backend requests | `false` |-| `VITE_GITHUB_TOKEN` | GitHub token for repository access (used in some tests) | - |diff --git a/scripts/detect-node-version.js b/scripts/detect-node-version.jsdeleted file mode 100644index d8c7de2a19..0000000000--- a/scripts/detect-node-version.js+++ /dev/null@@ -1,28 +0,0 @@-function parseVersion(version) {- return version.split('.').map(Number);-}--function compareVersions(v1, v2) {- const v1Parts = parseVersion(v1);- const v2Parts = parseVersion(v2);-- for (let i = 0; i < Math.max(v1Parts.length, v2Parts.length); i++) {- const v1Part = v1Parts[i] || 0;- const v2Part = v2Parts[i] || 0;-- if (v1Part > v2Part) return 1;- if (v1Part < v2Part) return -1;- }-- return 0;-}--const currentVersion = process.version.substring(1);-const targetVersion = "18.17.1";--if (compareVersions(currentVersion, targetVersion) >= 0) {- console.log(`Current Node.js version is ${currentVersion}, corepack is supported.`);-} else {- console.error(`Current Node.js version is ${currentVersion}, but corepack is unsupported. Required version: ^${targetVersion}.`);- process.exit(1)-}diff --git a/src/assets/branding/bitbucket-logo.svg b/src/assets/branding/bitbucket-logo.svgdeleted file mode 100644index c4efcbfc72..0000000000--- a/src/assets/branding/bitbucket-logo.svg+++ /dev/null@@ -1 +0,0 @@-<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bitbucket</title><path fill="currentColor" d="M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z"/></svg>diff --git a/src/assets/branding/github-logo.svg b/src/assets/branding/github-logo.svgdeleted file mode 100644index 8d94fbcb8f..0000000000--- a/src/assets/branding/github-logo.svg+++ /dev/null@@ -1,3 +0,0 @@-<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">- <path d="M12 2.25C6.624 2.25 2.25 6.624 2.25 12C2.25 16.376 5.115 20.073 9.057 21.428C9.563 21.514 9.747 21.211 9.747 20.95C9.747 20.713 9.738 19.991 9.738 19.153C7 19.713 6.4 18.45 6.4 18.45C5.952 17.387 5.328 17.084 5.328 17.084C4.476 16.487 5.387 16.487 5.387 16.487C6.328 16.546 6.85 17.481 6.85 17.481C7.675 18.862 9.057 18.487 9.776 18.226C9.867 17.603 10.133 17.179 10.419 16.94C8.287 16.713 6.05 15.85 6.05 11.9C6.05 10.837 6.4 9.975 6.859 9.3C6.759 9.05 6.45 8.038 6.95 6.65C6.95 6.65 7.734 6.4 9.738 7.775C10.483 7.534 11.25 7.413 12.017 7.413C12.784 7.413 13.55 7.534 14.296 7.775C16.3 6.4 17.084 6.65 17.084 6.65C17.584 8.038 17.275 9.05 17.175 9.3C17.634 9.975 17.984 10.837 17.984 11.9C17.984 15.85 15.747 16.7 13.615 16.94C13.975 17.237 14.296 17.813 14.296 18.7C14.296 19.975 14.287 20.6 14.287 20.95C14.287 21.211 14.471 21.514 14.977 21.428C18.919 20.073 21.784 16.376 21.784 12C21.784 6.624 17.376 2.25 12 2.25Z" fill="currentColor"/>-</svg>diff --git a/src/assets/branding/gitlab-logo.svg b/src/assets/branding/gitlab-logo.svgdeleted file mode 100644index cd6bff4c3a..0000000000--- a/src/assets/branding/gitlab-logo.svg+++ /dev/null@@ -1,8 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" viewBox="97 99 186 182">- <defs>- <style>.cls-1{fill:currentColor;}</style>- </defs>- <g id="LOGO">- <path class="cls-1" d="M282.83,170.73l-.27-.69-26.14-68.22a6.81,6.81,0,0,0-2.69-3.24,7,7,0,0,0-8,.43,7,7,0,0,0-2.32,3.52l-17.65,54H154.29l-17.65-54A6.86,6.86,0,0,0,134.32,99a7,7,0,0,0-8-.43,6.87,6.87,0,0,0-2.69,3.24L97.44,170l-.26.69a48.54,48.54,0,0,0,16.1,56.1l.09.07.24.17,39.82,29.82,19.7,14.91,12,9.06a8.07,8.07,0,0,0,9.76,0l12-9.06,19.7-14.91,40.06-30,.1-.08A48.56,48.56,0,0,0,282.83,170.73Z"/>- </g>-</svg>diff --git a/src/assets/stripe.svg b/src/assets/stripe.svgdeleted file mode 100644index 4547cbf8e8..0000000000--- a/src/assets/stripe.svg+++ /dev/null@@ -1,6 +0,0 @@-<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="Layer_1" x="0" y="0" style="enable-background:new 0 0 468 222.5" version="1.1" viewBox="0 0 468 222.5">- <style>- .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#635bff}- </style>- <path d="M414 113.4c0-25.6-12.4-45.8-36.1-45.8-23.8 0-38.2 20.2-38.2 45.6 0 30.1 17 45.3 41.4 45.3 11.9 0 20.9-2.7 27.7-6.5v-20c-6.8 3.4-14.6 5.5-24.5 5.5-9.7 0-18.3-3.4-19.4-15.2h48.9c0-1.3.2-6.5.2-8.9zm-49.4-9.5c0-11.3 6.9-16 13.2-16 6.1 0 12.6 4.7 12.6 16h-25.8zM301.1 67.6c-9.8 0-16.1 4.6-19.6 7.8l-1.3-6.2h-22v116.6l25-5.3.1-28.3c3.6 2.6 8.9 6.3 17.7 6.3 17.9 0 34.2-14.4 34.2-46.1-.1-29-16.6-44.8-34.1-44.8zm-6 68.9c-5.9 0-9.4-2.1-11.8-4.7l-.1-37.1c2.6-2.9 6.2-4.9 11.9-4.9 9.1 0 15.4 10.2 15.4 23.3 0 13.4-6.2 23.4-15.4 23.4zM223.8 61.7l25.1-5.4V36l-25.1 5.3zM223.8 69.3h25.1v87.5h-25.1zM196.9 76.7l-1.6-7.4h-21.6v87.5h25V97.5c5.9-7.7 15.9-6.3 19-5.2v-23c-3.2-1.2-14.9-3.4-20.8 7.4zM146.9 47.6l-24.4 5.2-.1 80.1c0 14.8 11.1 25.7 25.9 25.7 8.2 0 14.2-1.5 17.5-3.3V135c-3.2 1.3-19 5.9-19-8.9V90.6h19V69.3h-19l.1-21.7zM79.3 94.7c0-3.9 3.2-5.4 8.5-5.4 7.6 0 17.2 2.3 24.8 6.4V72.2c-8.3-3.3-16.5-4.6-24.8-4.6C67.5 67.6 54 78.2 54 95.9c0 27.6 38 23.2 38 35.1 0 4.6-4 6.1-9.6 6.1-8.3 0-18.9-3.4-27.3-8v23.8c9.3 4 18.7 5.7 27.3 5.7 20.8 0 35.1-10.3 35.1-28.2-.1-29.8-38.2-24.5-38.2-35.7z" class="st0"/>-</svg>