replaced discord with github discussions (#16092)

Co-authored-by: Alex van Andel <me@alexvanandel.com>
This commit is contained in:
Peer Richelsen
2024-08-06 15:31:32 +00:00
committed by GitHub
co-authored by Alex van Andel
parent 0f268bbef7
commit 5ee5c117c4
32 changed files with 10 additions and 77 deletions
+2 -4
View File
File diff suppressed because one or more lines are too long
+1 -25
View File
@@ -9,11 +9,10 @@ import {
getOrgDomainConfigFromHostname,
subdomainSuffix,
} from "@calcom/features/ee/organizations/lib/orgDomains";
import { DOCS_URL, IS_CALCOM, JOIN_DISCORD, WEBSITE_URL } from "@calcom/lib/constants";
import { DOCS_URL, IS_CALCOM, WEBSITE_URL } from "@calcom/lib/constants";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { HeadSeo } from "@calcom/ui";
import { Icon } from "@calcom/ui";
import { Discord } from "@calcom/ui/components/icon/Discord";
import PageWrapper from "@components/PageWrapper";
@@ -233,29 +232,6 @@ export default function Custom404() {
</a>
</li>
))}
<li className="px-4 py-2">
<a
href={JOIN_DISCORD}
className="relative flex items-start space-x-4 py-6 rtl:space-x-reverse">
<div className="flex-shrink-0">
<span className="bg-muted flex h-12 w-12 items-center justify-center rounded-lg">
<Discord className="text-default h-6 w-6" />
</span>
</div>
<div className="min-w-0 flex-1">
<h3 className="text-emphasis text-base font-medium">
<span className="focus-within:ring-empthasis rounded-sm focus-within:ring-2 focus-within:ring-offset-2">
<span className="absolute inset-0" aria-hidden="true" />
Discord
</span>
</h3>
<p className="text-subtle text-base">{t("join_our_community")}</p>
</div>
<div className="flex-shrink-0 self-center">
<Icon name="chevron-right" className="text-muted h-5 w-5" aria-hidden="true" />
</div>
</a>
</li>
</ul>
<div className="mt-8">
<Link href={WEBSITE_URL} className="hover:text-subtle text-emphasis text-base font-medium">
@@ -236,7 +236,6 @@
"blog": "المدونة",
"blog_description": "اقرأ أحدث أخبارنا ومقالاتنا",
"join_our_community": "انضم إلى مجتمعنا",
"join_our_discord": "انضم إلينا على Discord",
"404_claim_entity_user": "احصل على اسم المستخدم وقم بجدولة الأحداث",
"popular_pages": "الصفحات الشائعة",
"register_now": "التسجيل الآن",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "Přečtěte si naše nejnovější novinky a články",
"join_our_community": "Připojte se k naší komunitě",
"join_our_discord": "Připojte se k našemu Discordu",
"404_claim_entity_user": "Nárokujte si své uživatelské jméno a plánujte události",
"popular_pages": "Oblíbené stránky",
"register_now": "Zaregistrovat se nyní",
@@ -239,7 +239,6 @@
"blog": "Blog",
"blog_description": "Lesen Sie unsere Neuigkeiten und Artikel",
"join_our_community": "Treten Sie unserer Community bei",
"join_our_discord": "Treffe uns im Discord",
"404_claim_entity_user": "Benutzername registrieren und Termine vergeben",
"popular_pages": "Beliebte Seiten",
"register_now": "Jetzt registrieren",
@@ -245,7 +245,6 @@
"blog": "Blog",
"blog_description": "Read our latest news and articles",
"join_our_community": "Join our community",
"join_our_discord": "Join our Discord",
"404_claim_entity_user": "Claim your username and schedule events",
"popular_pages": "Popular pages",
"register_now": "Register now",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "Lee nuestras últimas noticias y artículos",
"join_our_community": "Únete a nuestra comunidad",
"join_our_discord": "Únase a nuestro Discord",
"404_claim_entity_user": "Reclama tu nombre de usuario y programa eventos",
"popular_pages": "Páginas Populares",
"register_now": "Regístrate Ahora",
@@ -239,7 +239,6 @@
"blog": "Blogi",
"blog_description": "Lugege meie viimaseid uudiseid ja artikleid",
"join_our_community": "Liituge meie kogukonnaga",
"join_our_discord": "Liitu meie Discordiga",
"404_claim_entity_user": "Taotle oma kasutajanimi ja ajasta üritusi",
"popular_pages": "Populaarsed lehed",
"register_now": "Registreeru kohe",
@@ -239,7 +239,6 @@
"blog": "Blog",
"blog_description": "Lire nos dernières actualités et articles",
"join_our_community": "Rejoignez notre communauté",
"join_our_discord": "Rejoignez notre Discord",
"404_claim_entity_user": "Réservez votre nom d'utilisateur et planifiez des événements",
"popular_pages": "Pages populaires",
"register_now": "S'inscrire maintenant",
@@ -236,7 +236,6 @@
"blog": "בלוג",
"blog_description": "לעיון בחדשות ובמאמרים האחרונים שלנו",
"join_our_community": "הצטרף לקהילה שלנו",
"join_our_discord": "מזמינים אותך להצטרף ל-Discord שלנו",
"404_claim_entity_user": "קבל את שם המשתמש שלך והתחל לקבוע מועדים לאירועים",
"popular_pages": "דפים פופולריים",
"register_now": "להירשם עכשיו",
@@ -236,7 +236,6 @@
"blog": "Blog",
"blog_description": "Olvassa el legfrissebb híreinket és cikkeinket",
"join_our_community": "Csatlakozz a közösségünkhöz",
"join_our_discord": "Csatlakozz a Discordunkhoz",
"404_claim_entity_user": "Igényelje felhasználónevét és ütemezze be az eseményeit",
"popular_pages": "Népszerű oldalak",
"register_now": "Regisztrálj most",
@@ -239,7 +239,6 @@
"blog": "Blog",
"blog_description": "Leggi le nostre ultime notizie e articoli",
"join_our_community": "Unisciti alla nostra community",
"join_our_discord": "Partecipa al nostro Discord",
"404_claim_entity_user": "Richiedi il tuo nome utente e pianifica eventi",
"popular_pages": "Pagine popolari",
"register_now": "Registrati ora",
@@ -205,7 +205,6 @@
"blog": "ブログ",
"blog_description": "最新のニュースや記事を読む",
"join_our_community": "コミュニティーに参加する",
"join_our_discord": "私たちの Discord に参加する",
"404_claim_entity_user": "ユーザー名を獲得してイベントをスケジュールする",
"popular_pages": "人気のページ",
"register_now": "今すぐ登録",
@@ -205,7 +205,6 @@
"blog": "블로그",
"blog_description": "최신 뉴스 및 기사 읽기",
"join_our_community": "커뮤니티 가입하기",
"join_our_discord": "Discord에 가입",
"404_claim_entity_user": "사용자 이름을 입력하고 이벤트를 만드세요.",
"popular_pages": "인기 페이지",
"register_now": "지금 등록하세요",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "Lees ons laatste nieuws en artikelen",
"join_our_community": "Word lid van onze community",
"join_our_discord": "Neem deel aan onze Discord",
"404_claim_entity_user": "Claim uw gebruikersnaam en plan evenementen",
"popular_pages": "Populaire pagina's",
"register_now": "Registreer nu",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "Przeczytaj nasze najnowsze wiadomości i artykuły",
"join_our_community": "Dołącz do naszej społeczności",
"join_our_discord": "Dołącz do naszego Discorda",
"404_claim_entity_user": "Odbierz swoją nazwę użytkownika i harmonogram wydarzeń",
"popular_pages": "Popularne strony",
"register_now": "Załóż konto teraz",
@@ -236,7 +236,6 @@
"blog": "Blog",
"blog_description": "Leia as nossas últimas notícias e artigos",
"join_our_community": "Junte-se à nossa comunidade",
"join_our_discord": "Junte-se ao nosso Discord",
"404_claim_entity_user": "Obtenha o seu nome de usuário e agende eventos",
"popular_pages": "Páginas populares",
"register_now": "Inscreva-se agora",
@@ -239,7 +239,6 @@
"blog": "Blog",
"blog_description": "Leia as nossas últimas notícias e artigos",
"join_our_community": "Junte-se à nossa comunidade",
"join_our_discord": "Junte-se ao nosso Discord",
"404_claim_entity_user": "Obtenha o seu nome de utilizador e agende eventos",
"popular_pages": "Páginas populares",
"register_now": "Registe-se Agora",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "Citește cele mai recente noutăți și articole",
"join_our_community": "Alătură-te comunității noastre",
"join_our_discord": "Intrați pe serverul nostru Discord",
"404_claim_entity_user": "Revendică-ți numele de utilizator și programul evenimentelor",
"popular_pages": "Pagini populare",
"register_now": "Înregistrează-te acum",
@@ -206,7 +206,6 @@
"blog": "Блог",
"blog_description": "Прочитайте наши последние новости и статьи",
"join_our_community": "Присоединяйтесь к нашему сообществу",
"join_our_discord": "Присоединиться к нашему Discord-сообществу",
"404_claim_entity_user": "Забронируйте своё имя пользователя и начните планировать встречи",
"popular_pages": "Популярные страницы",
"register_now": "Зарегистрироваться",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "Pročitajte naše najnovije vesti i članke",
"join_our_community": "Pridružite se našoj zajednici",
"join_our_discord": "Pridružite nam se na Discord-u",
"404_claim_entity_user": "Zatražite svoje korisničko ime i zakažite događaje",
"popular_pages": "Popularne stranice",
"register_now": "Registrujte se sad",
@@ -205,7 +205,6 @@
"blog": "Blogg",
"blog_description": "Läs våra senaste nyheter och artiklar",
"join_our_community": "Gå med i vårt community",
"join_our_discord": "Gå med i vår Discord",
"404_claim_entity_user": "Tjinga ditt användarnamn och schemalägga händelser",
"popular_pages": "Populära sidor",
"register_now": "Registrera dig nu",
@@ -205,7 +205,6 @@
"blog": "Blog",
"blog_description": "En yeni haber ve makalelerimizi okuyun",
"join_our_community": "Topluluğumuza katılın",
"join_our_discord": "Discord kanalımıza katılın",
"404_claim_entity_user": "Kullanıcı adınızı alın ve etkinlikler planlayın",
"popular_pages": "Popüler sayfalar",
"register_now": "Hemen kaydol",
@@ -229,7 +229,6 @@
"blog": "Блог",
"blog_description": "Читайте наші останні новини та статті",
"join_our_community": "Долучайтеся до нашої спільноти",
"join_our_discord": "Приєднайтеся до нас у Discord",
"404_claim_entity_user": "Виберіть собі ім’я користувача та почніть планувати заходи",
"popular_pages": "Популярні сторінки",
"register_now": "Зареєструватися",
@@ -206,7 +206,6 @@
"blog": "Blog",
"blog_description": "Đọc tin tức và bài báo mới nhất của chúng tôi",
"join_our_community": "Tham gia cộng đồng của chúng tôi",
"join_our_discord": "Gia nhập Discord của chúng tôi",
"404_claim_entity_user": "Lấy tên người dùng của bạn và lên lịch sự kiện",
"popular_pages": "Các trang phổ biến",
"register_now": "Đăng ký ngay",
@@ -232,7 +232,6 @@
"blog": "博客",
"blog_description": "阅读我们的最新消息和文章",
"join_our_community": "加入我们的社区",
"join_our_discord": "加入我们的 Discord",
"404_claim_entity_user": "确认您的用户名和日程安排",
"popular_pages": "热门页面",
"register_now": "立即注册",
@@ -211,7 +211,6 @@
"blog": "部落格",
"blog_description": "閱讀最新消息與文章",
"join_our_community": "加入社群",
"join_our_discord": "加入我們的 Discord",
"404_claim_entity_user": "領取使用者名稱,就可以預定活動",
"popular_pages": "人氣頁面",
"register_now": "立即註冊",
@@ -1,4 +1,4 @@
import { JOIN_DISCORD } from "@calcom/lib/constants";
import { JOIN_COMMUNITY } from "@calcom/lib/constants";
import { useHasPaidPlan } from "@calcom/lib/hooks/useHasPaidPlan";
import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Icon, UpgradeTeamsBadge } from "@calcom/ui";
@@ -30,7 +30,7 @@ export default function ContactMenuItem(props: ContactMenuItem) {
</div>
)}
<a
href={JOIN_DISCORD}
href={JOIN_COMMUNITY}
target="_blank"
className="hover:bg-subtle hover:text-emphasis text-default flex w-full px-5 py-2 pr-4 text-sm font-medium">
{t("community_support")}{" "}
+4 -5
View File
@@ -43,7 +43,7 @@ import {
DESKTOP_APP_LINK,
ENABLE_PROFILE_SWITCHER,
IS_VISUAL_REGRESSION_TESTING,
JOIN_DISCORD,
JOIN_COMMUNITY,
ROADMAP,
TOP_BANNER_HEIGHT,
WEBAPP_URL,
@@ -82,7 +82,6 @@ import {
useCalcomTheme,
type IconName,
} from "@calcom/ui";
import { Discord } from "@calcom/ui/components/icon/Discord";
import { useGetUserAttributes } from "@calcom/web/components/settings/platform/hooks/useGetUserAttributes";
import { useOrgBranding } from "../ee/organizations/context/provider";
@@ -507,11 +506,11 @@ function UserDropdown({ small }: UserDropdownProps) {
<DropdownMenuItem>
<DropdownItem
CustomStartIcon={<Discord className="text-default h-4 w-4" />}
StartIcon="messages-square"
target="_blank"
rel="noreferrer"
href={JOIN_DISCORD}>
{t("join_our_discord")}
href={JOIN_COMMUNITY}>
{t("join_our_community")}
</DropdownItem>
</DropdownMenuItem>
<DropdownMenuItem>
+1 -1
View File
@@ -74,7 +74,7 @@ export const ANDROID_CHROME_ICON_192 = "/android-chrome-192x192.png";
export const ANDROID_CHROME_ICON_256 = "/android-chrome-256x256.png";
export const ROADMAP = "https://cal.com/roadmap";
export const DESKTOP_APP_LINK = "https://cal.com/download";
export const JOIN_DISCORD = "https://go.cal.com/discord";
export const JOIN_COMMUNITY = "https://github.com/calcom/cal.com/discussions";
export const POWERED_BY_URL = `${WEBSITE_URL}/?utm_source=embed&utm_medium=powered-by-button`;
export const DOCS_URL = "https://cal.com/docs";
export const DEVELOPER_DOCS = "https://developer.cal.com";
-14
View File
@@ -1,14 +0,0 @@
import React, { forwardRef } from "react";
export const Discord = forwardRef<SVGSVGElement, React.SVGProps<SVGSVGElement>>(function Discord(props) {
return (
<svg
className={props.className}
fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 127.14 96.36">
<title>Discord Logo</title>
<path d="M107.7 8.07A105.15 105.15 0 0 0 81.47 0a72.06 72.06 0 0 0-3.36 6.83 97.68 97.68 0 0 0-29.11 0A72.37 72.37 0 0 0 45.64 0a105.89 105.89 0 0 0-26.25 8.09C2.79 32.65-1.71 56.6.54 80.21a105.73 105.73 0 0 0 32.17 16.15 77.7 77.7 0 0 0 6.89-11.11 68.42 68.42 0 0 1-10.85-5.18c.91-.66 1.8-1.34 2.66-2a75.57 75.57 0 0 0 64.32 0c.87.71 1.76 1.39 2.66 2a68.68 68.68 0 0 1-10.87 5.19 77 77 0 0 0 6.89 11.1 105.25 105.25 0 0 0 32.19-16.14c2.64-27.38-4.51-51.11-18.9-72.15ZM42.45 65.69C36.18 65.69 31 60 31 53s5-12.74 11.43-12.74S54 46 53.89 53s-5.05 12.69-11.44 12.69Zm42.24 0C78.41 65.69 73.25 60 73.25 53s5-12.74 11.44-12.74S96.23 46 96.12 53s-5.04 12.69-11.43 12.69Z" />
</svg>
);
});
-1
View File
@@ -8,7 +8,6 @@
".": "./index.tsx",
"./components/toast": "./components/toast/index.tsx",
"./components/icon": "./components/icon/index.ts",
"./components/icon/Discord": "./components/icon/Discord.tsx",
"./components/icon/SatSymbol": "./components/icon/SatSymbol.tsx",
"./components/icon/Spinner": "./components/icon/Spinner.tsx",
"./components/unpublished-entity/UnpublishedEntity": "./components/unpublished-entity/index.ts",