diff --git a/pugongying/xhs-pgy-export.user.js b/pugongying/xhs-pgy-export.user.js index 07b33e2..c9b2de7 100644 --- a/pugongying/xhs-pgy-export.user.js +++ b/pugongying/xhs-pgy-export.user.js @@ -826,6 +826,24 @@ let cachedFields = []; return { + getFeishuCredentials() { + return resolveFeishuCredentials(settings); + }, + + saveFeishuCredentials(credentials) { + const appId = String((credentials && credentials.appId) || "").trim(); + const appSecret = String((credentials && credentials.appSecret) || "").trim(); + if (!appId || !appSecret) { + throw new Error("请填写飞书应用 app_id 和 app_secret。"); + } + saveLocal(FEISHU_APP_ID_STORAGE_KEY, appId); + saveLocal(FEISHU_APP_SECRET_STORAGE_KEY, appSecret); + return { + appId, + appSecret, + }; + }, + async preview(rawInput, onProgress) { const ids = await parseCreatorInputs(rawInput); if (!ids.length) { @@ -1164,6 +1182,50 @@ color: #2e211a; } + .xhs-export-config { + display: grid; + gap: 8px; + } + + .xhs-export-config-panel { + display: none; + gap: 10px; + padding: 12px; + border-radius: 14px; + background: rgba(255, 255, 255, 0.72); + border: 1px solid rgba(123, 83, 52, 0.12); + } + + .xhs-export-config.is-open .xhs-export-config-panel { + display: grid; + } + + .xhs-export-config-grid { + display: grid; + grid-template-columns: 1fr; + gap: 10px; + } + + .xhs-export-config-field { + display: grid; + gap: 6px; + } + + .xhs-export-config-label { + font-size: 12px; + font-weight: 800; + color: #5e412f; + } + + .xhs-export-config-input { + border: 1px solid rgba(141, 88, 51, 0.2); + border-radius: 12px; + padding: 9px 10px; + font-size: 12px; + background: rgba(255, 255, 255, 0.85); + color: #2e211a; + } + .xhs-export-actions, .xhs-export-mini-actions { display: flex; @@ -1577,6 +1639,21 @@
+
+ +
+
+ + +
+
+