Skip to content

Commit

Permalink
switch to discord
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Oct 31, 2023
1 parent 0f93f3f commit 1fd4623
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 252 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 9 additions & 8 deletions src/components/footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down Expand Up @@ -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',
},
Expand All @@ -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',
},
Expand All @@ -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',
},
{
Expand Down
4 changes: 0 additions & 4 deletions src/components/header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -188,9 +187,6 @@ const Header = ({
Stars
</GitHubButton>
)}
<GitHubButton type="slack" href={SLACK_INVITE_URL}>
Join Slack
</GitHubButton>
</div>
<Menu
anchorEl={anchorEl}
Expand Down
1 change: 1 addition & 0 deletions src/consts/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const FILTER_TAG = '@@filter_tag';
export const PAGE_INDEX = '@@page_index';
export const SLACK_INVITE_URL = '/slack';
export const DISCORD_INVITE_URL = `https://discord.gg/8uyFbECzPX`;
10 changes: 10 additions & 0 deletions src/images/community/socialMedia/discord.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 9 additions & 8 deletions src/images/community/socialMedia/twitter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions src/pages/community/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/versions/master
Submodule master updated 841 files
4 changes: 2 additions & 2 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const IndexPage = ({ data, pageContext }) => {
<HomeFeatures t={t} />
<HomeCode t={t} version={version} />
<Attu t={t} />

{/*
<section className={`${styles.community} col-4 col-8 col-12`}>
<p className={styles.communityTitle}>
{t('v3trans.main.communitytitle')}
Expand All @@ -280,7 +280,7 @@ const IndexPage = ({ data, pageContext }) => {
})}
</div>
</div>
</section>
</section> */}

<Signup callback={handleOpenSnackbar} t={t} />
<CustomizedSnackbars
Expand Down
Loading

0 comments on commit 1fd4623

Please sign in to comment.