3b9e362bc90e1979180db5924771f40e58374d6b
feat(sidepanel): 优化时间戳工具页面布局与响应式样式 新增 datetime-box 和 input-group 容器类,用于优化时间戳转换和日期时间转换功能的 界面结构。调整 input-text、select-box 和 convert-button 的宽度及响应式行为,使其在 移动端设备上能够自适应显示。同时更新 HTML 结构以匹配新的 CSS 类名和布局方式,提升 用户体验与界面可读性。 ```
Using the Gemini API in a Chrome Extension.
This sample demonstrates how to use the Gemini Cloud API in a Chrome Extension.
Overview
The extension provides a chat interface for the Gemini API. To learn more about the API head over to https://ai.google.dev/.
Running this extension
- Clone this repository.
- Download the Gemini API client by running:
npm install - Retrieve an API key and update functional-samples/ai.gemini-in-the-cloud/sidepanel/index.js (only for testing).
- Compile the JS bundle for the sidepanel implementation by running:
npm run build - Load this directory in Chrome as an unpacked extension.
- Click the extension icon.
- Interact with the prompt API in the sidebar.
Languages
TypeScript
98.9%
CSS
0.5%
JavaScript
0.4%
HTML
0.2%