mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Subscription checks
This commit is contained in:
parent
6e4c5194e2
commit
e116d3b000
20 changed files with 211 additions and 76 deletions
|
@ -141,6 +141,58 @@ let constants = EmberObject.extend({
|
|||
MySQL: 'MySQL',
|
||||
PostgreSQL: 'PostgreSQL',
|
||||
},
|
||||
|
||||
// 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
|
||||
}
|
||||
});
|
||||
|
||||
export default { constants }
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<label for="product-license-xml">Optional Enterprise Edition License Key</label>
|
||||
{{textarea id="product-license-xml" value=license rows="18" class=(if LicenseError 'form-control is-invalid' 'form-control')}}
|
||||
{{#if appMeta.valid}}
|
||||
{{#if (eq appMeta.edition "Enterprise")}}
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
<p class="mt-2 color-green">Registered to {{appMeta.license.email}} @ {{appMeta.license.name}}</p>
|
||||
<p class="mt-2 color-green">{{appMeta.license.package}} package up to {{appMeta.license.seats}} users</p>
|
||||
{{#if appMeta.license.trial}}
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
<li class="item cursor-auto">
|
||||
<img class="logo" src="/assets/img/icon-white-64x64.png" />
|
||||
</li>
|
||||
{{#if (eq appMeta.edition 'Community')}}
|
||||
{{#if (eq appMeta.edition constants.Product.CommunityEdition)}}
|
||||
<li class="item">
|
||||
{{#link-to "folders" class=(if (eq selectItem 'spaces') 'link selected' 'link')}}SPACES{{/link-to}}
|
||||
</li>
|
||||
{{/if}}
|
||||
{{#if (eq appMeta.edition 'Enterprise')}}
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
{{#if session.viewDashboard}}
|
||||
<li class="item">
|
||||
{{#link-to "dashboard" class=(if (eq selectItem 'dashboard') 'link selected' 'link')}}ACTIONS{{/link-to}}
|
||||
|
@ -36,10 +36,10 @@
|
|||
<i class="material-icons">menu</i>
|
||||
</div>
|
||||
<div class="dropdown-menu" aria-labelledby="top-nav-hamburger">
|
||||
{{#if (eq appMeta.edition 'Community')}}
|
||||
{{#if (eq appMeta.edition constants.Product.CommunityEdition)}}
|
||||
{{#link-to "folders" class="dropdown-item"}}Spaces{{/link-to}}
|
||||
{{/if}}
|
||||
{{#if (eq appMeta.edition 'Enterprise')}}
|
||||
{{#if (eq appMeta.edition constants.Product.EnterpriseEdition)}}
|
||||
{{#link-to "folders" class="dropdown-item"}}Spaces{{/link-to}}
|
||||
{{#if session.viewDashboard}}
|
||||
{{#link-to "dashboard" class="dropdown-item"}}Actions{{/link-to}}
|
||||
|
@ -178,7 +178,7 @@
|
|||
<div class="dotcom">
|
||||
<a href="https://documize.com">https://documize.com</a>
|
||||
</div>
|
||||
{{#if (eq appMeta.edition 'Community')}}
|
||||
{{#if (eq appMeta.edition constants.Product.CommunityEdition)}}
|
||||
<div class="copyright">
|
||||
© Documize Inc. All rights reserved.
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue