Fix release naming, lockfile bloat, and source reorder UI

This commit is contained in:
pvrzz
2026-09-17 20:06:21 -04:00
parent fb71ce1c9d
commit 1f1674f441
8 changed files with 70 additions and 5142 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ extraResources:
win:
target: portable
icon: build/icon.ico
artifactName: ${productName}-${version}-portable.${ext}
artifactName: directify_v${version}.${ext}
asar: true
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="none" stroke="#9CA3A8" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/></svg>

After

Width:  |  Height:  |  Size: 206 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="none" stroke="#9CA3A8" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m18 15l-6-6l-6 6"/></svg>

After

Width:  |  Height:  |  Size: 210 B

@@ -253,7 +253,7 @@ export function SettingsPage() {
style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
gap: 12,
padding: "10px 14px",
borderRadius: "var(--df-radius-sm)",
background: "var(--df-surface-2)",
@@ -261,27 +261,56 @@ export function SettingsPage() {
opacity: source.enabled ? 1 : 0.55,
}}
>
<div style={{ display: "flex", flexDirection: "column" }}>
<div style={{ display: "flex", gap: 4, marginBottom: 2 }}>
<Button
variant="ghost"
aria-label={t("settings.moveUp")}
disabled={index === 0}
onClick={() => moveSource(index, -1)}
style={{ padding: "2px 6px" }}
>
↑
</Button>
<Button
variant="ghost"
aria-label={t("settings.moveDown")}
disabled={index === settings.searchSources.length - 1}
onClick={() => moveSource(index, 1)}
style={{ padding: "2px 6px" }}
>
↓
</Button>
</div>
<div
style={{
display: "flex",
flexDirection: "column",
borderRadius: "var(--df-radius-sm)",
overflow: "hidden",
border: "1px solid var(--df-border)",
flexShrink: 0,
}}
>
<button
aria-label={t("settings.moveUp")}
disabled={index === 0}
onClick={() => moveSource(index, -1)}
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
width: 24,
height: 18,
background: "var(--df-surface-1)",
border: "none",
borderBottom: "1px solid var(--df-border)",
cursor: index === 0 ? "not-allowed" : "pointer",
opacity: index === 0 ? 0.35 : 1,
}}
>
<Icon name="chevron-up" size={12} />
</button>
<button
aria-label={t("settings.moveDown")}
disabled={index === settings.searchSources.length - 1}
onClick={() => moveSource(index, 1)}
style={{
display: "flex",
alignItems: "center",
justifyContent: "center",
width: 24,
height: 18,
background: "var(--df-surface-1)",
border: "none",
cursor: index === settings.searchSources.length - 1 ? "not-allowed" : "pointer",
opacity: index === settings.searchSources.length - 1 ? 0.35 : 1,
}}
>
<Icon name="chevron-down" size={12} />
</button>
</div>
<div style={{ flex: 1, minWidth: 0 }}>
<div style={{ fontWeight: 600, fontSize: 14 }}>
{source.name}{" "}
{source.builtIn && (
@@ -294,7 +323,8 @@ export function SettingsPage() {
{source.baseUrl}
</div>
</div>
<div style={{ display: "flex", gap: 8, alignItems: "center" }}>
<div style={{ display: "flex", gap: 8, alignItems: "center", flexShrink: 0 }}>
<label
style={{ display: "flex", alignItems: "center", gap: 6, fontSize: 12 }}
title={t("settings.enabled")}
@@ -312,6 +342,7 @@ export function SettingsPage() {
variant="ghost"
aria-label={`${t("common.remove")} ${source.name}`}
onClick={() => removeSource(source.id)}
style={{ padding: "6px 8px" }}
>
<Icon name="trash-2" size={14} />
</Button>