"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getServerSideProps = 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 executables_table_1 = __importDefault(require("components/landing/executables-table"));
const footer_1 = __importDefault(require("components/landing/footer"));
const head_1 = __importDefault(require("components/landing/head"));
const header_1 = __importDefault(require("components/landing/header"));
const image_1 = __importDefault(require("components/landing/image"));
const A_1 = __importDefault(require("components/misc/A"));
const customize_1 = require("lib/customize");
const software_specs_1 = require("lib/landing/software-specs");
const executables_png_1 = __importDefault(require("public/software/executables.png"));
const _1 = require(".");
function Executables(props) {
    const { customize, executablesSpec } = props;
    function renderInfo() {
        return ((0, jsx_runtime_1.jsxs)("div", { style: { maxWidth: _1.STYLE_PAGE.maxWidth, margin: "0 auto" }, children: [(0, jsx_runtime_1.jsx)("h1", { style: { textAlign: "center", fontSize: "32pt", color: "#444" }, children: "Executables in CoCalc" }), (0, jsx_runtime_1.jsx)("div", { style: {
                        width: "50%",
                        float: "right",
                        paddingBottom: "15px",
                        paddingLeft: "15px",
                    }, children: (0, jsx_runtime_1.jsx)(image_1.default, { src: executables_png_1.default, alt: "Terminal showing listing executables in CoCalc" }) }), (0, jsx_runtime_1.jsx)("p", { children: "This is a non-comprehensive list of executables available on CoCalc." }), (0, jsx_runtime_1.jsxs)("p", { children: ["To run anything listed below, you need to either", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/terminal", children: "open a \"Terminal\"" }), " or run the command indirectly via a", " ", (0, jsx_runtime_1.jsx)(A_1.default, { href: "/features/jupyter-notebook", children: "Jupyter notebook" }), "."] }), (0, jsx_runtime_1.jsxs)("p", { children: ["On CoCalc, you can also install or compile your own executable binaries. You have a lot of control about your own project, which is a containerized x86_64 Ubuntu Linux environment.", " "] })] }));
    }
    return ((0, jsx_runtime_1.jsxs)(customize_1.Customize, { value: customize, children: [(0, jsx_runtime_1.jsx)(head_1.default, { title: "Executables in CoCalc" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.default, { page: "software", subPage: "executables" }), (0, jsx_runtime_1.jsxs)(antd_1.Layout.Content, { style: {
                            backgroundColor: "white",
                        }, children: [(0, jsx_runtime_1.jsxs)("div", { style: _1.STYLE_PAGE_WIDE, children: [renderInfo(), (0, jsx_runtime_1.jsx)(executables_table_1.default, { executablesSpec: executablesSpec })] }), (0, jsx_runtime_1.jsx)(footer_1.default, {})] })] })] }));
}
exports.default = Executables;
async function getServerSideProps(context) {
    return await (0, software_specs_1.withCustomizedAndSoftwareSpec)(context, "executables");
}
exports.getServerSideProps = getServerSideProps;
//# sourceMappingURL=executables.js.map