2020-08-14 19:14:42 +00:00
|
|
|
export const LANGUAGE = "language";
|
|
|
|
export const ARTICLE_PINNED_KEY = "asc_article_pinned_key";
|
2022-03-03 11:25:10 +00:00
|
|
|
|
2019-11-12 11:55:22 +00:00
|
|
|
/**
|
|
|
|
* Enum for employee activation status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const EmployeeActivationStatus = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
NotActivated: 0,
|
|
|
|
Activated: 1,
|
|
|
|
Pending: 2,
|
|
|
|
AutoGenerated: 4,
|
2019-11-12 11:55:22 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for employee status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const EmployeeStatus = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Active: 1,
|
|
|
|
Disabled: 2,
|
2019-11-12 11:55:22 +00:00
|
|
|
});
|
2019-11-19 11:10:56 +00:00
|
|
|
/**
|
|
|
|
* Enum for employee type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const EmployeeType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
User: 1,
|
|
|
|
Guest: 2,
|
2020-03-03 06:30:27 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for filter type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FilterType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
None: 0,
|
|
|
|
FilesOnly: 1,
|
|
|
|
FoldersOnly: 2,
|
|
|
|
DocumentsOnly: 3,
|
|
|
|
PresentationsOnly: 4,
|
|
|
|
SpreadsheetsOnly: 5,
|
|
|
|
ImagesOnly: 7,
|
|
|
|
ByUser: 8,
|
|
|
|
ByDepartment: 9,
|
|
|
|
ArchiveOnly: 10,
|
|
|
|
ByExtension: 11,
|
|
|
|
MediaOnly: 12,
|
2020-03-03 06:30:27 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for file type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FileType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Unknown: 0,
|
|
|
|
Archive: 1,
|
|
|
|
Video: 2,
|
|
|
|
Audio: 3,
|
|
|
|
Image: 4,
|
|
|
|
Spreadsheet: 5,
|
|
|
|
Presentation: 6,
|
|
|
|
Document: 7,
|
2020-03-18 08:39:43 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for file action.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FileAction = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Create: 0,
|
|
|
|
Rename: 1,
|
2020-03-23 10:47:28 +00:00
|
|
|
});
|
|
|
|
/**
|
|
|
|
* Enum for root folders type.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FolderType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
DEFAULT: 0,
|
|
|
|
COMMON: 1,
|
|
|
|
BUNCH: 2,
|
|
|
|
TRASH: 3,
|
|
|
|
USER: 5,
|
|
|
|
SHARE: 6,
|
|
|
|
Projects: 8,
|
|
|
|
Favorites: 10,
|
|
|
|
Recent: 11,
|
|
|
|
Templates: 12,
|
|
|
|
Privacy: 13,
|
2020-04-07 08:10:32 +00:00
|
|
|
});
|
|
|
|
export const ShareAccessRights = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
None: 0,
|
|
|
|
FullAccess: 1,
|
|
|
|
ReadOnly: 2,
|
|
|
|
DenyAccess: 3,
|
|
|
|
Varies: 4,
|
|
|
|
Review: 5,
|
|
|
|
Comment: 6,
|
|
|
|
FormFilling: 7,
|
|
|
|
CustomFilter: 8,
|
2020-08-14 19:14:42 +00:00
|
|
|
});
|
2021-04-16 13:04:50 +00:00
|
|
|
export const ConflictResolveType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
Skip: 0,
|
|
|
|
Overwrite: 1,
|
|
|
|
Duplicate: 2,
|
2021-04-16 13:04:50 +00:00
|
|
|
});
|
2021-04-12 07:57:21 +00:00
|
|
|
export const providersData = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
google: {
|
|
|
|
label: "google",
|
|
|
|
icon: "/static/images/share.google.react.svg",
|
|
|
|
},
|
|
|
|
facebook: {
|
|
|
|
label: "facebook",
|
|
|
|
icon: "/static/images/share.facebook.react.svg",
|
|
|
|
},
|
|
|
|
twitter: {
|
|
|
|
label: "twitter",
|
|
|
|
icon: "/static/images/share.twitter.react.svg",
|
|
|
|
iconOptions: { color: "#2AA3EF" },
|
|
|
|
},
|
|
|
|
linkedin: {
|
|
|
|
label: "linkedin",
|
|
|
|
icon: "/static/images/share.linkedin.react.svg",
|
|
|
|
},
|
2021-04-22 13:13:02 +00:00
|
|
|
});
|
2020-11-03 12:54:21 +00:00
|
|
|
export const LoaderStyle = {
|
2022-03-03 10:43:43 +00:00
|
|
|
title: "",
|
|
|
|
width: "100%",
|
|
|
|
height: "32",
|
|
|
|
backgroundColor: "#000000",
|
|
|
|
foregroundColor: "#000000",
|
|
|
|
backgroundOpacity: 0.1,
|
|
|
|
foregroundOpacity: 0.15,
|
|
|
|
borderRadius: "3",
|
|
|
|
radius: "3",
|
|
|
|
speed: 2,
|
|
|
|
animate: true,
|
2020-11-03 12:54:21 +00:00
|
|
|
};
|
2021-03-21 21:34:21 +00:00
|
|
|
|
2022-03-04 13:12:06 +00:00
|
|
|
/**
|
|
|
|
* Enum for third-party storages.
|
|
|
|
* @readonly
|
|
|
|
*/
|
2021-09-28 15:10:11 +00:00
|
|
|
export const ThirdPartyStorages = Object.freeze({
|
2021-10-05 16:20:21 +00:00
|
|
|
GoogleId: "googlecloud",
|
|
|
|
RackspaceId: "rackspace",
|
|
|
|
SelectelId: "selectel",
|
|
|
|
AmazonId: "s3",
|
2021-09-28 15:10:11 +00:00
|
|
|
});
|
2022-03-04 13:12:06 +00:00
|
|
|
/**
|
|
|
|
* Enum for backup types.
|
|
|
|
* @readonly
|
|
|
|
*/
|
2022-03-21 09:06:10 +00:00
|
|
|
export const BackupStorageType = Object.freeze({
|
2022-03-04 13:12:06 +00:00
|
|
|
DocumentModuleType: 0,
|
|
|
|
ResourcesModuleType: 1,
|
2022-03-04 14:00:04 +00:00
|
|
|
LocalFileModuleType: 3,
|
|
|
|
TemporaryModuleType: 4,
|
2022-03-04 13:12:06 +00:00
|
|
|
StorageModuleType: 5,
|
2022-03-21 09:06:10 +00:00
|
|
|
});
|
2022-03-04 13:12:06 +00:00
|
|
|
|
2022-03-21 09:06:10 +00:00
|
|
|
export const AutoBackupPeriod = Object.freeze({
|
2022-03-04 13:12:06 +00:00
|
|
|
EveryDayType: 0,
|
|
|
|
EveryWeekType: 1,
|
|
|
|
EveryMonthType: 2,
|
|
|
|
});
|
2021-09-28 15:10:11 +00:00
|
|
|
|
2021-03-22 14:35:33 +00:00
|
|
|
import config from "./AppServerConfig";
|
2022-03-03 11:25:10 +00:00
|
|
|
|
2021-03-22 14:35:33 +00:00
|
|
|
export const AppServerConfig = config;
|
2022-03-03 11:25:10 +00:00
|
|
|
|
2021-05-04 12:35:09 +00:00
|
|
|
/**
|
|
|
|
* Enum for Tenant trusted domains on registration.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const TenantTrustedDomainsType = Object.freeze({
|
2022-03-03 10:43:43 +00:00
|
|
|
None: 0,
|
|
|
|
Custom: 1,
|
|
|
|
All: 2,
|
2021-05-04 12:35:09 +00:00
|
|
|
});
|
2022-03-03 10:59:20 +00:00
|
|
|
export const PasswordLimitSpecialCharacters = "!@#$%^&*";
|
2022-02-10 16:49:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for file status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const FileStatus = Object.freeze({
|
|
|
|
None: 0,
|
|
|
|
IsEditing: 1,
|
|
|
|
IsNew: 2,
|
|
|
|
IsConverting: 4,
|
|
|
|
IsOriginal: 8,
|
|
|
|
IsEditingAlone: 16,
|
|
|
|
IsFavorite: 32,
|
|
|
|
IsTemplate: 64,
|
|
|
|
IsFillFormDraft: 128,
|
|
|
|
});
|
2022-02-25 13:05:43 +00:00
|
|
|
|
2022-02-18 07:01:55 +00:00
|
|
|
/**
|
|
|
|
* Enum for tenant status.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const TenantStatus = Object.freeze({
|
|
|
|
PortalRestore: 4,
|
|
|
|
});
|