mirror of
https://github.com/pvrzz/directify.git
synced 2026-11-29 05:22:24 +00:00
Fix release naming, lockfile bloat, and source reorder UI
This commit is contained in:
@@ -18,3 +18,8 @@ apps/web/
|
||||
|
||||
# Staging copies of fetched icons, already mirrored into the app itself
|
||||
design/
|
||||
|
||||
# Generated against the full local monorepo (including the closed-source website),
|
||||
# which pulls in platform binaries this repo doesn't need. A fresh clone of just
|
||||
# apps/desktop + packages/* regenerates its own minimal lockfile via `pnpm install`.
|
||||
pnpm-lock.yaml
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
supportedArchitectures.os[]=win32
|
||||
supportedArchitectures.cpu[]=x64
|
||||
@@ -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>
|
||||
|
||||
@@ -37,18 +37,20 @@ const hoverGlow: Partial<Record<NonNullable<ButtonProps["variant"]>, string>> =
|
||||
accent: "var(--df-glow-blue)",
|
||||
};
|
||||
|
||||
export function Button({ variant = "primary", style, children, ...rest }: ButtonProps) {
|
||||
export function Button({ variant = "primary", style, disabled, children, ...rest }: ButtonProps) {
|
||||
return (
|
||||
<motion.button
|
||||
whileHover={{ y: -2, filter: "brightness(1.08)", boxShadow: hoverGlow[variant] }}
|
||||
whileTap={{ y: 0, scale: 0.98 }}
|
||||
disabled={disabled}
|
||||
whileHover={disabled ? undefined : { y: -2, filter: "brightness(1.08)", boxShadow: hoverGlow[variant] }}
|
||||
whileTap={disabled ? undefined : { y: 0, scale: 0.98 }}
|
||||
transition={{ type: "spring", stiffness: 500, damping: 30 }}
|
||||
style={{
|
||||
padding: "10px 20px",
|
||||
borderRadius: "var(--df-radius-sm)",
|
||||
fontWeight: 600,
|
||||
fontSize: 14,
|
||||
cursor: "pointer",
|
||||
cursor: disabled ? "not-allowed" : "pointer",
|
||||
opacity: disabled ? 0.4 : 1,
|
||||
...variantStyles[variant],
|
||||
...style,
|
||||
}}
|
||||
|
||||
Generated
-5114
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user