diffwatch 2.1.0 → 2.1.1
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/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -358,7 +358,7 @@ import { POLLING_INTERVAL } from './constants';
|
|
|
358
358
|
border
|
|
359
359
|
title={notification.type === 'success' ? " Success " : " Error "}
|
|
360
360
|
>
|
|
361
|
-
<text fg={notification.type === 'success' ? '
|
|
361
|
+
<text fg={notification.type === 'success' ? 'brightGreen' : 'brightRed'}>
|
|
362
362
|
{notification.message}
|
|
363
363
|
</text>
|
|
364
364
|
</box>
|
|
@@ -80,7 +80,7 @@ export function FileList({ files, selectedIndex, focused, searchQuery, onSelect,
|
|
|
80
80
|
const isSelected = i === selectedIndex;
|
|
81
81
|
const colorMap: Record<string, string> = {
|
|
82
82
|
modified: 'yellow',
|
|
83
|
-
new: '
|
|
83
|
+
new: 'brightGreen',
|
|
84
84
|
deleted: 'brightRed',
|
|
85
85
|
renamed: 'blue',
|
|
86
86
|
unstaged: 'cyan',
|
|
@@ -107,7 +107,7 @@ export function HistoryViewer({ commits, onClose }: HistoryViewerProps) {
|
|
|
107
107
|
}}
|
|
108
108
|
>
|
|
109
109
|
<text width={10} fg="cyan"> {commit.hash}</text>
|
|
110
|
-
<text width={25} fg={index === selectedRow ? "white" : "
|
|
110
|
+
<text width={25} fg={index === selectedRow ? "white" : "brightGreen"}>{commit.author.substring(0, 24)}</text>
|
|
111
111
|
<text width={20} fg={index === selectedRow ? "white" : "yellow"}>{commit.date.substring(0, 19)}</text>
|
|
112
112
|
<text fg={index === selectedRow ? "white" : "white"} flexGrow={1}>{formatMessage(commit.message)}</text>
|
|
113
113
|
</box>
|
|
@@ -143,7 +143,7 @@ export function HistoryViewer({ commits, onClose }: HistoryViewerProps) {
|
|
|
143
143
|
{fileDialogFiles.map((file, index) => (
|
|
144
144
|
<box key={index} flexDirection="row" height={1}>
|
|
145
145
|
<text width={8} fg={
|
|
146
|
-
file.status.charAt(0) === 'A' ? '
|
|
146
|
+
file.status.charAt(0) === 'A' ? 'brightGreen' : // Added
|
|
147
147
|
file.status.charAt(0) === 'D' ? 'red' : // Deleted
|
|
148
148
|
file.status.charAt(0) === 'R' ? 'yellow' : // Renamed
|
|
149
149
|
file.status.charAt(0) === 'C' ? 'blue' : // Copied
|
|
@@ -11,13 +11,13 @@ export function StatusBar({ branch, branchCount, fileCount, searchActive = false
|
|
|
11
11
|
return (
|
|
12
12
|
<box height={1} flexDirection="row" justifyContent="space-between">
|
|
13
13
|
<text>
|
|
14
|
-
<span fg="
|
|
14
|
+
<span fg="brightGreen">←→</span> Switch
|
|
15
15
|
{showFileOptions && (
|
|
16
16
|
<>
|
|
17
|
-
{' '}| <span fg="
|
|
17
|
+
{' '}| <span fg="brightGreen">⏎</span> Open | <span fg="brightGreen">S</span> Search | <span fg="brightGreen">R</span> Revert | <span fg="brightGreen">D</span> Delete
|
|
18
18
|
</>
|
|
19
19
|
)}
|
|
20
|
-
{' '}| <span fg="
|
|
20
|
+
{' '}| <span fg="brightGreen">H</span> History | <span fg="brightGreen">Q</span> Quit
|
|
21
21
|
</text>
|
|
22
22
|
<text>
|
|
23
23
|
<span fg="cyan">Branch:</span> <span fg="yellow">{branch}</span> <span fg="gray">({branchCount})</span>
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const BUILD_VERSION = "2.1.
|
|
1
|
+
export const BUILD_VERSION = "2.1.1";
|