雨霖铃 8cb9580860 refactor(router): 优化路由重定向配置与组件初始化逻辑
- 设置默认重定向路由为 '/'
- 修复路由实例化后未正确调用 init 方法的问题
- 移除不必要的控制台日志输出
- 调整路由守卫中 next 回调的参数传递方式
- 导出 Router 类时增加空格以符合代码风格
- 更新时间戳组件导入方式并移除冗余初始化调用
- 为定时器管理器添加清理功能的日志提示
- 从 BaseComponent 中移除调试日志并修复定时器返回值处理
2025-12-13 21:52:52 +08:00
```
2025-11-18 00:26:41 +08:00
```
2025-11-18 00:26:41 +08:00
```
2025-11-18 00:26:41 +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%