feat: 完善图像工作区与创作工具体验
This commit is contained in:
@@ -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 />} />
|
||||
|
||||
Reference in New Issue
Block a user