agentgui 1.0.274 → 1.0.276
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/CLAUDE.md +280 -280
- package/IPFS_DOWNLOADER.md +277 -277
- package/TASK_2C_COMPLETION.md +334 -334
- package/agentgui.ico +0 -0
- package/bin/gmgui.cjs +54 -54
- package/build-portable.js +13 -42
- package/database.js +1422 -1406
- package/lib/claude-runner.js +1130 -1130
- package/lib/ipfs-downloader.js +459 -459
- package/lib/speech.js +159 -152
- package/package.json +1 -1
- package/readme.md +76 -76
- package/server.js +3787 -3794
- package/setup-npm-token.sh +68 -68
- package/static/app.js +773 -773
- package/static/event-rendering-showcase.html +708 -708
- package/static/index.html +3178 -3180
- package/static/js/agent-auth.js +298 -298
- package/static/js/audio-recorder-processor.js +18 -18
- package/static/js/client.js +2656 -2656
- package/static/js/conversations.js +583 -583
- package/static/js/dialogs.js +267 -267
- package/static/js/event-consolidator.js +101 -101
- package/static/js/event-filter.js +311 -311
- package/static/js/event-processor.js +452 -452
- package/static/js/features.js +413 -413
- package/static/js/kalman-filter.js +67 -67
- package/static/js/progress-dialog.js +130 -130
- package/static/js/script-runner.js +219 -219
- package/static/js/streaming-renderer.js +2123 -2120
- package/static/js/syntax-highlighter.js +269 -269
- package/static/js/tts-websocket-handler.js +152 -152
- package/static/js/ui-components.js +431 -431
- package/static/js/voice.js +849 -849
- package/static/js/websocket-manager.js +596 -596
- package/static/templates/INDEX.html +465 -465
- package/static/templates/README.md +190 -190
- package/static/templates/agent-capabilities.html +56 -56
- package/static/templates/agent-metadata-panel.html +44 -44
- package/static/templates/agent-status-badge.html +30 -30
- package/static/templates/code-annotation-panel.html +155 -155
- package/static/templates/code-suggestion-panel.html +184 -184
- package/static/templates/command-header.html +77 -77
- package/static/templates/command-output-scrollable.html +118 -118
- package/static/templates/elapsed-time.html +54 -54
- package/static/templates/error-alert.html +106 -106
- package/static/templates/error-history-timeline.html +160 -160
- package/static/templates/error-recovery-options.html +109 -109
- package/static/templates/error-stack-trace.html +95 -95
- package/static/templates/error-summary.html +80 -80
- package/static/templates/event-counter.html +48 -48
- package/static/templates/execution-actions.html +97 -97
- package/static/templates/execution-progress-bar.html +80 -80
- package/static/templates/execution-stepper.html +120 -120
- package/static/templates/file-breadcrumb.html +118 -118
- package/static/templates/file-diff-viewer.html +121 -121
- package/static/templates/file-metadata.html +133 -133
- package/static/templates/file-read-panel.html +66 -66
- package/static/templates/file-write-panel.html +120 -120
- package/static/templates/git-branch-remote.html +107 -107
- package/static/templates/git-diff-list.html +101 -101
- package/static/templates/git-log-visualization.html +153 -153
- package/static/templates/git-status-panel.html +115 -115
- package/static/templates/quality-metrics-display.html +170 -170
- package/static/templates/terminal-output-panel.html +87 -87
- package/static/templates/test-results-display.html +144 -144
- package/static/theme.js +72 -72
- package/test-download-progress.js +223 -223
- package/test-websocket-broadcast.js +147 -147
- package/tests/ipfs-downloader.test.js +370 -370
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
<!-- Git Log Visualization Timeline -->
|
|
2
|
-
<div class="git-log-visualization card" role="region" aria-label="Git commit history">
|
|
3
|
-
<div class="card-header border-b pb-3 mb-3">
|
|
4
|
-
<h4 class="font-semibold">{{ commitCount }} Recent Commits</h4>
|
|
5
|
-
</div>
|
|
6
|
-
|
|
7
|
-
<!-- Timeline -->
|
|
8
|
-
<div class="commit-timeline" role="list">
|
|
9
|
-
{{ for commit in commits }}
|
|
10
|
-
<div class="commit-item" role="listitem">
|
|
11
|
-
<!-- Timeline Connector -->
|
|
12
|
-
<div class="commit-connector" aria-hidden="true"></div>
|
|
13
|
-
|
|
14
|
-
<!-- Commit Dot -->
|
|
15
|
-
<div class="commit-dot" aria-hidden="true">
|
|
16
|
-
<div class="dot-inner"></div>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<!-- Commit Card -->
|
|
20
|
-
<div class="commit-card">
|
|
21
|
-
<div class="flex items-start justify-between gap-2">
|
|
22
|
-
<div class="flex-1">
|
|
23
|
-
<h5 class="font-semibold text-sm">{{ commit.message }}</h5>
|
|
24
|
-
<p class="text-xs text-secondary">by {{ commit.author }}</p>
|
|
25
|
-
</div>
|
|
26
|
-
<code class="font-mono text-xs bg-code px-2 py-1 rounded">
|
|
27
|
-
{{ commit.hash }}
|
|
28
|
-
</code>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<!-- Commit Details -->
|
|
32
|
-
<div class="text-xs mt-2 space-y-1">
|
|
33
|
-
<p class="text-secondary" title="{{ commit.timestampFull }}">
|
|
34
|
-
{{ commit.timestamp }}
|
|
35
|
-
</p>
|
|
36
|
-
|
|
37
|
-
<!-- Changed Files -->
|
|
38
|
-
{{ if commit.files }}
|
|
39
|
-
<div class="mt-2">
|
|
40
|
-
<span class="text-secondary">{{ commit.filesCount }} files</span>
|
|
41
|
-
<span class="text-green-600">+{{ commit.additions }}</span>
|
|
42
|
-
<span class="text-red-600">-{{ commit.deletions }}</span>
|
|
43
|
-
</div>
|
|
44
|
-
{{ end }}
|
|
45
|
-
|
|
46
|
-
<!-- Tags -->
|
|
47
|
-
{{ if commit.tags }}
|
|
48
|
-
<div class="flex gap-1 flex-wrap mt-2">
|
|
49
|
-
{{ for tag in commit.tags }}
|
|
50
|
-
<span class="badge badge-tag">{{ tag }}</span>
|
|
51
|
-
{{ end }}
|
|
52
|
-
</div>
|
|
53
|
-
{{ end }}
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
{{ end }}
|
|
58
|
-
</div>
|
|
59
|
-
</div>
|
|
60
|
-
|
|
61
|
-
<style scoped>
|
|
62
|
-
.git-log-visualization {
|
|
63
|
-
padding: 16px;
|
|
64
|
-
max-height: 600px;
|
|
65
|
-
overflow-y: auto;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.commit-timeline {
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
gap: 0;
|
|
72
|
-
list-style: none;
|
|
73
|
-
margin: 0;
|
|
74
|
-
padding: 0;
|
|
75
|
-
position: relative;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.commit-timeline::before {
|
|
79
|
-
content: '';
|
|
80
|
-
position: absolute;
|
|
81
|
-
left: 19px;
|
|
82
|
-
top: 12px;
|
|
83
|
-
bottom: 0;
|
|
84
|
-
width: 2px;
|
|
85
|
-
background: linear-gradient(to bottom, var(--color-primary), transparent);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.commit-item {
|
|
89
|
-
position: relative;
|
|
90
|
-
display: flex;
|
|
91
|
-
gap: 12px;
|
|
92
|
-
padding-bottom: 16px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.commit-item:last-child {
|
|
96
|
-
padding-bottom: 0;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.commit-dot {
|
|
100
|
-
position: relative;
|
|
101
|
-
width: 40px;
|
|
102
|
-
height: 40px;
|
|
103
|
-
border-radius: 50%;
|
|
104
|
-
background-color: var(--color-bg-secondary);
|
|
105
|
-
border: 2px solid var(--color-primary);
|
|
106
|
-
display: flex;
|
|
107
|
-
align-items: center;
|
|
108
|
-
justify-content: center;
|
|
109
|
-
flex-shrink: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.dot-inner {
|
|
113
|
-
width: 8px;
|
|
114
|
-
height: 8px;
|
|
115
|
-
border-radius: 50%;
|
|
116
|
-
background-color: var(--color-primary);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.commit-card {
|
|
120
|
-
flex: 1;
|
|
121
|
-
background-color: var(--color-bg-secondary);
|
|
122
|
-
border: 1px solid var(--color-border);
|
|
123
|
-
border-radius: 4px;
|
|
124
|
-
padding: 10px;
|
|
125
|
-
margin-top: 2px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.commit-card:hover {
|
|
129
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.font-mono {
|
|
133
|
-
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.bg-code {
|
|
137
|
-
background-color: var(--color-bg-code);
|
|
138
|
-
border-radius: 2px;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.badge {
|
|
142
|
-
background-color: var(--color-primary);
|
|
143
|
-
color: white;
|
|
144
|
-
padding: 2px 6px;
|
|
145
|
-
border-radius: 3px;
|
|
146
|
-
font-size: 10px;
|
|
147
|
-
font-weight: 600;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.badge-tag {
|
|
151
|
-
background-color: var(--color-secondary);
|
|
152
|
-
}
|
|
153
|
-
</style>
|
|
1
|
+
<!-- Git Log Visualization Timeline -->
|
|
2
|
+
<div class="git-log-visualization card" role="region" aria-label="Git commit history">
|
|
3
|
+
<div class="card-header border-b pb-3 mb-3">
|
|
4
|
+
<h4 class="font-semibold">{{ commitCount }} Recent Commits</h4>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<!-- Timeline -->
|
|
8
|
+
<div class="commit-timeline" role="list">
|
|
9
|
+
{{ for commit in commits }}
|
|
10
|
+
<div class="commit-item" role="listitem">
|
|
11
|
+
<!-- Timeline Connector -->
|
|
12
|
+
<div class="commit-connector" aria-hidden="true"></div>
|
|
13
|
+
|
|
14
|
+
<!-- Commit Dot -->
|
|
15
|
+
<div class="commit-dot" aria-hidden="true">
|
|
16
|
+
<div class="dot-inner"></div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<!-- Commit Card -->
|
|
20
|
+
<div class="commit-card">
|
|
21
|
+
<div class="flex items-start justify-between gap-2">
|
|
22
|
+
<div class="flex-1">
|
|
23
|
+
<h5 class="font-semibold text-sm">{{ commit.message }}</h5>
|
|
24
|
+
<p class="text-xs text-secondary">by {{ commit.author }}</p>
|
|
25
|
+
</div>
|
|
26
|
+
<code class="font-mono text-xs bg-code px-2 py-1 rounded">
|
|
27
|
+
{{ commit.hash }}
|
|
28
|
+
</code>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<!-- Commit Details -->
|
|
32
|
+
<div class="text-xs mt-2 space-y-1">
|
|
33
|
+
<p class="text-secondary" title="{{ commit.timestampFull }}">
|
|
34
|
+
{{ commit.timestamp }}
|
|
35
|
+
</p>
|
|
36
|
+
|
|
37
|
+
<!-- Changed Files -->
|
|
38
|
+
{{ if commit.files }}
|
|
39
|
+
<div class="mt-2">
|
|
40
|
+
<span class="text-secondary">{{ commit.filesCount }} files</span>
|
|
41
|
+
<span class="text-green-600">+{{ commit.additions }}</span>
|
|
42
|
+
<span class="text-red-600">-{{ commit.deletions }}</span>
|
|
43
|
+
</div>
|
|
44
|
+
{{ end }}
|
|
45
|
+
|
|
46
|
+
<!-- Tags -->
|
|
47
|
+
{{ if commit.tags }}
|
|
48
|
+
<div class="flex gap-1 flex-wrap mt-2">
|
|
49
|
+
{{ for tag in commit.tags }}
|
|
50
|
+
<span class="badge badge-tag">{{ tag }}</span>
|
|
51
|
+
{{ end }}
|
|
52
|
+
</div>
|
|
53
|
+
{{ end }}
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
{{ end }}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<style scoped>
|
|
62
|
+
.git-log-visualization {
|
|
63
|
+
padding: 16px;
|
|
64
|
+
max-height: 600px;
|
|
65
|
+
overflow-y: auto;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.commit-timeline {
|
|
69
|
+
display: flex;
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
gap: 0;
|
|
72
|
+
list-style: none;
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
position: relative;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.commit-timeline::before {
|
|
79
|
+
content: '';
|
|
80
|
+
position: absolute;
|
|
81
|
+
left: 19px;
|
|
82
|
+
top: 12px;
|
|
83
|
+
bottom: 0;
|
|
84
|
+
width: 2px;
|
|
85
|
+
background: linear-gradient(to bottom, var(--color-primary), transparent);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.commit-item {
|
|
89
|
+
position: relative;
|
|
90
|
+
display: flex;
|
|
91
|
+
gap: 12px;
|
|
92
|
+
padding-bottom: 16px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.commit-item:last-child {
|
|
96
|
+
padding-bottom: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.commit-dot {
|
|
100
|
+
position: relative;
|
|
101
|
+
width: 40px;
|
|
102
|
+
height: 40px;
|
|
103
|
+
border-radius: 50%;
|
|
104
|
+
background-color: var(--color-bg-secondary);
|
|
105
|
+
border: 2px solid var(--color-primary);
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.dot-inner {
|
|
113
|
+
width: 8px;
|
|
114
|
+
height: 8px;
|
|
115
|
+
border-radius: 50%;
|
|
116
|
+
background-color: var(--color-primary);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.commit-card {
|
|
120
|
+
flex: 1;
|
|
121
|
+
background-color: var(--color-bg-secondary);
|
|
122
|
+
border: 1px solid var(--color-border);
|
|
123
|
+
border-radius: 4px;
|
|
124
|
+
padding: 10px;
|
|
125
|
+
margin-top: 2px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.commit-card:hover {
|
|
129
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.font-mono {
|
|
133
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.bg-code {
|
|
137
|
+
background-color: var(--color-bg-code);
|
|
138
|
+
border-radius: 2px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.badge {
|
|
142
|
+
background-color: var(--color-primary);
|
|
143
|
+
color: white;
|
|
144
|
+
padding: 2px 6px;
|
|
145
|
+
border-radius: 3px;
|
|
146
|
+
font-size: 10px;
|
|
147
|
+
font-weight: 600;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.badge-tag {
|
|
151
|
+
background-color: var(--color-secondary);
|
|
152
|
+
}
|
|
153
|
+
</style>
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
<!-- Git Status Panel -->
|
|
2
|
-
<div class="git-status-panel card" role="region" aria-label="Git repository status">
|
|
3
|
-
<div class="card-header flex items-center justify-between mb-3 pb-3 border-b">
|
|
4
|
-
<div>
|
|
5
|
-
<h4 class="font-semibold">{{ repoName }}</h4>
|
|
6
|
-
<p class="text-xs text-secondary">{{ currentBranch }} @ {{ commitHash }}</p>
|
|
7
|
-
</div>
|
|
8
|
-
<div class="badge" data-status="{{ repoStatus }}">
|
|
9
|
-
{{ repoStatusLabel }}
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
<!-- File Changes Summary -->
|
|
14
|
-
<div class="changes-summary grid grid-cols-3 gap-2 mb-3 pb-3 border-b">
|
|
15
|
-
<div class="text-center">
|
|
16
|
-
<p class="text-2xl font-bold text-green-600">{{ modifiedCount }}</p>
|
|
17
|
-
<p class="text-xs text-secondary">Modified</p>
|
|
18
|
-
</div>
|
|
19
|
-
<div class="text-center border-l border-r pl-2 pr-2">
|
|
20
|
-
<p class="text-2xl font-bold text-blue-600">{{ addedCount }}</p>
|
|
21
|
-
<p class="text-xs text-secondary">Added</p>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="text-center">
|
|
24
|
-
<p class="text-2xl font-bold text-red-600">{{ deletedCount }}</p>
|
|
25
|
-
<p class="text-xs text-secondary">Deleted</p>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<!-- File List -->
|
|
30
|
-
<div class="file-list space-y-1">
|
|
31
|
-
<div class="text-xs font-semibold text-secondary mb-2">Changed Files</div>
|
|
32
|
-
{{ for file in changedFiles }}
|
|
33
|
-
<div class="file-item flex items-center gap-2 text-sm py-1">
|
|
34
|
-
<span class="status-icon" data-status="{{ file.status }}" aria-hidden="true">
|
|
35
|
-
{{ if file.status == 'modified' }}M{{ else if file.status == 'added' }}A{{ else if file.status == 'deleted' }}D{{ end }}
|
|
36
|
-
</span>
|
|
37
|
-
<span class="file-path flex-1 truncate" title="{{ file.path }}">{{ file.path }}</span>
|
|
38
|
-
</div>
|
|
39
|
-
{{ end }}
|
|
40
|
-
</div>
|
|
41
|
-
|
|
42
|
-
<!-- Actions -->
|
|
43
|
-
<div class="flex gap-2 mt-3 pt-3 border-t">
|
|
44
|
-
<button class="btn btn-sm" data-action="commit" aria-label="Open commit dialog">
|
|
45
|
-
Commit
|
|
46
|
-
</button>
|
|
47
|
-
<button class="btn btn-sm" data-action="push" aria-label="Push changes">
|
|
48
|
-
Push
|
|
49
|
-
</button>
|
|
50
|
-
<button class="btn btn-sm" data-action="pull" aria-label="Pull changes">
|
|
51
|
-
Pull
|
|
52
|
-
</button>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<style scoped>
|
|
57
|
-
.git-status-panel {
|
|
58
|
-
padding: 16px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.status-icon {
|
|
62
|
-
display: inline-block;
|
|
63
|
-
width: 20px;
|
|
64
|
-
text-align: center;
|
|
65
|
-
font-size: 11px;
|
|
66
|
-
font-weight: 600;
|
|
67
|
-
padding: 2px 4px;
|
|
68
|
-
border-radius: 3px;
|
|
69
|
-
flex-shrink: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.status-icon[data-status="modified"] {
|
|
73
|
-
color: #16a34a;
|
|
74
|
-
background-color: #dcfce7;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.status-icon[data-status="added"] {
|
|
78
|
-
color: #2563eb;
|
|
79
|
-
background-color: #dbeafe;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.status-icon[data-status="deleted"] {
|
|
83
|
-
color: #dc2626;
|
|
84
|
-
background-color: #fee2e2;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.file-item:hover {
|
|
88
|
-
background-color: var(--color-bg-hover);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.file-path {
|
|
92
|
-
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
93
|
-
font-size: 12px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.btn {
|
|
97
|
-
padding: 6px 10px;
|
|
98
|
-
background-color: var(--color-primary);
|
|
99
|
-
color: white;
|
|
100
|
-
border: none;
|
|
101
|
-
border-radius: 3px;
|
|
102
|
-
font-size: 12px;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
transition: all 0.2s;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.btn:hover {
|
|
108
|
-
background-color: var(--color-primary-dark);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.btn-sm {
|
|
112
|
-
padding: 4px 8px;
|
|
113
|
-
font-size: 11px;
|
|
114
|
-
}
|
|
115
|
-
</style>
|
|
1
|
+
<!-- Git Status Panel -->
|
|
2
|
+
<div class="git-status-panel card" role="region" aria-label="Git repository status">
|
|
3
|
+
<div class="card-header flex items-center justify-between mb-3 pb-3 border-b">
|
|
4
|
+
<div>
|
|
5
|
+
<h4 class="font-semibold">{{ repoName }}</h4>
|
|
6
|
+
<p class="text-xs text-secondary">{{ currentBranch }} @ {{ commitHash }}</p>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="badge" data-status="{{ repoStatus }}">
|
|
9
|
+
{{ repoStatusLabel }}
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<!-- File Changes Summary -->
|
|
14
|
+
<div class="changes-summary grid grid-cols-3 gap-2 mb-3 pb-3 border-b">
|
|
15
|
+
<div class="text-center">
|
|
16
|
+
<p class="text-2xl font-bold text-green-600">{{ modifiedCount }}</p>
|
|
17
|
+
<p class="text-xs text-secondary">Modified</p>
|
|
18
|
+
</div>
|
|
19
|
+
<div class="text-center border-l border-r pl-2 pr-2">
|
|
20
|
+
<p class="text-2xl font-bold text-blue-600">{{ addedCount }}</p>
|
|
21
|
+
<p class="text-xs text-secondary">Added</p>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="text-center">
|
|
24
|
+
<p class="text-2xl font-bold text-red-600">{{ deletedCount }}</p>
|
|
25
|
+
<p class="text-xs text-secondary">Deleted</p>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<!-- File List -->
|
|
30
|
+
<div class="file-list space-y-1">
|
|
31
|
+
<div class="text-xs font-semibold text-secondary mb-2">Changed Files</div>
|
|
32
|
+
{{ for file in changedFiles }}
|
|
33
|
+
<div class="file-item flex items-center gap-2 text-sm py-1">
|
|
34
|
+
<span class="status-icon" data-status="{{ file.status }}" aria-hidden="true">
|
|
35
|
+
{{ if file.status == 'modified' }}M{{ else if file.status == 'added' }}A{{ else if file.status == 'deleted' }}D{{ end }}
|
|
36
|
+
</span>
|
|
37
|
+
<span class="file-path flex-1 truncate" title="{{ file.path }}">{{ file.path }}</span>
|
|
38
|
+
</div>
|
|
39
|
+
{{ end }}
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<!-- Actions -->
|
|
43
|
+
<div class="flex gap-2 mt-3 pt-3 border-t">
|
|
44
|
+
<button class="btn btn-sm" data-action="commit" aria-label="Open commit dialog">
|
|
45
|
+
Commit
|
|
46
|
+
</button>
|
|
47
|
+
<button class="btn btn-sm" data-action="push" aria-label="Push changes">
|
|
48
|
+
Push
|
|
49
|
+
</button>
|
|
50
|
+
<button class="btn btn-sm" data-action="pull" aria-label="Pull changes">
|
|
51
|
+
Pull
|
|
52
|
+
</button>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<style scoped>
|
|
57
|
+
.git-status-panel {
|
|
58
|
+
padding: 16px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.status-icon {
|
|
62
|
+
display: inline-block;
|
|
63
|
+
width: 20px;
|
|
64
|
+
text-align: center;
|
|
65
|
+
font-size: 11px;
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
padding: 2px 4px;
|
|
68
|
+
border-radius: 3px;
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.status-icon[data-status="modified"] {
|
|
73
|
+
color: #16a34a;
|
|
74
|
+
background-color: #dcfce7;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.status-icon[data-status="added"] {
|
|
78
|
+
color: #2563eb;
|
|
79
|
+
background-color: #dbeafe;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.status-icon[data-status="deleted"] {
|
|
83
|
+
color: #dc2626;
|
|
84
|
+
background-color: #fee2e2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.file-item:hover {
|
|
88
|
+
background-color: var(--color-bg-hover);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.file-path {
|
|
92
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.btn {
|
|
97
|
+
padding: 6px 10px;
|
|
98
|
+
background-color: var(--color-primary);
|
|
99
|
+
color: white;
|
|
100
|
+
border: none;
|
|
101
|
+
border-radius: 3px;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
transition: all 0.2s;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.btn:hover {
|
|
108
|
+
background-color: var(--color-primary-dark);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.btn-sm {
|
|
112
|
+
padding: 4px 8px;
|
|
113
|
+
font-size: 11px;
|
|
114
|
+
}
|
|
115
|
+
</style>
|