"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
var __generator = (this && this.__generator) || function (thisArg, body) {
    var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
    return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
    function verb(n) { return function (v) { return step([n, v]); }; }
    function step(op) {
        if (f) throw new TypeError("Generator is already executing.");
        while (_) try {
            if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
            if (y = 0, t) op = [op[0] & 2, t.value];
            switch (op[0]) {
                case 0: case 1: t = op; break;
                case 4: _.label++; return { value: op[1], done: false };
                case 5: _.label++; y = op[1]; op = [0]; continue;
                case 7: op = _.ops.pop(); _.trys.pop(); continue;
                default:
                    if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
                    if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
                    if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
                    if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
                    if (t[2]) _.ops.pop();
                    _.trys.pop(); continue;
            }
            op = body.call(thisArg, _);
        } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
        if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
    }
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = void 0;
var jsx_runtime_1 = require("react/jsx-runtime");
var A_1 = __importDefault(require("components/misc/A"));
var antd_1 = require("antd");
var footer_1 = __importDefault(require("components/landing/footer"));
var header_1 = __importDefault(require("components/landing/header"));
var head_1 = __importDefault(require("components/landing/head"));
var with_customize_1 = __importDefault(require("lib/with-customize"));
var customize_1 = require("lib/customize");
var latex_1 = __importDefault(require("components/landing/latex"));
var index_list_1 = __importDefault(require("components/landing/index-list"));
var jupyter_logo_svg_1 = __importDefault(require("/public/features/jupyter-logo.svg"));
var cocalc_jupyter2_20170508_png_1 = __importDefault(require("/public/features/cocalc-jupyter2-20170508.png"));
var python_logo_svg_1 = __importDefault(require("/public/features/python-logo.svg"));
var frame_editor_python_png_1 = __importDefault(require("/public/features/frame-editor-python.png"));
var r_logo_svg_1 = __importDefault(require("/public/features/r-logo.svg"));
var cocalc_r_jupyter_png_1 = __importDefault(require("/public/features/cocalc-r-jupyter.png"));
var latex_logo_svg_1 = __importDefault(require("/public/features/latex-logo.svg"));
var cocalc_latex_editor_2019_png_1 = __importDefault(require("/public/features/cocalc-latex-editor-2019.png"));
var whiteboard_sage_png_1 = __importDefault(require("/public/features/whiteboard-sage.png"));
var octave_logo_svg_1 = __importDefault(require("/public/features/octave-logo.svg"));
var cocalc_octave_jupyter_20200511_png_1 = __importDefault(require("/public/features/cocalc-octave-jupyter-20200511.png"));
var x11_logo_svg_1 = __importDefault(require("/public/features/x11-logo.svg"));
var x11_01_png_1 = __importDefault(require("/public/features/x11-01.png"));
var linux_logo_svg_1 = __importDefault(require("/public/features/linux-logo.svg"));
var cocalc_shell_script_run_png_1 = __importDefault(require("/public/features/cocalc-shell-script-run.png"));
var linux_logo_svg_2 = __importDefault(require("/public/features/linux-logo.svg"));
var terminal_png_1 = __importDefault(require("/public/features/terminal.png"));
var fa_graduation_cap_svg_1 = __importDefault(require("/public/features/fa-graduation-cap.svg"));
var cocalc_course_assignments_2019_png_1 = __importDefault(require("/public/features/cocalc-course-assignments-2019.png"));
var api_screenshot_png_1 = __importDefault(require("/public/features/api-screenshot.png"));
var sage_sticker_1x1_inch_small_png_1 = __importDefault(require("/public/features/sage-sticker-1x1_inch-small.png"));
var sage_worksheet_png_1 = __importDefault(require("public/features/sage-worksheet.png"));
var julia_logo_svg_1 = __importDefault(require("public/features/julia-logo.svg"));
var julia_jupyter_png_1 = __importDefault(require("public/features/julia-jupyter.png"));
var dataSource = [
    {
        link: "/features/jupyter-notebook",
        title: "Jupyter notebooks",
        logo: jupyter_logo_svg_1.default,
        image: cocalc_jupyter2_20170508_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["We provide a CoCalc specific version of Jupyter notebooks with real-time collaboration, chat, and high precision edit history. Explore in more detail in", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/jupyter.html" }, { children: "the documentation" })), "."] })),
    },
    {
        link: "/features/python",
        title: "Huge installed Python stack",
        logo: python_logo_svg_1.default,
        image: frame_editor_python_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Use Python in CoCalc for data science, statistics, mathematics, physics, machine learning. Many", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/software/python" }, { children: "packages are included in CoCalc" })), "!"] })),
    },
    {
        link: "/features/whiteboard",
        title: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Collaborative Whiteboard" }),
        logo: "layout",
        image: whiteboard_sage_png_1.default,
        description: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "CoCalc's collaborative whiteboard fully supports writing mathematics using LaTeX and doing computation using Jupyter code cells on an infinite canvas." })),
    },
    {
        link: "/features/r-statistical-software",
        title: "R Statistical Software",
        logo: r_logo_svg_1.default,
        image: cocalc_r_jupyter_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Use Jupyter notebooks with the R kernel, the R command line, X11 graphics, ", (0, jsx_runtime_1.jsx)(latex_1.default, {}), " with Knitr and RMarkdown, and more."] })),
    },
    {
        link: "/features/latex-editor",
        title: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Collaborative ", (0, jsx_runtime_1.jsx)(latex_1.default, {}), " editor"] })),
        logo: latex_logo_svg_1.default,
        image: cocalc_latex_editor_2019_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["CoCalc's ", (0, jsx_runtime_1.jsx)(latex_1.default, {}), " editor can help you be a more productive author online. Check out", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/latex.html" }, { children: "its documentation" })), "."] })),
    },
    {
        link: "/features/sage",
        title: "SageMath Online",
        logo: sage_sticker_1x1_inch_small_png_1.default,
        image: sage_worksheet_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/features/sage" }, { children: "SageMath" })), " is very well supported in CoCalc, because ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://wstein.org" }, { children: "William Stein" })), ", who started SageMath, also started CoCalc. Many versions of Sage are preinstalled and there is excellent integration with", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/features/latex-editor" }, { children: (0, jsx_runtime_1.jsx)(latex_1.default, {}) })), "."] })),
    },
    {
        link: "/features/octave",
        title: "GNU Octave",
        logo: octave_logo_svg_1.default,
        image: cocalc_octave_jupyter_20200511_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Run ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://www.gnu.org/software/octave/" }, { children: "GNU Octave" })), " on CoCalc \u2013 the syntax is largely compatible with MATLAB", (0, jsx_runtime_1.jsx)("sup", { children: "\u00AE" }), ". Use Jupyter notebooks, write programs, and display X11 graphics."] })),
    },
    {
        link: "/features/julia",
        title: "Julia",
        logo: julia_logo_svg_1.default,
        image: julia_jupyter_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Use ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://julialang.org/" }, { children: "Julia" })), " on CoCalc with", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/howto/pluto.html" }, { children: "Pluto" })), " and", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/features/jupyter-notebook" }, { children: "Jupyter" })), " notebooks. Edit Julia code and run it in ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/features/terminal" }, { children: "a terminal" })), " or notebook. ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "/features/teaching" }, { children: "Teach classes using nbgrader" })), " ", "with the Julia kernel."] })),
    },
    {
        link: "/features/x11",
        title: "Linux graphical X11 desktop",
        logo: x11_logo_svg_1.default,
        image: x11_01_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Run graphical applications in CoCalc's remote virtual desktop environment. Read more in the", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/x11.html" }, { children: "X11 documentation" })), "."] })),
    },
    {
        link: "/features/linux",
        title: "Online Linux environment",
        logo: linux_logo_svg_1.default,
        image: cocalc_shell_script_run_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Use a collaborative online", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/terminal.html" }, { children: "Linux terminal" })), ", edit and run Bash scripts, or work in a Jupyter Notebooks running the Bash kernel."] })),
    },
    {
        link: "/features/terminal",
        title: "Linux Terminal",
        logo: linux_logo_svg_2.default,
        image: terminal_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Work in a collaborative remote Linux shell. Read more in our", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/terminal.html" }, { children: "documentation" })), "."] })),
    },
    {
        link: "/features/teaching",
        title: "Teaching a Course",
        logo: fa_graduation_cap_svg_1.default,
        image: cocalc_course_assignments_2019_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Organize and teach a course and automatically grade Jupyter notebooks. Read more in the", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/teaching-instructors.html" }, { children: "instructor guide" })), "."] })),
    },
    {
        link: "/features/api",
        title: "API Interface",
        image: api_screenshot_png_1.default,
        logo: "server",
        description: ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: "Programmatically control CoCalc from your own server. Embed CoCalc within other products with a customized external look and feel." })),
    },
    {
        link: "https://doc.cocalc.com",
        title: "There is much more to explore",
        logo: sage_sticker_1x1_inch_small_png_1.default,
        image: sage_worksheet_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Use ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/sagews.html" }, { children: "Sage Worksheets" })), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/teaching-instructors.html" }, { children: "Course management" })), ", ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/tasks.html" }, { children: "Task management" })), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://doc.cocalc.com/chat.html" }, { children: "Chat" })), ",", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://about.cocalc.com/" }, { children: "and more..." }))] })),
    },
];
function Features(_a) {
    var customize = _a.customize;
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, __assign({ value: customize }, { children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Features" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "features" }), (0, jsx_runtime_1.jsx)(index_list_1.default, { title: "Overview of CoCalc features", description: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["These pages are an overview of what CoCalc is able to do. You can also", " ", (0, jsx_runtime_1.jsx)(A_1.default, __assign({ href: "https://about.cocalc.com" }, { children: "learn about our mission, developers and features..." }))] }), dataSource: dataSource }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] })));
}
exports.default = Features;
function getServerSideProps(context) {
    return __awaiter(this, void 0, void 0, function () {
        return __generator(this, function (_a) {
            switch (_a.label) {
                case 0: return [4 /*yield*/, (0, with_customize_1.default)({ context: context })];
                case 1: return [2 /*return*/, _a.sent()];
            }
        });
    });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=index.js.map