fix(docs): translations
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
---
|
||||
title: 網路
|
||||
description: 在浏览器中使用OpenCode。
|
||||
description: 在浏览器中使用opencode。
|
||||
---
|
||||
|
||||
OpenCode 可以在浏览器中作为 Web 应用程序执行,消耗终端可以提供同样强大的 AI 编码体验。
|
||||
opencode 可以在浏览器中作为 Web 应用程序执行,消耗终端可以提供同样强大的 AI 编码体验。
|
||||
|
||||

|
||||

|
||||
|
||||
## 入門
|
||||
|
||||
@@ -15,7 +15,7 @@ OpenCode 可以在浏览器中作为 Web 应用程序执行,消耗终端可以
|
||||
opencode web
|
||||
```
|
||||
|
||||
这将在 `127.0.0.1` 上启动一个具有随机可用端口的本地服务器,并自动在默认浏览器中开启 OpenCode。
|
||||
这将在 `127.0.0.1` 上启动一个具有随机可用端口的本地服务器,并自动在默认浏览器中开启 opencode。
|
||||
|
||||
:::caution
|
||||
如果未设置`OPENCODE_SERVER_PASSWORD`,服务器将不安全。这对于本地使用来说很好,但应该针对网路访问进行设置。
|
||||
@@ -33,7 +33,7 @@ For the best experience, run `opencode web` from [WSL](/docs/windows-wsl) rather
|
||||
|
||||
### 港口
|
||||
|
||||
默认情况下,OpenCode 选择一个可用的端口。您可以指定一个端口:
|
||||
默认情况下,opencode 选择一个可用的端口。您可以指定一个端口:
|
||||
|
||||
```bash
|
||||
opencode web --port 4096
|
||||
@@ -41,13 +41,13 @@ opencode web --port 4096
|
||||
|
||||
### 主機名
|
||||
|
||||
情况默认下,服务器系结到`127.0.0.1`(仅限本地主机)。要使OpenCode在您的网路上可访问:
|
||||
情况默认下,服务器系结到`127.0.0.1`(仅限本地主机)。要使opencode在您的网路上可访问:
|
||||
|
||||
```bash
|
||||
opencode web --hostname 0.0.0.0
|
||||
```
|
||||
|
||||
使用`0.0.0.0`时,OpenCode将显示本地地址和网络地址:
|
||||
使用`0.0.0.0`时,opencode将显示本地地址和网络地址:
|
||||
|
||||
```
|
||||
Local access: http://localhost:4096
|
||||
@@ -92,19 +92,19 @@ The username defaults to `opencode` but can be changed with `OPENCODE_SERVER_USE
|
||||
|
||||
## 使用網路介面
|
||||
|
||||
启动后,网路界面将提供对您的 OpenCode 会话的访问。
|
||||
启动后,网路界面将提供对您的 opencode 会话的访问。
|
||||
|
||||
### 會議
|
||||
|
||||
從主頁檢視和管理您的會話。您可以檢視活動會話並開始新會話。
|
||||
|
||||

|
||||

|
||||
|
||||
### 伺服器狀態
|
||||
|
||||
單擊“檢視伺服器”可檢視連線的伺服器及其狀態。
|
||||
|
||||

|
||||

|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user