Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/src/packages/next/pages/support/index.tsx
Views: 687
import { Col, Layout } from "antd";12import Footer from "components/landing/footer";3import Head from "components/landing/head";4import Header from "components/landing/header";5import A from "components/misc/A";6import ChatGPTHelp from "components/openai/chatgpt-help";7import { Customize } from "lib/customize";8import withCustomize from "lib/with-customize";9import { VideoItem } from "components/videos";10import IndexList, { DataSource } from "components/landing/index-list";11import { Title } from "components/misc";12import SanitizedMarkdown from "components/misc/sanitized-markdown";13import SocialMediaIconList from "components/landing/social-media-icon-list";1415const dataSource = [16{17link: "/support/new",18title: "Create a New Support Ticket",19logo: "medkit",20hide: (customize) => !customize.zendesk,21description: (22<>23If you are having any trouble or just have a question,{" "}24<A href="/support/new">25<b>create a support ticket</b>{" "}26</A>27or{" "}28<A href="https://calendly.com/cocalc">29<b>book a video chat</b>30</A>31. You do NOT have to be a paying customer to open a ticket.32<VideoItem33width={800}34style={{ margin: "15px 0" }}35id={"4Ef9sxX59XM"}36/>37</>38),39},40{41link: "/support/tickets",42title: "Status of Support Tickets",43logo: "life-saver",44hide: (customize) => !customize.zendesk,45description: (46<>47Check on the{" "}48<A href="/support/tickets">49<b>status of your support tickets</b>50</A>51.52</>53),54},55{56link: "https://calendly.com/cocalc",57title: "Book a Video Chat",58logo: "video",59description: (60<>61Book a{" "}62<A href="https://calendly.com/cocalc">63<b>video chat</b>64</A>65.66</>67),68},69{70link: "/support/chatgpt",71title: "ChatGPT Suppport",72logo: "robot",73hide: (customize) => !customize.openaiEnabled || !customize.onCoCalcCom,74description: (75<>76Our <A href="/support/chatgpt">integrated ChatGPT support</A> is free77and often very helpful since it knows so much about the open source78software in CoCalc.79<ChatGPTHelp80style={{ marginTop: "15px" }}81size="large"82tag="support-index"83/>84</>85),86},87{88link: "/support/community",89title: "CoCalc Community Support",90logo: "users",91description: (92<>93<A href="https://github.com/sagemathinc/cocalc/discussions">94Join a discussion95</A>{" "}96or{" "}97<A href="https://groups.google.com/forum/?fromgroups#!forum/cocalc">98post to the mailing list.{" "}99</A>100<SocialMediaIconList101links={{102facebook: "https://www.facebook.com/CoCalcOnline",103github: "https://github.com/sagemathinc/cocalc",104linkedin: "https://www.linkedin.com/company/sagemath-inc./",105twitter: "https://twitter.com/cocalc_com",106youtube: "https://www.youtube.com/c/SagemathCloud",107}}108iconFontSize={20}109/>110</>111),112},113{114landingPages: true,115link: "https://calendly.com/cocalc/discovery",116title: "Request a Live Demo!",117logo: "video-camera",118hide: (customize) => !customize.isCommercial,119description: (120<>121If you're seriously considering using CoCalc to teach a course, but122aren't sure of some of the details and really need to just{" "}123<b>talk to a person</b>,{" "}124<A href="https://calendly.com/cocalc/discovery">125fill out this form and request a live video chat with us126</A>127. We love chatting (in English, German and Russian), and will hopefully128be able to answer all of your questions.129</>130),131},132] as DataSource;133134export default function Preferences({ customize }) {135const { support, onCoCalcCom } = customize;136137function renderContent() {138if (!onCoCalcCom && support) {139return (140<Col141xs={{ span: 12, offset: 6 }}142style={{143marginTop: "30px",144marginBottom: "30px",145}}146>147<Title level={2}>Support</Title>148<SanitizedMarkdown value={support} />149</Col>150);151} else {152return (153<IndexList154title="Support"155description={156<>157We provide extremely good support to our users and customers. If158you run into a problem, read{" "}159<A href="https://doc.cocalc.com/">our extensive documentation</A>,{" "}160<A href="/support/community">check online forums and chatrooms</A>{" "}161or <A href="/support/new">create a support ticket</A>.162</>163}164dataSource={dataSource}165/>166);167}168}169170return (171<Customize value={customize}>172<Head title="Support" />173<Layout>174<Header page="support" />175{renderContent()}176<Footer />177</Layout>178</Customize>179);180}181182export async function getServerSideProps(context) {183return await withCustomize({ context });184}185186187