雨霖铃 8b608341e7 ```
feat(sidepanel): 重构时间戳转换功能并优化用户界面

- 将代码模块化,拆分为 eventHandlers、domUtils 和 timestampUtils 等文件
- 使用 Rollup 配置文件替代内联构建命令,提升可维护性
- 引入页面切换动画与交互反馈动画,增强用户体验
- 更新 HTML 元素 ID 命名以提高语义化和一致性
- 改进 CSS 样式,增加悬停效果、过渡动画和响应式支持
- package.json 中添加 type: module 并升级版本至 1.1
```
2025-11-17 00:25:03 +08:00
```
2025-11-17 00:25:03 +08:00
```
2025-11-17 00:25:03 +08:00
```
2025-11-17 00:25:03 +08:00

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

  1. Clone this repository.
  2. Download the Gemini API client by running:
    npm install
    
  3. Retrieve an API key and update functional-samples/ai.gemini-in-the-cloud/sidepanel/index.js (only for testing).
  4. Compile the JS bundle for the sidepanel implementation by running:
    npm run build
    
  5. Load this directory in Chrome as an unpacked extension.
  6. Click the extension icon.
  7. Interact with the prompt API in the sidebar.
S
Description
No description provided
Readme MIT 4.5 MiB
Languages
TypeScript 98.9%
CSS 0.5%
JavaScript 0.4%
HTML 0.2%