新版界面:品牌主题(深绿、暖纸色、金色强调)与应用外壳(顶栏、左侧导航、手机抽屉)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4a00b8f3fc
commit
eeea870963
10 files changed
+1340
-357
No files matched your search
+15
-16
@@ -6,7 +6,7 @@ import { navigate, useRoute } from './lib/router';
|
||||
import type { LedgerState, SessionInfo } from './shared';
|
||||
import { LoginPage } from './pages/Login/LoginPage';
|
||||
import { CreateOrderPage } from './pages/CreateOrder/CreateOrderPage';
|
||||
import { TopBar } from './components/TopBar';
|
||||
import { AppShell } from './components/AppShell';
|
||||
import { RequestStatus } from './components/RequestStatus';
|
||||
|
||||
export function App({ client }: { client: LedgerClient }) {
|
||||
@@ -48,7 +48,8 @@ export function App({ client }: { client: LedgerClient }) {
|
||||
|
||||
if (error)
|
||||
return (
|
||||
<Result
|
||||
<div className="page-center">
|
||||
<Result
|
||||
status="warning"
|
||||
title="系统暂时没有连接上"
|
||||
subTitle={error + ' 请保持启动窗口打开,再刷新页面。'}
|
||||
@@ -57,7 +58,8 @@ export function App({ client }: { client: LedgerClient }) {
|
||||
重新连接
|
||||
</Button>
|
||||
}
|
||||
/>
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
if (!session)
|
||||
return (
|
||||
@@ -78,19 +80,16 @@ export function App({ client }: { client: LedgerClient }) {
|
||||
</div>
|
||||
);
|
||||
return (
|
||||
<div className="shell">
|
||||
<TopBar client={client} state={state} session={session} onLoggedOut={init} />
|
||||
<AppShell client={client} state={state} session={session} onLoggedOut={init}>
|
||||
<RequestStatus client={client} />
|
||||
<main className="main">
|
||||
<CreateOrderPage
|
||||
key={state.user.id}
|
||||
client={client}
|
||||
state={state}
|
||||
session={session}
|
||||
refreshState={refreshState}
|
||||
onAccountChanged={init}
|
||||
/>
|
||||
</main>
|
||||
</div>
|
||||
<CreateOrderPage
|
||||
key={state.user.id}
|
||||
client={client}
|
||||
state={state}
|
||||
session={session}
|
||||
refreshState={refreshState}
|
||||
onAccountChanged={init}
|
||||
/>
|
||||
</AppShell>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user