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/frontend/billing/project-quota-free-table.tsx
Views: 687
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45/*6This (and the ProjectQuotaBoundsTable) are currently only showed7in the backend static pages, so the tooltips are not visible there (no javascript).8*/910import { Component, Rendered } from "../app-framework";11import { DEFAULT_QUOTAS, PROJECT_UPGRADES } from "@cocalc/util/schema";12import { Tip } from "../components/tip";13import { Icon } from "../components/icon";14import { Gap } from "../components/gap";15import { Panel } from "@cocalc/frontend/antd-bootstrap";16import { render_project_quota } from "./util";1718export class ProjectQuotaFreeTable extends Component {19private render_header(): Rendered {20return (21<div style={{ paddingLeft: "10px" }}>22<Icon name="battery-empty" />{" "}23<span style={{ fontWeight: "bold" }}>Free plan</span>24</div>25);26}2728public render(): Rendered {29return (30<Panel header={this.render_header()}>31<Gap />32<div style={{ marginBottom: "5px", marginLeft: "10px" }}>33<Tip34title="Free servers"35tip="Many free projects are crammed together inside weaker compute machines, competing for CPU, RAM and I/O."36>37<span style={{ fontWeight: "bold", color: "#666" }}>low-grade</span>38<Gap />39<span style={{ color: "#999" }}>Server hosting</span>40</Tip>41</div>42<div style={{ marginBottom: "5px", marginLeft: "10px" }}>43<Tip44title="Internet access"45tip="Despite working inside a web-browser, free projects are not allowed to directly access the internet due to security/abuse reasons."46>47<span style={{ fontWeight: "bold", color: "#666" }}>no</span>48<Gap />49<span style={{ color: "#999" }}>Internet access</span>50</Tip>51</div>52{PROJECT_UPGRADES.field_order53.filter((name) => DEFAULT_QUOTAS[name])54.map((name) => render_project_quota(name, DEFAULT_QUOTAS[name]))}55<Gap />56<div style={{ textAlign: "center", marginTop: "10px" }}>57<h3 style={{ textAlign: "left" }}>58<span style={{ fontSize: "16px", verticalAlign: "super" }}>$</span>59<Gap />60<span style={{ fontSize: "30px" }}>0</span>61</h3>62</div>63</Panel>64);65}66}676869