Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(scraping): 全部检查结果的来源名前加站标

longmeidao005c4db90547
diff --git a/frontend/src/react/scraping/scraping-page.tsx b/frontend/src/react/scraping/scraping-page.tsx
index 18bca2f78..7eaeda0cb 100644
--- a/frontend/src/react/scraping/scraping-page.tsx
+++ b/frontend/src/react/scraping/scraping-page.tsx
@@ -271,7 +271,10 @@ function CheckAllCard({ toast }: ScrapingProps) {
};
const checks = (job?.results ?? []).flatMap(
- (report) => report.results.map((check) => ({ name: targetName(report, check), check })));
+ (report) => report.results.map((check) => ({ source: report.source, name: targetName(report, check), check })));
+ // 站标跟名字走,同来源卡标题旁的那一枚。
+ const titled = (source: string, name: string) =>
+ <span className="inline-flex min-w-0 items-center gap-1.5"><SiteMark source={source} />{name}</span>;
const passed = checks.filter(({ check }) => check.outcome === 'ok');
// 按口径成组,组内保持来源顺序:要人去登录的排前面,不在这里查的片商官网垫底。
const problems = checks.filter(({ check }) => check.outcome !== 'ok').sort(
@@ -307,8 +310,8 @@ function CheckAllCard({ toast }: ScrapingProps) {
: null}
{problems.length
? <ul className="flex min-w-0 flex-col">
- {problems.map(({ name, check }) => (
- <IssueRow key={name} title={name}>
+ {problems.map(({ source, name, check }) => (
+ <IssueRow key={name} title={titled(source, name)}>
<span className="flex flex-wrap items-center gap-2">
<StatusLabel tone={OUTCOME_TONES[check.outcome]}>{check.outcome_label}</StatusLabel>
{check.message
@@ -322,8 +325,8 @@ function CheckAllCard({ toast }: ScrapingProps) {
{passed.length
? <Disclosure summary={`可连接的 ${passed.length} 项`}>
<FactList>
- {passed.map(({ name, check }) => (
- <Fact key={name} term={name}>
+ {passed.map(({ source, name, check }) => (
+ <Fact key={name} term={titled(source, name)}>
{[check.width ? `${check.width} × ${check.height}` : '',
check.elapsed_s !== undefined ? `${check.elapsed_s.toFixed(2)} 秒` : ''].filter(Boolean).join(' · ')}
</Fact>
diff --git a/web/dist/peach-app.js b/web/dist/peach-app.js
index 4adc1a643..c6935c599 100644
--- a/web/dist/peach-app.js
+++ b/web/dist/peach-app.js
@@ -2,7 +2,7 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "86b9d852-8d38-467c-b4d6-d39c782496c0", e._sentryDebugIdIdentifier = "sentry-dbid-86b9d852-8d38-467c-b4d6-d39c782496c0");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6e3d2d23-0832-476c-b408-269d645a9872", e._sentryDebugIdIdentifier = "sentry-dbid-6e3d2d23-0832-476c-b408-269d645a9872");
} catch {}
})();
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), s = (e, n) => {
@@ -79354,7 +79354,7 @@ async function T6(e, t) {
if (r.status === "rejected") throw r.reason;
if (n.status === "rejected") throw n.reason;
}
-var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-DL1KGdJQ.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-CFCDLKSG.js")), P6 = w6(async () => {
+var E6 = w6(() => import("./peach-app.jav-page-CvsnSwyE.js")), D6 = w6(() => import("./peach-app.stats-page-Domc7MK7.js")), O6 = w6(() => import("./peach-app.taste-page-DBsNS6-3.js")), k6 = w6(() => import("./peach-app.review-page-DL1KGdJQ.js")), A6 = w6(() => import("./peach-app.data-cleanup-page-CZOBqkVd.js")), j6 = w6(() => import("./peach-app.duplicates-page-Bau8HIlx.js")), M6 = w6(() => import("./peach-app.quality-goals-page-Deoy7rhD.js")), N6 = w6(() => import("./peach-app.scraping-page-C1N85_Sm.js")), P6 = w6(async () => {
let [{ ConfigurationPage: e }, { DiagnosticsPage: t }] = await Promise.all([import("./peach-app.configuration-page-ubxQHJd0.js"), import("./peach-app.diagnostics-page-DS1L_wLs.js")]);
return {
ConfigurationPage: e,
@@ -84601,4 +84601,4 @@ if (!$9) throw Error("主界面宿主缺失");
UBe($9);
export { LL as $2ec61d1d4f780267$export$a8a3e93435678ff9, GL as $3a442827418ebe87$export$eb2fcfdbd7ba97d4, cz as $542a13ca2fa5b484$export$5b6b19405a83ff9d, CD as $72abaeab4d80592f$export$78efe591171d7d45, eB as $76d00c5a4edb230a$export$76ccd210b9029917, Zz as $76d00c5a4edb230a$export$816b5d811295e6bc, rB as $76d00c5a4edb230a$export$b59bdbef9ce70de2, aB as $76d00c5a4edb230a$export$f6f0c3fe4ec306ea, Xz as $76d00c5a4edb230a$export$f850895b287ef28e, Khe as $b4f18e3395fe64d7$export$3d96ec278d3efce4, Ghe as $b4f18e3395fe64d7$export$3e41faf802a29e71, Hhe as $b4f18e3395fe64d7$export$b2539bed5023c21c, lB as $b4f18e3395fe64d7$export$e51a686c67fdaa2d, Yhe as $bd263d78e9bf3c56$export$f5c9f3c2c4054eec, uE as $ea3928288112382f$export$439d29a4e110a164, xz as $f2ff30fde7b014be$export$3ddf2d174ce01153, Oz as $fe21c36db05242bb$export$a98f0dcb43a68a25, kz as $fe21c36db05242bb$export$d7b12c4107be0d61, Mge as $l, Bj as ACCENTS, zAe as AMANE_BRIDGE_CHECK_URL, j$ as AMANE_BRIDGE_KEY, BAe as AMANE_BRIDGE_REBUILD_URL, sr as ApiError, UU as ArtSlot, S2 as BATCH_DELETE_TEXT, J as Button, hL as ButtonLink, VB as Bx, A$ as CHECK_ALL_KEY, i$ as CLEANUP_ENTRY, r$ as CLEANUP_ENTRY_GRID, Zf as CLEANUP_HASH_REDIRECTS, Yf as CLEANUP_TOOLS, vn as CLOUD_LOCATIONS, J1 as CLOUD_PROXY_HELP, Kr as COLUMN_SORT, Y$ as CONFIGURATION_KEY, zY as CONFIGURATION_URL, VAe as COOKIE_TEXT_LIMIT, k$ as COVER_JOB_KEY, Yi as CREDENTIAL_STATE, w$ as CUSTOM_SOURCES_KEY, C$ as CUSTOM_SOURCES_URL, rG as CatalogViewToggle, FV as Checkbox, PV as CheckboxGlyph, TV as ChevronSortDown, HU as Chip, QU as CloudDownloadDialog, kH as CollapseChevron, OH as CollapseRegion, ZQ as CollectionSummary, _Te as DEFAULT_CATEGORY, dr as DEFAULT_SORT, CQ as DIAGNOSTICS_KEY, _Ee as DIRECTORY_TEMPLATE_ERROR, aW as DISCOVERY_SORTS, GU as DOWNLOADS_KEY, WU as DOWNLOADS_URL, aY as DUPLICATES_KEY, zJ as DataTableFooter, FJ as DataTableFrame, RJ as DataTableSort, FH as Disclosure, Dye as DownloadsPanel, xge as E3, vTe as ENTITY_REVIEW_KINDS, K1 as ENTRY_LINKS_HELP, q1 as ENTRY_LINKS_HINT, NB as Ea, a_e as EmptyFocusButton, sV as EmptyState, NH as ErrorText, Yge as Eu, xve as ExternalLink, Vr as FEEDS_KEY, KY as FEED_SCHEDULE_KEY, t$ as FIELDSET_FOOT, gIe as FLOW_LABEL_X, n6 as FLOW_VIEWBOX, zr as FOLLOW_CHECK_KEY, Rr as FOLLOW_CREDENTIALS_KEY, z8 as FOLLOW_INITIAL_RANGE_OPTIONS, Lr as FOLLOW_MANAGE_KEY, EZ as FOLLOW_MANAGE_NAV, Br as FOLLOW_RESOLVE_KEY, GY as FOLLOW_SCHEDULE_KEY, wve as Fact, Cve as FactList, PH as FieldLabel, m$ as Fieldset, p$ as FieldsetTitle, Upe as FilterGlass, cL as FilterGlassRows, sL as FilterIconButton, lL as FilterPill, bve as Footer, RB as Gg, uL as GlassPill, GB as HN, MH as Help, QB as HintText, cIe as IDLE_POLL_MS, oTe as IDLE_REPAIR, rL as IconButton, TQ as IndexSearch, rV as Input, nV as InputBase, g$ as IssueRow, iM as JAV_LAYOUTS, V0 as JAV_RECOMMENDATION_GRID, _X as JUNK_KEY, mW as JavHeader, eTe as KEEP_LABELS, dge as L1, Ur as LAYOUTS, G1 as LIBRARY_FOLDER_HELP, JV as LIBRARY_PROCESSING_KEY, jY as LINKS_KEY, MY as LINK_CHECK_KEY, HTe as LINK_KINDS, NY as LINK_PRUNE_KEY, nr as LOC, ZB as Label, y$ as LibraryProcessingCard, wV as LibraryShortcuts, uH as LinkButton, Pge as Lo, CH as LoadingDots, Cge as M6, JTe as MEDIA_PROCESSING_KEY, JY as MEDIA_PROCESSING_URL, uY as MEDIA_REPAIR_KEY, lY as MEDIA_REPAIR_URL, yr as MEDIA_SOURCES_KEY, _s as MEDIA_SOURCE_ICONS, gn as MEDIA_SOURCE_OPTIONS, kV as MENU_ITEM, AV as MENU_ITEM_INTERACTIVE, OV as MENU_POPOVER_SURFACE, Ige as Ma, mH as MenuDialog, pK as MixCard, iV as ModalFrame, xx as MotionConfigContext, YB as NR, h$ as NameLink, oV as Note, t_e as OA, ZY as ORGANIZE_KEY, y2 as ORGANIZE_PARAMETER_HINT, v2 as ORGANIZE_SCOPE_HINT, _2 as ORGANIZE_TEXT, eX as ORPHAN_RECORDS_KEY, x2 as ORPHAN_RECORDS_TEXT, IB as OV, xB as P7, mX as PERFORMER_DELETE_KEY, Iye as PHASES, BY as PICK_FOLDER_URL, o$ as PLAIN_STAT_STRIP, x$ as PLAYLISTS_KEY, rMe as POLICY_COLUMNS, aMe as POLICY_COVER_NOTE, iMe as POLICY_MATRIX, W1 as POLICY_SUMMARY, LJ as Pagination, v$ as PathLine, qB as Pf, MI as PillTabList, sAe as PlainStat, TH as Progress, hY as QUALITY_GOALS_KEY, KB as RB, R0 as RELEASE_COLUMN_VISIBILITY_KEY, L0 as RELEASE_COLUMN_WIDTHS_KEY, oW as RELEASE_SORTS, NMe as RELEASE_SORT_COLUMNS, c$ as REPAIR_CARD_TEXT, dY as REPAIR_LIBRARIES_KEY, aX as RESOURCE_APPLY_KEY, iX as RESOURCE_SCAN_KEY, b2 as RESOURCE_SYNC_TEXT, pAe as RESULT_PANEL, mAe as RESULT_SECTION, gTe as REVIEW_CATEGORIES, gX as REVIEW_COUNTS_KEY, yTe as REVIEW_DECISION_LABELS, vY as REVIEW_KEY, yY as REVIEW_LABELS, xY as REVIEW_QUEUES, SY as REVIEW_QUEUE_LABELS, PG as RetryNote, $ge as Rf, XB as Rk, _ve as Rows, E$ as SCRAPING_CHECK_ALL_URL, LAe as SCRAPING_CHECK_URL, D$ as SCRAPING_COVER_URL, O$ as SCRAPING_KEY, IAe as SCRAPING_SETTINGS_URL, tU as SEGMENT, eU as SEGMENTED_TRACK, WY as SETTINGS_KEY, VY as SETTINGS_URL, fr as SORT_DEFAULT_DIR, ur as SORT_OPTIONS, yn as SOURCE_LABELS, D3 as STATS_KEY, aAe as STAT_STRIP, oAe as STAT_STRIP_SIX, gve as Section, hAe as SectionHeading, yve as SectionSkeleton, $H as SegmentedRadioGroup, zve as SegmentedTabList, DG as Segments, IJ as Select, zU as Select$1, $$ as SelectField, BU as SelectItem, KJ as SelectionActions, vj as SelectionDock, qJ as SelectionPopover, AH as SettingsCard, hve as SettingsRow, jH as SettingsSectionLabel, OG as Shuffle, Ove as SiteLabel, aG as SortDirectionIcon, kG as SortKeys, oQ as SourceAvatar, zH as SourceLabel, IH as SourceMark, vve as Stack, cAe as StatCard, _$ as StatusLabel, Xge as Su, a4 as Switch, VI as TASKS_KEY, ZFe as TASTE_REFRESH_KEY, QFe as TASTE_WINDOWS, qY as THUMBNAIL_JOBS_KEY, yX as TRASH_KEY, Spe as TRIGGER_LABELS, wJ as Table, JJ as TableColumnControls, YJ as TableColumnResizer, ZJ as TableSelectionHeader, KQ as TagManager, Sve as TaskCenterLink, EH as TaskProgress, eV as TextField, $B as TextFieldContext, PB as Un, e_e as Uz, eW as WANTS_KEY, b4 as WantMagnets, Jg as WithPromise, TB as Wt, MB as Xc, JB as Xf, DB as Xl, EB as Xt, CB as _8, o as __commonJSMin, s as __exportAll, l as __toESM, WB as _p, Qge as aB, Ei as addAlias, Ti as addSource, nW as addWant, uS as animate, B as apiGet, V as apiSend, Qj as appSettingsStore, IEe as applyConfirmText, pX as applyLeftovers, FEe as applyPlanText, REe as applyText, nM as applyTheme, yy as asNumber, wEe as attachOrphan, ci as authorAvatar, ui as authorGroups, si as authorInitial, oi as authorName, fq as autoResetPageIndex, _o as avatarInner, N3 as bandRows, vEe as baseName, aTe as batchOperate, Rue as beginPlayerGuidePreview, Cj as boundedPreference, nTe as bulkCloudPreferences, dV as busyProps, Zge as cB, EPe as cachedMagnetStates, Hg as calcGeneratorVelocity, ETe as canApprove, vg as cancelFrame, kEe as candidateText, yU as cardClass, _M as cardRatio, MJ as catalogListSkeletonCellHtml, jB as cc, Gi as checkEvidenceGap, Wi as checkFailures, Fi as checkFeeds, KTe as checkLine, Hi as checkReceipt, Ui as checkSummary, UAe as checkText, Ki as checkedText, eK as clickedBlank, Q5 as closeDrawerAfterNav, Jwe as cloudLocations, T0 as cloudProxySkeleton, UC as clsx, zge as cn, cv as collectMotionValues, Mq as columnVisibilityFeature, yJ as column_getCanSort, hJ as column_getSortFn, wTe as commonReviewSources, ZU as composingKey, Af as configurationSection, nIe as configureTasteBrowser, ll as confirmModal, bpe as controlTask, JK as copyInstancePropertiesWithoutMemos, lo as coverUrl, Cq as createColumnHelper, AAe as createPlaylist, Xi as credentialDone, x0 as credentialsSkeleton, FTe as currentReviewRow, q as cx, wge as d6, BB as dZ, MTe as decisionPayload, NTe as decisionReceipt, jTe as defaultChoice, BEe as deletePerformerVideos, MAe as deletePlaylist, k0 as devicesSkeleton, x as diagnosticHeaders, U1 as diagnosticsSkeleton, Gye as discoveryArtwork, sW as discoveryKey, Hye as discoveryScore, d9 as disposeStage, Qwe as distinctName, Bi as dropSources, Jge as du, rTe as duplicateVictims, JI as elapsedText, nn as entityDisplayName, go as entityFaceImg, Pn as entityPath, ti as errorHeadline, lr as errorMessage, z as esc, dq as expandRowModel, mB as f1, bo as facePos, ei as feedIntervalText, F$ as fetchAmaneBridge, P$ as fetchCheckAllJob, vi as fetchCheckJob, X$ as fetchConfiguration, N$ as fetchCoverJob, _i as fetchCredentials, T$ as fetchCustomSources, hX as fetchDeletePerformers, zEe as fetchDeletePlan, wQ as fetchDiagnostics, cW as fetchDiscoveries, sY as fetchDuplicates, gpe as fetchEarlier, ZTe as fetchFeedSchedule, Mi as fetchFeeds, gi as fetchFollow, XTe as fetchFollowSchedule, xX as fetchJunkSummary, nH as fetchLibraryProcessing, IY as fetchLinkCheck, LY as fetchLinkPrune, FY as fetchLinkStats, YTe as fetchMediaProcessing, fY as fetchMediaRepair, br as fetchMediaSources, QY as fetchOrganize, uEe as fetchOrganizeExample, tX as fetchOrphanRecords, ji as fetchPending, S$ as fetchPlaylists, gY as fetchQualityGoals, dW as fetchReleases, pY as fetchRepairLibraries, yi as fetchResolveJob, sX as fetchResourceApply, oX as fetchResourceScan, OY as fetchReview, bX as fetchReviewCounts, YY as fetchSettings, M$ as fetchSources, O3 as fetchStats, bi as fetchSuggestions, UI as fetchTasks, $3 as fetchTaste, rIe as fetchTasteJob, QTe as fetchThumbnailJobs, SX as fetchTrashSummary, tW as fetchWants, STe as filterReviewRows, er as firstGrapheme, AK as flexRender, vIe as flowGraph, yIe as flowLabel, _Fe as fmtCount, Jn as fmtDur, Xn as fmtSize, hpe as foldByKind, Mpe as foldRoutine, Li as followFeedByName, Hr as followSuggestKey, Ppe as followupDetail, mpe as followupTally, _g as frame, yB as g4, Fq as getDefaultPaginationState, gM as gridLayout, li as groupByAuthor, jpe as groupFollowups, TY as groupReviewRows, NEe as hasChanges, cX as hasResourceRoots, GI as hasResultProblems, lIe as historySpan, hB as i2, sIe as importTasteExport, S0 as indexersSkeleton, wee as interpolate, iW as invalidateWants, qI as isActive, $r as isBroken, qr as isLayout, yv as isMotionValue, bY as isReviewCategory, Npe as isRoutine, C0 as javBrowserSkeleton, U0 as javContentSkeleton, lM as javLayout, H0 as javTagSkeleton, GEe as junkBreakdown, NAe as keepPlaylist, ke as keepPreviousData, pi as keepSelected, k3 as known, uge as l1, _ge as l7, Ape as latestOfKind, $n as leadingGraphemes, kFe as lengthRows, Cr as localTime, po as logoUrl, Ii as lookupFeedActor, bB as m7, zB as mM, Dn as mapLimit, Ai as markItem, P3 as max, DFe as mediumRows, _pe as mergeFinished, F3 as min, BTe as mirrorText, lTe as missingToolText, cY as mixedCloudPreferences, QI as momentText, dS as motion, uv as motionValue, rn as nameFallback, Ue as notifyManager, Tge as oe, bEe as organizeOutcome, a2 as overlayHost, Jr as pageSizeOf, fi as pageWindow, hr as paginationRange, zi as patchSource, Np as peachHistory, Np as peachHistory$1, ATe as pendingGenres, yFe as percentText, pEe as pickOrganizeFolder, a$ as plainStatClass, yEe as planSummary, A3 as playedFor, xFe as playedItemUrl, HI as pollInterval, Ys as popCount, kAe as posterUrl, vxe as previewLibraryColor, fEe as previewOrganize, fTe as previewUrl, Ope as problemDestination, ZV as processingActive, YI as progressText, RH as providerIcon, GTe as pruneText, uX as purgeCount, TEe as purgeOrphan, HB as pv, qge as qE, H as queryClient, gB as r2, hIe as radarRows, wFe as radialArc, TFe as radialBarSize, CFe as radialCeiling, SFe as radialSlices, NN as randomId, pIe as rankDetail, mIe as rankShares, M3 as reachedShare, XI as readableErrorHeadline, Uye as recommendationScore, ITe as recordGenre, DEe as recordsText, PAe as recreatePlaylist, DAe as refreshPlaylists, El as relayoutCovers, z0 as releaseColumns, lW as releaseFilters, uW as releaseKey, Vi as reloadFollowManage, zTe as reloadReview, cMe as rememberShape, hEe as rememberTemplates, Di as removeAlias, Pi as removeFeed, wi as removeSource, oIe as removeTasteSource, rW as removeWants, Oi as renameAliasGroup, jAe as renamePlaylist, Se as replaceEqualDeep, jFe as replayRows, re as require_jsx_runtime, A as require_react, N as require_react_dom, WK as require_with_selector, zye as resetWants, mr as resolveFollowSort, Gg as resolveStartTime, Z_e as restartEffectText, OAe as resumeAssetId, xTe as reviewGroupingOptions, wY as reviewQueueData, CY as reviewQueueOf, WEe as reviewSummary, CTe as reviewWindow, OTe as rowEvidence, DY as rowFieldName, Hq as rowPaginationFeature, lJ as rowSelectionFeature, SJ as rowSortingFeature, EY as rowSubject, kTe as rowTags, DTe as rowTitle, mge as s5, ki as saveCredential, PEe as scanLine, rEe as schedulePollInterval, Vye as searchNote, TTe as selectReviewRange, mi as selectionState, Ni as setFeedEnabled, Ci as setSourceEnabled, Pf as settingsPath, RTe as settleReviewRows, Zwe as sharedNamePrefix, Pp as shellNavigate, D8 as showToast, Bn as siteMarkUrl, nq as skipFirstRun, AI as sortCx, Xr as sortLabel, bn as sourceDefaultCost, Ji as sourceIconUrl, LEe as sourceMeta, Bs as spinnerHtml, Lg as spring, lV as spriteGlyph, xi as startCheck, UTe as startLinkCheck, WTe as startLinkPrune, mEe as startOrganize, Si as startResolve, jEe as startResourceApply, AEe as startResourceScan, aIe as startTasteRefresh, iAe as statCardClass, wpe as statusLabel, cTe as statusLine, Qr as statusText, vM as storeJavLayout, PTe as submitDecision, $I as summaryItems, wq as tableFeatures, rq as tableMemo, di as tableRows, Dpe as taskIssues, kpe as taskSubject, e6 as tasteDate, dIe as tasteDimensions, uIe as tasteHours, Q3 as tasteKey, eIe as tasteRefetchInterval, tIe as tasteTime, II as textLang, I0 as tierPlaceholdersHtml, ch as time, Age as tl, hi as toggleGroup, t6 as topScores, Vge as um, Fge as uo, dH as useAction, xZ as useBackgroundJob, nG as useCatalogView, jU as useClientUpdates, bm as useConstant, eL as useEntityNames, oL as useHorizontalScroller, xm as useIsomorphicLayoutEffect, $G as useLibraryTints, It as useMutation, IV as useOverlayScrollbar, Ft as useQuery, ae as useQueryClient, $x as useReducedMotion, nEe as useRunSchedule, eEe as useSaveFollowSchedule, XY as useSaveSettings, iEe as useSaveThumbnailMode, CJ as useTable, HJ as useTablePreferences, pL as useViewGlide, iTe as victimBytes, jge as vl, Bye as wantName, bFe as watchNote, j3 as watchedShare, Ac as wireHorizontalScroller, gEe as withOrganizeJob, Wye as writeJavQuery, Sge as z3 };
-//# debugId=86b9d852-8d38-467c-b4d6-d39c782496c0
\ No newline at end of file
+//# debugId=6e3d2d23-0832-476c-b408-269d645a9872
\ No newline at end of file
diff --git a/web/dist/peach-app.scraping-page-CFCDLKSG.js b/web/dist/peach-app.scraping-page-C1N85_Sm.js
similarity index 92%
rename from web/dist/peach-app.scraping-page-CFCDLKSG.js
rename to web/dist/peach-app.scraping-page-C1N85_Sm.js
index fa005bd27..a292dfb70 100644
--- a/web/dist/peach-app.scraping-page-CFCDLKSG.js
+++ b/web/dist/peach-app.scraping-page-C1N85_Sm.js
@@ -1,10 +1,10 @@
(function() {
try {
var e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, t = new e.Error().stack;
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "14c1e974-8ca8-4012-b8f7-793ccb5fcab6", e._sentryDebugIdIdentifier = "sentry-dbid-14c1e974-8ca8-4012-b8f7-793ccb5fcab6");
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "383a2275-18e0-4000-88e8-d6afd5fd1120", e._sentryDebugIdIdentifier = "sentry-dbid-383a2275-18e0-4000-88e8-d6afd5fd1120");
} catch {}
})();
-import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, AMANE_BRIDGE_CHECK_URL as t, AMANE_BRIDGE_KEY as n, AMANE_BRIDGE_REBUILD_URL as r, Button as i, CHECK_ALL_KEY as a, COVER_JOB_KEY as o, CUSTOM_SOURCES_KEY as s, CUSTOM_SOURCES_URL as c, Checkbox as l, Disclosure as u, ErrorText as d, ExternalLink as f, Fact as p, FactList as m, FieldLabel as h, Footer as g, Help as _, Input as v, IssueRow as y, LinkButton as ee, LoadingDots as b, Note as x, Progress as S, Rows as te, SCRAPING_CHECK_ALL_URL as C, SCRAPING_CHECK_URL as ne, SCRAPING_COVER_URL as w, SCRAPING_KEY as T, SCRAPING_SETTINGS_URL as re, SEGMENT as ie, SEGMENTED_TRACK as ae, Section as E, SegmentedRadioGroup as oe, Select$1 as se, SelectField as D, SelectItem as ce, SettingsRow as le, Stack as O, StatusLabel as k, __toESM as A, apiSend as j, busyProps as M, checkText as ue, composingKey as de, confirmModal as N, errorMessage as P, esc as F, fetchAmaneBridge as I, fetchCheckAllJob as L, fetchCoverJob as R, fetchCustomSources as z, fetchSources as fe, i2 as pe, momentText as me, queryClient as B, require_jsx_runtime as he, require_react as ge, spinnerHtml as _e, useAction as V, useBackgroundJob as H, useMutation as U, useQuery as W } from "./peach-app.js";
+import { $fe21c36db05242bb$export$d7b12c4107be0d61 as e, AMANE_BRIDGE_CHECK_URL as t, AMANE_BRIDGE_KEY as n, AMANE_BRIDGE_REBUILD_URL as r, Button as i, CHECK_ALL_KEY as a, COVER_JOB_KEY as o, CUSTOM_SOURCES_KEY as s, CUSTOM_SOURCES_URL as c, Checkbox as l, Disclosure as u, ErrorText as d, ExternalLink as f, Fact as p, FactList as m, FieldLabel as h, Footer as g, Help as _, Input as v, IssueRow as y, LinkButton as ee, LoadingDots as b, Note as x, Progress as S, Rows as te, SCRAPING_CHECK_ALL_URL as C, SCRAPING_CHECK_URL as ne, SCRAPING_COVER_URL as w, SCRAPING_KEY as T, SCRAPING_SETTINGS_URL as re, SEGMENT as ie, SEGMENTED_TRACK as ae, Section as E, SegmentedRadioGroup as oe, Select$1 as se, SelectField as D, SelectItem as ce, SettingsRow as le, Stack as O, StatusLabel as k, __toESM as A, apiSend as j, busyProps as M, checkText as ue, composingKey as N, confirmModal as de, errorMessage as P, esc as F, fetchAmaneBridge as I, fetchCheckAllJob as L, fetchCoverJob as R, fetchCustomSources as z, fetchSources as fe, i2 as pe, momentText as me, queryClient as B, require_jsx_runtime as he, require_react as ge, spinnerHtml as _e, useAction as V, useBackgroundJob as H, useMutation as U, useQuery as W } from "./peach-app.js";
import { CodeBlock as ve } from "./peach-app.code-block-CyDva4Ms.js";
import { Page as G } from "./peach-app.page-QAncjzM1.js";
import { SiteMark as K } from "./peach-app.site-mark-D_VlIyJz.js";
@@ -85,7 +85,7 @@ function Ce({ receipt: e }) {
}),
/* @__PURE__ */ (0, J.jsx)(i, {
variant: "danger",
- onClick: () => N({
+ onClick: () => de({
title: "删除自定义来源",
body: `删除「${F(t.name)}」后,采集将不再查询这个来源。`,
confirmLabel: "删除来源",
@@ -202,7 +202,7 @@ function we({ initial: e, cancel: t, saved: n }) {
p.current++, s(e), f("");
},
onKeyDown: (e) => {
- if (e.key !== "Enter" || de(e.nativeEvent)) return;
+ if (e.key !== "Enter" || N(e.nativeEvent)) return;
e.preventDefault();
let t = p.current;
m.run("preview", (e) => j(c, {
@@ -273,9 +273,9 @@ function Ee({ source: t, toast: n }) {
sources: t.sources.map((t) => t.source === e.saved.source ? e.saved : t)
}), C(), n(t ? "Cookie 已撤销" : "来源设置已保存");
}
- }), D = U({ mutationFn: () => j(ne, { source: t.source }) }), A = w.isPending || D.isPending, de = (e) => {
+ }), D = U({ mutationFn: () => j(ne, { source: t.source }) }), A = w.isPending || D.isPending, N = (e) => {
e.preventDefault(), !A && (D.reset(), w.mutate(!1));
- }, N = () => {
+ }, de = () => {
A || (D.reset(), w.mutate(!0));
}, F = () => {
A || (w.reset(), D.mutate());
@@ -294,7 +294,7 @@ function Ee({ source: t, toast: n }) {
let L = y || (w.error ? P(w.error) : "") || (D.error ? P(D.error) : ""), R = D.data?.results ?? [], z = r === "peach" || t.accepts_cookie || t.browser || !!L || R.length > 0;
return /* @__PURE__ */ (0, J.jsxs)(E, {
title: t.label,
- onSubmit: de,
+ onSubmit: N,
aside: /* @__PURE__ */ (0, J.jsxs)("span", {
className: "flex min-w-0 items-center gap-1",
children: [/* @__PURE__ */ (0, J.jsx)(K, { source: t.source }), t.login ? /* @__PURE__ */ (0, J.jsx)(f, {
@@ -426,7 +426,7 @@ function Ee({ source: t, toast: n }) {
/* @__PURE__ */ (0, J.jsxs)(g, { children: [
t.accepts_cookie && t.cookie_saved ? /* @__PURE__ */ (0, J.jsx)(i, {
variant: "secondary",
- onClick: N,
+ onClick: de,
...M(A),
children: "撤销 Cookie"
}) : null,
@@ -477,9 +477,13 @@ function ke({ toast: e }) {
}), o = (e) => {
e.preventDefault(), !(n || r.isPending) && r.mutate();
}, s = (t?.results ?? []).flatMap((e) => e.results.map((t) => ({
+ source: e.source,
name: Oe(e, t),
check: t
- }))), c = s.filter(({ check: e }) => e.outcome === "ok"), l = s.filter(({ check: e }) => e.outcome !== "ok").sort((e, t) => $.indexOf(e.check.outcome) - $.indexOf(t.check.outcome)), d = r.error ? P(r.error) : t?.status === "failed" ? t.error || "检查未完成" : "", f = t?.status === "complete" && t.completed_at ? [me((/* @__PURE__ */ new Date(t.completed_at * 1e3)).toISOString()), t.elapsed_s === void 0 ? "" : `用时 ${t.elapsed_s.toFixed(1)} 秒`].filter(Boolean).join(" · ") : "";
+ }))), c = (e, t) => /* @__PURE__ */ (0, J.jsxs)("span", {
+ className: "inline-flex min-w-0 items-center gap-1.5",
+ children: [/* @__PURE__ */ (0, J.jsx)(K, { source: e }), t]
+ }), l = s.filter(({ check: e }) => e.outcome === "ok"), d = s.filter(({ check: e }) => e.outcome !== "ok").sort((e, t) => $.indexOf(e.check.outcome) - $.indexOf(t.check.outcome)), f = r.error ? P(r.error) : t?.status === "failed" ? t.error || "检查未完成" : "", h = t?.status === "complete" && t.completed_at ? [me((/* @__PURE__ */ new Date(t.completed_at * 1e3)).toISOString()), t.elapsed_s === void 0 ? "" : `用时 ${t.elapsed_s.toFixed(1)} 秒`].filter(Boolean).join(" · ") : "";
return /* @__PURE__ */ (0, J.jsxs)(E, {
id: "check-all",
title: "连接检查",
@@ -503,9 +507,9 @@ function ke({ toast: e }) {
]
})]
}) : null,
- d ? /* @__PURE__ */ (0, J.jsx)(x, {
+ f ? /* @__PURE__ */ (0, J.jsx)(x, {
tone: "error",
- children: d
+ children: f
}) : null,
s.length ? /* @__PURE__ */ (0, J.jsx)("div", {
className: "flex flex-wrap gap-2",
@@ -521,31 +525,31 @@ function ke({ toast: e }) {
}, e) : null;
})
}) : null,
- l.length ? /* @__PURE__ */ (0, J.jsx)("ul", {
+ d.length ? /* @__PURE__ */ (0, J.jsx)("ul", {
className: "flex min-w-0 flex-col",
- children: l.map(({ name: e, check: t }) => /* @__PURE__ */ (0, J.jsx)(y, {
- title: e,
+ children: d.map(({ source: e, name: t, check: n }) => /* @__PURE__ */ (0, J.jsx)(y, {
+ title: c(e, t),
children: /* @__PURE__ */ (0, J.jsxs)("span", {
className: "flex flex-wrap items-center gap-2",
children: [/* @__PURE__ */ (0, J.jsx)(k, {
- tone: De[t.outcome],
- children: t.outcome_label
- }), t.message ? /* @__PURE__ */ (0, J.jsx)("span", {
+ tone: De[n.outcome],
+ children: n.outcome_label
+ }), n.message ? /* @__PURE__ */ (0, J.jsx)("span", {
className: "text-body-2-regular text-text-secondary",
- children: t.message
+ children: n.message
}) : null]
})
- }, e))
+ }, t))
}) : null,
- c.length ? /* @__PURE__ */ (0, J.jsx)(u, {
- summary: `可连接的 ${c.length} 项`,
- children: /* @__PURE__ */ (0, J.jsx)(m, { children: c.map(({ name: e, check: t }) => /* @__PURE__ */ (0, J.jsx)(p, {
- term: e,
- children: [t.width ? `${t.width} × ${t.height}` : "", t.elapsed_s === void 0 ? "" : `${t.elapsed_s.toFixed(2)} 秒`].filter(Boolean).join(" · ")
- }, e)) })
+ l.length ? /* @__PURE__ */ (0, J.jsx)(u, {
+ summary: `可连接的 ${l.length} 项`,
+ children: /* @__PURE__ */ (0, J.jsx)(m, { children: l.map(({ source: e, name: t, check: n }) => /* @__PURE__ */ (0, J.jsx)(p, {
+ term: c(e, t),
+ children: [n.width ? `${n.width} × ${n.height}` : "", n.elapsed_s === void 0 ? "" : `${n.elapsed_s.toFixed(2)} 秒`].filter(Boolean).join(" · ")
+ }, t)) })
}) : null
] }), /* @__PURE__ */ (0, J.jsx)(g, {
- status: f ? `上次检查 ${f}` : void 0,
+ status: h ? `上次检查 ${h}` : void 0,
children: /* @__PURE__ */ (0, J.jsx)(i, {
type: "submit",
...M(n || r.isPending),
@@ -725,4 +729,4 @@ function Me({ toast: e }) {
}
export { Me as ScrapingPage, Z as linkHost, X as networkOptions };
-//# debugId=14c1e974-8ca8-4012-b8f7-793ccb5fcab6
\ No newline at end of file
+//# debugId=383a2275-18e0-4000-88e8-d6afd5fd1120
\ No newline at end of file