refactor(csms): 更新 OCPP 认证相关文本
This commit is contained in:
@@ -410,17 +410,17 @@ export default function ChargePointsPage() {
|
||||
<Modal.CloseTrigger />
|
||||
<Modal.Header>
|
||||
<Modal.Heading>
|
||||
{qrTarget?.deviceName ?? qrTarget?.chargePointIdentifier} — 充电二维码
|
||||
{qrTarget?.deviceName ?? qrTarget?.chargePointIdentifier} 固定二维码
|
||||
</Modal.Heading>
|
||||
</Modal.Header>
|
||||
<Modal.Body className="space-y-4">
|
||||
<p className="text-sm text-muted">
|
||||
将以下二维码张贴在对应充电口上,用户扫码后可直接选卡启动充电。
|
||||
将二维码张贴在对应充电口上,用户扫码后可直接选卡启动充电。
|
||||
</p>
|
||||
{qrTarget &&
|
||||
qrTarget.connectors.filter((c) => c.connectorId > 0).length === 0 && (
|
||||
<p className="text-sm text-muted">
|
||||
该充电桩暂无接口信息,请等待设备上线后再尝试。
|
||||
该充电桩暂无接口信息,请等待设备首次上线后再尝试。
|
||||
</p>
|
||||
)}
|
||||
<div className="grid gap-4 grid-cols-2 sm:grid-cols-3">
|
||||
@@ -476,14 +476,14 @@ export default function ChargePointsPage() {
|
||||
</Modal.Header>
|
||||
<Modal.Body className="space-y-4">
|
||||
<p className="text-sm text-warning font-medium">
|
||||
充电桩认证密码只显示一次,请立即烧录或妥善保存
|
||||
此认证密钥只显示一次,请立即烧录或妥善保存
|
||||
</p>
|
||||
<TextField fullWidth isReadOnly>
|
||||
<Label className="text-sm font-medium">充电桩标识符</Label>
|
||||
<Input value={createdCp?.chargePointIdentifier ?? ""} className="font-mono" />
|
||||
</TextField>
|
||||
<TextField fullWidth isReadOnly>
|
||||
<Label className="text-sm font-medium">OCPP Basic Auth 密码</Label>
|
||||
<Label className="text-sm font-medium">OCPP Basic Auth 密钥</Label>
|
||||
<InputGroup>
|
||||
<InputGroup.Input
|
||||
value={createdCp?.plainPassword ?? ""}
|
||||
@@ -491,7 +491,7 @@ export default function ChargePointsPage() {
|
||||
/>
|
||||
<InputGroup.Suffix>
|
||||
<Tooltip>
|
||||
<Tooltip.Content>{copied ? "已复制" : "复制密码"}</Tooltip.Content>
|
||||
<Tooltip.Content>{copied ? "已复制" : "复制密钥"}</Tooltip.Content>
|
||||
<Tooltip.Trigger>
|
||||
<Button
|
||||
isIconOnly
|
||||
@@ -521,7 +521,7 @@ export default function ChargePointsPage() {
|
||||
/>
|
||||
</TextField>
|
||||
<p className="text-xs text-muted">
|
||||
固件连接时需设置 HTTP 头:
|
||||
设备连接时需设置 HTTP 头:
|
||||
<br />
|
||||
<code className="text-foreground">
|
||||
Authorization: Basic <base64({createdCp?.chargePointIdentifier}
|
||||
@@ -537,7 +537,7 @@ export default function ChargePointsPage() {
|
||||
setCopied(false);
|
||||
}}
|
||||
>
|
||||
我已保存密码
|
||||
我已保存密钥
|
||||
</Button>
|
||||
</Modal.Footer>
|
||||
</Modal.Dialog>
|
||||
|
||||
Reference in New Issue
Block a user