"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = exports.STYLE_PAGE_WIDE = exports.STYLE_PAGE = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
/*
 *  This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
 *  License: AGPLv3 s.t. "Commons Clause" – see LICENSE.md for details
 */
const antd_1 = require("antd");
const footer_1 = __importDefault(require("components/landing/footer"));
const header_1 = __importDefault(require("components/landing/header"));
const head_1 = __importDefault(require("components/landing/head"));
const with_customize_1 = __importDefault(require("lib/with-customize"));
const customize_1 = require("lib/customize");
const index_list_1 = __importDefault(require("components/landing/index-list"));
const executables_png_1 = __importDefault(require("public/software/executables.png"));
const frame_editor_python_png_1 = __importDefault(require("/public/features/frame-editor-python.png"));
const cocalc_r_jupyter_png_1 = __importDefault(require("/public/features/cocalc-r-jupyter.png"));
const julia_jupyter_png_1 = __importDefault(require("/public/software/julia-jupyter.png"));
const cocalc_octave_jupyter_20200511_png_1 = __importDefault(require("/public/features/cocalc-octave-jupyter-20200511.png"));
const python_logo_svg_1 = __importDefault(require("/public/features/python-logo.svg"));
const r_logo_svg_1 = __importDefault(require("/public/features/r-logo.svg"));
const octave_logo_svg_1 = __importDefault(require("/public/features/octave-logo.svg"));
const julia_logo_svg_1 = __importDefault(require("public/features/julia-logo.svg"));
const A_1 = __importDefault(require("components/misc/A"));
const config_1 = require("lib/config");
exports.STYLE_PAGE = {
    maxWidth: config_1.MAX_WIDTH,
    margin: "15px auto",
    padding: "15px",
    backgroundColor: "white",
};
// STYLE_PAGE should have a max width of 1200px
exports.STYLE_PAGE_WIDE = {
    ...exports.STYLE_PAGE,
    maxWidth: "1200px",
};
const dataSource = [
    {
        link: "/software/executables",
        title: "Executables",
        logo: "laptop",
        image: executables_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["CoCalc comes pre-installed with", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/software/executables", children: "thousands of programs" }), " that you can run from the terminal or in an X11 environment, or call from your notebooks or scripts."] })),
    },
    {
        link: "/software/python",
        title: "Python Libraries",
        logo: python_logo_svg_1.default,
        image: frame_editor_python_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["CoCalc offers a large number of", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/software/python", children: "Python libraries preinstalled" }), " system wide, in Anaconda, and in several versions of Sage."] })),
    },
    {
        link: "/software/r",
        title: "R Statistical Software Packages",
        logo: r_logo_svg_1.default,
        image: cocalc_r_jupyter_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["CoCalc maintains an extensive set of", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/software/r", children: "R packages" })] })),
    },
    {
        link: "/software/julia",
        title: "Julia Packages",
        logo: julia_logo_svg_1.default,
        image: julia_jupyter_png_1.default,
        description: ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["CoCalc regularly updates Julia and installs", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/software/julia", children: "many common Julia packages" }), "."] })),
    },
    {
        link: "/software/octave",
        title: "Octave Packages",
        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: ["There are several ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/software/octave", children: "Octave packages" }), " that are preinstalled."] })),
    },
];
function Software({ customize }) {
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Software" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "software" }), (0, jsx_runtime_1.jsx)(index_list_1.default, { title: "Available Software", description: "These pages contain information about available software on CoCalc.", dataSource: dataSource }), (0, jsx_runtime_1.jsx)(footer_1.default, {}), " "] })] }));
}
exports.default = Software;
async function getServerSideProps(context) {
    return await (0, with_customize_1.default)({ context });
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=index.js.map