CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/frontend/components/constants.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
// base unit in pixel for margin/size/padding
7
export const UNIT = 15;
8
9
// injected by webpack, but not for react-static renderings
10
declare var SMC_VERSION, BUILD_DATE, COCALC_GIT_REVISION;
11
export let smc_version, build_date, smc_git_rev;
12
try {
13
smc_version = SMC_VERSION ?? "N/A";
14
build_date = BUILD_DATE ?? "N/A";
15
smc_git_rev = COCALC_GIT_REVISION ?? "N/A";
16
} catch (_err) {
17
// Happens potentially when running on backend.
18
smc_version = "N/A";
19
build_date = "N/A";
20
smc_git_rev = "N/A";
21
}
22
23