📝 Docs: 商店插件可用性筛选 & 更新排序 (#3334)

This commit is contained in:
StarHeart
2025-02-26 23:05:06 +08:00
committed by GitHub
parent db857b11fa
commit 6cff660af0
42 changed files with 2320 additions and 2374 deletions

View File

@ -16,7 +16,7 @@ export function HomeFeature({
description,
annotaion,
children,
}: Feature): JSX.Element {
}: Feature): React.ReactNode {
return (
<div className="flex flex-col items-center justify-center p-4">
<p className="text-sm text-base-content/70 font-medium tracking-wide uppercase">
@ -32,7 +32,7 @@ export function HomeFeature({
);
}
function HomeFeatureSingleColumn(props: Feature): JSX.Element {
function HomeFeatureSingleColumn(props: Feature): React.ReactNode {
return (
<div className="grid grid-cols-1 px-4 py-8 md:px-16 mx-auto">
<HomeFeature {...props} />
@ -46,7 +46,7 @@ function HomeFeatureDoubleColumn({
}: {
features: [Feature, Feature];
children?: [React.ReactNode, React.ReactNode];
}): JSX.Element {
}): React.ReactNode {
const [children1, children2] = children ?? [];
return (
@ -57,7 +57,7 @@ function HomeFeatureDoubleColumn({
);
}
function HomeFeatures(): JSX.Element {
function HomeFeatures(): React.ReactNode {
return (
<>
<HomeFeatureSingleColumn

View File

@ -10,7 +10,7 @@ import copy from "copy-text-to-clipboard";
import IconCopy from "@theme/Icon/Copy";
import IconSuccess from "@theme/Icon/Success";
function HomeHeroInstallButton(): JSX.Element {
function HomeHeroInstallButton(): React.ReactNode {
const code = "pipx run nb-cli create";
const [isCopied, setIsCopied] = useState(false);
@ -37,7 +37,7 @@ function HomeHeroInstallButton(): JSX.Element {
);
}
function HomeHero(): JSX.Element {
function HomeHero(): React.ReactNode {
const {
siteConfig: { tagline },
} = useDocusaurusContext();

View File

@ -1,10 +1,10 @@
import React from "react";
import "./styles.css";
import HomeFeatures from "./Feature";
import HomeHero from "./Hero";
import "./styles.css";
export default function HomeContent(): JSX.Element {
export default function HomeContent(): React.ReactNode {
return (
<div className="home-container">
<HomeHero />