Remove About button from NavRail and rename exe to XCOpenCodeWeb

This commit is contained in:
2026-03-13 15:03:45 +08:00
parent f780f2ddc3
commit c50547bce0
4 changed files with 7 additions and 23 deletions

View File

@@ -19,7 +19,6 @@ import {
RiSettings3Line, RiSettings3Line,
RiQuestionLine, RiQuestionLine,
RiDownloadLine, RiDownloadLine,
RiInformationLine,
RiPencilLine, RiPencilLine,
RiCloseLine, RiCloseLine,
RiMenuFoldLine, RiMenuFoldLine,
@@ -474,7 +473,6 @@ export const NavRail: React.FC<NavRailProps> = ({ className, mobile }) => {
const updateProjectMeta = useProjectsStore((s) => s.updateProjectMeta); const updateProjectMeta = useProjectsStore((s) => s.updateProjectMeta);
const homeDirectory = useDirectoryStore((s) => s.homeDirectory); const homeDirectory = useDirectoryStore((s) => s.homeDirectory);
const setSettingsDialogOpen = useUIStore((s) => s.setSettingsDialogOpen); const setSettingsDialogOpen = useUIStore((s) => s.setSettingsDialogOpen);
const setAboutDialogOpen = useUIStore((s) => s.setAboutDialogOpen);
const toggleHelpDialog = useUIStore((s) => s.toggleHelpDialog); const toggleHelpDialog = useUIStore((s) => s.toggleHelpDialog);
const isOverlayBlockingNavRailActions = useUIStore((s) => ( const isOverlayBlockingNavRailActions = useUIStore((s) => (
s.isSettingsDialogOpen s.isSettingsDialogOpen
@@ -551,7 +549,6 @@ export const NavRail: React.FC<NavRailProps> = ({ className, mobile }) => {
} | null>(null); } | null>(null);
const isDesktopApp = React.useMemo(() => isDesktopShell(), []); const isDesktopApp = React.useMemo(() => isDesktopShell(), []);
const tauriIpcAvailable = React.useMemo(() => isTauriShell(), []);
const formatLabel = React.useCallback( const formatLabel = React.useCallback(
(project: ProjectEntry): string => { (project: ProjectEntry): string => {
@@ -821,19 +818,6 @@ export const NavRail: React.FC<NavRailProps> = ({ className, mobile }) => {
/> />
)} )}
{!isDesktopApp && !(updateAvailable || updateDownloaded) && (
<NavRailActionButton
onClick={() => setAboutDialogOpen(true)}
disabled={navRailInteractionBlocked}
ariaLabel="About"
icon={<RiInformationLine className={navRailActionIconClass} />}
tooltipLabel="About OpenChamber"
buttonClassName={navRailActionButtonClass}
showExpandedContent={showExpandedContent}
actionTextVisible={actionTextVisible}
/>
)}
{!mobile && ( {!mobile && (
<NavRailActionButton <NavRailActionButton
onClick={toggleHelpDialog} onClick={toggleHelpDialog}

BIN
web/XCOpenCodeWeb.exe Normal file

Binary file not shown.

View File

@@ -1,9 +1,9 @@
{ {
"name": "openchamber", "name": "xcopencodeweb",
"version": "1.8.5", "version": "1.8.5",
"description": "OpenChamber - AI Agent Web UI", "description": "XCOpenCodeWeb - AI Agent Web UI",
"main": "electron/main.js", "main": "electron/main.js",
"author": "OpenChamber", "author": "XCOpenCodeWeb",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"electron:dev": "electron .", "electron:dev": "electron .",
@@ -11,8 +11,8 @@
"electron:start": "electron . --no-sandbox" "electron:start": "electron . --no-sandbox"
}, },
"build": { "build": {
"appId": "com.openchamber.app", "appId": "com.xcopencodeweb.app",
"productName": "OpenChamber", "productName": "XCOpenCodeWeb",
"directories": { "directories": {
"output": "release" "output": "release"
}, },
@@ -27,7 +27,7 @@
"target": "portable" "target": "portable"
}, },
"portable": { "portable": {
"artifactName": "OpenChamber.exe" "artifactName": "XCOpenCodeWeb.exe"
} }
}, },
"dependencies": {}, "dependencies": {},

View File

@@ -21,7 +21,7 @@
"lint": "eslint \"./src/**/*.{ts,tsx}\" --config ../eslint.config.js", "lint": "eslint \"./src/**/*.{ts,tsx}\" --config ../eslint.config.js",
"start": "node bin/cli.js serve", "start": "node bin/cli.js serve",
"embed:static": "node embed-static.js", "embed:static": "node embed-static.js",
"build:exe": "vite build && node embed-static.js && bun build entry-singlefile.js --compile --outfile OpenChamber.exe" "build:exe": "vite build && node embed-static.js && bun build entry-singlefile.js --compile --outfile XCOpenCodeWeb.exe"
}, },
"dependencies": { "dependencies": {
"@codemirror/lang-cpp": "^6.0.3", "@codemirror/lang-cpp": "^6.0.3",