feat: 完善图像工作区与创作工具体验
Some checks failed
Electron E2E / Electron E2E (macos-latest) (push) Has been cancelled
Electron E2E / Electron E2E (ubuntu-latest) (push) Has been cancelled
Electron E2E / Electron E2E (windows-latest) (push) Has been cancelled

This commit is contained in:
inman
2026-08-16 14:08:02 +08:00
parent bfcb88cfef
commit 26b52d76e3
92 changed files with 16678 additions and 2975 deletions

View File

@@ -18,6 +18,7 @@ import { PreviewScene } from './pages/Makelore';
import { ProjectConfiguration } from './pages/ProjectConfiguration';
import { Workbench } from './pages/Workbench';
import { ImageCanvas } from './pages/ImageCanvas';
import { ImagePromptMuseum } from './pages/ImagePromptMuseum';
import { AiHardware } from './pages/AiHardware';
import { Settings } from './pages/Settings';
import { Setup } from './pages/Setup';
@@ -151,7 +152,9 @@ function ProtectedLayout({
const authenticated = useAuthStore((state) => state.isAuthenticated());
const allowsAnonymousImageWorkspace = imageWorkspaceLocalDevelopment
&& (location.pathname === '/image-canvas'
|| location.pathname.startsWith('/image-canvas/'));
|| location.pathname.startsWith('/image-canvas/')
|| location.pathname === '/image-prompts'
|| location.pathname.startsWith('/image-prompts/'));
if (!setupReady) {
return <StartupScreen />;
@@ -308,8 +311,7 @@ function App() {
}
}, [language]);
// Keep the document language in sync with the persisted setting so
// typography can preserve regional glyph forms for Japanese and Chinese.
// Keep the document language in sync with the persisted setting.
useEffect(() => {
const resolvedLanguage = resolveSupportedLanguage(language || i18n.language);
const root = window.document.documentElement;
@@ -411,6 +413,7 @@ function App() {
<Route path="/chat" element={<Navigate to="/opencode-chat" replace />} />
<Route path="/deliverables" element={<PreviewScene />} />
<Route path="/image-canvas" element={<ImageCanvas />} />
<Route path="/image-prompts" element={<ImagePromptMuseum />} />
<Route path="/ai-hardware" element={<AiHardware />} />
<Route path="/workbench/:projectId" element={<Workbench />} />
<Route path="/opencode-chat" element={<ProjectChatRoute />} />