DocSpace-client/packages/asc-web-common/constants/index.js

160 lines
2.7 KiB
JavaScript
Raw Normal View History

export const LANGUAGE = "language";
export const ARTICLE_PINNED_KEY = "asc_article_pinned_key";
/**
* Enum for employee activation status.
* @readonly
*/
export const EmployeeActivationStatus = Object.freeze({
NotActivated: 0,
Activated: 1,
Pending: 2,
AutoGenerated: 4,
});
/**
* Enum for employee status.
* @readonly
*/
export const EmployeeStatus = Object.freeze({
Active: 1,
Disabled: 2,
});
/**
* Enum for employee type.
* @readonly
*/
export const EmployeeType = Object.freeze({
User: 1,
Guest: 2,
});
/**
* Enum for filter type.
* @readonly
*/
export const FilterType = Object.freeze({
None: 0,
FilesOnly: 1,
FoldersOnly: 2,
DocumentsOnly: 3,
PresentationsOnly: 4,
SpreadsheetsOnly: 5,
ImagesOnly: 7,
ByUser: 8,
ByDepartment: 9,
ArchiveOnly: 10,
ByExtension: 11,
MediaOnly: 12,
});
/**
* Enum for file type.
* @readonly
*/
export const FileType = Object.freeze({
Unknown: 0,
Archive: 1,
Video: 2,
Audio: 3,
Image: 4,
Spreadsheet: 5,
Presentation: 6,
Document: 7,
});
/**
* Enum for file action.
* @readonly
*/
export const FileAction = Object.freeze({
Create: 0,
Rename: 1,
2020-03-23 10:47:28 +00:00
});
/**
* Enum for root folders type.
* @readonly
*/
export const FolderType = Object.freeze({
DEFAULT: 0,
2020-06-05 12:08:32 +00:00
COMMON: 1,
2020-03-23 10:47:28 +00:00
BUNCH: 2,
2020-06-05 12:08:32 +00:00
TRASH: 3,
USER: 5,
SHARE: 6,
Projects: 8,
Favorites: 10,
Recent: 11,
Templates: 12,
Privacy: 13,
});
export const ShareAccessRights = Object.freeze({
None: 0,
FullAccess: 1,
ReadOnly: 2,
DenyAccess: 3,
Varies: 4,
Review: 5,
Comment: 6,
FormFilling: 7,
CustomFilter: 8,
});
export const ConflictResolveType = Object.freeze({
Skip: 0,
Overwrite: 1,
Duplicate: 2,
});
2021-04-12 07:57:21 +00:00
export const providersData = Object.freeze({
google: {
label: "google",
2021-04-12 07:57:21 +00:00
icon: "/static/images/share.google.react.svg",
},
facebook: {
label: "facebook",
2021-04-12 07:57:21 +00:00
icon: "/static/images/share.facebook.react.svg",
},
twitter: {
label: "twitter",
2021-04-12 07:57:21 +00:00
icon: "/static/images/share.twitter.react.svg",
iconOptions: { color: "#2AA3EF" },
},
linkedin: {
label: "linkedin",
2021-04-12 07:57:21 +00:00
icon: "/static/images/share.linkedin.react.svg",
},
2021-04-22 13:13:02 +00:00
});
export const LoaderStyle = {
title: "",
width: "100%",
height: "32",
backgroundColor: "#000000",
foregroundColor: "#000000",
2020-11-10 07:41:21 +00:00
backgroundOpacity: 0.1,
foregroundOpacity: 0.15,
borderRadius: "3",
radius: "3",
2020-11-05 09:23:50 +00:00
speed: 2,
animate: true,
};
2021-03-22 14:35:33 +00:00
import config from "./AppServerConfig";
export const AppServerConfig = config;
/**
* Enum for Tenant trusted domains on registration.
* @readonly
*/
export const TenantTrustedDomainsType = Object.freeze({
None: 0,
Custom: 1,
All: 2,
});
export const PasswordLimitSpecialCharacters = "!@#$%^&*";