@akiojin/gwt 2.12.1 → 2.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +33 -0
- package/README.md +31 -0
- package/dist/claude.d.ts.map +1 -1
- package/dist/claude.js +17 -11
- package/dist/claude.js.map +1 -1
- package/dist/cli/ui/components/App.d.ts +0 -6
- package/dist/cli/ui/components/App.d.ts.map +1 -1
- package/dist/cli/ui/components/App.js +93 -85
- package/dist/cli/ui/components/App.js.map +1 -1
- package/dist/cli/ui/components/common/Select.js +2 -2
- package/dist/cli/ui/components/common/Select.js.map +1 -1
- package/dist/cli/ui/components/screens/BranchListScreen.d.ts +3 -1
- package/dist/cli/ui/components/screens/BranchListScreen.d.ts.map +1 -1
- package/dist/cli/ui/components/screens/BranchListScreen.js +168 -34
- package/dist/cli/ui/components/screens/BranchListScreen.js.map +1 -1
- package/dist/cli/ui/components/screens/BranchQuickStartScreen.d.ts.map +1 -1
- package/dist/cli/ui/components/screens/BranchQuickStartScreen.js +3 -3
- package/dist/cli/ui/components/screens/BranchQuickStartScreen.js.map +1 -1
- package/dist/cli/ui/hooks/useGitData.d.ts.map +1 -1
- package/dist/cli/ui/hooks/useGitData.js +17 -0
- package/dist/cli/ui/hooks/useGitData.js.map +1 -1
- package/dist/cli/ui/types.d.ts +2 -0
- package/dist/cli/ui/types.d.ts.map +1 -1
- package/dist/cli/ui/utils/branchFormatter.d.ts.map +1 -1
- package/dist/cli/ui/utils/branchFormatter.js +7 -2
- package/dist/cli/ui/utils/branchFormatter.js.map +1 -1
- package/dist/cli/ui/utils/continueSession.d.ts.map +1 -1
- package/dist/cli/ui/utils/continueSession.js +1 -1
- package/dist/cli/ui/utils/continueSession.js.map +1 -1
- package/dist/cli/ui/utils/modelOptions.d.ts.map +1 -1
- package/dist/cli/ui/utils/modelOptions.js +7 -0
- package/dist/cli/ui/utils/modelOptions.js.map +1 -1
- package/dist/client/assets/index-DPWWHorC.js +72 -0
- package/dist/client/assets/index-DsDNCy5f.css +1 -0
- package/dist/client/index.html +2 -2
- package/dist/codex.d.ts.map +1 -1
- package/dist/codex.js +21 -11
- package/dist/codex.js.map +1 -1
- package/dist/config/builtin-tools.d.ts.map +1 -1
- package/dist/config/builtin-tools.js +3 -2
- package/dist/config/builtin-tools.js.map +1 -1
- package/dist/config/shared-env.d.ts +41 -0
- package/dist/config/shared-env.d.ts.map +1 -0
- package/dist/config/shared-env.js +114 -0
- package/dist/config/shared-env.js.map +1 -0
- package/dist/gemini.d.ts.map +1 -1
- package/dist/gemini.js +20 -17
- package/dist/gemini.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +55 -7
- package/dist/index.js.map +1 -1
- package/dist/logging/logger.d.ts +24 -0
- package/dist/logging/logger.d.ts.map +1 -0
- package/dist/logging/logger.js +60 -0
- package/dist/logging/logger.js.map +1 -0
- package/dist/logging/rotation.d.ts +6 -0
- package/dist/logging/rotation.d.ts.map +1 -0
- package/dist/logging/rotation.js +26 -0
- package/dist/logging/rotation.js.map +1 -0
- package/dist/qwen.d.ts.map +1 -1
- package/dist/qwen.js +15 -11
- package/dist/qwen.js.map +1 -1
- package/dist/services/aiToolResolver.d.ts +41 -0
- package/dist/services/aiToolResolver.d.ts.map +1 -0
- package/dist/services/aiToolResolver.js +194 -0
- package/dist/services/aiToolResolver.js.map +1 -0
- package/dist/services/customToolResolver.d.ts +10 -0
- package/dist/services/customToolResolver.d.ts.map +1 -0
- package/dist/services/customToolResolver.js +71 -0
- package/dist/services/customToolResolver.js.map +1 -0
- package/dist/shared/aiToolConstants.d.ts +9 -0
- package/dist/shared/aiToolConstants.d.ts.map +1 -0
- package/dist/shared/aiToolConstants.js +29 -0
- package/dist/shared/aiToolConstants.js.map +1 -0
- package/dist/types/tools.d.ts +12 -0
- package/dist/types/tools.d.ts.map +1 -1
- package/dist/utils/prompt.d.ts.map +1 -1
- package/dist/utils/prompt.js.map +1 -1
- package/dist/utils/session.d.ts.map +1 -1
- package/dist/utils/session.js +15 -6
- package/dist/utils/session.js.map +1 -1
- package/dist/utils/terminal.d.ts +12 -3
- package/dist/utils/terminal.d.ts.map +1 -1
- package/dist/utils/terminal.js +5 -34
- package/dist/utils/terminal.js.map +1 -1
- package/dist/utils/webui.d.ts +8 -0
- package/dist/utils/webui.d.ts.map +1 -0
- package/dist/utils/webui.js +35 -0
- package/dist/utils/webui.js.map +1 -0
- package/dist/web/client/src/components/AIToolLaunchModal.d.ts +9 -0
- package/dist/web/client/src/components/AIToolLaunchModal.d.ts.map +1 -0
- package/dist/web/client/src/components/AIToolLaunchModal.js +363 -0
- package/dist/web/client/src/components/AIToolLaunchModal.js.map +1 -0
- package/dist/web/client/src/components/BranchGraph.d.ts.map +1 -1
- package/dist/web/client/src/components/BranchGraph.js +46 -49
- package/dist/web/client/src/components/BranchGraph.js.map +1 -1
- package/dist/web/client/src/components/CustomToolForm.d.ts +23 -0
- package/dist/web/client/src/components/CustomToolForm.d.ts.map +1 -0
- package/dist/web/client/src/components/CustomToolForm.js +209 -0
- package/dist/web/client/src/components/CustomToolForm.js.map +1 -0
- package/dist/web/client/src/components/CustomToolList.d.ts +10 -0
- package/dist/web/client/src/components/CustomToolList.d.ts.map +1 -0
- package/dist/web/client/src/components/CustomToolList.js +57 -0
- package/dist/web/client/src/components/CustomToolList.js.map +1 -0
- package/dist/web/client/src/components/EnvEditor.d.ts.map +1 -1
- package/dist/web/client/src/components/EnvEditor.js +33 -26
- package/dist/web/client/src/components/EnvEditor.js.map +1 -1
- package/dist/web/client/src/components/EnvironmentEditor.d.ts +17 -0
- package/dist/web/client/src/components/EnvironmentEditor.d.ts.map +1 -0
- package/dist/web/client/src/components/EnvironmentEditor.js +22 -0
- package/dist/web/client/src/components/EnvironmentEditor.js.map +1 -0
- package/dist/web/client/src/components/Terminal.d.ts.map +1 -1
- package/dist/web/client/src/components/Terminal.js +10 -3
- package/dist/web/client/src/components/Terminal.js.map +1 -1
- package/dist/web/client/src/components/branch-detail/BranchInfoCards.d.ts +10 -0
- package/dist/web/client/src/components/branch-detail/BranchInfoCards.d.ts.map +1 -0
- package/dist/web/client/src/components/branch-detail/BranchInfoCards.js +104 -0
- package/dist/web/client/src/components/branch-detail/BranchInfoCards.js.map +1 -0
- package/dist/web/client/src/components/branch-detail/SessionHistoryTable.d.ts +22 -0
- package/dist/web/client/src/components/branch-detail/SessionHistoryTable.d.ts.map +1 -0
- package/dist/web/client/src/components/branch-detail/SessionHistoryTable.js +79 -0
- package/dist/web/client/src/components/branch-detail/SessionHistoryTable.js.map +1 -0
- package/dist/web/client/src/components/branch-detail/TerminalPanel.d.ts +11 -0
- package/dist/web/client/src/components/branch-detail/TerminalPanel.d.ts.map +1 -0
- package/dist/web/client/src/components/branch-detail/TerminalPanel.js +32 -0
- package/dist/web/client/src/components/branch-detail/TerminalPanel.js.map +1 -0
- package/dist/web/client/src/components/branch-detail/ToolLauncher.d.ts +40 -0
- package/dist/web/client/src/components/branch-detail/ToolLauncher.d.ts.map +1 -0
- package/dist/web/client/src/components/branch-detail/ToolLauncher.js +147 -0
- package/dist/web/client/src/components/branch-detail/ToolLauncher.js.map +1 -0
- package/dist/web/client/src/components/branch-detail/index.d.ts +5 -0
- package/dist/web/client/src/components/branch-detail/index.d.ts.map +1 -0
- package/dist/web/client/src/components/branch-detail/index.js +5 -0
- package/dist/web/client/src/components/branch-detail/index.js.map +1 -0
- package/dist/web/client/src/components/common/BranchCard.d.ts +17 -0
- package/dist/web/client/src/components/common/BranchCard.d.ts.map +1 -0
- package/dist/web/client/src/components/common/BranchCard.js +36 -0
- package/dist/web/client/src/components/common/BranchCard.js.map +1 -0
- package/dist/web/client/src/components/common/MetricCard.d.ts +10 -0
- package/dist/web/client/src/components/common/MetricCard.d.ts.map +1 -0
- package/dist/web/client/src/components/common/MetricCard.js +10 -0
- package/dist/web/client/src/components/common/MetricCard.js.map +1 -0
- package/dist/web/client/src/components/common/PageHeader.d.ts +12 -0
- package/dist/web/client/src/components/common/PageHeader.d.ts.map +1 -0
- package/dist/web/client/src/components/common/PageHeader.js +14 -0
- package/dist/web/client/src/components/common/PageHeader.js.map +1 -0
- package/dist/web/client/src/components/common/SearchInput.d.ts +14 -0
- package/dist/web/client/src/components/common/SearchInput.d.ts.map +1 -0
- package/dist/web/client/src/components/common/SearchInput.js +15 -0
- package/dist/web/client/src/components/common/SearchInput.js.map +1 -0
- package/dist/web/client/src/components/common/StatusBadge.d.ts +10 -0
- package/dist/web/client/src/components/common/StatusBadge.d.ts.map +1 -0
- package/dist/web/client/src/components/common/StatusBadge.js +15 -0
- package/dist/web/client/src/components/common/StatusBadge.js.map +1 -0
- package/dist/web/client/src/components/common/index.d.ts +6 -0
- package/dist/web/client/src/components/common/index.d.ts.map +1 -0
- package/dist/web/client/src/components/common/index.js +6 -0
- package/dist/web/client/src/components/common/index.js.map +1 -0
- package/dist/web/client/src/components/ui/alert.d.ts +9 -0
- package/dist/web/client/src/components/ui/alert.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/alert.js +25 -0
- package/dist/web/client/src/components/ui/alert.js.map +1 -0
- package/dist/web/client/src/components/ui/badge.d.ts +10 -0
- package/dist/web/client/src/components/ui/badge.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/badge.js +25 -0
- package/dist/web/client/src/components/ui/badge.js.map +1 -0
- package/dist/web/client/src/components/ui/button.d.ts +12 -0
- package/dist/web/client/src/components/ui/button.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/button.js +33 -0
- package/dist/web/client/src/components/ui/button.js.map +1 -0
- package/dist/web/client/src/components/ui/card.d.ts +9 -0
- package/dist/web/client/src/components/ui/card.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/card.js +16 -0
- package/dist/web/client/src/components/ui/card.js.map +1 -0
- package/dist/web/client/src/components/ui/index.d.ts +8 -0
- package/dist/web/client/src/components/ui/index.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/index.js +8 -0
- package/dist/web/client/src/components/ui/index.js.map +1 -0
- package/dist/web/client/src/components/ui/input.d.ts +4 -0
- package/dist/web/client/src/components/ui/input.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/input.js +8 -0
- package/dist/web/client/src/components/ui/input.js.map +1 -0
- package/dist/web/client/src/components/ui/select.d.ts +14 -0
- package/dist/web/client/src/components/ui/select.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/select.js +39 -0
- package/dist/web/client/src/components/ui/select.js.map +1 -0
- package/dist/web/client/src/components/ui/table.d.ts +11 -0
- package/dist/web/client/src/components/ui/table.d.ts.map +1 -0
- package/dist/web/client/src/components/ui/table.js +21 -0
- package/dist/web/client/src/components/ui/table.js.map +1 -0
- package/dist/web/client/src/hooks/useSessions.d.ts.map +1 -1
- package/dist/web/client/src/hooks/useSessions.js +6 -1
- package/dist/web/client/src/hooks/useSessions.js.map +1 -1
- package/dist/web/client/src/lib/utils.d.ts +7 -0
- package/dist/web/client/src/lib/utils.d.ts.map +1 -0
- package/dist/web/client/src/lib/utils.js +10 -0
- package/dist/web/client/src/lib/utils.js.map +1 -0
- package/dist/web/client/src/lib/websocket.d.ts +7 -0
- package/dist/web/client/src/lib/websocket.d.ts.map +1 -1
- package/dist/web/client/src/lib/websocket.js +44 -0
- package/dist/web/client/src/lib/websocket.js.map +1 -1
- package/dist/web/client/src/pages/BranchDetailPage.d.ts.map +1 -1
- package/dist/web/client/src/pages/BranchDetailPage.js +113 -361
- package/dist/web/client/src/pages/BranchDetailPage.js.map +1 -1
- package/dist/web/client/src/pages/BranchListPage.d.ts.map +1 -1
- package/dist/web/client/src/pages/BranchListPage.js +89 -127
- package/dist/web/client/src/pages/BranchListPage.js.map +1 -1
- package/dist/web/client/src/pages/ConfigManagementPage.d.ts.map +1 -1
- package/dist/web/client/src/pages/ConfigManagementPage.js +46 -41
- package/dist/web/client/src/pages/ConfigManagementPage.js.map +1 -1
- package/dist/web/client/src/pages/ConfigPage.d.ts +3 -0
- package/dist/web/client/src/pages/ConfigPage.d.ts.map +1 -0
- package/dist/web/client/src/pages/ConfigPage.js +216 -0
- package/dist/web/client/src/pages/ConfigPage.js.map +1 -0
- package/dist/web/client/vite.config.d.ts.map +1 -1
- package/dist/web/client/vite.config.js +8 -1
- package/dist/web/client/vite.config.js.map +1 -1
- package/dist/web/server/index.d.ts +24 -2
- package/dist/web/server/index.d.ts.map +1 -1
- package/dist/web/server/index.js +49 -18
- package/dist/web/server/index.js.map +1 -1
- package/dist/web/server/pty/manager.d.ts +12 -10
- package/dist/web/server/pty/manager.d.ts.map +1 -1
- package/dist/web/server/pty/manager.js +76 -43
- package/dist/web/server/pty/manager.js.map +1 -1
- package/dist/web/server/routes/branches.d.ts +2 -2
- package/dist/web/server/routes/branches.d.ts.map +1 -1
- package/dist/web/server/routes/branches.js.map +1 -1
- package/dist/web/server/routes/config.d.ts +2 -2
- package/dist/web/server/routes/config.d.ts.map +1 -1
- package/dist/web/server/routes/config.js.map +1 -1
- package/dist/web/server/routes/index.d.ts +2 -2
- package/dist/web/server/routes/index.d.ts.map +1 -1
- package/dist/web/server/routes/index.js.map +1 -1
- package/dist/web/server/routes/sessions.d.ts +2 -2
- package/dist/web/server/routes/sessions.d.ts.map +1 -1
- package/dist/web/server/routes/sessions.js +35 -2
- package/dist/web/server/routes/sessions.js.map +1 -1
- package/dist/web/server/routes/worktrees.d.ts +2 -2
- package/dist/web/server/routes/worktrees.d.ts.map +1 -1
- package/dist/web/server/routes/worktrees.js +2 -2
- package/dist/web/server/routes/worktrees.js.map +1 -1
- package/dist/web/server/services/worktrees.d.ts.map +1 -1
- package/dist/web/server/services/worktrees.js +7 -1
- package/dist/web/server/services/worktrees.js.map +1 -1
- package/dist/web/server/tray.d.ts +24 -0
- package/dist/web/server/tray.d.ts.map +1 -0
- package/dist/web/server/tray.js +79 -0
- package/dist/web/server/tray.js.map +1 -0
- package/dist/web/server/types.d.ts +4 -0
- package/dist/web/server/types.d.ts.map +1 -0
- package/dist/web/server/types.js +2 -0
- package/dist/web/server/types.js.map +1 -0
- package/dist/web/server/websocket/handler.d.ts +18 -2
- package/dist/web/server/websocket/handler.d.ts.map +1 -1
- package/dist/web/server/websocket/handler.js +82 -9
- package/dist/web/server/websocket/handler.js.map +1 -1
- package/dist/worktree.d.ts +1 -0
- package/dist/worktree.d.ts.map +1 -1
- package/dist/worktree.js.map +1 -1
- package/package.json +17 -3
- package/src/claude.ts +26 -15
- package/src/cli/ui/__tests__/components/ModelSelectorScreen.initial.test.tsx +13 -13
- package/src/cli/ui/__tests__/components/common/Select.test.tsx +11 -0
- package/src/cli/ui/__tests__/components/screens/BranchListScreen.test.tsx +97 -33
- package/src/cli/ui/__tests__/components/screens/BranchQuickStartScreen.test.tsx +4 -4
- package/src/cli/ui/__tests__/performance/branchList.performance.test.tsx +7 -3
- package/src/cli/ui/components/App.tsx +111 -125
- package/src/cli/ui/components/common/Select.tsx +2 -2
- package/src/cli/ui/components/screens/BranchListScreen.tsx +220 -34
- package/src/cli/ui/components/screens/BranchQuickStartScreen.tsx +41 -46
- package/src/cli/ui/hooks/useGitData.ts +20 -0
- package/src/cli/ui/types.ts +3 -0
- package/src/cli/ui/utils/branchFormatter.ts +7 -2
- package/src/cli/ui/utils/continueSession.ts +1 -7
- package/src/cli/ui/utils/modelOptions.test.ts +14 -0
- package/src/cli/ui/utils/modelOptions.ts +7 -0
- package/src/codex.ts +31 -22
- package/src/config/builtin-tools.ts +6 -2
- package/src/config/shared-env.ts +139 -0
- package/src/gemini.ts +35 -22
- package/src/index.ts +61 -7
- package/src/logging/logger.ts +82 -0
- package/src/logging/rotation.ts +25 -0
- package/src/qwen.ts +28 -19
- package/src/services/aiToolResolver.ts +276 -0
- package/src/services/customToolResolver.ts +98 -0
- package/src/shared/aiToolConstants.ts +30 -0
- package/src/trayicon.d.ts +30 -0
- package/src/types/tools.ts +15 -0
- package/src/utils/prompt.ts +15 -9
- package/src/utils/session.ts +80 -26
- package/src/utils/terminal.ts +11 -41
- package/src/utils/webui.ts +43 -0
- package/src/web/client/components.json +21 -0
- package/src/web/client/src/components/AIToolLaunchModal.tsx +575 -0
- package/src/web/client/src/components/BranchGraph.tsx +95 -75
- package/src/web/client/src/components/CustomToolForm.tsx +386 -0
- package/src/web/client/src/components/CustomToolList.tsx +119 -0
- package/src/web/client/src/components/EnvEditor.tsx +91 -81
- package/src/web/client/src/components/EnvironmentEditor.tsx +97 -0
- package/src/web/client/src/components/Terminal.tsx +11 -3
- package/src/web/client/src/components/branch-detail/BranchInfoCards.tsx +179 -0
- package/src/web/client/src/components/branch-detail/SessionHistoryTable.tsx +181 -0
- package/src/web/client/src/components/branch-detail/TerminalPanel.tsx +92 -0
- package/src/web/client/src/components/branch-detail/ToolLauncher.tsx +327 -0
- package/src/web/client/src/components/branch-detail/index.ts +4 -0
- package/src/web/client/src/components/common/BranchCard.tsx +117 -0
- package/src/web/client/src/components/common/MetricCard.tsx +22 -0
- package/src/web/client/src/components/common/PageHeader.tsx +44 -0
- package/src/web/client/src/components/common/SearchInput.tsx +40 -0
- package/src/web/client/src/components/common/StatusBadge.tsx +37 -0
- package/src/web/client/src/components/common/index.ts +5 -0
- package/src/web/client/src/components/ui/alert.tsx +63 -0
- package/src/web/client/src/components/ui/badge.tsx +44 -0
- package/src/web/client/src/components/ui/button.tsx +57 -0
- package/src/web/client/src/components/ui/card.tsx +82 -0
- package/src/web/client/src/components/ui/index.ts +32 -0
- package/src/web/client/src/components/ui/input.tsx +21 -0
- package/src/web/client/src/components/ui/select.tsx +156 -0
- package/src/web/client/src/components/ui/table.tsx +119 -0
- package/src/web/client/src/hooks/useSessions.ts +10 -1
- package/src/web/client/src/index.css +46 -816
- package/src/web/client/src/lib/utils.ts +10 -0
- package/src/web/client/src/lib/websocket.ts +48 -1
- package/src/web/client/src/pages/BranchDetailPage.tsx +222 -694
- package/src/web/client/src/pages/BranchListPage.tsx +190 -236
- package/src/web/client/src/pages/ConfigManagementPage.tsx +94 -76
- package/src/web/client/src/pages/ConfigPage.tsx +362 -0
- package/src/web/client/vite.config.ts +8 -1
- package/src/web/server/index.ts +78 -19
- package/src/web/server/pty/manager.ts +128 -55
- package/src/web/server/routes/branches.ts +2 -2
- package/src/web/server/routes/config.ts +2 -2
- package/src/web/server/routes/index.ts +2 -2
- package/src/web/server/routes/sessions.ts +61 -9
- package/src/web/server/routes/worktrees.ts +5 -5
- package/src/web/server/services/worktrees.ts +12 -4
- package/src/web/server/tray.ts +93 -0
- package/src/web/server/types.ts +14 -0
- package/src/web/server/websocket/handler.ts +119 -13
- package/src/worktree.ts +1 -0
- package/dist/client/assets/index-DeNwPosA.css +0 -1
- package/dist/client/assets/index-Dl798X5w.js +0 -32
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import { Card, CardHeader, CardContent } from "@/components/ui/card";
|
|
4
|
+
import { Button } from "@/components/ui/button";
|
|
5
|
+
import { Input } from "@/components/ui/input";
|
|
6
|
+
import { Badge } from "@/components/ui/badge";
|
|
7
|
+
import { Alert, AlertDescription } from "@/components/ui/alert";
|
|
8
|
+
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select";
|
|
9
|
+
import { cn } from "@/lib/utils";
|
|
10
|
+
const BUILTIN_TOOL_SUMMARIES = {
|
|
11
|
+
"claude-code": {
|
|
12
|
+
command: "claude",
|
|
13
|
+
defaultArgs: [],
|
|
14
|
+
modeArgs: {
|
|
15
|
+
normal: [],
|
|
16
|
+
continue: ["-c"],
|
|
17
|
+
resume: ["-r"],
|
|
18
|
+
},
|
|
19
|
+
permissionSkipArgs: ["--dangerously-skip-permissions"],
|
|
20
|
+
},
|
|
21
|
+
"codex-cli": {
|
|
22
|
+
command: "codex",
|
|
23
|
+
defaultArgs: ["--auto-approve", "--verbose"],
|
|
24
|
+
modeArgs: {
|
|
25
|
+
normal: [],
|
|
26
|
+
continue: ["resume", "--last"],
|
|
27
|
+
resume: ["resume"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
export function ToolLauncher({ branch, availableTools, selectedToolId, selectedMode, skipPermissions, extraArgsText, isConfigLoading, configError, isStartingSession, isSyncingBranch, needsRemoteSync, hasBlockingDivergence, onToolChange, onModeChange, onSkipPermissionsChange, onExtraArgsChange, onStartSession, onSyncBranch, }) {
|
|
32
|
+
const canStartSession = Boolean(branch.worktreePath);
|
|
33
|
+
const selectedTool = availableTools.find((t) => t.id === selectedToolId);
|
|
34
|
+
const selectedToolSummary = useMemo(() => {
|
|
35
|
+
if (!selectedTool)
|
|
36
|
+
return null;
|
|
37
|
+
if (selectedTool.target === "custom") {
|
|
38
|
+
return {
|
|
39
|
+
command: selectedTool.definition.command,
|
|
40
|
+
defaultArgs: selectedTool.definition.defaultArgs ?? null,
|
|
41
|
+
modeArgs: selectedTool.definition.modeArgs,
|
|
42
|
+
permissionSkipArgs: selectedTool.definition.permissionSkipArgs ?? null,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return BUILTIN_TOOL_SUMMARIES[selectedTool.id] ?? null;
|
|
46
|
+
}, [selectedTool]);
|
|
47
|
+
const argsPreview = useMemo(() => {
|
|
48
|
+
if (!selectedToolSummary)
|
|
49
|
+
return null;
|
|
50
|
+
const args = [];
|
|
51
|
+
if (selectedToolSummary.defaultArgs?.length) {
|
|
52
|
+
args.push(...selectedToolSummary.defaultArgs);
|
|
53
|
+
}
|
|
54
|
+
const mode = selectedToolSummary.modeArgs?.[selectedMode];
|
|
55
|
+
if (mode?.length)
|
|
56
|
+
args.push(...mode);
|
|
57
|
+
if (skipPermissions && selectedToolSummary.permissionSkipArgs?.length) {
|
|
58
|
+
args.push(...selectedToolSummary.permissionSkipArgs);
|
|
59
|
+
}
|
|
60
|
+
const extraArgs = extraArgsText
|
|
61
|
+
.split(/\s+/)
|
|
62
|
+
.map((c) => c.trim())
|
|
63
|
+
.filter(Boolean);
|
|
64
|
+
if (extraArgs.length)
|
|
65
|
+
args.push(...extraArgs);
|
|
66
|
+
return { command: selectedToolSummary.command, args };
|
|
67
|
+
}, [selectedToolSummary, selectedMode, skipPermissions, extraArgsText]);
|
|
68
|
+
return (React.createElement(Card, null,
|
|
69
|
+
React.createElement(CardHeader, { className: "pb-3" },
|
|
70
|
+
React.createElement("div", { className: "flex items-center justify-between" },
|
|
71
|
+
React.createElement("div", null,
|
|
72
|
+
React.createElement("p", { className: "text-xs font-medium uppercase tracking-wider text-muted-foreground" }, "Tool Launcher"),
|
|
73
|
+
React.createElement("h3", { className: "mt-1 text-lg font-semibold" }, "AI\u30C4\u30FC\u30EB\u8D77\u52D5")),
|
|
74
|
+
configError && React.createElement(Badge, { variant: "warning" }, "\u8A2D\u5B9A\u306E\u53D6\u5F97\u306B\u5931\u6557")),
|
|
75
|
+
React.createElement("p", { className: "mt-2 text-sm text-muted-foreground" }, "Web UI \u304B\u3089\u76F4\u63A5AI\u30C4\u30FC\u30EB\u3092\u8D77\u52D5\u3067\u304D\u307E\u3059\u3002\u8A2D\u5B9A\u3057\u305F\u30AB\u30B9\u30BF\u30E0\u30C4\u30FC\u30EB\u3082\u4E00\u89A7\u306B\u8868\u793A\u3055\u308C\u307E\u3059\u3002")),
|
|
76
|
+
React.createElement(CardContent, { className: "space-y-4" }, !canStartSession ? (React.createElement("p", { className: "py-4 text-center text-sm text-muted-foreground" }, "Worktree\u304C\u672A\u4F5C\u6210\u306E\u305F\u3081\u3001\u5148\u306BWorktree\u3092\u4F5C\u6210\u3057\u3066\u304F\u3060\u3055\u3044\u3002")) : (React.createElement(React.Fragment, null,
|
|
77
|
+
React.createElement("div", { className: "grid gap-4 sm:grid-cols-2 lg:grid-cols-3" },
|
|
78
|
+
React.createElement("div", { className: "space-y-2" },
|
|
79
|
+
React.createElement("label", { className: "text-sm font-medium" }, "AI\u30C4\u30FC\u30EB"),
|
|
80
|
+
React.createElement(Select, { value: selectedToolId, onValueChange: onToolChange, disabled: isConfigLoading ?? false },
|
|
81
|
+
React.createElement(SelectTrigger, null,
|
|
82
|
+
React.createElement(SelectValue, { placeholder: "\u30C4\u30FC\u30EB\u3092\u9078\u629E" })),
|
|
83
|
+
React.createElement(SelectContent, null, availableTools.map((tool) => (React.createElement(SelectItem, { key: tool.id, value: tool.id }, tool.label)))))),
|
|
84
|
+
React.createElement("div", { className: "space-y-2" },
|
|
85
|
+
React.createElement("label", { className: "text-sm font-medium" }, "\u8D77\u52D5\u30E2\u30FC\u30C9"),
|
|
86
|
+
React.createElement(Select, { value: selectedMode, onValueChange: (v) => onModeChange(v) },
|
|
87
|
+
React.createElement(SelectTrigger, null,
|
|
88
|
+
React.createElement(SelectValue, null)),
|
|
89
|
+
React.createElement(SelectContent, null,
|
|
90
|
+
React.createElement(SelectItem, { value: "normal" }, "Normal"),
|
|
91
|
+
React.createElement(SelectItem, { value: "continue" }, "Continue"),
|
|
92
|
+
React.createElement(SelectItem, { value: "resume" }, "Resume")))),
|
|
93
|
+
React.createElement("div", { className: "space-y-2 sm:col-span-2 lg:col-span-1" },
|
|
94
|
+
React.createElement("label", { className: "text-sm font-medium" }, "\u8FFD\u52A0\u5F15\u6570"),
|
|
95
|
+
React.createElement(Input, { type: "text", value: extraArgsText, onChange: (e) => onExtraArgsChange(e.target.value), placeholder: "--flag value" }))),
|
|
96
|
+
React.createElement("label", { className: "flex items-center gap-2 text-sm" },
|
|
97
|
+
React.createElement("input", { type: "checkbox", checked: skipPermissions, onChange: (e) => onSkipPermissionsChange(e.target.checked), className: "h-4 w-4 rounded border-border" }),
|
|
98
|
+
React.createElement("span", null, "\u6A29\u9650\u30C1\u30A7\u30C3\u30AF\u3092\u30B9\u30AD\u30C3\u30D7 (\u81EA\u5DF1\u8CAC\u4EFB)")),
|
|
99
|
+
skipPermissions && (React.createElement(Alert, { variant: "warning" },
|
|
100
|
+
React.createElement(AlertDescription, null, "\u6A29\u9650\u30C1\u30A7\u30C3\u30AF\u3092\u30B9\u30AD\u30C3\u30D7\u3059\u308B\u3053\u3068\u3067\u3001CLI \u3067\u306E `--dangerously-skip-permissions` \u6307\u5B9A\u3068\u540C\u69D8\u306E\u30EA\u30B9\u30AF\u3092\u8CA0\u3044\u307E\u3059\u3002"))),
|
|
101
|
+
needsRemoteSync && (React.createElement(Alert, { variant: "info", "data-testid": "sync-required" },
|
|
102
|
+
React.createElement(AlertDescription, null,
|
|
103
|
+
React.createElement("p", null,
|
|
104
|
+
"\u30EA\u30E2\u30FC\u30C8\u306B\u672A\u53D6\u5F97\u306E\u66F4\u65B0 (",
|
|
105
|
+
branch.divergence?.behind ?? 0,
|
|
106
|
+
" ",
|
|
107
|
+
"commits) \u304C\u3042\u308B\u305F\u3081\u3001AI\u30C4\u30FC\u30EB\u3092\u8D77\u52D5\u3059\u308B\u524D\u306B\u540C\u671F\u3057\u3066\u304F\u3060\u3055\u3044\u3002"),
|
|
108
|
+
React.createElement("p", { className: "mt-1 text-xs text-muted-foreground" }, "CLI \u306E `git fetch --all` \u3068 `git pull --ff-only` \u3068\u540C\u3058\u51E6\u7406\u3092 Web UI \u304B\u3089\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002")))),
|
|
109
|
+
hasBlockingDivergence && (React.createElement(Alert, { variant: "warning", "data-testid": "divergence-warning" },
|
|
110
|
+
React.createElement(AlertDescription, null,
|
|
111
|
+
React.createElement("p", null, "\u30EA\u30E2\u30FC\u30C8\u3068\u30ED\u30FC\u30AB\u30EB\u306E\u4E21\u65B9\u306B\u672A\u89E3\u6C7A\u306E\u5DEE\u5206\u304C\u3042\u308B\u305F\u3081\u3001\u8D77\u52D5\u3092\u30D6\u30ED\u30C3\u30AF\u3057\u3066\u3044\u307E\u3059\u3002"),
|
|
112
|
+
React.createElement("ul", { className: "mt-2 list-inside list-disc text-xs text-muted-foreground" },
|
|
113
|
+
React.createElement("li", null,
|
|
114
|
+
"git fetch && git pull --ff-only origin ",
|
|
115
|
+
branch.name),
|
|
116
|
+
React.createElement("li", null,
|
|
117
|
+
"git push origin ",
|
|
118
|
+
branch.name,
|
|
119
|
+
" \u3067\u30ED\u30FC\u30AB\u30EB\u9032\u6357\u3092\u5171\u6709"))))),
|
|
120
|
+
React.createElement("div", { className: "flex flex-wrap gap-2 pt-2" },
|
|
121
|
+
React.createElement(Button, { onClick: onStartSession, disabled: isStartingSession ||
|
|
122
|
+
!selectedTool ||
|
|
123
|
+
hasBlockingDivergence ||
|
|
124
|
+
needsRemoteSync ||
|
|
125
|
+
isSyncingBranch }, isStartingSession ? "起動中..." : "セッションを起動"),
|
|
126
|
+
React.createElement(Button, { variant: "secondary", onClick: onSyncBranch, disabled: !branch.worktreePath || isSyncingBranch }, isSyncingBranch ? "同期中..." : "最新の変更を同期"),
|
|
127
|
+
React.createElement(Button, { variant: "ghost", asChild: true },
|
|
128
|
+
React.createElement(Link, { to: "/config" }, "\u8A2D\u5B9A\u3092\u7DE8\u96C6"))),
|
|
129
|
+
selectedToolSummary && (React.createElement("div", { className: "space-y-2 rounded-lg border bg-muted/30 p-4" },
|
|
130
|
+
React.createElement("div", { className: "grid gap-2 text-sm sm:grid-cols-2" },
|
|
131
|
+
React.createElement("div", null,
|
|
132
|
+
React.createElement("span", { className: "text-muted-foreground" }, "\u30B3\u30DE\u30F3\u30C9:"),
|
|
133
|
+
" ",
|
|
134
|
+
React.createElement("code", { className: "rounded bg-muted px-1.5 py-0.5 font-mono" }, selectedToolSummary.command)),
|
|
135
|
+
React.createElement("div", null,
|
|
136
|
+
React.createElement("span", { className: "text-muted-foreground" }, "defaultArgs:"),
|
|
137
|
+
" ",
|
|
138
|
+
React.createElement("span", { className: cn(!selectedToolSummary.defaultArgs?.length &&
|
|
139
|
+
"text-muted-foreground/50") }, selectedToolSummary.defaultArgs?.join(" ") || "未設定"))),
|
|
140
|
+
argsPreview && (React.createElement("div", { className: "border-t pt-2" },
|
|
141
|
+
React.createElement("span", { className: "text-xs text-muted-foreground" }, "\u6700\u7D42\u30B3\u30DE\u30F3\u30C9:"),
|
|
142
|
+
React.createElement("pre", { className: "mt-1 overflow-x-auto rounded bg-background p-2 font-mono text-sm" },
|
|
143
|
+
argsPreview.command,
|
|
144
|
+
" ",
|
|
145
|
+
argsPreview.args.join(" ")))))))))));
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=ToolLauncher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolLauncher.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/branch-detail/ToolLauncher.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EACL,MAAM,EACN,aAAa,EACb,UAAU,EACV,aAAa,EACb,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AA0CjC,MAAM,sBAAsB,GAAgC;IAC1D,aAAa,EAAE;QACb,OAAO,EAAE,QAAQ;QACjB,WAAW,EAAE,EAAE;QACf,QAAQ,EAAE;YACR,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,CAAC,IAAI,CAAC;YAChB,MAAM,EAAE,CAAC,IAAI,CAAC;SACf;QACD,kBAAkB,EAAE,CAAC,gCAAgC,CAAC;KACvD;IACD,WAAW,EAAE;QACX,OAAO,EAAE,OAAO;QAChB,WAAW,EAAE,CAAC,gBAAgB,EAAE,WAAW,CAAC;QAC5C,QAAQ,EAAE;YACR,MAAM,EAAE,EAAE;YACV,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ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AAM,CAAC,YAAY,IAAI,eAAe,IAEhD,eAAe,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CACjC;gBACT,oBAAC,MAAM,IAAC,OAAO,EAAC,OAAO,EAAC,OAAO;oBAC7B,oBAAC,IAAI,IAAC,EAAE,EAAC,SAAS,qCAAa,CACxB,CACL;YAGL,mBAAmB,IAAI,CACtB,6BAAK,SAAS,EAAC,6CAA6C;gBAC1D,6BAAK,SAAS,EAAC,mCAAmC;oBAChD;wBACE,8BAAM,SAAS,EAAC,uBAAuB,gCAAa;wBAAC,GAAG;wBACxD,8BAAM,SAAS,EAAC,0CAA0C,IACvD,mBAAmB,CAAC,OAAO,CACvB,CACH;oBACN;wBACE,8BAAM,SAAS,EAAC,uBAAuB,mBAAoB;wBAAC,GAAG;wBAC/D,8BACE,SAAS,EAAE,EAAE,CACX,CAAC,mBAAmB,CAAC,WAAW,EAAE,MAAM;gCACtC,0BAA0B,CAC7B,IAEA,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,KAAK,CAC/C,CACH,CACF;gBACL,WAAW,IAAI,CACd,6BAAK,SAAS,EAAC,eAAe;oBAC5B,8BAAM,SAAS,EAAC,+BAA+B,4CAExC;oBACP,6BAAK,SAAS,EAAC,kEAAkE;wBAC9E,WAAW,CAAC,OAAO;;wBAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAC7C,CACF,CACP,CACG,CACP,CACA,CACJ,CACW,CACT,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { SessionHistoryTable } from "./SessionHistoryTable";
|
|
2
|
+
export { ToolLauncher, type SelectableTool } from "./ToolLauncher";
|
|
3
|
+
export { BranchInfoCards } from "./BranchInfoCards";
|
|
4
|
+
export { TerminalPanel } from "./TerminalPanel";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/branch-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/branch-detail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAuB,MAAM,gBAAgB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BranchCardProps {
|
|
3
|
+
name: string;
|
|
4
|
+
type: "local" | "remote" | "both";
|
|
5
|
+
isProtected?: boolean;
|
|
6
|
+
hasWorktree?: boolean;
|
|
7
|
+
lastCommit?: string;
|
|
8
|
+
lastCommitDate?: string;
|
|
9
|
+
ahead?: number;
|
|
10
|
+
behind?: number;
|
|
11
|
+
merged?: boolean;
|
|
12
|
+
href?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function BranchCard({ name, type, isProtected, hasWorktree, lastCommit, lastCommitDate, ahead, behind, merged, href, className, }: BranchCardProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=BranchCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchCard.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/BranchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,KAAK,EACL,MAAM,EACN,MAAM,EACN,IAAI,EACJ,SAAS,GACV,EAAE,eAAe,qBA+EjB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import { Card, CardHeader, CardContent, CardFooter, } from "@/components/ui/card";
|
|
4
|
+
import { Badge } from "@/components/ui/badge";
|
|
5
|
+
import { cn } from "@/lib/utils";
|
|
6
|
+
export function BranchCard({ name, type, isProtected, hasWorktree, lastCommit, lastCommitDate, ahead, behind, merged, href, className, }) {
|
|
7
|
+
const content = (React.createElement(Card, { className: cn("transition-colors hover:border-muted-foreground/30", className) },
|
|
8
|
+
React.createElement(CardHeader, { className: "pb-2" },
|
|
9
|
+
React.createElement("div", { className: "flex items-start justify-between gap-2" },
|
|
10
|
+
React.createElement("div", { className: "min-w-0 flex-1" },
|
|
11
|
+
React.createElement("p", { className: "text-xs font-medium uppercase tracking-wider text-muted-foreground" }, "Branch"),
|
|
12
|
+
React.createElement("h3", { className: "mt-1 truncate text-sm font-semibold" }, name)),
|
|
13
|
+
React.createElement("div", { className: "flex flex-wrap gap-1" },
|
|
14
|
+
type === "local" && React.createElement(Badge, { variant: "local" }, "Local"),
|
|
15
|
+
type === "remote" && React.createElement(Badge, { variant: "remote" }, "Remote"),
|
|
16
|
+
type === "both" && (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement(Badge, { variant: "local" }, "L"),
|
|
18
|
+
React.createElement(Badge, { variant: "remote" }, "R")))))),
|
|
19
|
+
React.createElement(CardContent, { className: "py-2" }, lastCommit && (React.createElement("p", { className: "line-clamp-2 text-xs text-muted-foreground" }, lastCommit))),
|
|
20
|
+
React.createElement(CardFooter, { className: "flex flex-wrap gap-2 pt-2" },
|
|
21
|
+
isProtected && (React.createElement(Badge, { variant: "warning", className: "text-xs" }, "Protected")),
|
|
22
|
+
hasWorktree && (React.createElement(Badge, { variant: "success", className: "text-xs" }, "Worktree")),
|
|
23
|
+
merged && (React.createElement(Badge, { variant: "secondary", className: "text-xs" }, "Merged")),
|
|
24
|
+
ahead !== undefined && ahead > 0 && (React.createElement(Badge, { variant: "outline", className: "text-xs" },
|
|
25
|
+
"\u2191",
|
|
26
|
+
ahead)),
|
|
27
|
+
behind !== undefined && behind > 0 && (React.createElement(Badge, { variant: "outline", className: "text-xs" },
|
|
28
|
+
"\u2193",
|
|
29
|
+
behind)),
|
|
30
|
+
lastCommitDate && (React.createElement("span", { className: "ml-auto text-xs text-muted-foreground" }, lastCommitDate)))));
|
|
31
|
+
if (href) {
|
|
32
|
+
return (React.createElement(Link, { to: href, className: "block" }, content));
|
|
33
|
+
}
|
|
34
|
+
return content;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=BranchCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BranchCard.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/BranchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO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C9C,WAAW,IAAI,CACd,oBAAC,KAAK,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,SAAS,gBAEpC,CACT;YACA,WAAW,IAAI,CACd,oBAAC,KAAK,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,SAAS,eAEpC,CACT;YACA,MAAM,IAAI,CACT,oBAAC,KAAK,IAAC,OAAO,EAAC,WAAW,EAAC,SAAS,EAAC,SAAS,aAEtC,CACT;YACA,KAAK,KAAK,SAAS,IAAI,KAAK,GAAG,CAAC,IAAI,CACnC,oBAAC,KAAK,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,SAAS;;gBACxC,KAAK,CACD,CACT;YACA,MAAM,KAAK,SAAS,IAAI,MAAM,GAAG,CAAC,IAAI,CACrC,oBAAC,KAAK,IAAC,OAAO,EAAC,SAAS,EAAC,SAAS,EAAC,SAAS;;gBACxC,MAAM,CACF,CACT;YACA,cAAc,IAAI,CACjB,8BAAM,SAAS,EAAC,uCAAuC,IACpD,cAAc,CACV,CACR,CACU,CACR,CACR,CAAC;IAEF,IAAI,IAAI,EAAE,CAAC;QACT,OAAO,CACL,oBAAC,IAAI,IAAC,EAAE,EAAE,IAAI,EAAE,SAAS,EAAC,OAAO,IAC9B,OAAO,CACH,CACR,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface MetricCardProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string | number;
|
|
5
|
+
hint?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function MetricCard({ label, value, hint, className }: MetricCardProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=MetricCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCard.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,eAAe;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,eAAe,qBAU5E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Card } from "@/components/ui/card";
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
4
|
+
export function MetricCard({ label, value, hint, className }) {
|
|
5
|
+
return (React.createElement(Card, { className: cn("p-5", className) },
|
|
6
|
+
React.createElement("p", { className: "text-xs font-medium uppercase tracking-wider text-muted-foreground" }, label),
|
|
7
|
+
React.createElement("p", { className: "mt-1 text-3xl font-semibold tabular-nums" }, value),
|
|
8
|
+
hint && React.createElement("p", { className: "mt-1 text-xs text-muted-foreground" }, hint)));
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=MetricCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricCard.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/MetricCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AASjC,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAmB;IAC3E,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC;QACnC,2BAAG,SAAS,EAAC,oEAAoE,IAC9E,KAAK,CACJ;QACJ,2BAAG,SAAS,EAAC,0CAA0C,IAAE,KAAK,CAAK;QAClE,IAAI,IAAI,2BAAG,SAAS,EAAC,oCAAoC,IAAE,IAAI,CAAK,CAChE,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface PageHeaderProps {
|
|
3
|
+
eyebrow?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
actions?: React.ReactNode;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function PageHeader({ eyebrow, title, subtitle, actions, children, className, }: PageHeaderProps): React.JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,SAAS,GACV,EAAE,eAAe,qBAwBjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { cn } from "@/lib/utils";
|
|
3
|
+
export function PageHeader({ eyebrow, title, subtitle, actions, children, className, }) {
|
|
4
|
+
return (React.createElement("header", { className: cn("border-b border-border bg-card/50 px-6 py-8", className) },
|
|
5
|
+
React.createElement("div", { className: "mx-auto max-w-7xl" },
|
|
6
|
+
eyebrow && (React.createElement("p", { className: "mb-2 text-xs font-medium uppercase tracking-widest text-muted-foreground" }, eyebrow)),
|
|
7
|
+
React.createElement("div", { className: "flex flex-wrap items-start justify-between gap-4" },
|
|
8
|
+
React.createElement("div", null,
|
|
9
|
+
React.createElement("h1", { className: "text-2xl font-bold tracking-tight" }, title),
|
|
10
|
+
subtitle && (React.createElement("p", { className: "mt-1 text-sm text-muted-foreground" }, subtitle)),
|
|
11
|
+
children),
|
|
12
|
+
actions && React.createElement("div", { className: "flex gap-2" }, actions)))));
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=PageHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/PageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAWjC,MAAM,UAAU,UAAU,CAAC,EACzB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,SAAS,GACO;IAChB,OAAO,CACL,gCACE,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,SAAS,CAAC;QAEvE,6BAAK,SAAS,EAAC,mBAAmB;YAC/B,OAAO,IAAI,CACV,2BAAG,SAAS,EAAC,0EAA0E,IACpF,OAAO,CACN,CACL;YACD,6BAAK,SAAS,EAAC,kDAAkD;gBAC/D;oBACE,4BAAI,SAAS,EAAC,mCAAmC,IAAE,KAAK,CAAM;oBAC7D,QAAQ,IAAI,CACX,2BAAG,SAAS,EAAC,oCAAoC,IAAE,QAAQ,CAAK,CACjE;oBACA,QAAQ,CACL;gBACL,OAAO,IAAI,6BAAK,SAAS,EAAC,YAAY,IAAE,OAAO,CAAO,CACnD,CACF,CACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface SearchInputProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
count?: {
|
|
8
|
+
filtered: number;
|
|
9
|
+
total: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function SearchInput({ value, onChange, placeholder, className, count, }: SearchInputProps): React.JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAyB,EACzB,SAAS,EACT,KAAK,GACN,EAAE,gBAAgB,qBAoBlB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Search } from "lucide-react";
|
|
3
|
+
import { Input } from "@/components/ui/input";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
export function SearchInput({ value, onChange, placeholder = "Search...", className, count, }) {
|
|
6
|
+
return (React.createElement("div", { className: cn("flex items-center gap-3", className) },
|
|
7
|
+
React.createElement("div", { className: "relative flex-1" },
|
|
8
|
+
React.createElement(Search, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
9
|
+
React.createElement(Input, { type: "text", value: value, onChange: (e) => onChange(e.target.value), placeholder: placeholder, className: "pl-9" })),
|
|
10
|
+
count && (React.createElement("span", { className: "text-sm text-muted-foreground" },
|
|
11
|
+
count.filtered,
|
|
12
|
+
" / ",
|
|
13
|
+
count.total))));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAUjC,MAAM,UAAU,WAAW,CAAC,EAC1B,KAAK,EACL,QAAQ,EACR,WAAW,GAAG,WAAW,EACzB,SAAS,EACT,KAAK,GACY;IACjB,OAAO,CACL,6BAAK,SAAS,EAAE,EAAE,CAAC,yBAAyB,EAAE,SAAS,CAAC;QACtD,6BAAK,SAAS,EAAC,iBAAiB;YAC9B,oBAAC,MAAM,IAAC,SAAS,EAAC,wEAAwE,GAAG;YAC7F,oBAAC,KAAK,IACJ,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EACzC,WAAW,EAAE,WAAW,EACxB,SAAS,EAAC,MAAM,GAChB,CACE;QACL,KAAK,IAAI,CACR,8BAAM,SAAS,EAAC,+BAA+B;YAC5C,KAAK,CAAC,QAAQ;;YAAK,KAAK,CAAC,KAAK,CAC1B,CACR,CACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type StatusType = "local" | "remote" | "success" | "warning" | "muted" | "default";
|
|
3
|
+
interface StatusBadgeProps {
|
|
4
|
+
status: StatusType;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function StatusBadge({ status, children, className }: StatusBadgeProps): React.JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=StatusBadge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/StatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,UAAU,GACX,OAAO,GACP,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,CAAC;AAEd,UAAU,gBAAgB;IACxB,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,gBAAgB,qBAkB5E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Badge } from "@/components/ui/badge";
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
4
|
+
export function StatusBadge({ status, children, className }) {
|
|
5
|
+
const variantMap = {
|
|
6
|
+
local: "local",
|
|
7
|
+
remote: "remote",
|
|
8
|
+
success: "success",
|
|
9
|
+
warning: "warning",
|
|
10
|
+
muted: "secondary",
|
|
11
|
+
default: "default",
|
|
12
|
+
};
|
|
13
|
+
return (React.createElement(Badge, { variant: variantMap[status], className: cn(className) }, children));
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=StatusBadge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/StatusBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAgBjC,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAoB;IAC3E,MAAM,UAAU,GAGZ;QACF,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,QAAQ;QAChB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,WAAW;QAClB,OAAO,EAAE,SAAS;KACnB,CAAC;IAEF,OAAO,CACL,oBAAC,KAAK,IAAC,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IACzD,QAAQ,CACH,CACT,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "success" | "warning" | "info" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
9
|
+
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAwBlE,QAAA,MAAM,KAAK;;sHAUT,CAAC;AAGH,QAAA,MAAM,UAAU,uHASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,yHASpB,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
4
|
+
const alertVariants = cva("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "bg-background text-foreground",
|
|
8
|
+
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",
|
|
9
|
+
success: "border-green-500/50 bg-green-500/10 text-green-400 [&>svg]:text-green-400",
|
|
10
|
+
warning: "border-yellow-500/50 bg-yellow-500/10 text-yellow-400 [&>svg]:text-yellow-400",
|
|
11
|
+
info: "border-blue-500/50 bg-blue-500/10 text-blue-400 [&>svg]:text-blue-400",
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "default",
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
const Alert = React.forwardRef(({ className, variant, ...props }, ref) => (React.createElement("div", { ref: ref, role: "alert", className: cn(alertVariants({ variant }), className), ...props })));
|
|
19
|
+
Alert.displayName = "Alert";
|
|
20
|
+
const AlertTitle = React.forwardRef(({ className, ...props }, ref) => (React.createElement("h5", { ref: ref, className: cn("mb-1 font-medium leading-none tracking-tight", className), ...props })));
|
|
21
|
+
AlertTitle.displayName = "AlertTitle";
|
|
22
|
+
const AlertDescription = React.forwardRef(({ className, ...props }, ref) => (React.createElement("div", { ref: ref, className: cn("text-sm [&_p]:leading-relaxed", className), ...props })));
|
|
23
|
+
AlertDescription.displayName = "AlertDescription";
|
|
24
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
25
|
+
//# sourceMappingURL=alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,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AAS,CAAC,KACrD,KAAK,GACT,CACH,CAAC,CAAC;AACH,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "local" | "remote" | "success" | "warning" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): React.JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
10
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,aAAa;;8EA0BlB,CAAC;AAEF,MAAM,WAAW,UACf,SACE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EACpC,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,qBAI1D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
4
|
+
const badgeVariants = cva("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2", {
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
|
|
8
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
9
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
10
|
+
outline: "text-foreground",
|
|
11
|
+
success: "border-transparent bg-green-500/15 text-green-400 border-green-500/30",
|
|
12
|
+
warning: "border-transparent bg-yellow-500/15 text-yellow-400 border-yellow-500/30",
|
|
13
|
+
local: "border-transparent bg-purple-500/15 text-purple-400 border-purple-500/30",
|
|
14
|
+
remote: "border-transparent bg-blue-500/15 text-blue-400 border-blue-500/30",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "default",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
function Badge({ className, variant, ...props }) {
|
|
22
|
+
return (React.createElement("div", { className: cn(badgeVariants({ variant }), className), ...props }));
|
|
23
|
+
}
|
|
24
|
+
export { Badge, badgeVariants };
|
|
25
|
+
//# sourceMappingURL=badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,MAAM,aAAa,GAAG,GAAG,CACvB,sKAAsK,EACtK;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,kFAAkF;YACpF,SAAS,EACP,iFAAiF;YACnF,WAAW,EACT,8FAA8F;YAChG,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EACL,uEAAuE;YACzE,OAAO,EACL,0EAA0E;YAC5E,KAAK,EACH,0EAA0E;YAC5E,MAAM,EACJ,oEAAoE;SACvE;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;KACnB;CACF,CACF,CAAC;AAOF,SAAS,KAAK,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAc;IACzD,OAAO,CACL,6BAAK,SAAS,EAAE,EAAE,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CACzE,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "link" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
12
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,cAAc;;;8EA4BnB,CAAC;AAEF,MAAM,WAAW,WACf,SACE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
const buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
|
|
9
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
|
|
10
|
+
outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
|
|
11
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
12
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
13
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
default: "h-9 px-4 py-2",
|
|
17
|
+
sm: "h-8 rounded-md px-3 text-xs",
|
|
18
|
+
lg: "h-10 rounded-md px-8",
|
|
19
|
+
icon: "h-9 w-9",
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "default",
|
|
24
|
+
size: "default",
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
28
|
+
const Comp = asChild ? Slot : "button";
|
|
29
|
+
return (React.createElement(Comp, { className: cn(buttonVariants({ variant, size, className })), ref: ref, ...props }));
|
|
30
|
+
});
|
|
31
|
+
Button.displayName = "Button";
|
|
32
|
+
export { Button, buttonVariants };
|
|
33
|
+
//# sourceMappingURL=button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.js","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEjC,MAAM,cAAc,GAAG,GAAG,CACxB,uSAAuS,EACvS;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EACL,+DAA+D;YACjE,WAAW,EACT,8EAA8E;YAChF,OAAO,EACL,0FAA0F;YAC5F,SAAS,EACP,wEAAwE;YAC1E,KAAK,EAAE,8CAA8C;YACrD,IAAI,EAAE,iDAAiD;SACxD;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,eAAe;YACxB,EAAE,EAAE,6BAA6B;YACjC,EAAE,EAAE,sBAAsB;YAC1B,IAAI,EAAE,SAAS;SAChB;KACF;IACD,eAAe,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAC;AASF,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAC7B,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC/D,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvC,OAAO,CACL,oBAAC,IAAI,IACH,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAC3D,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AACF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, };
|
|
9
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/web/client/src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,IAAI,6GAYR,CAAC;AAGH,QAAA,MAAM,UAAU,6GASd,CAAC;AAGH,QAAA,MAAM,SAAS,6GASb,CAAC;AAGH,QAAA,MAAM,eAAe,6GASnB,CAAC;AAGH,QAAA,MAAM,WAAW,6GAKf,CAAC;AAGH,QAAA,MAAM,UAAU,6GASd,CAAC;AAGH,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,GACZ,CAAC"}
|