Skip to content

Commit a94457e

Browse files
committed
biome check
1 parent 4b4361e commit a94457e

File tree

13 files changed

+36
-23
lines changed

13 files changed

+36
-23
lines changed

website/src/components/templates/BaseTemplate.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { FC, PropsWithChildren } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import type { Page } from "../../types/model";
34
import { getTranslationStatus } from "../../utils/translationStatus";
45
import {
@@ -19,7 +20,6 @@ import {
1920
TableOfContents,
2021
TranslationStatusAlert,
2122
} from "../ui/common/";
22-
import { menuTranslations } from "../../translations";
2323

2424
export type BaseTemplateProps = PropsWithChildren<{
2525
page: Page;
@@ -46,7 +46,9 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
4646
<html lang={menuTranslations.lang} class="scroll-pt-24">
4747
<head>
4848
<meta charSet="utf-8" />
49-
<title>{title}{menuTranslations.documentationTitle}</title>
49+
<title>
50+
{title}{menuTranslations.documentationTitle}
51+
</title>
5052
<meta name="description" content={description} />
5153
<meta name="viewport" content="width=device-width,initial-scale=1" />
5254
<meta name="theme-color" content="#239dad" />

website/src/components/templates/CategoryTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { FC } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import type { CategoryBody, Page } from "../../types/model";
34
import { HtmlContent } from "../ui/HtmlContent";
45
import BaseTemplate, { type BaseTemplateProps } from "./BaseTemplate";
5-
import { menuTranslations } from "../../translations";
66

77
export type CategoryTemplateProps = Omit<BaseTemplateProps, "page"> & {
88
page: Omit<Page, "body"> & {

website/src/components/templates/FuncTemplate.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { FC } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import type { Func, FuncBody, Page } from "../../types/model";
34
import {
45
FunctionDefinition,
@@ -9,7 +10,6 @@ import {
910
import { DeprecationWarning } from "../ui/DeprecationWarning";
1011
import { HtmlContent } from "../ui/HtmlContent";
1112
import BaseTemplate, { type BaseTemplateProps } from "./BaseTemplate";
12-
import { menuTranslations } from "../../translations";
1313

1414
export type FuncTemplateProps = Omit<BaseTemplateProps, "page"> & {
1515
page: Omit<Page, "body"> & {
@@ -100,7 +100,8 @@ function ScopedDefinitions({
100100
// Currently, the scope has at most two levels.
101101
// Therefore, it is sufficient to only annotate the direct `parent`.
102102
<>
103-
<code>{parent.name}</code>{menuTranslations.definitionOf}
103+
<code>{parent.name}</code>
104+
{menuTranslations.definitionOf}
104105
</>
105106
) : (
106107
menuTranslations.definition

website/src/components/templates/TypeTemplate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { FC } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import type { Page, TypeBody } from "../../types/model";
34
import { FunctionDisplay, Tooltip } from "../ui";
45
import { HtmlContent } from "../ui/HtmlContent";
56
import { TypeIcon } from "../ui/TypeIcon";
67
import { type2href } from "../ui/type2href";
78
import BaseTemplate, { type BaseTemplateProps } from "./BaseTemplate";
8-
import { menuTranslations } from "../../translations";
99

1010
export type TypeTemplateProps = Omit<BaseTemplateProps, "page"> & {
1111
page: Omit<Page, "body"> & {

website/src/components/ui/FunctionDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import type { FC } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import type { Func } from "../../types/model";
34
import { ChevronRightIcon } from "../icons";
45
import { FunctionDefinition } from "./FunctionDefinition";
56
import { FunctionParameters } from "./FunctionParameters";
67
import { HtmlContent } from "./HtmlContent";
7-
import { menuTranslations } from "../../translations";
88

99
type FunctionDisplayProps = {
1010
func: Func;

website/src/components/ui/FunctionParameters.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import type { FC } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import type { Func } from "../../types/model";
34
import { ChevronRightIcon } from "../icons";
45
import { HtmlContent } from "./HtmlContent";
56
import { Tooltip } from "./Tooltip";
67
import { TypeIcon } from "./TypeIcon";
78
import { buildParamId, type2href } from "./type2href";
8-
import { menuTranslations } from "../../translations";
99

1010
type FunctionParametersProps = {
1111
func: Func;

website/src/components/ui/Tooltip.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { FC } from "hono/jsx";
2+
import { menuTranslations } from "../../translations";
23
import { CloseIcon, HelpCircleIcon } from "../icons";
34
import { HtmlContent } from "./HtmlContent";
4-
import { menuTranslations } from "../../translations";
55

66
type TooltipProps = {
77
kind:

website/src/components/ui/common/Header.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ const TranslationCoverageBadge = () => {
3030
<div class="w-4 h-4 text-gray-600">
3131
<LanguageIcon />
3232
</div>
33-
<span class="text-xs text-gray-600 font-medium">{menuTranslations.translationRate}</span>
33+
<span class="text-xs text-gray-600 font-medium">
34+
{menuTranslations.translationRate}
35+
</span>
3436
</div>
3537
<div class="flex items-center gap-1">
3638
<div class="w-12 h-1.5 bg-gray-200 rounded-full overflow-hidden">

website/src/components/ui/common/SearchWindow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FC } from "hono/jsx";
2-
import { CloseIcon } from "../../icons";
32
import { menuTranslations } from "../../../translations";
3+
import { CloseIcon } from "../../icons";
44

55
export const SearchWindow: FC = () => {
66
return (

website/src/components/ui/common/SiteNoticeBanner.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ export const SiteNoticeBanner = () => {
5151
</span>
5252
<span class="block flex-1 pt-1 pb-2 leading-normal sm:inline sm:pt-0 sm:pb-0">
5353
{menuTranslations.operatedBy}
54-
<a href={githubOrganizationUrl}>{menuTranslations.communityName}</a>{menuTranslations.but}
54+
<a href={githubOrganizationUrl}>{menuTranslations.communityName}</a>
55+
{menuTranslations.but}
5556
<a href={typstOfficialDocsUrl}>
56-
Typst v{version}{menuTranslations.officialDocumentation}
57+
Typst v{version}
58+
{menuTranslations.officialDocumentation}
5759
</a>
5860
{menuTranslations.translationInfo}
5961
<a href={typstOfficialDocsUrl}>{menuTranslations.officialDoc}</a>
6062
{menuTranslations.recommendUsing}
61-
<a href={githubRepositoryUrl}>GitHub</a>{menuTranslations.issueAndPullRequest}
63+
<a href={githubRepositoryUrl}>GitHub</a>
64+
{menuTranslations.issueAndPullRequest}
6265
{menuTranslations.requestWelcome}
6366
<a href={discordServerUrl}>{menuTranslations.discordServer}</a>
6467
{menuTranslations.joinUs}

0 commit comments

Comments
 (0)