|
| 1 | +/** |
| 2 | + * Copyright (c) Facebook, Inc. and its affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + */ |
| 7 | + |
| 8 | +/* eslint-disable global-require */ |
| 9 | + |
| 10 | +import React from 'react'; |
| 11 | +import clsx from 'clsx'; |
| 12 | +import Translate from '@docusaurus/Translate'; |
| 13 | +import Link from '@docusaurus/Link'; |
| 14 | + |
| 15 | +const CardsAbout = [ |
| 16 | + { |
| 17 | + // name: '', |
| 18 | + // image: '<LINK_TO>.png', |
| 19 | + url: { |
| 20 | + page: 'overview', |
| 21 | + }, |
| 22 | + description: ( |
| 23 | + <Translate id="home.about.description"> |
| 24 | + 概要 |
| 25 | + </Translate> |
| 26 | + ), |
| 27 | + }, |
| 28 | + { |
| 29 | + // name: '', |
| 30 | + // image: '<LINK_TO>.png', |
| 31 | + url: { |
| 32 | + page: 'requirements', |
| 33 | + }, |
| 34 | + description: ( |
| 35 | + <Translate id="home.about.description"> |
| 36 | + 要件 |
| 37 | + </Translate> |
| 38 | + ), |
| 39 | + }, |
| 40 | +] |
| 41 | + |
| 42 | +const CardsQuickstart = [ |
| 43 | + { |
| 44 | + // name: '', |
| 45 | + // image: '<LINK_TO>.png', |
| 46 | + url: { |
| 47 | + page: 'getting-started-with-scalardb', |
| 48 | + }, |
| 49 | + description: ( |
| 50 | + <Translate id="home.quickstart.description"> |
| 51 | + ScalarDB をはじめよう |
| 52 | + </Translate> |
| 53 | + ), |
| 54 | + }, |
| 55 | + { |
| 56 | + // name: '', |
| 57 | + // image: '<LINK_TO>.png', |
| 58 | + url: { |
| 59 | + page: 'scalardb-cluster/getting-started-with-scalardb-cluster', |
| 60 | + }, |
| 61 | + description: ( |
| 62 | + <Translate id="home.quickstart.description"> |
| 63 | + ScalarDB Cluster をはじめよう |
| 64 | + </Translate> |
| 65 | + ), |
| 66 | + }, |
| 67 | +] |
| 68 | + |
| 69 | +const CardsDevelop = [ |
| 70 | + { |
| 71 | + // name: '', |
| 72 | + // image: '<LINK_TO>.png', |
| 73 | + url: { |
| 74 | + page: 'add-scalardb-to-your-build', |
| 75 | + }, |
| 76 | + description: ( |
| 77 | + <Translate id="home.develop.description"> |
| 78 | + ビルドに ScalarDB を追加する |
| 79 | + </Translate> |
| 80 | + ), |
| 81 | + }, |
| 82 | + { |
| 83 | + // name: '', |
| 84 | + // image: '<LINK_TO>.png', |
| 85 | + url: { |
| 86 | + page: 'schema-loader', |
| 87 | + }, |
| 88 | + description: ( |
| 89 | + <Translate id="home.develop.description"> |
| 90 | + ScalarDB Schema Loader |
| 91 | + </Translate> |
| 92 | + ), |
| 93 | + }, |
| 94 | +] |
| 95 | + |
| 96 | +const CardsDeploy = [ |
| 97 | + { |
| 98 | + // name: '', |
| 99 | + // image: '<LINK_TO>.png', |
| 100 | + url: { |
| 101 | + page: 'scalar-kubernetes/ProductionChecklistForScalarDBCluster', |
| 102 | + }, |
| 103 | + description: ( |
| 104 | + <Translate id="home.deploy.description"> |
| 105 | + ScalarDB Cluster の運用チェックリストを参照する |
| 106 | + </Translate> |
| 107 | + ), |
| 108 | + }, |
| 109 | + { |
| 110 | + // name: '', |
| 111 | + // image: '<LINK_TO>.png', |
| 112 | + url: { |
| 113 | + page: 'scalar-kubernetes/ManualDeploymentGuideScalarDBClusterOnEKS', |
| 114 | + }, |
| 115 | + description: ( |
| 116 | + <Translate id="home.deploy.description"> |
| 117 | + Amazon EKS に ScalarDB Cluster をデプロイする |
| 118 | + </Translate> |
| 119 | + ), |
| 120 | + }, |
| 121 | +] |
| 122 | + |
| 123 | +const CardsMigrate = [ |
| 124 | + { |
| 125 | + // name: '', |
| 126 | + // image: '<LINK_TO>.png', |
| 127 | + url: { |
| 128 | + page: 'schema-loader-import', |
| 129 | + }, |
| 130 | + description: ( |
| 131 | + <Translate id="home.manage.description"> |
| 132 | + ScalarDB Schema Loader を使用して既存のテーブルをインポートする |
| 133 | + </Translate> |
| 134 | + ), |
| 135 | + }, |
| 136 | + { |
| 137 | + // name: '', |
| 138 | + // image: '<LINK_TO>.png', |
| 139 | + url: { |
| 140 | + page: 'scalardb-sql/migration-guide', |
| 141 | + }, |
| 142 | + description: ( |
| 143 | + <Translate id="home.manage.description"> |
| 144 | + アプリケーションとデータベースの移行 |
| 145 | + </Translate> |
| 146 | + ), |
| 147 | + }, |
| 148 | +] |
| 149 | + |
| 150 | +const CardsManage = [ |
| 151 | + { |
| 152 | + // name: '', |
| 153 | + // image: '<LINK_TO>.png', |
| 154 | + url: { |
| 155 | + page: 'scalar-kubernetes/K8sMonitorGuide', |
| 156 | + }, |
| 157 | + description: ( |
| 158 | + <Translate id="home.migrate.description"> |
| 159 | + Kubernetes クラスター上の Scalar 製品の監視 |
| 160 | + </Translate> |
| 161 | + ), |
| 162 | + }, |
| 163 | + { |
| 164 | + // name: '', |
| 165 | + // image: '<LINK_TO>.png', |
| 166 | + url: { |
| 167 | + page: 'scalar-kubernetes/BackupNoSQL', |
| 168 | + }, |
| 169 | + description: ( |
| 170 | + <Translate id="home.migrate.description"> |
| 171 | + Kubernetes 環境で NoSQL データベースをバックアップする |
| 172 | + </Translate> |
| 173 | + ), |
| 174 | + }, |
| 175 | +] |
| 176 | + |
| 177 | +const CardsReference = [ |
| 178 | + { |
| 179 | + // name: '', |
| 180 | + // image: '<LINK_TO>.png', |
| 181 | + url: { |
| 182 | + page: 'scalardb-core-status-codes', |
| 183 | + }, |
| 184 | + description: ( |
| 185 | + <Translate id="home.reference.description"> |
| 186 | + ScalarDB Core エラーコード |
| 187 | + </Translate> |
| 188 | + ), |
| 189 | + }, |
| 190 | + { |
| 191 | + // name: '', |
| 192 | + // image: '<LINK_TO>.png', |
| 193 | + url: { |
| 194 | + page: 'scalar-licensing', |
| 195 | + }, |
| 196 | + description: ( |
| 197 | + <Translate id="home.reference.description"> |
| 198 | + 製品ライセンスキーの設定方法 |
| 199 | + </Translate> |
| 200 | + ), |
| 201 | + }, |
| 202 | +]; |
| 203 | + |
| 204 | +interface Props { |
| 205 | + // name: string; |
| 206 | + // image: string; |
| 207 | + url: { |
| 208 | + page?: string; |
| 209 | + }; |
| 210 | + description: JSX.Element; |
| 211 | +} |
| 212 | + |
| 213 | +function Card({ /* name, image,*/ url, description }: Props) { |
| 214 | + return ( |
| 215 | + <div className="col col--6 margin-bottom--lg"> |
| 216 | + <div className={clsx('card')}> |
| 217 | + <div className={clsx('card__image')}> |
| 218 | + {/* <Link to={url.page}> |
| 219 | + <img src={image}></img>} |
| 220 | + </Link> */} |
| 221 | + </div> |
| 222 | + <Link to={url.page}> |
| 223 | + <div className="card__body"> |
| 224 | + {/* <h3>{name}</h3> */} |
| 225 | + <p>{description}</p> |
| 226 | + </div> |
| 227 | + </Link> |
| 228 | + {/* <div className="card__footer"> |
| 229 | + <div className="button-group button-group--block"> |
| 230 | + <Link className="button button--secondary" to={url.page}> |
| 231 | + <Translate id="button.readMore">Read more</Translate> |
| 232 | + </Link> |
| 233 | + </div> |
| 234 | + </div> */} |
| 235 | + </div> |
| 236 | + </div> |
| 237 | + ); |
| 238 | +} |
| 239 | + |
| 240 | +export function CardRowAbout(): JSX.Element { |
| 241 | + return ( |
| 242 | + <div className="row"> |
| 243 | + {CardsAbout.map((special) => ( |
| 244 | + <Card key={special.name} {...special} /> |
| 245 | + ))} |
| 246 | + </div> |
| 247 | + ); |
| 248 | +} |
| 249 | + |
| 250 | +export function CardRowQuickstart(): JSX.Element { |
| 251 | + return ( |
| 252 | + <div className="row"> |
| 253 | + {CardsQuickstart.map((special) => ( |
| 254 | + <Card key={special.name} {...special} /> |
| 255 | + ))} |
| 256 | + </div> |
| 257 | + ); |
| 258 | +} |
| 259 | + |
| 260 | +export function CardRowDevelop(): JSX.Element { |
| 261 | + return ( |
| 262 | + <div className="row"> |
| 263 | + {CardsDevelop.map((special) => ( |
| 264 | + <Card key={special.name} {...special} /> |
| 265 | + ))} |
| 266 | + </div> |
| 267 | + ); |
| 268 | +} |
| 269 | + |
| 270 | +export function CardRowDeploy(): JSX.Element { |
| 271 | + return ( |
| 272 | + <div className="row"> |
| 273 | + {CardsDeploy.map((special) => ( |
| 274 | + <Card key={special.name} {...special} /> |
| 275 | + ))} |
| 276 | + </div> |
| 277 | + ); |
| 278 | +} |
| 279 | + |
| 280 | +export function CardRowMigrate(): JSX.Element { |
| 281 | + return ( |
| 282 | + <div className="row"> |
| 283 | + {CardsMigrate.map((special) => ( |
| 284 | + <Card key={special.name} {...special} /> |
| 285 | + ))} |
| 286 | + </div> |
| 287 | + ); |
| 288 | +} |
| 289 | + |
| 290 | +export function CardRowManage(): JSX.Element { |
| 291 | + return ( |
| 292 | + <div className="row"> |
| 293 | + {CardsManage.map((special) => ( |
| 294 | + <Card key={special.name} {...special} /> |
| 295 | + ))} |
| 296 | + </div> |
| 297 | + ); |
| 298 | +} |
| 299 | + |
| 300 | +export function CardRowReference(): JSX.Element { |
| 301 | + return ( |
| 302 | + <div className="row"> |
| 303 | + {CardsReference.map((special) => ( |
| 304 | + <Card key={special.name} {...special} /> |
| 305 | + ))} |
| 306 | + </div> |
| 307 | + ); |
| 308 | +} |
0 commit comments