2022-08-05 14:21:14 +00:00
|
|
|
export const LANGUAGE = "asc_language";
|
2022-08-30 14:50:54 +00:00
|
|
|
export const COOKIE_EXPIRATION_YEAR = 31536000000;
|
2020-08-14 19:14:42 +00:00
|
|
|
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,
|
2022-09-15 08:38:59 +00:00
|
|
|
OFormTemplateOnly: 18,
|
|
|
|
OFormOnly: 19,
|
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,
|
2022-09-15 08:38:59 +00:00
|
|
|
OFormTemplate: 8,
|
|
|
|
OForm: 9,
|
2020-03-18 08:39:43 +00:00
|
|
|
});
|
2022-06-23 00:21:40 +00:00
|
|
|
/**
|
2022-06-28 14:36:42 +00:00
|
|
|
* Enum for room type.
|
2022-06-23 00:21:40 +00:00
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const RoomsType = Object.freeze({
|
|
|
|
FillingFormsRoom: 1,
|
|
|
|
EditingRoom: 2,
|
|
|
|
ReviewRoom: 3,
|
|
|
|
ReadOnlyRoom: 4,
|
|
|
|
CustomRoom: 5,
|
|
|
|
});
|
2022-08-24 16:38:03 +00:00
|
|
|
|
|
|
|
export const RoomsTypeTranslations = Object.freeze({
|
|
|
|
1: "Files:FillingFormRooms",
|
|
|
|
2: "Files:CollaborationRooms",
|
|
|
|
3: "Files:ReviewRooms",
|
|
|
|
4: "Files:ViewOnlyRooms",
|
|
|
|
5: "Files:CustomRooms",
|
|
|
|
});
|
|
|
|
|
2022-06-28 14:36:42 +00:00
|
|
|
/**
|
|
|
|
* Enum for room search area.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const RoomSearchArea = Object.freeze({
|
|
|
|
Any: "Any",
|
|
|
|
Active: "Active",
|
|
|
|
Archive: "Archive",
|
|
|
|
});
|
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,
|
2022-06-22 08:47:42 +00:00
|
|
|
Rooms: 14,
|
|
|
|
Archive: 20,
|
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,
|
|
|
|
});
|
2022-04-21 07:17:15 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for theme keys.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const ThemeKeys = Object.freeze({
|
|
|
|
Base: "0",
|
|
|
|
BaseStr: "Base",
|
|
|
|
Dark: "1",
|
|
|
|
DarkStr: "Dark",
|
|
|
|
System: "2",
|
|
|
|
SystemStr: "System",
|
|
|
|
});
|
2022-09-15 10:24:18 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Enum for global events.
|
|
|
|
* @readonly
|
|
|
|
*/
|
|
|
|
export const Events = Object.freeze({
|
|
|
|
CREATE: "create",
|
|
|
|
RENAME: "rename",
|
|
|
|
ROOM_CREATE: "create_room",
|
|
|
|
ROOM_EDIT: "edit_room",
|
|
|
|
CHANGE_COLUMN: "change_column",
|
|
|
|
});
|