XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
UTF-8
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>gpt4free — Side Panel</title>
  <link rel="stylesheet" href="../assets/panel.css" />
</head>
<body>
  <header class="panel-header">
    <img src="../icons/icon24.png" alt="" width="18" height="18" />
    <span class="title">gpt4free</span>
    <select id="model-select" class="model-select" title="Model">
      <option value="">Default model</option>
    </select>
    <button id="new-chat" class="icon-btn" title="New chat">+</button>
    <button id="sync-btn" class="icon-btn" title="Sync conversations with your g4f.space account" hidden>⟳</button>
    <button id="account-btn" class="icon-btn account-btn" title="Sign in with g4f.space">⇧</button>
    <button id="open-options" class="icon-btn" title="Settings">⚙</button>
  </header>

  <div id="account-bar" class="account-bar" hidden>
    <img id="account-avatar" class="account-avatar" alt="" />
    <div class="account-info">
      <span id="account-name" class="account-name"></span>
      <span id="account-tier" class="account-tier"></span>
    </div>
    <button id="account-logout" class="btn-mini">Sign out</button>
  </div>

  <main id="messages" class="messages">
    <div class="welcome">
      <img src="../icons/icon48.png" alt="" width="42" height="42" />
      <h1>Free AI, in your sidebar</h1>
      <p>Ask anything. Use <strong>Ask g4f</strong> in the right-click menu on any selection, or enable “page context” to chat about the current tab.</p>
      <div class="welcome-tips">
        <span class="tip">Alt+Shift+S — toggle panel</span>
        <span class="tip">Right-click — quick actions</span>
      </div>
    </div>
  </main>

  <div id="images" class="images"></div>

  <footer class="panel-footer">
    <div class="context-row">
      <label class="checkbox" title="Attach the text of the active tab as context">
        <input type="checkbox" id="include-page" />
        <span>📄 Page context</span>
      </label>
      <label class="checkbox" title="Attach the current selection as context">
        <input type="checkbox" id="include-selection" />
        <span>✂️ Selection</span>
      </label>
      <span id="conn-status" class="conn-status" title="Server status">●</span>
    </div>
    <div class="input-row">
      <textarea id="input" rows="1" placeholder="Message g4f…"></textarea>
      <button id="stop" class="icon-btn stop" title="Stop generating" hidden>■</button>
      <button id="send" class="send-btn" title="Send">➤</button>
    </div>
  </footer>

  <div id="toast-root" class="toast-root"></div>
  <script type="module" src="panel.js"></script>
</body>
</html>