[feat] more fps test settings and csv export button

This commit is contained in:
2025-11-06 14:26:17 +08:00
parent 72eef189da
commit e774b31396
3 changed files with 364 additions and 82 deletions

View File

@@ -6,7 +6,7 @@ import { useCallback, useState } from "react"
export default function Page() {
const [buttonDesc, setButtonDesc] = useState<string>(
"Waiting to be clicked. This calls 'on_button_clicked' from Rust.",
"等待点击。这将调用 Rust 中的 'on_button_clicked' 命令。",
)
const onButtonClick = () => {
invoke<string>("on_button_clicked")
@@ -14,7 +14,7 @@ export default function Page() {
setButtonDesc(value)
})
.catch(() => {
setButtonDesc("Failed to invoke Rust command 'on_button_clicked'")
setButtonDesc("调用 Rust 命令 'on_button_clicked' 失败")
})
}
@@ -27,7 +27,7 @@ export default function Page() {
<div className="flex flex-col">
<main className="flex flex-col items-center justify-center flex-1 py-8">
<h1 className="m-0 text-6xl text-center">
Welcome to{" "}
使{" "}
<a
href="https://nextjs.org"
target="_blank"
@@ -39,7 +39,7 @@ export default function Page() {
</h1>
<p className="my-12 text-2xl leading-9 text-center">
Get started by editing{" "}
{" "}
<code className="p-2 font-mono text-xl bg-gray-200 rounded-md">
src/pages/index.tsx
</code>
@@ -48,7 +48,7 @@ export default function Page() {
<div className="flex flex-wrap items-center justify-center max-w-3xl">
<CardButton
onClick={onButtonClick}
title="Tauri Invoke"
title="Tauri 调用"
description={buttonDesc}
/>
</div>