Skip to content

Commit 04548ba

Browse files
linhayCopilot
andcommitted
feat: add standalone account-import route (#frame=account-import)
- Add 'account-import' to AppPage type and productionAppPages - Create AccountImportPage.tsx with full-page layout (header + two-column + footer) - Register lazy route in App.tsx; onDone navigates back to accounts - Add common.back translation (zh: 返回 / en: Back) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d38fd4f commit 04548ba

6 files changed

Lines changed: 378 additions & 2 deletions

File tree

frontend/src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { useAppNavigation } from './hooks/useAppNavigation';
1616
import { toErrorMessage } from './utils/error';
1717
import { hasWailsRuntime } from './utils/previewMode';
1818

19+
const AccountImportPage = lazy(() => import('./pages/AccountImportPage'));
1920
const AccountsPage = lazy(() => import('./pages/AccountsPage'));
2021
const ClaudePage = lazy(() => import('./pages/ClaudePage'));
2122
const CodexPage = lazy(() => import('./pages/CodexPage'));
@@ -142,6 +143,9 @@ function AppShell() {
142143
if (activePage === 'design-system') {
143144
return <DesignSystemPage />;
144145
}
146+
if (activePage === 'account-import') {
147+
return <AccountImportPage onDone={() => setActivePage('accounts')} />;
148+
}
145149
if (activePage === 'proxy-pool') {
146150
return <ProxyPoolPage />;
147151
}

frontend/src/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"no": "No",
2323
"confirm_delete": "Delete this record?",
2424
"loading": "Loading...",
25-
"more_actions": "More Actions"
25+
"more_actions": "More Actions",
26+
"back": "Back"
2627
},
2728
"nav": {
2829
"status": "STATUS",

frontend/src/locales/zh.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"no": "",
2323
"confirm_delete": "确认删除此记录吗?",
2424
"loading": "数据加载中...",
25-
"more_actions": "更多操作"
25+
"more_actions": "更多操作",
26+
"back": "返回"
2627
},
2728
"nav": {
2829
"status": "运行状态",

0 commit comments

Comments
 (0)