From 1fd4623a7f4743e94352c6b22d71dd8cd7a20f59 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Tue, 31 Oct 2023 14:49:53 +0800 Subject: [PATCH] switch to discord Signed-off-by: ryjiang --- package.json | 2 +- src/components/footer/index.jsx | 17 +- src/components/header/index.jsx | 4 - src/consts/index.ts | 1 + src/images/community/socialMedia/discord.svg | 10 + src/images/community/socialMedia/twitter.svg | 17 +- src/pages/blogs/versions/master | 2 +- src/pages/community/index.jsx | 9 +- src/pages/docs/versions/master | 2 +- src/pages/index.jsx | 4 +- yarn.lock | 242 ++----------------- 11 files changed, 58 insertions(+), 252 deletions(-) create mode 100644 src/images/community/socialMedia/discord.svg diff --git a/package.json b/package.json index 3668c740b..6e1a41305 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "@fontsource/roboto-mono": "^4.5.0", "@fontsource/source-code-pro": "^4.5.1", "@fortawesome/fontawesome-svg-core": "^1.2.36", - "@fortawesome/free-brands-svg-icons": "^6.0.0", + "@fortawesome/free-brands-svg-icons": "6.4.2", "@fortawesome/free-regular-svg-icons": "^6.0.0", "@fortawesome/free-solid-svg-icons": "^6.0.0", "@fortawesome/react-fontawesome": "^0.1.18", diff --git a/src/components/footer/index.jsx b/src/components/footer/index.jsx index f3a53e701..a2f4e8df3 100644 --- a/src/components/footer/index.jsx +++ b/src/components/footer/index.jsx @@ -3,13 +3,14 @@ import clsx from 'clsx'; import { Link } from 'gatsby-plugin-react-i18next'; import { faGithub, - faSlack, faTwitter, faYoutube, + faDiscord, + faXTwitter } from '@fortawesome/free-brands-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import * as styles from './index.module.less'; -import { SLACK_INVITE_URL } from '../../consts'; +import { DISCORD_INVITE_URL } from '../../consts'; const footerJson = [ { @@ -51,7 +52,7 @@ const footerJson = [ }, { name: 'Sizing Tool', trans: false, to: '/tools/sizing' }, { - name: 'Mivlus backup Tool', + name: 'Milvus backup tool', trans: false, to: 'https://github.com/zilliztech/milvus-backup', }, @@ -61,9 +62,9 @@ const footerJson = [ title: 'community', children: [ { name: 'getinvolved', trans: true, to: '/community' }, - { name: 'Slack', trans: false, to: SLACK_INVITE_URL }, + { name: 'Discord', trans: false, to: DISCORD_INVITE_URL }, { - name: 'Github', + name: 'GitHub', trans: false, to: 'https://github.com/milvus-io/milvus', }, @@ -77,11 +78,11 @@ const socialJson = [ link: 'https://github.com/milvus-io/milvus', }, { - icon: faSlack, - link: SLACK_INVITE_URL, + icon: faDiscord, + link: DISCORD_INVITE_URL, }, { - icon: faTwitter, + icon: faXTwitter, link: 'https://twitter.com/milvusio', }, { diff --git a/src/components/header/index.jsx b/src/components/header/index.jsx index fe5b392b7..f569180c7 100644 --- a/src/components/header/index.jsx +++ b/src/components/header/index.jsx @@ -13,7 +13,6 @@ import GitHubButton from '../githubButton'; import MilvusCookieConsent from '../milvusCookieConsent'; import { getGithubStatis } from '../../http'; import * as styles from './index.module.less'; -import { SLACK_INVITE_URL } from '../../consts'; const Header = ({ darkMode = false, @@ -188,9 +187,6 @@ const Header = ({ Stars )} - - Join Slack - + + + + + + + \ No newline at end of file diff --git a/src/images/community/socialMedia/twitter.svg b/src/images/community/socialMedia/twitter.svg index 19181258b..cc7eb6900 100644 --- a/src/images/community/socialMedia/twitter.svg +++ b/src/images/community/socialMedia/twitter.svg @@ -1,9 +1,10 @@ - - - - - - - - + + + + + diff --git a/src/pages/blogs/versions/master b/src/pages/blogs/versions/master index 6664f8b5f..737fb6312 160000 --- a/src/pages/blogs/versions/master +++ b/src/pages/blogs/versions/master @@ -1 +1 @@ -Subproject commit 6664f8b5fe552d4c6f15cc3a5445229f941a6667 +Subproject commit 737fb6312c4c85902c35a113e40de6de02afe006 diff --git a/src/pages/community/index.jsx b/src/pages/community/index.jsx index 090d6df5f..d8b339f93 100644 --- a/src/pages/community/index.jsx +++ b/src/pages/community/index.jsx @@ -6,7 +6,7 @@ import { graphql } from 'gatsby'; import { useI18next } from 'gatsby-plugin-react-i18next'; import { findLatestVersion } from '../../utils'; import githubIcon from '../../images/community/socialMedia/github.svg'; -import slackIcon from '../../images/community/socialMedia/slack.svg'; +import discordIcon from '../../images/community/socialMedia/discord.svg'; import redditIcon from '../../images/community/socialMedia/reddit.svg'; import twitterIcon from '../../images/community/socialMedia/twitter.svg'; import clsx from 'clsx'; @@ -19,6 +19,7 @@ import meetingIcon from '../../images/community/icons/meeting.svg'; import eventIcon from '../../images/community/icons/event.svg'; import videoIcon from '../../images/community/icons/video.svg'; import CustomLink from '../../components/customLink'; +import { DISCORD_INVITE_URL } from '../../consts'; const OFFICE_HOUR_REGISTER_LINK = 'https://us02web.zoom.us/meeting/register/tZ0pcO6vrzsuEtVAuGTpNdb6lGnsPBzGfQ1T#/registration'; @@ -58,9 +59,9 @@ export default function CommunityPage({ data, pageContext }) { href: 'https://github.com/milvus-io/milvus/discussions', }, { - label: 'Slack', - imgUrl: slackIcon, - href: '/slack', + label: 'Discord', + imgUrl: discordIcon, + href: DISCORD_INVITE_URL, }, { label: 'Reddit', diff --git a/src/pages/docs/versions/master b/src/pages/docs/versions/master index dbe6df810..690591284 160000 --- a/src/pages/docs/versions/master +++ b/src/pages/docs/versions/master @@ -1 +1 @@ -Subproject commit dbe6df81041923e2875547746b2102d569f2becf +Subproject commit 6905912844041dcb0d27246e9bc8849f4dad40a8 diff --git a/src/pages/index.jsx b/src/pages/index.jsx index b34aa73f4..26773dce5 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -256,7 +256,7 @@ const IndexPage = ({ data, pageContext }) => { - +{/*

{t('v3trans.main.communitytitle')} @@ -280,7 +280,7 @@ const IndexPage = ({ data, pageContext }) => { })} - + */}