MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / findOAuthCardLoginButton

Function findOAuthCardLoginButton

content/vps-panel.js:586–590  ·  view source on GitHub ↗
(header)

Source from the content-addressed store, hash-verified

584}
585
586function findOAuthCardLoginButton(header) {
587 const card = header?.closest('.card, [class*="card"]') || header?.parentElement || document;
588 const candidates = card.querySelectorAll('button.btn.btn-primary, button.btn-primary, button.btn');
589 return Array.from(candidates).find((el) => isVisibleElement(el) && /登录|login/i.test(getActionText(el))) || null;
590}
591
592function findAuthUrlElement() {
593 const candidates = document.querySelectorAll('[class*="authUrlValue"], .OAuthPage-module__authUrlValue___axvUJ');

Callers 1

step1_getOAuthLinkFunction · 0.85

Calls 2

isVisibleElementFunction · 0.70
getActionTextFunction · 0.70

Tested by

no test coverage detected