import * as _ from "lodash"; import { Container } from "../client/styled/common"; import { Card, Typography, Divider, Row, Col, Tag } from "antd"; import { CodeOutlined, BookOutlined, DatabaseOutlined, SettingOutlined } from "@ant-design/icons"; import { useTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; const { Title, Paragraph, Text } = Typography; const Page = () => { const { t } = useTranslation(["common", "home"]); return ( {t("home:page.title")} Next Styled-components Graphql Mysql {t("home:page.description")} {t("home:page.sections.database.title")} } > {t("home:page.sections.database.description")} {t("home:page.sections.project.title")} } > {t("home:page.sections.project.description")} {t("home:page.sections.framework.title")} } > {t("home:page.sections.framework.description")} <BookOutlined /> {t("home:page.commands.title")} {t("home:page.commands.categories.projectManagement.title")}
  • nsgm init - {t("home:page.commands.categories.projectManagement.items.init")}
  • nsgm upgrade -{" "} {t("home:page.commands.categories.projectManagement.items.upgrade")}
{t("home:page.commands.categories.templateOperations.title")}
  • nsgm create - {t("home:page.commands.categories.templateOperations.items.create")}
  • nsgm delete - {t("home:page.commands.categories.templateOperations.items.delete")}
  • nsgm deletedb -{" "} {t("home:page.commands.categories.templateOperations.items.deletedb")}
{t("home:page.commands.categories.runBuild.title")}
  • nsgm dev - {t("home:page.commands.categories.runBuild.items.dev")}
  • nsgm start - {t("home:page.commands.categories.runBuild.items.start")}
  • nsgm build - {t("home:page.commands.categories.runBuild.items.build")}
  • nsgm export - {t("home:page.commands.categories.runBuild.items.export")}
{t("home:page.parameters.title")}
  • dictionary: {t("home:page.parameters.items.dictionary")}
  • controller: {t("home:page.parameters.items.controller")}
  • action: {t("home:page.parameters.items.action")}
); }; export const getServerSideProps = async ({ locale }) => { const currentLocale = locale || "zh-CN"; const path = require("path"); const i18nConfig = { i18n: { defaultLocale: "zh-CN", locales: ["zh-CN", "en-US", "ja-JP"], }, localePath: path.resolve(process.cwd(), "public/locales"), }; return { props: { ...(await serverSideTranslations(currentLocale, ["common", "home", "layout"], i18nConfig)), }, }; }; Page.displayName = "HomePage"; export default Page;