From 109c28468b3266cf9815e63ce135f134b384d781 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 8 Jul 2023 15:30:56 +0800 Subject: /🦴FIX MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/pages/TRPG-home/PackBenchmarks.tsx | 8 +++---- .../pages/TRPG-home/PackBenchmarksGraph.tsx | 27 +++++++++++----------- 2 files changed, 18 insertions(+), 17 deletions(-) (limited to 'docs') diff --git a/docs/components/pages/TRPG-home/PackBenchmarks.tsx b/docs/components/pages/TRPG-home/PackBenchmarks.tsx index 904fc62..0d3322c 100644 --- a/docs/components/pages/TRPG-home/PackBenchmarks.tsx +++ b/docs/components/pages/TRPG-home/PackBenchmarks.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { useState } from "react"; import { FadeIn } from "../home-shared/FadeIn"; import { SectionHeader, SectionSubtext } from "../home-shared/Headings"; import { BenchmarksGraph } from "./PackBenchmarksGraph"; @@ -22,7 +22,7 @@ export interface BenchmarkData { export interface BenchmarkBar { label: string; key: keyof BenchmarkData; - turbo?: true; + core?: true; swc?: true; } @@ -30,7 +30,7 @@ export const DEFAULT_BARS: BenchmarkBar[] = [ { key: "HydroRoll", label: "HydroRoll水系", - turbo: true, + core: true, }, { key: "Shiki", @@ -50,7 +50,7 @@ export const HMR_BARS: BenchmarkBar[] = [ { key: "HydroRoll", label: "HydroRoll水系", - turbo: true, + core: true, }, { key: "Shiki", diff --git a/docs/components/pages/TRPG-home/PackBenchmarksGraph.tsx b/docs/components/pages/TRPG-home/PackBenchmarksGraph.tsx index 8215ee7..489553a 100644 --- a/docs/components/pages/TRPG-home/PackBenchmarksGraph.tsx +++ b/docs/components/pages/TRPG-home/PackBenchmarksGraph.tsx @@ -17,6 +17,7 @@ import { BenchmarkData, BenchmarkNumberOfModules, } from "./PackBenchmarks"; +import HydroRoll from "../../logos/HydroRoll"; interface BenchmarksGraphProps { category: BenchmarkCategory; @@ -56,9 +57,9 @@ export function BenchmarksGraph({ return ( + } duration={data[bar.key] * 1000} longestTime={longestTimeWithPadding} @@ -93,14 +94,14 @@ const graphBarWrapperVariants = { }; function GraphBar({ - turbo, + core, duration, longestTime, inView, Label, pinTime, }: { - turbo?: boolean; + core?: boolean; duration: number; longestTime: number; Label: JSX.Element; @@ -191,8 +192,8 @@ function GraphBar({ @@ -217,17 +218,17 @@ function GraphBar({ } const GraphTimer = ({ - turbo, + core, timer, duration, }: { - turbo: boolean; + core: boolean; timer: number; duration: number; }) => { return (
- {turbo && ( + {core && (
HydroRollTRPG

{label}

- {turbo && ( + {core && (