Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

Merge branch 'agent/claude/button-order'

longmeidaob0ee3fda82b6
diff --cc frontend/src/react/data-cleanup/orphan-records-card.tsx
index 90677d7c9,36001bbbd..f0bed71f1
--- a/frontend/src/react/data-cleanup/orphan-records-card.tsx
+++ b/frontend/src/react/data-cleanup/orphan-records-card.tsx
@@@ -59,8 -59,9 +59,9 @@@ function OrphanActions({ item, toast }
const busy = attach.isPending || purge.isPending;
return (
<span className="flex min-w-0 flex-wrap items-center gap-2">
+ <Button variant="danger" size="small" {...busyProps(busy)} onClick={remove}>删除记录</Button>
{item.candidates.length
- ? <Select aria-label={`选择接收 ${item.name} 个人记录的文件`} className="w-52" selectedKey={target}
+ ? <Select aria-label={`选择接收 ${item.name} 个人记录的文件`} prefix="接收" className="w-52" selectedKey={target}
onSelectionChange={(key) => { if (key !== null) setTarget(Number(key)) }}>
{item.candidates.map((candidate) => (
<SelectItem key={candidate.id} id={candidate.id} textValue={candidateText(candidate)}>
diff --cc frontend/src/react/follow-manage/credentials.tsx
index dd4e463ad,cab6e5a9f..b749c1f92
--- a/frontend/src/react/follow-manage/credentials.tsx
+++ b/frontend/src/react/follow-manage/credentials.tsx
@@@ -86,15 -86,15 +86,15 @@@ function CredentialForm({ row, readOnly
))}
</div>
<div className="flex flex-wrap items-center gap-2">
- <Button variant="primary" disabled={readOnly} {...busyProps(write.isPending)}
- onClick={save}>保存配置</Button>
{done ? (
- <Button variant="danger" size="small" disabled={readOnly} {...busyProps(write.isPending)}
+ <Button variant="danger" disabled={readOnly} {...busyProps(write.isPending)}
onClick={() => void confirmModal({
title: '清除来源凭据', body: CLEAR_BODY, confirmLabel: '清除来源凭据', danger: true,
onConfirm: () => write.mutateAsync({}),
})}>清除</Button>
) : null}
- <Button variant="primary" size="small" disabled={readOnly} {...busyProps(write.isPending)}
++ <Button variant="primary" disabled={readOnly} {...busyProps(write.isPending)}
+ onClick={save}>保存配置</Button>
</div>
{problem ? <ErrorText>{problem}</ErrorText> : null}
{(row.shared_fields || []).length
diff --cc frontend/src/react/follow-manage/follow-manage-page.tsx
index 4c289d71e,be97c6cb2..bab304030
--- a/frontend/src/react/follow-manage/follow-manage-page.tsx
+++ b/frontend/src/react/follow-manage/follow-manage-page.tsx
@@@ -25,10 -25,9 +25,10 @@@ import { Note } from '../components/not
import { Page } from '../components/page';
import { PillAriaTabList } from '../components/pill-aria-tab-list';
import { STAT_STRIP_SIX } from '../components/stat-card';
+import { ExternalLink } from '../settings/section';
import { AddSource } from './add-source';
import { AliasManager } from './alias-manager';
- import { Button } from '@/components/base/buttons/button';
+ import { ButtonLink } from '@/components/base/buttons/button';
import { FeedSources } from './feed-sources';
import {
credentialDone, DEFAULT_SORT, FEEDS_KEY, fetchCredentials, fetchFeeds, fetchFollow, FOLLOW_CREDENTIALS_KEY,