Skip to content

Commit e3d9fc2

Browse files
committed
docs(zh): add plugin settings docs for custom registry URL, import persistence, and plugin details
1 parent 6fe6590 commit e3d9fc2

3 files changed

Lines changed: 30 additions & 1 deletion

File tree

docs/zh/customization/settings.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ TablePro 内置 8 个数据库驱动插件:
376376

377377
### 插件详情
378378

379-
点击插件查看详情:版本、Bundle ID、支持的功能、数据库类型和默认端口。
379+
点击插件查看详情:版本、Bundle ID、支持的功能、数据库类型和默认端口。驱动插件还可以提供自定义设置面板,用于配置特定于该驱动的选项。
380380

381381
### 安装第三方插件
382382

@@ -392,6 +392,15 @@ TablePro 内置 8 个数据库驱动插件:
392392

393393
用户安装的插件在插件详情视图中显示 **Uninstall** 按钮。内置插件不能卸载,只能禁用。
394394

395+
### 高级设置
396+
397+
部分设置可通过 `defaults write` 命令供高级用户使用:
398+
399+
| 设置 | 命令 | 说明 |
400+
|------|------|------|
401+
| 自定义插件 registry | `defaults write com.TablePro com.TablePro.customRegistryURL <url>` | 使用私有插件 registry |
402+
| 清除自定义 registry | `defaults delete com.TablePro com.TablePro.customRegistryURL` | 恢复默认 registry |
403+
395404
## 许可证设置
396405

397406
在 Settings 的 **License** 标签页中管理你的许可证。

docs/zh/development/plugin-registry.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,22 @@ description: 如何将可下载插件发布到 TablePro 插件注册表
100100

101101
`<sha256-of-zip>` 替换为 `build-plugin.sh` 输出的实际 SHA-256 值。`binaries` 数组提供按架构区分的下载;`downloadURL`/`sha256` 平级字段指向 arm64 作为旧版应用的后备。
102102

103+
## 自定义 Registry URL
104+
105+
对于企业或私有插件 registry,可以覆盖默认的 registry URL:
106+
107+
```bash
108+
defaults write com.TablePro com.TablePro.customRegistryURL "https://your-registry.example.com/plugins.json"
109+
```
110+
111+
恢复默认 registry:
112+
113+
```bash
114+
defaults delete com.TablePro com.TablePro.customRegistryURL
115+
```
116+
117+
当 registry URL 变更时,应用会清除 ETag 缓存,在下次访问 Browse 时强制重新获取数据。
118+
103119
## databaseTypeIds 映射
104120

105121
`databaseTypeIds` 字段将注册表条目映射到 `DatabaseType.pluginTypeId` 值。应用通过此映射确定在用户选择没有已加载驱动的数据库类型时,应安装哪个注册表插件。

docs/zh/features/import-export.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ TablePro 导入 **SQL 文件**(`.sql` 和 `.sql.gz`)。语句直接在数据
373373
使用事务包裹可以确保任何语句失败时所有更改回滚,让数据库保持一致状态。
374374
</Tip>
375375

376+
<Tip>
377+
导入选项(包裹在事务中、禁用外键检查)会在应用启动之间保留。只需设置一次即可。
378+
</Tip>
379+
376380
### SQL 预览
377381

378382
运行导入前,对话框显示:

0 commit comments

Comments
 (0)