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/util/consts/ui.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
/**
7
* User Interface specific constants
8
*/
9
10
// icon name used for shared files, only accessible for authenticated users
11
export const SHARE_AUTHENTICATED_ICON = "user";
12
export const SHARE_AUTHENTICATED_EXPLANATION =
13
"only visible to those who are signed in";
14
// boolean flags for various shared files visibility modes
15
export const SHARE_FLAGS = {
16
LISTED: { unlisted: false, disabled: false, authenticated: false }, // aka PUBLIC
17
UNLISTED: { unlisted: true, disabled: false, authenticated: false },
18
DISABLED: { unlisted: false, disabled: true, authenticated: false }, // aka PRIVATE
19
AUTHENTICATED: { unlisted: false, disabled: false, authenticated: true },
20
} as const;
21
22
// documentation pages
23
export const DOC_AI = "https://doc.cocalc.com/ai.html";
24
25
// How we call Posit's RStudio (rserver) IDE. They trademark "RStudio"
26
// see https://posit.co/about/trademark-guidelines/
27
// and a core principle of our company is to be as respectful as possible
28
// to all legal requirements. We thus don't use their trademark
29
// anywhere in our frontend.
30
export const R_IDE = "R IDE";
31
32