pinokiod 5.0.1 → 5.0.3
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 +1 -1
- package/server/views/app.ejs +62 -2
package/package.json
CHANGED
package/server/views/app.ejs
CHANGED
|
@@ -1998,6 +1998,58 @@ body.dark {
|
|
|
1998
1998
|
text-align: center;
|
|
1999
1999
|
padding: 20px;
|
|
2000
2000
|
}
|
|
2001
|
+
|
|
2002
|
+
body.dark .pinokio-git-diff-file-list-panel {
|
|
2003
|
+
background: #0f172a;
|
|
2004
|
+
border-right-color: #1f2937;
|
|
2005
|
+
}
|
|
2006
|
+
body.dark .pinokio-git-diff-file-item-row {
|
|
2007
|
+
color: #e2e8f0;
|
|
2008
|
+
}
|
|
2009
|
+
body.dark .pinokio-git-diff-file-item-row:hover {
|
|
2010
|
+
background: #111827;
|
|
2011
|
+
border-left-color: #3b82f6;
|
|
2012
|
+
}
|
|
2013
|
+
body.dark .pinokio-git-diff-file-item-row.pinokio-active-file-item {
|
|
2014
|
+
background: rgba(59, 130, 246, 0.15);
|
|
2015
|
+
border-left-color: #60a5fa;
|
|
2016
|
+
}
|
|
2017
|
+
body.dark .pinokio-git-diff-file-item-row.pinokio-active-file-item .pinokio-git-diff-status {
|
|
2018
|
+
color: #cbd5e1;
|
|
2019
|
+
}
|
|
2020
|
+
body.dark .pinokio-git-diff-file-checkbox {
|
|
2021
|
+
border-color: #475569;
|
|
2022
|
+
background: #0b1220;
|
|
2023
|
+
}
|
|
2024
|
+
body.dark .pinokio-git-diff-file-checkbox:checked {
|
|
2025
|
+
background: #3b82f6;
|
|
2026
|
+
border-color: #2563eb;
|
|
2027
|
+
}
|
|
2028
|
+
body.dark .pinokio-git-diff-select-all {
|
|
2029
|
+
background: #0f172a;
|
|
2030
|
+
border-bottom-color: #1f2937;
|
|
2031
|
+
}
|
|
2032
|
+
body.dark .pinokio-git-diff-bulk-bar {
|
|
2033
|
+
background: #0f172a;
|
|
2034
|
+
border-bottom-color: #1f2937;
|
|
2035
|
+
}
|
|
2036
|
+
body.dark .pinokio-git-diff-open-file {
|
|
2037
|
+
border-color: #334155;
|
|
2038
|
+
background: #0b1220;
|
|
2039
|
+
color: #e2e8f0;
|
|
2040
|
+
}
|
|
2041
|
+
body.dark .pinokio-git-diff-open-file:hover {
|
|
2042
|
+
background: #1e293b;
|
|
2043
|
+
border-color: #475569;
|
|
2044
|
+
}
|
|
2045
|
+
body.dark .pinokio-git-diff-viewer-panel,
|
|
2046
|
+
body.dark .pinokio-git-diff-viewer-header {
|
|
2047
|
+
background: #0b1220;
|
|
2048
|
+
color: #e2e8f0;
|
|
2049
|
+
}
|
|
2050
|
+
body.dark .pinokio-git-diff-viewer-header {
|
|
2051
|
+
border-bottom-color: #1f2937;
|
|
2052
|
+
}
|
|
2001
2053
|
.pinokio-no-changes-popup.swal2-popup {
|
|
2002
2054
|
background: var(--pinokio-modal-bg) !important;
|
|
2003
2055
|
border-radius: 20px !important;
|
|
@@ -7405,7 +7457,9 @@ const rerenderMenuSection = (container, html) => {
|
|
|
7405
7457
|
renderDiff(diffJson, diffBody)
|
|
7406
7458
|
const openBtn = diffViewer.querySelector('.pinokio-git-diff-open-file')
|
|
7407
7459
|
if (openBtn) {
|
|
7408
|
-
openBtn.addEventListener('click', async () => {
|
|
7460
|
+
openBtn.addEventListener('click', async (event) => {
|
|
7461
|
+
event.preventDefault()
|
|
7462
|
+
event.stopPropagation()
|
|
7409
7463
|
const repoKey = openBtn.getAttribute('data-open-repo') || repoParam || ''
|
|
7410
7464
|
const rel = openBtn.getAttribute('data-open-relpath') || ''
|
|
7411
7465
|
if (!repoKey || !rel) return
|
|
@@ -7595,7 +7649,13 @@ const rerenderMenuSection = (container, html) => {
|
|
|
7595
7649
|
setActiveTab('changes')
|
|
7596
7650
|
|
|
7597
7651
|
if (fileItems.length) {
|
|
7598
|
-
fileItems[0]
|
|
7652
|
+
const first = fileItems[0]
|
|
7653
|
+
const idx = Number(first.getAttribute('data-index') || '-1')
|
|
7654
|
+
if (!selectedIndices.has(idx)) {
|
|
7655
|
+
selectedIndices.add(idx)
|
|
7656
|
+
applySelectionClasses()
|
|
7657
|
+
}
|
|
7658
|
+
renderFileDiff(first).catch(() => {})
|
|
7599
7659
|
}
|
|
7600
7660
|
}
|
|
7601
7661
|
})
|