CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

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