Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/util/consts/ui.ts
5750 views
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
15
// boolean flags for various shared files visibility modes
16
export const SHARE_FLAGS = {
17
LISTED: { unlisted: false, disabled: false, authenticated: false }, // aka PUBLIC
18
UNLISTED: { unlisted: true, disabled: false, authenticated: false },
19
DISABLED: { unlisted: false, disabled: true, authenticated: false }, // aka PRIVATE
20
AUTHENTICATED: { unlisted: false, disabled: false, authenticated: true },
21
} as const;
22
23
// documentation pages
24
export const DOC_AI = "https://doc.cocalc.com/ai.html";
25
26
// How we call Posit's RStudio (rserver) IDE. They trademark "RStudio"
27
// see https://posit.co/about/trademark-guidelines/
28
// and a core principle of our company is to be as respectful as possible
29
// to all legal requirements. We thus don't use their trademark
30
// anywhere in our frontend.
31
export const R_IDE = "R IDE";
32
33
// Default font size for account settings and UI elements
34
export const DEFAULT_FONT_SIZE = 14;
35
36
// Icon unicode character for dark mode toggle (☽ - first quarter moon)
37
export const DARK_MODE_ICON = 0x263d;
38
39
// Icon unicode character for accessibility (♿ - wheelchair symbol)
40
export const ACCESSIBILITY_ICON = 0x267f;
41
42
// Keyword for accessibility settings, in account settings and URL query parameter
43
export const A11Y = "accessibility";
44
45
// Icon unicode characters for auto-sync arrows in LaTeX editor
46
export const SYNC_FORWARD_ICON = 0x21a6; // ↦ - rightwards arrow $mapto$
47
export const SYNC_INVERSE_ICON = 0x21a4; // ↤ - leftwards arrow $mapfrom$
48
49