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/info/status.tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45import { Layout } from "antd";67import { Icon } from "@cocalc/frontend/components/icon";8import Footer from "components/landing/footer";9import Head from "components/landing/head";10import Header from "components/landing/header";11import Statistics from "components/statistics";12import { MAX_WIDTH } from "lib/config";13import { Customize } from "lib/customize";14import getStats from "lib/landing/stats";15import withCustomize from "lib/with-customize";16import { Paragraph, Title } from "components/misc";1718export default function Stats({ customize, stats }) {19const { siteName } = customize;2021return (22<Customize value={customize}>23<Head title="System Activity Monitor" />24<Layout>25<Header page="info" subPage="status" />26<Layout.Content27style={{28backgroundColor: "white",29}}30>31<div32style={{33maxWidth: MAX_WIDTH,34margin: "15px auto",35padding: "15px",36backgroundColor: "white",37}}38>39<div style={{ textAlign: "center" }}>40<Title level={1}>41<Icon name="dashboard" style={{ marginRight: "30px" }} />42{siteName} - System Activity Monitor43</Title>44<Paragraph>See how much {siteName} is being used right now.</Paragraph>45</div>46{stats != null ? <Statistics stats={stats} /> : "(not available)"}47</div>48<Footer />49</Layout.Content>50</Layout>51</Customize>52);53}5455export async function getServerSideProps(context) {56const stats = await getStats();57return await withCustomize({ context, props: { stats } });58}596061