Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(wants): 想要清单待找与暂时放弃两段加云下载键

longmeidao6b58dd44b18f
diff --git a/frontend/src/react/bundle.d.ts b/frontend/src/react/bundle.d.ts
index d7ce9b472..0ad2a520b 100644
--- a/frontend/src/react/bundle.d.ts
+++ b/frontend/src/react/bundle.d.ts
@@ -333,7 +333,7 @@ export interface ScrapingProps {
* 走;`pageSize`/`layout` 是这台浏览器的习惯,跟着 `appSettings` 走。两组都由壳持有存储、
* React 持有实时状态,各只有一份。 */
export interface FollowManageProps {
- /** 地址栏此刻带着的页签(`list`/`add`/`feeds`/`source`)。 */
+ /** 地址栏此刻带着的页签(`list`/`add`/`feeds`/`wants`/`source`)。 */
tab: string;
page: number;
sort: string;
@@ -349,6 +349,8 @@ export interface FollowManageProps {
toast(message: string): void;
/** 去「看更新」那一页(`/follow`)。整页换成哪一屏仍归遗留壳。 */
openFollow(): void;
+ /** 云下载:带着番号、标题与来处(`wishlist:<想要 id>`)去活动页的云下载段,用户贴磁力交给 115 或 PikPak。 */
+ cloudDownload(prefill: { code?: string; title?: string; origin: string }): void;
/** 账本只读:这台机器只能浏览,写操作全部不给点。 */
readOnly: boolean;
readOnlyMessage: string;
diff --git a/frontend/src/react/follow-manage/follow-manage-page.tsx b/frontend/src/react/follow-manage/follow-manage-page.tsx
index addc0021a..50264bc4a 100644
--- a/frontend/src/react/follow-manage/follow-manage-page.tsx
+++ b/frontend/src/react/follow-manage/follow-manage-page.tsx
@@ -59,7 +59,7 @@ function Reading({ term, figure, unit }: { term: string; figure: number; unit: s
export function FollowManagePage(props: FollowManageProps) {
const {
- route, savePreference, toast, openFollow, readOnly, readOnlyMessage, writerUrl,
+ route, savePreference, toast, openFollow, cloudDownload, readOnly, readOnlyMessage, writerUrl,
} = props;
const [tab, setTab] = useState<TabKey>(isTab(props.tab) ? props.tab : 'list');
const [page, setPage] = useState(Math.max(1, Math.floor(props.page) || 1));
@@ -189,7 +189,7 @@ export function FollowManagePage(props: FollowManageProps) {
</TabPanel>
<TabPanel id="wants" className="flex flex-col gap-4">
- <WantList readOnly={readOnly} toast={toast} />
+ <WantList readOnly={readOnly} toast={toast} cloudDownload={cloudDownload} />
</TabPanel>
<TabPanel id="source" className="flex flex-col gap-4">
diff --git a/frontend/src/react/wants/want-list.tsx b/frontend/src/react/wants/want-list.tsx
index 1136502e4..a9caab038 100644
--- a/frontend/src/react/wants/want-list.tsx
+++ b/frontend/src/react/wants/want-list.tsx
@@ -3,6 +3,8 @@
* 想要从三处来:Feed 新作卡上的「想要」、关注详情上的「想要」、这里直接输入的库外番号。Peach
* 没有库外作品的详情页,这张卡就是库外番号的入口。四段是待找、未发售、暂时放弃、已入库:未发售
* 按发行日现算,到了发售日自己回到待找;文件扫进库或关注条目保存进账本时自动挪到已入库。
+ * 待找与暂时放弃两段的每一行有「云下载」:经壳带着番号、标题与 `wishlist:<id>` 去活动页的云下载段,
+ * 下载完的文件入库时由同一套对账挪到已入库。
*
* 版式与同页其余页签一致:分组靠标题,行与行之间只用一条发丝线,不各自套框。条间线写在每一行
* 自己身上(`border-t`),岛里 `divide-*` 压不过 `@scope` 末尾的边框清零。 */
@@ -43,9 +45,9 @@ function Cover({ want }: { want: Want }) {
);
}
-function WantRow({ want, first, readOnly, busy, onReset, onRemove }: {
+function WantRow({ want, first, readOnly, busy, onReset, onRemove, onCloudDownload }: {
want: Want; first: boolean; readOnly: boolean; busy: string;
- onReset(): void; onRemove(): void;
+ onReset(): void; onRemove(): void; onCloudDownload(): void;
}) {
return (
<li data-want-id={want.id}
@@ -65,6 +67,10 @@ function WantRow({ want, first, readOnly, busy, onReset, onRemove }: {
</p>
<div className="mt-1 flex flex-wrap items-center gap-2">
{want.link ? <ExternalLink href={want.link}>来源页</ExternalLink> : null}
+ {/* 还在找的两段才给云下载:未发售的没有资源可下,已入库的已经到手。 */}
+ {want.phase === 'searching' || want.phase === 'given_up' ? (
+ <Button variant="secondary" size="small" disabled={readOnly} onClick={onCloudDownload}>云下载</Button>
+ ) : null}
{want.phase === 'given_up' ? (
<Button variant="secondary" size="small" disabled={readOnly} {...busyProps(busy === `reset:${want.id}`)}
onClick={onReset}>重新查找</Button>
@@ -80,9 +86,11 @@ function WantRow({ want, first, readOnly, busy, onReset, onRemove }: {
export interface WantListProps {
readOnly: boolean;
toast(message: string): void;
+ /** 带着番号、标题与 `wishlist:<id>` 去活动页的云下载段(壳的 `openCloudDownload`)。 */
+ cloudDownload(prefill: { code?: string; title?: string; origin: string }): void;
}
-export function WantList({ readOnly, toast }: WantListProps) {
+export function WantList({ readOnly, toast, cloudDownload }: WantListProps) {
const [code, setCode] = useState('');
const action = useAction();
const wants = useQuery({
@@ -155,7 +163,10 @@ export function WantList({ readOnly, toast }: WantListProps) {
<ul className="flex flex-col">
{rows.map((want, at) => (
<WantRow key={want.id} want={want} first={at === 0} readOnly={readOnly} busy={action.busy}
- onReset={() => reset(want)} onRemove={() => remove(want)} />
+ onReset={() => reset(want)} onRemove={() => remove(want)}
+ onCloudDownload={() => cloudDownload({
+ code: want.code || '', title: want.title || '', origin: `wishlist:${want.id}`,
+ })} />
))}
</ul>
</section>
diff --git a/frontend/test/react/follow-manage.test.tsx b/frontend/test/react/follow-manage.test.tsx
index 344e6b19d..6aca005bb 100644
--- a/frontend/test/react/follow-manage.test.tsx
+++ b/frontend/test/react/follow-manage.test.tsx
@@ -144,6 +144,7 @@ const shellProps = (over: Partial<Props> = {}): Props => ({
savePreference: vi.fn(),
toast: vi.fn(),
openFollow: vi.fn(),
+ cloudDownload: vi.fn(),
readOnly: false, readOnlyMessage: '', writerUrl: '',
// 遗留层那条回落链的形状:先垫首字母,有图再叠一张。
avatarInner: vi.fn((name: string, entity: { id: number; has_image: boolean } | null) =>
diff --git a/frontend/test/react/want-list.test.tsx b/frontend/test/react/want-list.test.tsx
index cb849a4ce..4f583f665 100644
--- a/frontend/test/react/want-list.test.tsx
+++ b/frontend/test/react/want-list.test.tsx
@@ -46,10 +46,13 @@ const reads = (fetcher: ReturnType<typeof serve>) => fetcher.mock.calls.filter((
async function open(readOnly = false) {
const toast = vi.fn();
+ const cloudDownload = vi.fn();
const host = await mount(
- <QueryClientProvider client={queryClient}><WantList readOnly={readOnly} toast={toast} /></QueryClientProvider>);
+ <QueryClientProvider client={queryClient}>
+ <WantList readOnly={readOnly} toast={toast} cloudDownload={cloudDownload} />
+ </QueryClientProvider>);
await settle();
- return { host, toast };
+ return { host, toast, cloudDownload };
}
it('按待找、未发售、暂时放弃、已入库分段,段名带条数;只有暂时放弃的那条能重新查找', async () => {
@@ -70,6 +73,26 @@ it('按待找、未发售、暂时放弃、已入库分段,段名带条数;
expect(buttonNamed('重新查找', host.querySelector('[data-want-id="2"]')!)).toBeNull();
});
+it('待找与暂时放弃两段每行有云下载,带着番号、标题与 wishlist 来处;未发售与已入库没有', async () => {
+ serve(listed([
+ want(2, { title: '雨の日' }), want(3, { phase: 'given_up', search_count: 3 }),
+ want(4, { phase: 'unreleased', release_date: '2026-12-01' }), want(1, { phase: 'acquired' }),
+ want(6, { code: null, origin: 'follow', title: '关注里的一条', follow_item_id: 9 }),
+ ]));
+ const { host, cloudDownload } = await open();
+ const key = (id: number) => buttonNamed('云下载', host.querySelector(`[data-want-id="${id}"]`)!);
+ expect([2, 3, 4, 1, 6].map((id) => !!key(id))).toEqual([true, true, false, false, true]);
+ expect(key(2)!.className).toContain('bg-background-primary-default');
+ await click(key(2));
+ await click(key(3));
+ await click(key(6));
+ expect(cloudDownload.mock.calls.map(([prefill]) => prefill)).toEqual([
+ { code: 'ABC-2', title: '雨の日', origin: 'wishlist:2' },
+ { code: 'ABC-3', title: '', origin: 'wishlist:3' },
+ { code: '', title: '关注里的一条', origin: 'wishlist:6' },
+ ]);
+});
+
it('一条都没有就是空态,不画空的分段', async () => {
serve(listed([]));
const { host } = await open();
@@ -124,4 +147,5 @@ it('只读的机器:输入框、添加与每行的键都禁用', async () => {
expect(host.querySelector<HTMLInputElement>('input[aria-label="番号"]')!.disabled).toBe(true);
expect(buttonNamed('添加', host)!.disabled).toBe(true);
expect(buttonNamed('移除', host)!.disabled).toBe(true);
+ expect(buttonNamed('云下载', host)!.disabled).toBe(true);
});
diff --git a/web/app.js b/web/app.js
index 240f10a24..bb419dfc2 100644
--- a/web/app.js
+++ b/web/app.js
@@ -3108,7 +3108,7 @@ async function openFollowManage(push=true,workspace=''){
if(patch.layout!==undefined)appSettings.followLayout=patch.layout;
saveSettings();
},
- toast:actionReceipt,openFollow:()=>void openFollow(),avatarInner,
+ toast:actionReceipt,openFollow:()=>void openFollow(),cloudDownload:openCloudDownload,avatarInner,
readOnly:!!runtime?.ledger_read_only,
readOnlyMessage:runtime?.ledger_read_only_message||'本机当前只能浏览',
writerUrl:writer,
diff --git a/web/dist/peach-react.js b/web/dist/peach-react.js
index 123b586d9..85fefd7ee 100644
--- a/web/dist/peach-react.js
+++ b/web/dist/peach-react.js
@@ -45015,7 +45015,7 @@ function Pme({ want: e }) {
}) : null]
});
}
-function Fme({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a }) {
+function Fme({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a, onCloudDownload: o }) {
return /* @__PURE__ */ (0, z.jsxs)("li", {
"data-want-id": e.id,
className: `flex min-w-0 items-start gap-4 py-4 max-sm:gap-3 ${t ? "" : "border-t border-separator-border"}`,
@@ -45048,6 +45048,13 @@ function Fme({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a
href: e.link,
children: "来源页"
}) : null,
+ e.phase === "searching" || e.phase === "given_up" ? /* @__PURE__ */ (0, z.jsx)(H, {
+ variant: "secondary",
+ size: "small",
+ disabled: n,
+ onClick: o,
+ children: "云下载"
+ }) : null,
e.phase === "given_up" ? /* @__PURE__ */ (0, z.jsx)(H, {
variant: "secondary",
size: "small",
@@ -45070,27 +45077,27 @@ function Fme({ want: e, first: t, readOnly: n, busy: r, onReset: i, onRemove: a
})]
});
}
-function Ime({ readOnly: e, toast: t }) {
- let [n, r] = (0, R.useState)(""), i = ia(), a = Qn({
+function Ime({ readOnly: e, toast: t, cloudDownload: n }) {
+ let [r, i] = (0, R.useState)(""), a = ia(), o = Qn({
queryKey: mF,
queryFn: ({ signal: e }) => kme(e),
refetchInterval: (e) => e.state.data?.scraping ? 3e3 : !1
- }), o = () => {
- let a = n.trim();
- !a || e || i.run("add", (e) => hF({ code: a }, e), (e) => {
- t(e.created ? `已加入想要:${vF(e.want)}` : `${vF(e.want)} 已经在想要里`), r(""), _F();
+ }), s = () => {
+ let n = r.trim();
+ !n || e || a.run("add", (e) => hF({ code: n }, e), (e) => {
+ t(e.created ? `已加入想要:${vF(e.want)}` : `${vF(e.want)} 已经在想要里`), i(""), _F();
});
- }, s = (e) => {
- e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), o());
}, c = (e) => {
- i.run(`remove:${e.id}`, (t) => gF([e.id], t), () => {
+ e.key === "Enter" && !e.nativeEvent.isComposing && (e.preventDefault(), s());
+ }, l = (e) => {
+ a.run(`remove:${e.id}`, (t) => gF([e.id], t), () => {
t(`已移除:${vF(e)}`), _F();
});
- }, l = (e) => {
- i.run(`reset:${e.id}`, (t) => jme([e.id], t), () => {
+ }, u = (e) => {
+ a.run(`reset:${e.id}`, (t) => jme([e.id], t), () => {
t(`${vF(e)} 回到待找`), _F();
});
- }, u = a.data, d = u?.items || [];
+ }, d = o.data, f = d?.items || [];
return /* @__PURE__ */ (0, z.jsxs)("div", {
className: "flex flex-col gap-8",
children: [
@@ -45111,63 +45118,68 @@ function Ime({ readOnly: e, toast: t }) {
children: /* @__PURE__ */ (0, z.jsx)(cy, {
"aria-label": "番号",
placeholder: "输入番号,例如 SSIS-950",
- value: n,
+ value: r,
isDisabled: e,
- onChange: r,
- onKeyDown: s
+ onChange: i,
+ onKeyDown: c
})
}), /* @__PURE__ */ (0, z.jsx)(H, {
variant: "primary",
- disabled: e || !n.trim(),
- ...q(i.busy === "add"),
- onClick: o,
+ disabled: e || !r.trim(),
+ ...q(a.busy === "add"),
+ onClick: s,
children: "添加"
})]
}),
/* @__PURE__ */ (0, z.jsx)(wy, { children: "Feed 新作卡和关注详情上点「想要」也会加到这里。文件扫进库后自动挪到「已入库」。" }),
- i.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ a.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "这一次没有完成",
- children: i.error
+ children: a.error
}) : null
]
}),
- a.error ? /* @__PURE__ */ (0, z.jsx)(K, {
+ o.error ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "error",
title: "想要清单读取失败",
- children: U(a.error)
+ children: U(o.error)
}) : null,
- u?.scraping ? /* @__PURE__ */ (0, z.jsx)(wy, {
+ d?.scraping ? /* @__PURE__ */ (0, z.jsx)(wy, {
role: "status",
children: "正在给刚加入的番号取资料与封面。"
}) : null,
- u && !d.length ? /* @__PURE__ */ (0, z.jsx)(Qi, {
+ d && !f.length ? /* @__PURE__ */ (0, z.jsx)(Qi, {
shell: "plain",
icon: gt,
title: "还没有想要的作品",
children: "在上面输入番号,或在 Feed 新作卡、关注详情上点「想要」。"
}) : null,
- Ome.map(([t, n]) => {
- let r = d.filter((e) => e.phase === t);
- return r.length ? /* @__PURE__ */ (0, z.jsxs)("section", {
- "aria-label": n,
+ Ome.map(([t, r]) => {
+ let i = f.filter((e) => e.phase === t);
+ return i.length ? /* @__PURE__ */ (0, z.jsxs)("section", {
+ "aria-label": r,
"data-want-phase": t,
className: "flex flex-col gap-1",
children: [/* @__PURE__ */ (0, z.jsxs)("h3", {
className: "flex items-baseline gap-2 text-title-2-medium text-text-primary",
- children: [n, /* @__PURE__ */ (0, z.jsx)("span", {
+ children: [r, /* @__PURE__ */ (0, z.jsx)("span", {
className: "text-body-2-regular tabular-nums text-text-secondary",
- children: r.length
+ children: i.length
})]
}), /* @__PURE__ */ (0, z.jsx)("ul", {
className: "flex flex-col",
- children: r.map((t, n) => /* @__PURE__ */ (0, z.jsx)(Fme, {
+ children: i.map((t, r) => /* @__PURE__ */ (0, z.jsx)(Fme, {
want: t,
- first: n === 0,
+ first: r === 0,
readOnly: e,
- busy: i.busy,
- onReset: () => l(t),
- onRemove: () => c(t)
+ busy: a.busy,
+ onReset: () => u(t),
+ onRemove: () => l(t),
+ onCloudDownload: () => n({
+ code: t.code || "",
+ title: t.title || "",
+ origin: `wishlist:${t.id}`
+ })
}, t.id))
})]
}, t) : null;
@@ -45203,47 +45215,47 @@ function SF({ term: e, figure: t, unit: n }) {
});
}
function Lme(e) {
- let { route: t, savePreference: n, toast: r, openFollow: i, readOnly: a, readOnlyMessage: o, writerUrl: s } = e, [c, l] = (0, R.useState)(xF(e.tab) ? e.tab : "list"), [u, d] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [f, p] = (0, R.useState)(() => ej(e.sort, e.dir).sort), [m, h] = (0, R.useState)(() => ej(e.sort, e.dir).dir), [g, _] = (0, R.useState)(sde(e.layout) ? e.layout : "default"), [v, y] = (0, R.useState)(cde(e.pageSize)), [b, x] = (0, R.useState)(/* @__PURE__ */ new Set()), S = Qn({
+ let { route: t, savePreference: n, toast: r, openFollow: i, cloudDownload: a, readOnly: o, readOnlyMessage: s, writerUrl: c } = e, [l, u] = (0, R.useState)(xF(e.tab) ? e.tab : "list"), [d, f] = (0, R.useState)(Math.max(1, Math.floor(e.page) || 1)), [p, m] = (0, R.useState)(() => ej(e.sort, e.dir).sort), [h, g] = (0, R.useState)(() => ej(e.sort, e.dir).dir), [_, v] = (0, R.useState)(sde(e.layout) ? e.layout : "default"), [y, b] = (0, R.useState)(cde(e.pageSize)), [x, S] = (0, R.useState)(/* @__PURE__ */ new Set()), C = Qn({
queryKey: lj,
queryFn: ({ signal: e }) => Oj(e)
- }), C = Qn({
+ }), w = Qn({
queryKey: uj,
queryFn: ({ signal: e }) => kj(e)
- }), w = Qn({
+ }), T = Qn({
queryKey: dj,
queryFn: ({ signal: e }) => Pj(e)
- }), T = S.data || { sources: [] }, E = C.data || {
+ }), E = C.data || { sources: [] }, D = w.data || {
root: "",
providers: []
- }, D = T.sources;
+ }, O = E.sources;
(0, R.useEffect)(() => {
- x((e) => {
- let t = mde(e, D);
+ S((e) => {
+ let t = mde(e, O);
return t.size === e.size ? e : t;
});
- }, [D]);
- let O = (e) => {
- let n = e.sort ?? f, r = e.dir ?? m;
+ }, [O]);
+ let k = (e) => {
+ let n = e.sort ?? p, r = e.dir ?? h;
t({
- tab: e.tab ?? c,
- page: e.page ?? u,
+ tab: e.tab ?? l,
+ page: e.page ?? d,
sort: n === "checked" ? "" : n,
dir: r === $A[n] ? "" : r
});
- }, k = wj(D), A = D.filter(gj).length, j = D.filter((e) => e.enabled).length, M = (E.providers || []).filter((e) => e.requirement === "required" && !Uj(e)).length, N = new Set((w.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
+ }, A = wj(O), j = O.filter(gj).length, M = O.filter((e) => e.enabled).length, N = (D.providers || []).filter((e) => e.requirement === "required" && !Uj(e)).length, P = new Set((T.data?.sources || []).map((e) => e.entity_id ?? `source-${e.id}`)).size;
return /* @__PURE__ */ (0, z.jsxs)(ea, { children: [
- a ? /* @__PURE__ */ (0, z.jsx)(K, {
+ o ? /* @__PURE__ */ (0, z.jsx)(K, {
tone: "warning",
title: "本机只能浏览",
- extra: s ? /* @__PURE__ */ (0, z.jsx)("p", {
+ extra: c ? /* @__PURE__ */ (0, z.jsx)("p", {
className: "text-body-2-regular",
children: /* @__PURE__ */ (0, z.jsx)("a", {
- href: s,
+ href: c,
className: "text-text-primary underline underline-offset-2",
children: "前往写入端管理关注"
})
}) : void 0,
- children: o
+ children: s
}) : null,
/* @__PURE__ */ (0, z.jsxs)("div", {
className: eie,
@@ -45251,41 +45263,41 @@ function Lme(e) {
children: [
/* @__PURE__ */ (0, z.jsx)(SF, {
term: "关注创作者",
- figure: k.length,
+ figure: A.length,
unit: "位"
}),
/* @__PURE__ */ (0, z.jsx)(SF, {
term: "启用来源",
- figure: j,
- unit: `/ ${D.length}`
+ figure: M,
+ unit: `/ ${O.length}`
}),
/* @__PURE__ */ (0, z.jsx)(SF, {
term: "检查失败",
- figure: A,
+ figure: j,
unit: "个来源"
}),
/* @__PURE__ */ (0, z.jsx)(SF, {
term: "未看更新",
- figure: T.counts?.new || 0,
+ figure: E.counts?.new || 0,
unit: "条"
}),
/* @__PURE__ */ (0, z.jsx)(SF, {
term: "JAV 订阅",
- figure: N,
+ figure: P,
unit: "位"
}),
/* @__PURE__ */ (0, z.jsx)(SF, {
term: "未看新作",
- figure: w.data?.unread || 0,
+ figure: T.data?.unread || 0,
unit: "条"
})
]
}),
/* @__PURE__ */ (0, z.jsxs)(ey, {
- selectedKey: c,
+ selectedKey: l,
onSelectionChange: (e) => {
let t = String(e);
- xF(t) && (l(t), O({ tab: t }));
+ xF(t) && (u(t), k({ tab: t }));
},
className: "flex flex-col gap-6",
children: [
@@ -45297,39 +45309,39 @@ function Lme(e) {
children: bF.map(([e, t]) => /* @__PURE__ */ (0, z.jsx)(ny, {
id: e,
className: "cursor-pointer whitespace-nowrap",
- children: e === "source" && M ? `${t}(${M})` : t
+ children: e === "source" && N ? `${t}(${N})` : t
}, e))
}),
/* @__PURE__ */ (0, z.jsx)(ry, {
id: "list",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(_me, {
- data: T,
- sort: f,
- dir: m,
- page: u,
- layout: g,
- pageSize: v,
- selected: b,
- readOnly: a,
+ data: E,
+ sort: p,
+ dir: h,
+ page: d,
+ layout: _,
+ pageSize: y,
+ selected: x,
+ readOnly: o,
toast: r,
openFollow: i,
onSort: (e, t) => {
- p(e), h(t), d(1), O({
+ m(e), g(t), f(1), k({
sort: e,
dir: t,
page: 1
});
},
onPage: (e) => {
- d(e), O({ page: e });
+ f(e), k({ page: e });
},
- onSelected: x,
+ onSelected: S,
onLayout: (e) => {
- _(e), d(1), n({ layout: e }), O({ page: 1 });
+ v(e), f(1), n({ layout: e }), k({ page: 1 });
},
onPageSize: (e) => {
- y(e), d(1), n({ pageSize: e }), O({ page: 1 });
+ b(e), f(1), n({ pageSize: e }), k({ page: 1 });
}
})
}),
@@ -45337,26 +45349,26 @@ function Lme(e) {
id: "add",
className: "flex flex-col gap-8",
children: [/* @__PURE__ */ (0, z.jsx)(Cfe, {
- data: T,
- credentials: E,
- readOnly: a,
+ data: E,
+ credentials: D,
+ readOnly: o,
toast: r,
openCredentials: () => {
- l("source"), O({ tab: "source" });
+ u("source"), k({ tab: "source" });
}
}), /* @__PURE__ */ (0, z.jsx)(Efe, {
- groups: T.author_aliases || [],
- readOnly: a,
+ groups: E.author_aliases || [],
+ readOnly: o,
toast: r,
- suggestions: T.alias_suggestions || [],
- sources: T.sources
+ suggestions: E.alias_suggestions || [],
+ sources: E.sources
})]
}),
/* @__PURE__ */ (0, z.jsx)(ry, {
id: "feeds",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(Eme, {
- readOnly: a,
+ readOnly: o,
toast: r,
avatarInner: e.avatarInner
})
@@ -45365,16 +45377,17 @@ function Lme(e) {
id: "wants",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(Ime, {
- readOnly: a,
- toast: r
+ readOnly: o,
+ toast: r,
+ cloudDownload: a
})
}),
/* @__PURE__ */ (0, z.jsx)(ry, {
id: "source",
className: "flex flex-col gap-4",
children: /* @__PURE__ */ (0, z.jsx)(FM, {
- data: E,
- readOnly: a,
+ data: D,
+ readOnly: o,
toast: r
})
})