From ac59f432ba4c78ffe85065b5799c3414b9aa1b58 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Sep 2024 21:11:46 +0900 Subject: [PATCH] AUTO: Sync components to docs site repo (#495) Co-authored-by: josh-wong --- src/components/Cards/index.tsx | 307 ++++++++++++++++++ .../en-us/_warning-license-key-contact.mdx | 5 + .../ja-jp/_warning-license-key-contact.mdx | 5 + 3 files changed, 317 insertions(+) create mode 100644 src/components/Cards/index.tsx create mode 100644 src/components/en-us/_warning-license-key-contact.mdx create mode 100644 src/components/ja-jp/_warning-license-key-contact.mdx diff --git a/src/components/Cards/index.tsx b/src/components/Cards/index.tsx new file mode 100644 index 00000000..ee51886c --- /dev/null +++ b/src/components/Cards/index.tsx @@ -0,0 +1,307 @@ +/** + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/* eslint-disable global-require */ + +import React from 'react'; +import clsx from 'clsx'; +import Translate from '@docusaurus/Translate'; +import Link from '@docusaurus/Link'; + +const CardsAbout = [ + { + // name: '', + // image: '.png', + url: { + page: 'overview/', + }, + description: ( + + Overview + + ), + }, + { + // name: '', + // image: '.png', + url: { + page: 'implementation/', + }, + description: ( + + Implementation + + ), + }, +] + +const CardsGettingStarted = [ + { + // name: '', + // image: '.png', + url: { + page: 'getting-started/', + }, + description: ( + + Getting started with ScalarDL + + ), + }, + { + // name: '', + // image: '.png', + url: { + page: 'getting-started-auditor/', + }, + description: ( + + Getting started with ScalarDL Auditor + + ), + }, +] + +const CardsSamples = [ + { + // name: '', + // image: '.png', + url: { + page: 'applications/simple-bank-account/', + }, + description: ( + + Bank account application + + ), + }, + { + // name: '', + // image: '.png', + url: { + page: 'applications/escrow-payment/', + }, + description: ( + + Escrow payment CLI + + ), + }, +] + +const CardsDevelop = [ + { + // name: 'For database engineers', + // image: '.png', + url: { + page: 'schema-loader/', + }, + description: ( + + Load a database schema + + ), + }, + { + // name: 'For infrastructure engineers', + // image: '.png', + url: { + page: 'ca/caclient-getting-started/', + }, + description: ( + + Get a certificate for the network + + ), + }, +] + +const CardsDeploy = [ + { + // name: '', + // image: '.png', + url: { + page: 'scalar-kubernetes/SetupDatabaseForAWS/', + }, + description: ( + + Set up a database for ScalarDL on AWS + + ), + }, + { + // name: '', + // image: '.png', + url: { + page: 'scalar-kubernetes/ProductionChecklistForScalarDLLedger/', + }, + description: ( + + See the ScalarDL Ledger production checklist + + ), + }, +] + +const CardsManage = [ + { + // name: '', + // image: '.png', + url: { + page: 'scalar-kubernetes/K8sMonitorGuide/', + }, + description: ( + + Monitor ScalarDL in a Kubernetes cluster + + ), + }, + { + // name: '', + // image: '.png', + url: { + page: 'scalar-kubernetes/BackupRestoreGuide/', + }, + description: ( + + Back up and restore in a Kubernetes environment + + ), + }, +] + +const CardsReference = [ + { + // name: '', + // image: '.png', + url: { + page: 'compatibility/', + }, + description: ( + + Compatibility matrix + + ), + }, + { + // name: '', + // image: '.png', + url: { + page: 'scalardl-benchmarks/', + }, + description: ( + + Benchmarking tools + + ), + }, +]; + +interface Props { + // name: string; + // image: string; + url: { + page?: string; + }; + description: JSX.Element; +} + +function Card({ /* name, image,*/ url, description }: Props) { + return ( +
+
+
+ {/* + } + */} +
+ +
+ {/*

{name}

*/} +

{description}

+
+ + {/*
+
+ + Read more + +
+
*/} +
+
+ ); +} + +export function CardRowAbout(): JSX.Element { + return ( +
+ {CardsAbout.map((special) => ( + + ))} +
+ ); +} + +export function CardRowGettingStarted(): JSX.Element { + return ( +
+ {CardsGettingStarted.map((special) => ( + + ))} +
+ ); +} + +export function CardRowSamples(): JSX.Element { + return ( +
+ {CardsSamples.map((special) => ( + + ))} +
+ ); +} + +export function CardRowDevelop(): JSX.Element { + return ( +
+ {CardsDevelop.map((special) => ( + + ))} +
+ ); +} + +export function CardRowDeploy(): JSX.Element { + return ( +
+ {CardsDeploy.map((special) => ( + + ))} +
+ ); +} + +export function CardRowManage(): JSX.Element { + return ( +
+ {CardsManage.map((special) => ( + + ))} +
+ ); +} +export function CardRowReference(): JSX.Element { + return ( +
+ {CardsReference.map((special) => ( + + ))} +
+ ); +} diff --git a/src/components/en-us/_warning-license-key-contact.mdx b/src/components/en-us/_warning-license-key-contact.mdx new file mode 100644 index 00000000..b31b7376 --- /dev/null +++ b/src/components/en-us/_warning-license-key-contact.mdx @@ -0,0 +1,5 @@ +:::warning + +You need to have a license key (trial license or commercial license) to use {props.product}. If you don't have a license key, please [contact us](https://www.scalar-labs.com/contact-us). + +::: diff --git a/src/components/ja-jp/_warning-license-key-contact.mdx b/src/components/ja-jp/_warning-license-key-contact.mdx new file mode 100644 index 00000000..fcafb763 --- /dev/null +++ b/src/components/ja-jp/_warning-license-key-contact.mdx @@ -0,0 +1,5 @@ +:::warning + +{props.product} を使用するには、ライセンスキー (試用ライセンスまたは商用ライセンス) が必要です。ライセンスキーをお持ちでない場合は、[お問い合わせ](https://www.scalar-labs.com/contact-jp)ください。 + +:::