Skip to content

Commit 5138f02

Browse files
committed
feat: 增加粘贴读取的提示
1 parent 10e1765 commit 5138f02

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

src/components/StartPanel/StartPanel.tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const StartPanel = ({
185185
// size="large" // Consider using a larger button size if available and desired for visual balance
186186
onClick={createNewCharacter}
187187
>
188-
{t("Create New Character")}
188+
1. {t("Create New Character")}
189189
</Button>
190190

191191
{/* Separator Text */}
@@ -214,7 +214,9 @@ export const StartPanel = ({
214214
<Spinner labelPosition="below" label={t("Processing card...")} />
215215
) : (
216216
<>
217-
<Text size={400}>{t("Drag & Drop Character Card Image Here")}</Text>
217+
<Text size={400}>
218+
2. {t("Drag & Drop Character Card Image Here")}
219+
</Text>
218220
<Text
219221
size={300}
220222
style={{ marginTop: tokens.spacingVerticalSNudge }}
@@ -248,7 +250,7 @@ export const StartPanel = ({
248250
</Text>
249251
{/* Option 3: 从图片url提取 */}
250252
<div style={{ width: "40vw" }}>
251-
<Field label={t("Load image from url")}>
253+
<Field label={"3. " + t("Load image from url")}>
252254
<Input
253255
placeholder="https://example.com/avatar.png"
254256
onChange={(e) => {
@@ -267,6 +269,16 @@ export const StartPanel = ({
267269
/>
268270
</Field>
269271
</div>
272+
273+
{/* Option 3: 复制粘贴文件 */}
274+
<Text weight="semibold" size={400}>
275+
{t("OR")}
276+
</Text>
277+
<p>
278+
<Text weight="semibold" size={400}>
279+
4. {t("Copy/Paste character card current page will auto detect")}
280+
</Text>
281+
</p>
270282
</div>
271283
);
272284
};

src/locals/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,6 @@
179179
"The value of this field _MUST_ be a number or undefined. this field _MAY_ be used to determine the modification date of the character card. the value _MUST_ be a unix timestamp in seconds. application _SHOULD_ add or modify this field when the character card is exported, and _MAY_ modify this field when the character card is modified. application _SHOULD NOT_ allow the user to edit this field. the time _MUST_ be Unix timestamp in seconds, in UTC timezone. application _MAY_ put `0` instead to this field to determine that the modification date is unknown for privacy reasons and more."
180180
],
181181
"Load image from url": "Load image from url",
182-
"Load": "Load"
182+
"Load": "Load",
183+
"Copy/Paste character card current page will auto detect": "Copy/Paste character card current page will auto detect"
183184
}

src/locals/ja.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,6 @@
191191
"このフィールドの値は数値またはundefinedでなければなりません。このフィールドはキャラクターカードの変更日を決定するために使用可能です。値はUnixタイムスタンプ(秒)でなければなりません。アプリケーションはキャラクターカードをエクスポートする際にこのフィールドを追加または変更するべきであり、キャラクターカードが変更される際にこのフィールドを更新してもよいです。アプリケーションはユーザーがこのフィールドを編集することを許可すべきではありません。時間はUTCタイムゾーンのUnixタイムスタンプ(秒)でなければなりません。アプリケーションはプライバシーなどの理由で変更日が不明であることを示すために、このフィールドに `0` を入力してもよいです。"
192192
],
193193
"Load image from url": "Load image from url",
194-
"Load": "Load"
194+
"Load": "Load",
195+
"Copy/Paste character card current page will auto detect": "Copy/Paste character card current page will auto detect"
195196
}

src/locals/ko.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,6 @@
191191
"이 필드의 값은 숫자이거나 undefined이어야 합니다. 이 필드는 캐릭터 카드의 수정 날짜를 결정하는 데 사용될 수 있습니다. 값은 Unix 타임스탬프(초)여야 합니다. 애플리케이션은 캐릭터 카드를 내보낼 때 이 필드를 추가하거나 수정해야 하며 캐릭터 카드가 수정될 때 이 필드를 업데이트할 수 있습니다. 애플리케이션은 사용자가 이 필드를 편집할 수 없도록 해야 합니다. 시간은 UTC 시간대의 Unix 타임스탬프(초)여야 합니다. 애플리케이션은 개인정보 보호 등의 이유로 수정 날짜를 알 수 없음을 나타내기 위해 이 필드에 `0`을 입력할 수 있습니다."
192192
],
193193
"Load image from url": "Load image from url",
194-
"Load": "Load"
194+
"Load": "Load",
195+
"Copy/Paste character card current page will auto detect": "Copy/Paste character card current page will auto detect"
195196
}

src/locals/zh.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,5 +191,6 @@
191191
"该字段的值必须为数字或未定义。此字段可用于确定角色卡的修改日期。值必须为Unix时间戳(秒)。应用程序应在导出角色卡时添加或修改此字段,并可在修改角色卡时更新此字段。应用程序不应允许用户编辑此字段。时间必须为UTC时区的Unix时间戳(秒)。应用程序可以在此字段填入 `0` 以表示修改日期未知(出于隐私等原因)。"
192192
],
193193
"Load image from url": "从url加载图片",
194-
"Load": "加载"
194+
"Load": "加载",
195+
"Copy/Paste character card current page will auto detect": "复制/粘贴角色卡当前页面将自动检测"
195196
}

0 commit comments

Comments
 (0)