kajji 0.1.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/LICENSE +21 -0
- package/README.md +128 -0
- package/bin/kajji.js +2 -0
- package/package.json +56 -0
- package/src/App.tsx +229 -0
- package/src/commander/bookmarks.ts +129 -0
- package/src/commander/diff.ts +186 -0
- package/src/commander/executor.ts +285 -0
- package/src/commander/files.ts +87 -0
- package/src/commander/log.ts +99 -0
- package/src/commander/operations.ts +313 -0
- package/src/commander/types.ts +21 -0
- package/src/components/AnsiText.tsx +77 -0
- package/src/components/BorderBox.tsx +124 -0
- package/src/components/FileTreeList.tsx +105 -0
- package/src/components/Layout.tsx +48 -0
- package/src/components/Panel.tsx +143 -0
- package/src/components/RevisionPicker.tsx +165 -0
- package/src/components/StatusBar.tsx +158 -0
- package/src/components/modals/BookmarkNameModal.tsx +170 -0
- package/src/components/modals/DescribeModal.tsx +124 -0
- package/src/components/modals/HelpModal.tsx +372 -0
- package/src/components/modals/RevisionPickerModal.tsx +70 -0
- package/src/components/modals/UndoModal.tsx +75 -0
- package/src/components/panels/BookmarksPanel.tsx +768 -0
- package/src/components/panels/CommandLogPanel.tsx +40 -0
- package/src/components/panels/LogPanel.tsx +774 -0
- package/src/components/panels/MainArea.tsx +354 -0
- package/src/context/command.tsx +106 -0
- package/src/context/commandlog.tsx +45 -0
- package/src/context/dialog.tsx +217 -0
- package/src/context/focus.tsx +63 -0
- package/src/context/helper.tsx +24 -0
- package/src/context/keybind.tsx +51 -0
- package/src/context/loading.tsx +68 -0
- package/src/context/sync.tsx +868 -0
- package/src/context/theme.tsx +90 -0
- package/src/context/types.ts +51 -0
- package/src/index.tsx +15 -0
- package/src/keybind/index.ts +2 -0
- package/src/keybind/parser.ts +88 -0
- package/src/keybind/types.ts +83 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/presets/lazygit.ts +45 -0
- package/src/theme/presets/opencode.ts +45 -0
- package/src/theme/types.ts +47 -0
- package/src/utils/double-click.ts +59 -0
- package/src/utils/file-tree.ts +154 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { For, Show } from "solid-js"
|
|
2
|
+
import { useCommandLog } from "../../context/commandlog"
|
|
3
|
+
import { useTheme } from "../../context/theme"
|
|
4
|
+
|
|
5
|
+
export function CommandLogPanel() {
|
|
6
|
+
const { colors, style } = useTheme()
|
|
7
|
+
const commandLog = useCommandLog()
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<box
|
|
11
|
+
flexDirection="column"
|
|
12
|
+
border
|
|
13
|
+
borderStyle={style().panel.borderStyle}
|
|
14
|
+
borderColor={colors().border}
|
|
15
|
+
title="Command log"
|
|
16
|
+
height={6}
|
|
17
|
+
overflow="hidden"
|
|
18
|
+
>
|
|
19
|
+
<scrollbox flexGrow={1} stickyScroll stickyStart="bottom">
|
|
20
|
+
<Show
|
|
21
|
+
when={commandLog.entries().length > 0}
|
|
22
|
+
fallback={
|
|
23
|
+
<text fg={colors().textMuted}>No commands executed yet</text>
|
|
24
|
+
}
|
|
25
|
+
>
|
|
26
|
+
<For each={commandLog.entries()}>
|
|
27
|
+
{(entry) => (
|
|
28
|
+
<box flexDirection="column">
|
|
29
|
+
<text fg={colors().textMuted}>$ {entry.command}</text>
|
|
30
|
+
<text fg={entry.success ? colors().success : colors().error}>
|
|
31
|
+
{entry.output}
|
|
32
|
+
</text>
|
|
33
|
+
</box>
|
|
34
|
+
)}
|
|
35
|
+
</For>
|
|
36
|
+
</Show>
|
|
37
|
+
</scrollbox>
|
|
38
|
+
</box>
|
|
39
|
+
)
|
|
40
|
+
}
|