2017-12-26 15:38:55 +00:00
|
|
|
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
|
|
|
//
|
2018-03-15 17:11:53 +00:00
|
|
|
// This software (Documize Community Edition) is licensed under
|
2017-12-26 15:38:55 +00:00
|
|
|
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
|
|
|
//
|
|
|
|
// You can operate outside the AGPL restrictions by purchasing
|
|
|
|
// Documize Enterprise Edition and obtaining a commercial license
|
2018-03-15 17:11:53 +00:00
|
|
|
// by contacting <sales@documize.com>.
|
2017-12-26 15:38:55 +00:00
|
|
|
//
|
|
|
|
// https://documize.com
|
|
|
|
|
|
|
|
import EmberObject from "@ember/object";
|
|
|
|
|
2018-03-03 17:46:29 +00:00
|
|
|
// access like so:
|
2018-04-20 14:38:10 +01:00
|
|
|
// let constants = this.get('constants');
|
2018-03-03 17:46:29 +00:00
|
|
|
|
2017-12-26 15:38:55 +00:00
|
|
|
let constants = EmberObject.extend({
|
2018-10-12 17:54:15 +01:00
|
|
|
SpaceType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
2018-04-20 14:38:10 +01:00
|
|
|
Public: 1,
|
|
|
|
Private: 2,
|
|
|
|
Protected: 3
|
|
|
|
},
|
|
|
|
|
|
|
|
AuthProvider: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Documize: 'documize',
|
2018-08-28 10:19:22 +01:00
|
|
|
Keycloak: 'keycloak',
|
2018-09-03 17:36:54 +01:00
|
|
|
LDAP: 'ldap',
|
|
|
|
ServerTypeLDAP: 'ldap',
|
|
|
|
ServerTypeAD: 'ad',
|
|
|
|
EncryptionTypeNone: 'none',
|
|
|
|
EncryptionTypeStartTLS: 'starttls'
|
2018-04-20 14:38:10 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
DocumentActionType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Read: 1,
|
|
|
|
Feedback: 2,
|
|
|
|
Contribute: 3,
|
|
|
|
Approve: 4,
|
|
|
|
Approved: 5,
|
|
|
|
Rejected: 6,
|
|
|
|
Publish: 7,
|
|
|
|
},
|
|
|
|
|
|
|
|
UserActivityType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Created: 1,
|
|
|
|
Read: 2,
|
|
|
|
Edited: 3,
|
|
|
|
Deleted: 4,
|
|
|
|
Archived: 5,
|
|
|
|
Approved: 6,
|
|
|
|
Reverted: 7,
|
|
|
|
PublishedTemplate: 8,
|
|
|
|
PublishedBlock: 9,
|
|
|
|
Feedback: 10,
|
|
|
|
Rejected: 11,
|
|
|
|
SentSecureLink: 12,
|
|
|
|
Draft: 13,
|
|
|
|
Versioned: 14,
|
|
|
|
Searched: 15,
|
|
|
|
Published: 16
|
|
|
|
},
|
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
// Document
|
|
|
|
ProtectionType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
None: 0,
|
|
|
|
Lock: 1,
|
|
|
|
Review: 2,
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
NoneLabel: 'Changes permitted without approval',
|
|
|
|
LockLabel: 'Locked, changes not permitted',
|
|
|
|
ReviewLabel: 'Changes require approval before publication'
|
|
|
|
},
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
// Document
|
|
|
|
ApprovalType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
None: 0,
|
|
|
|
Anybody: 1,
|
|
|
|
Majority: 2,
|
|
|
|
Unanimous: 3,
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
AnybodyLabel: 'Approval required from any approver',
|
|
|
|
MajorityLabel: 'Majority approval required from approvers',
|
|
|
|
UnanimousLabel: 'Unanimous approval required from all approvers'
|
|
|
|
},
|
2018-01-22 10:31:03 +00:00
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
// Section
|
|
|
|
ChangeState: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Published: 0,
|
|
|
|
Pending: 1,
|
|
|
|
UnderReview: 2,
|
|
|
|
Rejected: 3,
|
|
|
|
PendingNew: 4,
|
|
|
|
},
|
2017-12-26 15:38:55 +00:00
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
// Section
|
|
|
|
PageType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Tab: 'tab',
|
|
|
|
Section: 'section'
|
|
|
|
},
|
2018-03-03 17:46:29 +00:00
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
// Who a permission record relates to
|
|
|
|
WhoType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
User: 'user',
|
|
|
|
Group: 'role'
|
|
|
|
},
|
2018-03-03 17:46:29 +00:00
|
|
|
|
2018-03-18 13:56:20 +00:00
|
|
|
EveryoneUserId: '0',
|
2018-03-15 17:11:53 +00:00
|
|
|
EveryoneUserName: "Everyone",
|
|
|
|
|
|
|
|
// Document
|
|
|
|
Lifecycle: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Draft: 0,
|
|
|
|
Live: 1,
|
|
|
|
Archived: 2,
|
|
|
|
|
|
|
|
DraftLabel: 'Draft',
|
|
|
|
LiveLabel: 'Live',
|
|
|
|
ArchivedLabel: 'Archived',
|
2018-03-18 13:56:20 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Document Version -- document.groupId links different versions of documents together
|
|
|
|
VersionCreateMode: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Unversioned: 1, // turn unversioned into versioned document
|
|
|
|
Cloned: 2, // create versioned document by cloning existing versioned document
|
|
|
|
Linked: 3 // link existing unversion document into this version group
|
2018-04-20 14:38:10 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
// Document
|
|
|
|
ActionType: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Read: 1,
|
|
|
|
Feedback: 2,
|
|
|
|
Contribute: 3,
|
|
|
|
ApprovalRequest: 4,
|
|
|
|
Approved: 5,
|
|
|
|
Rejected: 6,
|
|
|
|
Publish: 7,
|
|
|
|
},
|
2018-09-28 16:33:15 +01:00
|
|
|
|
|
|
|
// Meta
|
|
|
|
StoreProvider: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
MySQL: 'MySQL',
|
|
|
|
PostgreSQL: 'PostgreSQL',
|
|
|
|
},
|
2018-10-29 16:53:54 +00:00
|
|
|
|
|
|
|
// Product is where we try to balance the fine line between useful open core
|
|
|
|
// and the revenue-generating proprietary edition.
|
|
|
|
Product: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
// CommunityEdition is AGPL licensed open core of product.
|
|
|
|
CommunityEdition: 'Community',
|
|
|
|
|
|
|
|
// EnterpriseEdition is proprietary closed-source product.
|
|
|
|
EnterpriseEdition: 'Enterprise',
|
|
|
|
|
|
|
|
// PackageEssentials provides core capabilities.
|
|
|
|
PackageEssentials: "Essentials",
|
|
|
|
|
|
|
|
// PackageAdvanced provides analytics, reporting,
|
|
|
|
// content lifecycle, content verisoning, and audit logs.
|
|
|
|
PackageAdvanced: "Advanced",
|
|
|
|
|
|
|
|
// PackagePremium provides actions, feedback capture,
|
|
|
|
// approvals workflow, secure external sharing.
|
|
|
|
PackagePremium: "Premium",
|
|
|
|
|
|
|
|
// PackageDataCenter provides multi-tenanting
|
|
|
|
// and a bunch of professional services.
|
|
|
|
PackageDataCenter: "Data Center",
|
|
|
|
|
|
|
|
// PlanCloud represents *.documize.com hosting.
|
|
|
|
PlanCloud: "Cloud",
|
|
|
|
|
|
|
|
// PlanSelfHost represents privately hosted Documize instance.
|
|
|
|
PlanSelfHost: "Self-host",
|
|
|
|
|
|
|
|
// Seats0 is 0 users.
|
|
|
|
Seats0: 0,
|
|
|
|
|
|
|
|
// Seats1 is 10 users.
|
|
|
|
Seats1: 10,
|
|
|
|
|
|
|
|
// Seats2 is 25 users.
|
|
|
|
Seats2: 25,
|
|
|
|
|
|
|
|
//Seats3 is 50 users.
|
|
|
|
Seats3: 50,
|
|
|
|
|
|
|
|
// Seats4 is 100 users.
|
|
|
|
Seats4: 100,
|
|
|
|
|
|
|
|
//Seats5 is 250 users.
|
|
|
|
Seats5: 250,
|
|
|
|
|
|
|
|
// Seats6 is unlimited.
|
|
|
|
Seats6: 9999
|
2018-12-11 18:00:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
Icon: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
2018-12-12 13:35:16 +00:00
|
|
|
All: 'dicon-menu-8',
|
|
|
|
ArrowUp: 'dicon-arrow-up',
|
|
|
|
ArrowDown: 'dicon-arrow-down',
|
|
|
|
ArrowLeft: 'dicon-arrow-left',
|
|
|
|
ArrowRight: 'dicon-arrow-right',
|
|
|
|
Attachment: 'dicon-attachment',
|
|
|
|
BarChart: 'dicon-chart-bar-2',
|
|
|
|
Bookmark: 'dicon-bookmark',
|
2018-12-11 18:00:08 +00:00
|
|
|
Delete: 'dicon-bin',
|
2018-12-12 13:35:16 +00:00
|
|
|
Edit: 'dicon-pen-2',
|
|
|
|
Filter: 'dicon-sort-tool',
|
|
|
|
Grid1: 'dicon-grid-interface',
|
|
|
|
Index: 'dicon-align-justify',
|
|
|
|
ListBullet: 'dicon-list-bullet-2',
|
2018-12-11 18:00:08 +00:00
|
|
|
Print: 'dicon-print',
|
2018-12-12 13:35:16 +00:00
|
|
|
Pulse: 'dicon-pulse',
|
2018-12-11 18:00:08 +00:00
|
|
|
Plus: 'dicon-e-add',
|
|
|
|
Person: 'dicon-single-01',
|
2018-12-12 13:35:16 +00:00
|
|
|
People: 'dicon-multiple-19',
|
|
|
|
Remove: 'dicon-i-remove',
|
|
|
|
Search: 'dicon-magnifier',
|
2018-12-11 18:00:08 +00:00
|
|
|
Settings: 'dicon-settings-gear',
|
2018-12-12 13:35:16 +00:00
|
|
|
Tag: 'dicon-delete-key',
|
|
|
|
World: 'dicon-globe',
|
2018-12-11 18:00:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
Color: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Red: 'red',
|
|
|
|
Green: 'green',
|
|
|
|
Yellow: 'yellow',
|
|
|
|
Gray: 'gray'
|
|
|
|
},
|
|
|
|
|
|
|
|
Label: { // eslint-disable-line ember/avoid-leaking-state-in-ember-objects
|
|
|
|
Add: 'Add',
|
|
|
|
Cancel: 'Cancel',
|
|
|
|
Close: 'Close',
|
|
|
|
Delete: 'Delete',
|
|
|
|
Insert: 'Insert',
|
|
|
|
Save: 'Save',
|
|
|
|
Update: 'Update',
|
2018-10-29 16:53:54 +00:00
|
|
|
}
|
2017-12-26 15:38:55 +00:00
|
|
|
});
|
|
|
|
|
2018-03-15 17:11:53 +00:00
|
|
|
export default { constants }
|