From ff6c3559c34ff7cbfe49e7dfc4e7d208ec36385f Mon Sep 17 00:00:00 2001 From: youbo <42180410+spongebody@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:43:08 +0800 Subject: [PATCH] Initial homepage development and multilingual settings (#1445) --- docs/docusaurus.config.js | 387 +++++++++--------- docs/i18n/en/code.json | 297 ++++++++++++++ .../options.json | 14 + .../current.json | 10 + .../current.json | 82 ++++ .../version-1.4.2.json | 82 ++++ .../version-1.4.3.json | 82 ++++ .../version-1.5.0.json | 82 ++++ .../en/docusaurus-theme-classic/footer.json | 54 +++ .../en/docusaurus-theme-classic/navbar.json | 26 ++ docs/i18n/zh/code.json | 40 ++ .../version-1.4.2.json | 82 ++++ .../version-1.4.3.json | 82 ++++ .../version-1.5.0.json | 82 ++++ .../docusaurus-plugin-content-pages/group.md | 16 - .../markdown-page.md | 7 - .../docusaurus-plugin-content-pages/users.md | 60 --- .../zh/docusaurus-theme-classic/footer.json | 30 +- .../zh/docusaurus-theme-classic/navbar.json | 12 + docs/package-lock.json | 50 +++ docs/package.json | 4 +- .../src/components/LandingPage/GithubInfo.jsx | 52 +++ docs/src/components/LandingPage/Hero.jsx | 85 ++++ .../components/LandingPage/Introduction.jsx | 106 +++++ docs/src/components/LandingPage/index.js | 16 + .../components/LandingPage/useGithubInfo.jsx | 30 ++ docs/src/pages/index.js | 38 +- 27 files changed, 1619 insertions(+), 289 deletions(-) create mode 100644 docs/i18n/en/code.json create mode 100644 docs/i18n/en/docusaurus-plugin-content-blog/options.json create mode 100644 docs/i18n/en/docusaurus-plugin-content-docs-community/current.json create mode 100644 docs/i18n/en/docusaurus-plugin-content-docs/current.json create mode 100644 docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.2.json create mode 100644 docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.3.json create mode 100644 docs/i18n/en/docusaurus-plugin-content-docs/version-1.5.0.json create mode 100644 docs/i18n/en/docusaurus-theme-classic/footer.json create mode 100644 docs/i18n/en/docusaurus-theme-classic/navbar.json create mode 100644 docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.2.json create mode 100644 docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.3.json create mode 100644 docs/i18n/zh/docusaurus-plugin-content-docs/version-1.5.0.json delete mode 100644 docs/i18n/zh/docusaurus-plugin-content-pages/group.md delete mode 100644 docs/i18n/zh/docusaurus-plugin-content-pages/markdown-page.md delete mode 100644 docs/i18n/zh/docusaurus-plugin-content-pages/users.md create mode 100644 docs/src/components/LandingPage/GithubInfo.jsx create mode 100644 docs/src/components/LandingPage/Hero.jsx create mode 100644 docs/src/components/LandingPage/Introduction.jsx create mode 100644 docs/src/components/LandingPage/index.js create mode 100644 docs/src/components/LandingPage/useGithubInfo.jsx diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 26890a2a..8f30476e 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -1,216 +1,227 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require('prism-react-renderer/themes/github'); -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); +const lightCodeTheme = require("prism-react-renderer/themes/github"); +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'Hippo4j', - tagline: '动态可观测线程池框架,为业务系统提高线上运行保障能力', - url: 'https://hippo4j.cn', - baseUrl: '/', - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'warn', - favicon: 'img/hippo4j_favicon.ico', - // GitHub pages deployment config. - // If you aren't using GitHub pages, you don't need these. - organizationName: 'hippo4j', // Usually your GitHub org/user name. - projectName: 'hippo4j.github.io', // Usually your repo name. - deploymentBranch: 'main', + title: "Hippo4j", + tagline: "动态可观测线程池框架,为业务系统提高线上运行保障能力", + url: "https://hippo4j.cn", + baseUrl: "/", + onBrokenLinks: "throw", + onBrokenMarkdownLinks: "warn", + favicon: "img/hippo4j_favicon.ico", + // GitHub pages deployment config. + // If you aren't using GitHub pages, you don't need these. + organizationName: "hippo4j", // Usually your GitHub org/user name. + projectName: "hippo4j.github.io", // Usually your repo name. + deploymentBranch: "main", - // Even if you don't use internalization, you can use this field to set useful - // metadata like html lang. For example, if your site is Chinese, you may want - // to replace "en" with "zh-Hans". - i18n: { - defaultLocale: 'en', - locales: ['en', 'zh'], - localeConfigs: { - en: { - label: 'English', - direction: 'ltr', - }, - zh: { - label: '简体中文', - direction: 'ltr', - }, - }, + // Even if you don't use internalization, you can use this field to set useful + // metadata like html lang. For example, if your site is Chinese, you may want + // to replace "en" with "zh-Hans". + i18n: { + defaultLocale: "zh", + locales: ["en", "zh"], + localeConfigs: { + en: { + label: "English", + direction: "ltr", + }, + zh: { + label: "简体中文", + direction: "ltr", + }, }, + }, - presets: [ - [ - 'classic', - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: { - sidebarPath: require.resolve('./sidebars.js'), - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - sidebarCollapsed: false, - /*editUrl: 'https://github.com/longtai-cn',*/ - }, - blog: { - showReadingTime: true, - // Please change this to your repo. - // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', - }, - theme: { - customCss: require.resolve('./src/css/custom.css'), - }, - }), - ], + presets: [ + [ + "classic", + /** @type {import('@docusaurus/preset-classic').Options} */ + ({ + docs: { + sidebarPath: require.resolve("./sidebars.js"), + // Please change this to your repo. + // Remove this to remove the "edit this page" links. + sidebarCollapsed: false, + /*editUrl: 'https://github.com/longtai-cn',*/ + }, + blog: { + showReadingTime: true, + // Please change this to your repo. + // Remove this to remove the "edit this page" links. + editUrl: + "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/", + }, + theme: { + customCss: require.resolve("./src/css/custom.css"), + }, + }), ], + ], - plugins: [ - [ - '@docusaurus/plugin-content-docs', - { - id: 'community', - path: 'community', - routeBasePath: 'community', - sidebarPath: require.resolve('./sidebarsCommunity.js'), - }, - ], + plugins: [ + [ + "@docusaurus/plugin-content-docs", + { + id: "community", + path: "community", + routeBasePath: "community", + sidebarPath: require.resolve("./sidebarsCommunity.js"), + }, ], + async function myPlugin(context, options) { + return { + name: "docusaurus-tailwindcss", + configurePostCss(postcssOptions) { + // Appends TailwindCSS and AutoPrefixer. + postcssOptions.plugins.push(require("tailwindcss")); + postcssOptions.plugins.push(require("autoprefixer")); + return postcssOptions; + }, + }; + }, + ], - themeConfig: + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ({ - autoCollapseCategories: true, - announcementBar: { - id: 'announcementBar-1', // Increment on change - // content: `⭐️ If you like hippo4j, give it a star on Gitee, thanks.`, - // content: `⭐️ 如果您喜欢 hippo4j,请在 GiteeGitHub 上给它一个 star,谢谢!`, - content: `⭐️ 开源不易,如果 Hippo4j 对您有帮助,请在 GitHub 上给它一个 Star 🌟`, - // content: `👉 《小马哥的代码实战课》官方知识星球来啦!!!`, - }, - navbar: { - title: '', - logo: { - alt: 'Hippo4j 动态可观测线程池框架', - src: 'img/hippo4j.png', - }, - items: [ - { - type: 'docSidebar', - docId: 'intro', - position: 'left', - sidebarId: 'user_docs', - label: '文档', - }, - { - to: '/community/contributor-guide', - label: '社区', - position: 'left', - activeBaseRegex: `/community/`, - }, - /*{ to: "/team", label: "团队", position: "left" },*/ - {to: '/users', label: '采用公司', position: 'left'}, - {to: '/group', label: '加群沟通', position: 'left'}, - /*{to: '/blog', label: '博客', position: 'left'},*/ - { - href: 'http://console.hippo4j.cn/index.html', - label: '控制台样例', - position: 'left', - }, - { - href: 'https://magestack.cn', - label: '🚀 拿个offer', - position: 'left', - }, - { - type: 'docsVersionDropdown', - position: 'right', - dropdownActiveClassDisabled: true, - }, + ({ + autoCollapseCategories: true, + announcementBar: { + id: "announcementBar-1", // Increment on change + // content: `⭐️ If you like hippo4j, give it a star on Gitee, thanks.`, + // content: `⭐️ 如果您喜欢 hippo4j,请在 GiteeGitHub 上给它一个 star,谢谢!`, + content: `⭐️ 开源不易,如果 Hippo4j 对您有帮助,请在 GitHub 上给它一个 Star 🌟`, + // content: `👉 《小马哥的代码实战课》官方知识星球来啦!!!`, + }, + navbar: { + title: "", + logo: { + alt: "Hippo4j 动态可观测线程池框架", + src: "img/hippo4j.png", + }, + items: [ + { + type: "docSidebar", + docId: "intro", + position: "left", + sidebarId: "user_docs", + label: "文档", + }, + { + to: "/community/contributor-guide", + label: "社区", + position: "left", + activeBaseRegex: `/community/`, + }, + /*{ to: "/team", label: "团队", position: "left" },*/ + { to: "/users", label: "采用公司", position: "left" }, + { to: "/group", label: "加群沟通", position: "left" }, + /*{to: '/blog', label: '博客', position: 'left'},*/ + { + href: "http://console.hippo4j.cn/index.html", + label: "控制台样例", + position: "left", + }, + { + href: "https://magestack.cn", + label: "🚀 拿个offer", + position: "left", + }, + { + type: "docsVersionDropdown", + position: "right", + dropdownActiveClassDisabled: true, + }, - {type: 'localeDropdown', position: 'right'}, - /*{ + { type: "localeDropdown", position: "right" }, + /*{ href: 'https://gitee.com/mabaiwancn/hippo4j', label: 'Gitee', position: 'right', },*/ - { - href: 'https://github.com/opengoofy/hippo4j', - className: 'header-github-link', - 'aria-label': 'GitHub repository', - position: 'right', - }, + { + href: "https://github.com/opengoofy/hippo4j", + className: "header-github-link", + "aria-label": "GitHub repository", + position: "right", + }, - /*{ + /*{ href: 'https://github.com/opengoofy/hippo4j', label: 'GitHub', position: 'right', },*/ - ], - }, - footer: { - style: 'dark', - links: [ - { - title: 'Docs', - items: [ - { - label: 'Intro', - to: '/docs/user_docs/intro', - }, - { - label: 'Config Mode', - to: '/docs/user_docs/getting_started/config/hippo4j-config-start', - }, - { - label: 'Server Mode', - to: '/docs/user_docs/getting_started/server/hippo4j-server-start', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'Group', - href: 'https://hippo4j.cn/group', - }, - { - label: 'WeChat', - href: 'https://mp.weixin.qq.com/s/diVHYvwiuYH9aWpZDPc27g', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Gitee', - href: 'https://gitee.com/opengoofy/hippo4j', - }, - { - label: 'GitHub', - href: 'https://github.com/opengoofy/hippo4j', - }, - ], - }, - { - title: 'Links', - items: [ - { - label: '推广合作', - href: 'https://hippo4j.cn/docs/user_docs/other/operation', - }, - ], - }, - ], - copyright: `Copyright © 2021-2023 马丁版权所有 京ICP备2021038095号 + ], + }, + footer: { + style: "dark", + links: [ + { + title: "Docs", + items: [ + { + label: "Intro", + to: "/docs/user_docs/intro", + }, + { + label: "Config Mode", + to: "/docs/user_docs/getting_started/config/hippo4j-config-start", + }, + { + label: "Server Mode", + to: "/docs/user_docs/getting_started/server/hippo4j-server-start", + }, + ], + }, + { + title: "Community", + items: [ + { + label: "Group", + href: "https://hippo4j.cn/group", + }, + { + label: "WeChat", + href: "https://mp.weixin.qq.com/s/diVHYvwiuYH9aWpZDPc27g", + }, + ], + }, + { + title: "More", + items: [ + { + label: "Gitee", + href: "https://gitee.com/opengoofy/hippo4j", + }, + { + label: "GitHub", + href: "https://github.com/opengoofy/hippo4j", + }, + ], + }, + { + title: "Links", + items: [ + { + label: "推广合作", + href: "https://hippo4j.cn/docs/user_docs/other/operation", + }, + ], + }, + ], + copyright: `Copyright © 2021-2023 马丁版权所有 京ICP备2021038095号 `, - }, - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, - additionalLanguages: ['java'], - }, - }), + }, + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + additionalLanguages: ["java"], + }, + }), }; module.exports = config; diff --git a/docs/i18n/en/code.json b/docs/i18n/en/code.json new file mode 100644 index 00000000..d2da7eee --- /dev/null +++ b/docs/i18n/en/code.json @@ -0,0 +1,297 @@ +{ + "homepage.titleDescription1": { + "message": "Thread Pool Framework For Java", + "description": "The homepage title description" + }, + "homepage.titleDescription2": { + "message": "Enhancing the Operational Assurance Capability for Business Systems Online.", + "description": "The homepage title description" + }, + "homepage.startButton": { + "message": "Quick Start", + "description": "The homepage start button text" + }, + "homepage.secondTitle": { + "message": "What can Hippo4j do?", + "description": "a title for introduciton part" + }, + "homepage.introduction.fristPartTitle": { + "message": "Dynamic Change", + "description": "the title for the first introduction part" + }, + "homepage.introduction.fristPartDesc": { + "message": "Application runtime dynamically changes thread pool parameters, including but not limited to core size, maximum threads, blocking queue size, and rejection policy. It supports differentiated thread pool configurations for different nodes in the application cluster.", + "description": "the desc for the first introduction part" + }, + "homepage.introduction.secondPartTitle": { + "message": "Custom Alarm", + "description": "the title for the second introduction part" + }, + "homepage.introduction.secondPartDesc": { + "message": "Application thread pool runtime point, providing four alarm dimensions: thread pool overload, blocking queue capacity, running for too long, and rejection strategy alarm. It also supports non-repetitive alarms within a custom time period.", + "description": "the desc for the second introduction part" + }, + "homepage.introduction.thirdPartTitle": { + "message": "Operation Monitoring", + "description": "the title for the third introduction part" + }, + "homepage.introduction.thirdPartDesc": { + "message": "Supports custom duration thread pool for data collection and storage, while also supporting Prometheus, InfluxDB, and other monitoring systems. Provides visualized dashboard monitoring metrics through Grafana or built-in monitoring pages.", + "description": "the desc for the third introduction part" + }, + "theme.ErrorPageContent.title": { + "message": "This page crashed.", + "description": "The title of the fallback page when the page crashed" + }, + "theme.ErrorPageContent.tryAgain": { + "message": "Try again", + "description": "The label of the button to try again when the page crashed" + }, + "theme.NotFound.title": { + "message": "Page Not Found", + "description": "The title of the 404 page" + }, + "theme.NotFound.p1": { + "message": "We could not find what you were looking for.", + "description": "The first paragraph of the 404 page" + }, + "theme.NotFound.p2": { + "message": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.", + "description": "The 2nd paragraph of the 404 page" + }, + "theme.blog.archive.title": { + "message": "Archive", + "description": "The page & hero title of the blog archive page" + }, + "theme.blog.archive.description": { + "message": "Archive", + "description": "The page & hero description of the blog archive page" + }, + "theme.blog.paginator.navAriaLabel": { + "message": "Blog list page navigation", + "description": "The ARIA label for the blog pagination" + }, + "theme.blog.paginator.newerEntries": { + "message": "Newer Entries", + "description": "The label used to navigate to the newer blog posts page (previous page)" + }, + "theme.blog.paginator.olderEntries": { + "message": "Older Entries", + "description": "The label used to navigate to the older blog posts page (next page)" + }, + "theme.admonition.note": { + "message": "note", + "description": "The default label used for the Note admonition (:::note)" + }, + "theme.admonition.tip": { + "message": "tip", + "description": "The default label used for the Tip admonition (:::tip)" + }, + "theme.admonition.danger": { + "message": "danger", + "description": "The default label used for the Danger admonition (:::danger)" + }, + "theme.admonition.info": { + "message": "info", + "description": "The default label used for the Info admonition (:::info)" + }, + "theme.admonition.caution": { + "message": "caution", + "description": "The default label used for the Caution admonition (:::caution)" + }, + "theme.BackToTopButton.buttonAriaLabel": { + "message": "Scroll back to top", + "description": "The ARIA label for the back to top button" + }, + "theme.blog.post.paginator.navAriaLabel": { + "message": "Blog post page navigation", + "description": "The ARIA label for the blog posts pagination" + }, + "theme.blog.post.paginator.newerPost": { + "message": "Newer Post", + "description": "The blog post button label to navigate to the newer/previous post" + }, + "theme.blog.post.paginator.olderPost": { + "message": "Older Post", + "description": "The blog post button label to navigate to the older/next post" + }, + "theme.blog.post.plurals": { + "message": "One post|{count} posts", + "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.blog.tagTitle": { + "message": "{nPosts} tagged with \"{tagName}\"", + "description": "The title of the page for a blog tag" + }, + "theme.tags.tagsPageLink": { + "message": "View All Tags", + "description": "The label of the link targeting the tag list page" + }, + "theme.colorToggle.ariaLabel": { + "message": "Switch between dark and light mode (currently {mode})", + "description": "The ARIA label for the navbar color mode toggle" + }, + "theme.colorToggle.ariaLabel.mode.dark": { + "message": "dark mode", + "description": "The name for the dark color mode" + }, + "theme.colorToggle.ariaLabel.mode.light": { + "message": "light mode", + "description": "The name for the light color mode" + }, + "theme.docs.breadcrumbs.home": { + "message": "Home page", + "description": "The ARIA label for the home page in the breadcrumbs" + }, + "theme.docs.breadcrumbs.navAriaLabel": { + "message": "Breadcrumbs", + "description": "The ARIA label for the breadcrumbs" + }, + "theme.docs.DocCard.categoryDescription": { + "message": "{count} items", + "description": "The default description for a category card in the generated index about how many items this category includes" + }, + "theme.docs.paginator.navAriaLabel": { + "message": "Docs pages navigation", + "description": "The ARIA label for the docs pagination" + }, + "theme.docs.paginator.previous": { + "message": "Previous", + "description": "The label used to navigate to the previous doc" + }, + "theme.docs.paginator.next": { + "message": "Next", + "description": "The label used to navigate to the next doc" + }, + "theme.docs.tagDocListPageTitle.nDocsTagged": { + "message": "One doc tagged|{count} docs tagged", + "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.docs.tagDocListPageTitle": { + "message": "{nDocsTagged} with \"{tagName}\"", + "description": "The title of the page for a docs tag" + }, + "theme.docs.versionBadge.label": { + "message": "Version: {versionLabel}" + }, + "theme.docs.versions.unreleasedVersionLabel": { + "message": "This is unreleased documentation for {siteTitle} {versionLabel} version.", + "description": "The label used to tell the user that he's browsing an unreleased doc version" + }, + "theme.docs.versions.unmaintainedVersionLabel": { + "message": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.", + "description": "The label used to tell the user that he's browsing an unmaintained doc version" + }, + "theme.docs.versions.latestVersionSuggestionLabel": { + "message": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).", + "description": "The label used to tell the user to check the latest version" + }, + "theme.docs.versions.latestVersionLinkLabel": { + "message": "latest version", + "description": "The label used for the latest version suggestion link label" + }, + "theme.common.editThisPage": { + "message": "Edit this page", + "description": "The link label to edit the current page" + }, + "theme.common.headingLinkTitle": { + "message": "Direct link to heading", + "description": "Title for link to heading" + }, + "theme.lastUpdated.atDate": { + "message": " on {date}", + "description": "The words used to describe on which date a page has been last updated" + }, + "theme.lastUpdated.byUser": { + "message": " by {user}", + "description": "The words used to describe by who the page has been last updated" + }, + "theme.lastUpdated.lastUpdatedAtBy": { + "message": "Last updated{atDate}{byUser}", + "description": "The sentence used to display when a page has been last updated, and by who" + }, + "theme.navbar.mobileVersionsDropdown.label": { + "message": "Versions", + "description": "The label for the navbar versions dropdown on mobile view" + }, + "theme.common.skipToMainContent": { + "message": "Skip to main content", + "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation" + }, + "theme.tags.tagsListLabel": { + "message": "Tags:", + "description": "The label alongside a tag list" + }, + "theme.AnnouncementBar.closeButtonAriaLabel": { + "message": "Close", + "description": "The ARIA label for close button of announcement bar" + }, + "theme.blog.sidebar.navAriaLabel": { + "message": "Blog recent posts navigation", + "description": "The ARIA label for recent posts in the blog sidebar" + }, + "theme.CodeBlock.copied": { + "message": "Copied", + "description": "The copied button label on code blocks" + }, + "theme.CodeBlock.copyButtonAriaLabel": { + "message": "Copy code to clipboard", + "description": "The ARIA label for copy code blocks button" + }, + "theme.CodeBlock.copy": { + "message": "Copy", + "description": "The copy button label on code blocks" + }, + "theme.CodeBlock.wordWrapToggle": { + "message": "Toggle word wrap", + "description": "The title attribute for toggle word wrapping button of code block lines" + }, + "theme.DocSidebarItem.toggleCollapsedCategoryAriaLabel": { + "message": "Toggle the collapsible sidebar category '{label}'", + "description": "The ARIA label to toggle the collapsible sidebar category" + }, + "theme.navbar.mobileLanguageDropdown.label": { + "message": "Languages", + "description": "The label for the mobile language switcher dropdown" + }, + "theme.TOCCollapsible.toggleButtonLabel": { + "message": "On this page", + "description": "The label used by the button on the collapsible TOC component" + }, + "theme.blog.post.readMore": { + "message": "Read More", + "description": "The label used in blog post item excerpts to link to full blog posts" + }, + "theme.blog.post.readMoreLabel": { + "message": "Read more about {title}", + "description": "The ARIA label for the link to full blog posts from excerpts" + }, + "theme.blog.post.readingTime.plurals": { + "message": "One min read|{readingTime} min read", + "description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)" + }, + "theme.docs.sidebar.collapseButtonTitle": { + "message": "Collapse sidebar", + "description": "The title attribute for collapse button of doc sidebar" + }, + "theme.docs.sidebar.collapseButtonAriaLabel": { + "message": "Collapse sidebar", + "description": "The title attribute for collapse button of doc sidebar" + }, + "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": { + "message": "← Back to main menu", + "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)" + }, + "theme.docs.sidebar.expandButtonTitle": { + "message": "Expand sidebar", + "description": "The ARIA label and title attribute for expand button of doc sidebar" + }, + "theme.docs.sidebar.expandButtonAriaLabel": { + "message": "Expand sidebar", + "description": "The ARIA label and title attribute for expand button of doc sidebar" + }, + "theme.tags.tagsPageTitle": { + "message": "Tags", + "description": "The title of the tag list page" + } +} diff --git a/docs/i18n/en/docusaurus-plugin-content-blog/options.json b/docs/i18n/en/docusaurus-plugin-content-blog/options.json new file mode 100644 index 00000000..9239ff70 --- /dev/null +++ b/docs/i18n/en/docusaurus-plugin-content-blog/options.json @@ -0,0 +1,14 @@ +{ + "title": { + "message": "Blog", + "description": "The title for the blog used in SEO" + }, + "description": { + "message": "Blog", + "description": "The description for the blog used in SEO" + }, + "sidebar.title": { + "message": "Recent posts", + "description": "The label for the left sidebar" + } +} diff --git a/docs/i18n/en/docusaurus-plugin-content-docs-community/current.json b/docs/i18n/en/docusaurus-plugin-content-docs-community/current.json new file mode 100644 index 00000000..647c4069 --- /dev/null +++ b/docs/i18n/en/docusaurus-plugin-content-docs-community/current.json @@ -0,0 +1,10 @@ +{ + "version.label": { + "message": "Next", + "description": "The label for version current" + }, + "sidebar.community.category.贡献规约": { + "message": "贡献规约", + "description": "The label for category 贡献规约 in sidebar community" + } +} diff --git a/docs/i18n/en/docusaurus-plugin-content-docs/current.json b/docs/i18n/en/docusaurus-plugin-content-docs/current.json new file mode 100644 index 00000000..780bc3c9 --- /dev/null +++ b/docs/i18n/en/docusaurus-plugin-content-docs/current.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "Next", + "description": "The label for version current" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.2.json b/docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.2.json new file mode 100644 index 00000000..4393497b --- /dev/null +++ b/docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.2.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "1.4.2", + "description": "The label for version 1.4.2" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.3.json b/docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.3.json new file mode 100644 index 00000000..a395bb56 --- /dev/null +++ b/docs/i18n/en/docusaurus-plugin-content-docs/version-1.4.3.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "1.4.3", + "description": "The label for version 1.4.3" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/en/docusaurus-plugin-content-docs/version-1.5.0.json b/docs/i18n/en/docusaurus-plugin-content-docs/version-1.5.0.json new file mode 100644 index 00000000..13116144 --- /dev/null +++ b/docs/i18n/en/docusaurus-plugin-content-docs/version-1.5.0.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "1.5.0", + "description": "The label for version 1.5.0" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/en/docusaurus-theme-classic/footer.json b/docs/i18n/en/docusaurus-theme-classic/footer.json new file mode 100644 index 00000000..0c7f5bc1 --- /dev/null +++ b/docs/i18n/en/docusaurus-theme-classic/footer.json @@ -0,0 +1,54 @@ +{ + "link.title.Docs": { + "message": "Docs", + "description": "The title of the footer links column with title=Docs in the footer" + }, + "link.title.Community": { + "message": "Community", + "description": "The title of the footer links column with title=Community in the footer" + }, + "link.title.More": { + "message": "More", + "description": "The title of the footer links column with title=More in the footer" + }, + "link.title.Links": { + "message": "Links", + "description": "The title of the footer links column with title=Links in the footer" + }, + "link.item.label.Intro": { + "message": "Intro", + "description": "The label of footer link with label=Intro linking to /docs/user_docs/intro" + }, + "link.item.label.Config Mode": { + "message": "Config Mode", + "description": "The label of footer link with label=Config Mode linking to /docs/user_docs/getting_started/config/hippo4j-config-start" + }, + "link.item.label.Server Mode": { + "message": "Server Mode", + "description": "The label of footer link with label=Server Mode linking to /docs/user_docs/getting_started/server/hippo4j-server-start" + }, + "link.item.label.Group": { + "message": "Group", + "description": "The label of footer link with label=Group linking to https://hippo4j.cn/group" + }, + "link.item.label.WeChat": { + "message": "WeChat", + "description": "The label of footer link with label=WeChat linking to https://mp.weixin.qq.com/s/diVHYvwiuYH9aWpZDPc27g" + }, + "link.item.label.Gitee": { + "message": "Gitee", + "description": "The label of footer link with label=Gitee linking to https://gitee.com/opengoofy/hippo4j" + }, + "link.item.label.GitHub": { + "message": "GitHub", + "description": "The label of footer link with label=GitHub linking to https://github.com/opengoofy/hippo4j" + }, + "link.item.label.推广合作": { + "message": "推广合作", + "description": "The label of footer link with label=推广合作 linking to https://hippo4j.cn/docs/user_docs/other/operation" + }, + "copyright": { + "message": "Copyright © 2021-2023 马丁版权所有 京ICP备2021038095号\n", + "description": "The footer copyright" + } +} diff --git a/docs/i18n/en/docusaurus-theme-classic/navbar.json b/docs/i18n/en/docusaurus-theme-classic/navbar.json new file mode 100644 index 00000000..d746aabf --- /dev/null +++ b/docs/i18n/en/docusaurus-theme-classic/navbar.json @@ -0,0 +1,26 @@ +{ + "item.label.文档": { + "message": "Docs", + "description": "Navbar item with label 文档" + }, + "item.label.社区": { + "message": "Community", + "description": "Navbar item with label 社区" + }, + "item.label.采用公司": { + "message": "Users", + "description": "Navbar item with label 采用公司" + }, + "item.label.加群沟通": { + "message": "Communication", + "description": "Navbar item with label 加群沟通" + }, + "item.label.控制台样例": { + "message": "Example", + "description": "Navbar item with label 控制台样例" + }, + "item.label.🚀 拿个offer": { + "message": "🚀 GetOffer", + "description": "Navbar item with label 🚀 拿个offer" + } +} diff --git a/docs/i18n/zh/code.json b/docs/i18n/zh/code.json index e037b95c..3cb42849 100644 --- a/docs/i18n/zh/code.json +++ b/docs/i18n/zh/code.json @@ -256,5 +256,45 @@ }, "Community": { "message": "社区" + }, + "homepage.titleDescription1": { + "message": "Java线程池框架", + "description": "The homepage title description" + }, + "homepage.titleDescription2": { + "message": "动态可观测线程池框架,为业务系统提高线上运行保障能力。", + "description": "The homepage title description" + }, + "homepage.startButton": { + "message": "快速开始", + "description": "The homepage start button text" + }, + "homepage.secondTitle": { + "message": "Hippo4j能做什么?", + "description": "a title for introduciton part" + }, + "homepage.introduction.fristPartTitle": { + "message": "动态变更", + "description": "the title for the first introduction part" + }, + "homepage.introduction.fristPartDesc": { + "message": "应用运行时动态变更线程池参数,包括不限于核心、最大线程、阻塞队列大小和拒绝策略等,支持应用集群下不同节点线程池配置差异化", + "description": "the desc for the first introduction part" + }, + "homepage.introduction.secondPartTitle": { + "message": "自定义报警", + "description": "the title for the second introduction part" + }, + "homepage.introduction.secondPartDesc": { + "message": "应用线程池运行时埋点,提供四种报警维度,线程池过载、阻塞队列容量、运行超长以及拒绝策略报警,并支持自定义时间内不重复报警", + "description": "the desc for the second introduction part" + }, + "homepage.introduction.thirdPartTitle": { + "message": "运行监控", + "description": "the title for the third introduction part" + }, + "homepage.introduction.thirdPartDesc": { + "message": "支持自定义时长线程池运行数据采集存储,同时也支持 Prometheus、InfluxDB 等采集监控,通过 Grafana 或内置监控页面提供可视化大屏监控运行指标", + "description": "the desc for the third introduction part" } } diff --git a/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.2.json b/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.2.json new file mode 100644 index 00000000..4393497b --- /dev/null +++ b/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.2.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "1.4.2", + "description": "The label for version 1.4.2" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.3.json b/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.3.json new file mode 100644 index 00000000..a395bb56 --- /dev/null +++ b/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.4.3.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "1.4.3", + "description": "The label for version 1.4.3" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.5.0.json b/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.5.0.json new file mode 100644 index 00000000..13116144 --- /dev/null +++ b/docs/i18n/zh/docusaurus-plugin-content-docs/version-1.5.0.json @@ -0,0 +1,82 @@ +{ + "version.label": { + "message": "1.5.0", + "description": "The label for version 1.5.0" + }, + "sidebar.tutorialSidebar.category.user_docs": { + "message": "user_docs", + "description": "The label for category user_docs in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar tutorialSidebar" + }, + "sidebar.tutorialSidebar.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar tutorialSidebar" + }, + "sidebar.user_docs.category.用户指南": { + "message": "用户指南", + "description": "The label for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.用户指南.link.generated-index.description": { + "message": "帮助想要了解 Hippo4j 的用户快速掌握核心开发理念。", + "description": "The generated-index page description for category 用户指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.快速开始": { + "message": "快速开始", + "description": "The label for category 快速开始 in sidebar user_docs" + }, + "sidebar.user_docs.category.依赖配置中心": { + "message": "依赖配置中心", + "description": "The label for category 依赖配置中心 in sidebar user_docs" + }, + "sidebar.user_docs.category.无中间件依赖": { + "message": "无中间件依赖", + "description": "The label for category 无中间件依赖 in sidebar user_docs" + }, + "sidebar.user_docs.category.运维指南": { + "message": "运维指南", + "description": "The label for category 运维指南 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册": { + "message": "开发者手册", + "description": "The label for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.开发者手册.link.generated-index.description": { + "message": "Hippo4j 留给使用者能够扩展的知识点。", + "description": "The generated-index page description for category 开发者手册 in sidebar user_docs" + }, + "sidebar.user_docs.category.其它": { + "message": "其它", + "description": "The label for category 其它 in sidebar user_docs" + } +} diff --git a/docs/i18n/zh/docusaurus-plugin-content-pages/group.md b/docs/i18n/zh/docusaurus-plugin-content-pages/group.md deleted file mode 100644 index cc1bd9e0..00000000 --- a/docs/i18n/zh/docusaurus-plugin-content-pages/group.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -sidebar_position: 1 -title: 加群沟通 ---- - -## 关注公众号 - -如果大家想要实时关注 Hippo4j 更新的文章以及分享的干货的话,可以关注我的公众号。 - -![](https://images-machen.oss-cn-beijing.aliyuncs.com/image-20230317191041262-mini.png) - -## 加群沟通 - -使用过程中有任何问题,或者对项目有什么建议,关注公众号回复:加群,和 1000+ 志同道合的朋友交流讨论。 - -![](https://images-machen.oss-cn-beijing.aliyuncs.com/image-20230411000121790.png) diff --git a/docs/i18n/zh/docusaurus-plugin-content-pages/markdown-page.md b/docs/i18n/zh/docusaurus-plugin-content-pages/markdown-page.md deleted file mode 100644 index 9756c5b6..00000000 --- a/docs/i18n/zh/docusaurus-plugin-content-pages/markdown-page.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -title: Markdown page example ---- - -# Markdown page example - -You don't need React to write simple standalone pages. diff --git a/docs/i18n/zh/docusaurus-plugin-content-pages/users.md b/docs/i18n/zh/docusaurus-plugin-content-pages/users.md deleted file mode 100644 index 1a284238..00000000 --- a/docs/i18n/zh/docusaurus-plugin-content-pages/users.md +++ /dev/null @@ -1,60 +0,0 @@ ---- -sidebar_position: 1 -title: 采用公司 ---- - -## 谁在使用 Hippo4j - -共计 45+ 家公司生产接入 Hippo4j,按照公司登记时间排序。 - -- [身边云](https://serviceshare.com) -- [思派健康科技](https://www.medbanks.cn) -- [北京智合联创科技有限公司](http://www.zhlc.com.cn) -- [神州数码(北京)](http://www.digitalchina.com) -- [PayerMax](https://www.payermax.com/) -- [轻松到家](http://www.uyess.com/index.html) -- [某商业银行股份有限公司](https://github.com/opengoofy/hippo4j/issues/13) -- [某国际物流信息股份有限公司](https://github.com/opengoofy/hippo4j/issues/13) -- [萨科(深圳)科技有限公司](https://www.lbdj.com/) -- [广东天枢新能源科技有限公司](https://gd-tianshu.com/) -- [FitTime](http://fittime.com/) -- [百强国际物流](https://github.com/opengoofy/hippo4j/issues/13) -- [海南某深圳分公司](https://github.com/opengoofy/hippo4j/issues/13) -- [众合云科(51社保)](https://home.101hr.com/) -- [好货云店](https://pc.haohuoyundian.com/) -- [斗象科技](https://www.tophant.com/) -- [深圳航天信息有限公司](http://sz.aisino.com/) -- [新东方教育科技集团](https://www.xdf.cn/) -- [远眺网络科技有限公司](https://www.yuantiaokj.com/) -- [浙江吉利控股集团有限公司](https://www.geely.com/) -- [三立人(深圳)科技有限公司-焦内](https://www.bananain.com/) -- [上海天猫好房添玑网络服务有限公司](http://www.eju.com/) -- [郑州力通水务](http://www.zzltsw.com/) -- [北京自如信息科技有限公司](https://www.ziroom.com/) -- [北京易车信息科技有限公司](https://www.yiche.com/) -- [中新软件(上海)有限公司](http://www.5000m.com) -- [深圳市上马网络技术有限公司](https://www.shangmanet.com) -- [兰亭集势(成都)科技有限公司](https://www.lightinthebox.com/) -- [杭州数理大数据有限公司](https://www.data4truth.com/#/) -- [九四智能](https://94ai.com) -- [新华智云科技有限公司](https://www.xinhuazhiyun.com) -- [银丰新融](https://www.ist.com.cn) -- [深圳市帮客帮科技有限公司](https://www.bangkebang.com) -- [重庆威爱云科技有限公司](https://51vive.com) -- [网易有道信息技术(北京)有限公司](https://www.youdao.com) -- [神州数码(西安)](https://www.digitalchina.com) -- [广联达科技股份有限公司](https://www.glodon.com) -- [天健联创控股集团有限公司](https://www.tjlc.com.cn) -- [知乎](https://www.zhihu.com/) -- [广东谷通科技有限公司](https://www.duofriend.com) -- [成都全域智旅科技有限公司](http://qyzl.com) -- [深圳市华云中盛科技股份有限公司](http://www.hua-cloud.cn) -- [智慧芽信息科技(苏州)有限公司](https://www.zhihuiya.com) -- [滴滴出行](https://www.didiglobal.com) -- [杭州源诚科技有限公司](http://www.yckjdata.com) - -## 登记 - -欢迎采用了 Hippo4j 的公司在此登记,非常感谢大家对 Hippo4j 的关注和支持,这是我们前进最大的动力。 - -请按公司名 + 首页的格式在 [此处](https://github.com/opengoofy/hippo4j/issues/13) 登记。 diff --git a/docs/i18n/zh/docusaurus-theme-classic/footer.json b/docs/i18n/zh/docusaurus-theme-classic/footer.json index 1e3ea858..8cdc353a 100644 --- a/docs/i18n/zh/docusaurus-theme-classic/footer.json +++ b/docs/i18n/zh/docusaurus-theme-classic/footer.json @@ -25,7 +25,7 @@ }, "link.item.label.Gitee": { "message": "Gitee", - "description": "The label of footer link with label=Gitee linking to https://gitee.com/itmachen/hippo4j" + "description": "The label of footer link with label=Gitee linking to https://gitee.com/opengoofy/hippo4j" }, "link.item.label.GitHub": { "message": "GitHub", @@ -38,5 +38,33 @@ "copyright": { "message": "Copyright © 2021-2022 小马哥版权所有 京ICP备2021038095号-2\n", "description": "The footer copyright" + }, + "link.title.Links": { + "message": "Links", + "description": "The title of the footer links column with title=Links in the footer" + }, + "link.item.label.Intro": { + "message": "Intro", + "description": "The label of footer link with label=Intro linking to /docs/user_docs/intro" + }, + "link.item.label.Config Mode": { + "message": "Config Mode", + "description": "The label of footer link with label=Config Mode linking to /docs/user_docs/getting_started/config/hippo4j-config-start" + }, + "link.item.label.Server Mode": { + "message": "Server Mode", + "description": "The label of footer link with label=Server Mode linking to /docs/user_docs/getting_started/server/hippo4j-server-start" + }, + "link.item.label.Group": { + "message": "Group", + "description": "The label of footer link with label=Group linking to https://hippo4j.cn/group" + }, + "link.item.label.WeChat": { + "message": "WeChat", + "description": "The label of footer link with label=WeChat linking to https://mp.weixin.qq.com/s/diVHYvwiuYH9aWpZDPc27g" + }, + "link.item.label.推广合作": { + "message": "推广合作", + "description": "The label of footer link with label=推广合作 linking to https://hippo4j.cn/docs/user_docs/other/operation" } } diff --git a/docs/i18n/zh/docusaurus-theme-classic/navbar.json b/docs/i18n/zh/docusaurus-theme-classic/navbar.json index 3e38678a..e32b94ae 100644 --- a/docs/i18n/zh/docusaurus-theme-classic/navbar.json +++ b/docs/i18n/zh/docusaurus-theme-classic/navbar.json @@ -18,5 +18,17 @@ "item.label.🥇代码实战课": { "message": "🥇代码实战课", "description": "Navbar item with label 🥇代码实战课" + }, + "item.label.采用公司": { + "message": "采用公司", + "description": "Navbar item with label 采用公司" + }, + "item.label.加群沟通": { + "message": "加群沟通", + "description": "Navbar item with label 加群沟通" + }, + "item.label.🚀 拿个offer": { + "message": "🚀 拿个offer", + "description": "Navbar item with label 🚀 拿个offer" } } diff --git a/docs/package-lock.json b/docs/package-lock.json index 67404f74..bf011a95 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -10,6 +10,8 @@ "dependencies": { "@docusaurus/core": "2.1.0", "@docusaurus/preset-classic": "2.1.0", + "@iconify-icons/logos": "^1.2.31", + "@iconify/react": "^4.1.0", "@mdx-js/react": "^1.6.22", "autoprefixer": "^10.4.14", "clsx": "^1.1.1", @@ -2548,6 +2550,33 @@ "@hapi/hoek": "^9.0.0" } }, + "node_modules/@iconify-icons/logos": { + "version": "1.2.34", + "resolved": "https://registry.npmjs.org/@iconify-icons/logos/-/logos-1.2.34.tgz", + "integrity": "sha512-WbzJemIKsEt5/fVP7lmpsaFSXV8Wg5L8BngZpqInFWc5nxSaQvtSjHBWPQOQQ7cVr8T5di6wwJWWEdCBXP6hpw==", + "dependencies": { + "@iconify/types": "*" + } + }, + "node_modules/@iconify/react": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@iconify/react/-/react-4.1.1.tgz", + "integrity": "sha512-jed14EjvKjee8mc0eoscGxlg7mSQRkwQG3iX3cPBCO7UlOjz0DtlvTqxqEcHUJGh+z1VJ31Yhu5B9PxfO0zbdg==", + "dependencies": { + "@iconify/types": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/cyberalien" + }, + "peerDependencies": { + "react": ">=16" + } + }, + "node_modules/@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==" + }, "node_modules/@jest/schemas": { "version": "29.4.3", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", @@ -14501,6 +14530,27 @@ "@hapi/hoek": "^9.0.0" } }, + "@iconify-icons/logos": { + "version": "1.2.34", + "resolved": "https://registry.npmjs.org/@iconify-icons/logos/-/logos-1.2.34.tgz", + "integrity": "sha512-WbzJemIKsEt5/fVP7lmpsaFSXV8Wg5L8BngZpqInFWc5nxSaQvtSjHBWPQOQQ7cVr8T5di6wwJWWEdCBXP6hpw==", + "requires": { + "@iconify/types": "*" + } + }, + "@iconify/react": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@iconify/react/-/react-4.1.1.tgz", + "integrity": "sha512-jed14EjvKjee8mc0eoscGxlg7mSQRkwQG3iX3cPBCO7UlOjz0DtlvTqxqEcHUJGh+z1VJ31Yhu5B9PxfO0zbdg==", + "requires": { + "@iconify/types": "^2.0.0" + } + }, + "@iconify/types": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz", + "integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==" + }, "@jest/schemas": { "version": "29.4.3", "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.4.3.tgz", diff --git a/docs/package.json b/docs/package.json index 5a717ba5..34d8fecc 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,7 +23,9 @@ "react-dom": "^17.0.2", "autoprefixer": "^10.4.14", "tailwindcss": "^3.3.2", - "postcss": "^8.4.23" + "postcss": "^8.4.23", + "@iconify-icons/logos": "^1.2.31", + "@iconify/react": "^4.1.0" }, "devDependencies": { diff --git a/docs/src/components/LandingPage/GithubInfo.jsx b/docs/src/components/LandingPage/GithubInfo.jsx new file mode 100644 index 00000000..bd8d9f57 --- /dev/null +++ b/docs/src/components/LandingPage/GithubInfo.jsx @@ -0,0 +1,52 @@ +import React from "react"; +import useGithubInfo from "./useGithubInfo"; + +const GithubInfo = ({ owner, repo }) => { + const { favorites, language, forks, license } = useGithubInfo(owner, repo); + + return ( +
+
+
+ star +
+
+ {favorites || 4621} +
+
+ +
+
+ language +
+
+ + {language || "java"} + +
+
+ +
+
+ forks +
+
+ {forks || 1020} +
+
+ +
+
+ license +
+
+ + Apache 2 + +
+
+
+ ); +}; + +export default GithubInfo; diff --git a/docs/src/components/LandingPage/Hero.jsx b/docs/src/components/LandingPage/Hero.jsx new file mode 100644 index 00000000..9b0ffa50 --- /dev/null +++ b/docs/src/components/LandingPage/Hero.jsx @@ -0,0 +1,85 @@ +import React from "react"; +import { Icon } from "@iconify/react"; +import useBaseUrl from "@docusaurus/useBaseUrl"; +import GithubInfo from "./GithubInfo"; +import Translate, { translate } from "@docusaurus/Translate"; +import Link from "@docusaurus/Link"; + +const Hero = () => { + return ( +
+
+
+ {/* */} +
+ {/* title and desc */} +
+

+ Hippo4j +

+ +

+ + Thread Pool Framework For Java + +

+

+ + Enhancing the Operational Assurance Capability for Business + Systems Online. + +

+
+ + {/* button group */} +
+ + + + + + +
+ {/* github info */} +
+ +
+
+ + {/* */} +
+ Hippo4j System +
+
+
+
+ ); +}; + +export default Hero; diff --git a/docs/src/components/LandingPage/Introduction.jsx b/docs/src/components/LandingPage/Introduction.jsx new file mode 100644 index 00000000..e67ba148 --- /dev/null +++ b/docs/src/components/LandingPage/Introduction.jsx @@ -0,0 +1,106 @@ +import React from "react"; +import useBaseUrl from "@docusaurus/useBaseUrl"; +import Translate from "@docusaurus/Translate"; +const Introduction = () => { + return ( +
+
+

+ {/* Hippo4j能做什么 */} + + What can Hippo4j do? + +

+
+
+
+ +
+
+

+ {/* 动态变更 */} + + Dynamic Change + +

+

+ {/* 应用运行时动态变更线程池参数,包括不限于核心、最大线程、阻塞队列大小和拒绝策略等,支持应用集群下不同节点线程池配置差异化 */} + + Application runtime dynamically changes thread pool parameters, + including but not limited to core size, maximum threads, + blocking queue size, and rejection policy. It supports + differentiated thread pool configurations for different nodes in + the application cluster. + +
+
+

+
+
+

+ {/* 自定义报警 */} + + Custom Alarm + +

+

+ {/* 应用线程池运行时埋点,提供四种报警维度,线程池过载、阻塞队列容量、运行超长以及拒绝策略报警,并支持自定义时间内不重复报警 */} + + Application thread pool runtime point, providing four alarm + dimensions: thread pool overload, blocking queue capacity, + running for too long, and rejection strategy alarm. It also + supports non-repetitive alarms within a custom time period. + +
+
+

+
+
+

+ {/* 运行监控 */} + + Operation Monitoring + +

+

+ {/* 支持自定义时长线程池运行数据采集存储,同时也支持 + Prometheus、InfluxDB 等采集监控,通过 Grafana + 或内置监控页面提供可视化大屏监控运行指标 */} + + Supports custom duration thread pool for data collection and + storage, while also supporting Prometheus, InfluxDB, and other + monitoring systems. Provides visualized dashboard monitoring + metrics through Grafana or built-in monitoring pages. + +
+
+

+
+
+
+
+ ); +}; + +export default Introduction; diff --git a/docs/src/components/LandingPage/index.js b/docs/src/components/LandingPage/index.js new file mode 100644 index 00000000..2c71c128 --- /dev/null +++ b/docs/src/components/LandingPage/index.js @@ -0,0 +1,16 @@ +import React from "react"; +import Hero from "./Hero"; +import Introduction from "./Introduction"; +function LandingLayout(props) { + return ( +
+ {/* */} + + + {/* */} + +
+ ); +} + +export default LandingLayout; diff --git a/docs/src/components/LandingPage/useGithubInfo.jsx b/docs/src/components/LandingPage/useGithubInfo.jsx new file mode 100644 index 00000000..68fdf90a --- /dev/null +++ b/docs/src/components/LandingPage/useGithubInfo.jsx @@ -0,0 +1,30 @@ +import { useState, useEffect } from "react"; + +const useGithubInfo = (owner, repo) => { + const [favorites, setFavorites] = useState(0); + const [language, setLanguage] = useState(""); + const [forks, setForks] = useState(0); + const [license, setLicense] = useState(""); + + useEffect(() => { + fetch(`https://api.github.com/repos/${owner}/${repo}`) + .then((response) => response.json()) + .then((data) => { + setFavorites(data.stargazers_count); + setLanguage(data.language); + setForks(data.forks_count); + setLicense(data.license?.name ?? ""); + }) + .catch((error) => { + console.error("Error fetching API data:", error); + }); + }, [owner, repo]); + + return { + favorites, + language, + forks, + license, + }; +}; +export default useGithubInfo; diff --git a/docs/src/pages/index.js b/docs/src/pages/index.js index 0c5bdc7a..39dd3f3a 100644 --- a/docs/src/pages/index.js +++ b/docs/src/pages/index.js @@ -1,20 +1,22 @@ -import React from 'react'; -import clsx from 'clsx'; -import Link from '@docusaurus/Link'; -import Translate from '@docusaurus/Translate'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; -import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment'; +import React from "react"; +import clsx from "clsx"; +import Link from "@docusaurus/Link"; +// import Translate from "@docusaurus/Translate"; +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; +import Layout from "@theme/Layout"; +// import HomepageFeatures from "@site/src/components/HomepageFeatures"; +import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment"; -import styles from './index.module.css'; +import LandingLayout from "@site/src/components/LandingPage"; + +import styles from "./index.module.css"; if (ExecutionEnvironment.canUseDOM) { var _hmt = _hmt || []; (function () { - var hm = document.createElement('script'); - hm.src = 'https://hm.baidu.com/hm.js?473eaadc06f3d63771f303df1fc29b58'; - var s = document.getElementsByTagName('script')[0]; + var hm = document.createElement("script"); + hm.src = "https://hm.baidu.com/hm.js?473eaadc06f3d63771f303df1fc29b58"; + var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); } @@ -22,12 +24,15 @@ if (ExecutionEnvironment.canUseDOM) { function HomepageHeader() { const { siteConfig } = useDocusaurusContext(); return ( -
+

{siteConfig.title}

{siteConfig.tagline}

- + 快速开始 - 5min ⏱️
@@ -43,9 +48,10 @@ export default function Home() { title={`${siteConfig.title}`} description="Description will go into a meta tag in " > - + {/* */}
- + {/* */} +
);