-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(admin): add promoting EE features in CE projects by default (#18179
) * Add: promoting EE features in CE projects by default * Add: pages * Update: first review modifications * Update: integrate locked features pages * Update: rename pages + update links to the website * Update: append config to default files * Update: implement flags logic * Update: implement promoteEnterpriseFeatures flag * Update: revamp variable + add doc * Update: add documentation * Delete: ContentTypes.d.ts file
- Loading branch information
Showing
16 changed files
with
289 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ window.strapi = { | |
telemetryDisabled: true, | ||
flags: { | ||
nps: true, | ||
promoteEE: true, | ||
}, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ window.strapi = { | |
projectType: 'Community', | ||
flags: { | ||
nps: false, | ||
promoteEE: true, | ||
}, | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
packages/core/admin/admin/src/pages/SettingsPage/pages/AuditLogs/SalesPage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React from 'react'; | ||
|
||
import { Box, Layout, Main, HeaderLayout, EmptyStateLayout } from '@strapi/design-system'; | ||
import { LinkButton } from '@strapi/design-system/v2'; | ||
import { ExternalLink, EmptyPermissions } from '@strapi/icons'; | ||
import { useIntl } from 'react-intl'; | ||
|
||
const SalesPage = () => { | ||
const { formatMessage } = useIntl(); | ||
|
||
return ( | ||
<Layout> | ||
<Main> | ||
<HeaderLayout | ||
title={formatMessage({ id: 'global.auditLogs', defaultMessage: 'Audit Logs' })} | ||
subtitle={formatMessage({ | ||
id: 'Settings.permissions.auditLogs.listview.header.subtitle', | ||
defaultMessage: 'Logs of all the activities that happened in your environment', | ||
})} | ||
/> | ||
<Box paddingLeft={10} paddingRight={10}> | ||
<EmptyStateLayout | ||
icon={<EmptyPermissions width="10rem" />} | ||
content={formatMessage({ | ||
id: 'Settings.permissions.auditLogs.not-available', | ||
defaultMessage: | ||
'Audit Logs is only available as part of the Enterprise Edition. Upgrade to get a searchable and filterable display of all activities.', | ||
})} | ||
action={ | ||
<LinkButton | ||
variant="default" | ||
endIcon={<ExternalLink />} | ||
href="https://strp.cc/45mbAdF" | ||
isExternal | ||
target="_blank" | ||
> | ||
{formatMessage({ | ||
id: 'global.learn-more', | ||
defaultMessage: 'Learn more', | ||
})} | ||
</LinkButton> | ||
} | ||
/> | ||
</Box> | ||
</Main> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default SalesPage; |
53 changes: 53 additions & 0 deletions
53
packages/core/admin/admin/src/pages/SettingsPage/pages/ReviewWorkflows/SalesPage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react'; | ||
|
||
import { Box, Layout, Main, HeaderLayout, EmptyStateLayout } from '@strapi/design-system'; | ||
import { LinkButton } from '@strapi/design-system/v2'; | ||
import { ExternalLink, EmptyPermissions } from '@strapi/icons'; | ||
import { useIntl } from 'react-intl'; | ||
|
||
const SalesPage = () => { | ||
const { formatMessage } = useIntl(); | ||
|
||
return ( | ||
<Layout> | ||
<Main> | ||
<HeaderLayout | ||
title={formatMessage({ | ||
id: 'Settings.review-workflows.list.page.title', | ||
defaultMessage: 'Review Workflows', | ||
})} | ||
subtitle={formatMessage({ | ||
id: 'Settings.review-workflows.list.page.subtitle', | ||
defaultMessage: 'Manage your content review process', | ||
})} | ||
/> | ||
<Box paddingLeft={10} paddingRight={10}> | ||
<EmptyStateLayout | ||
icon={<EmptyPermissions width="10rem" />} | ||
content={formatMessage({ | ||
id: 'Settings.review-workflows.not-available', | ||
defaultMessage: | ||
'Review Workflows is only available as part of the Enterprise Edition. Upgrade to create and manage workflows.', | ||
})} | ||
action={ | ||
<LinkButton | ||
variant="default" | ||
endIcon={<ExternalLink />} | ||
href="https://strp.cc/3tdNfJqe" | ||
isExternal | ||
target="_blank" | ||
> | ||
{formatMessage({ | ||
id: 'global.learn-more', | ||
defaultMessage: 'Learn more', | ||
})} | ||
</LinkButton> | ||
} | ||
/> | ||
</Box> | ||
</Main> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default SalesPage; |
53 changes: 53 additions & 0 deletions
53
packages/core/admin/admin/src/pages/SettingsPage/pages/SingleSignOn/SalesPage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react'; | ||
|
||
import { Box, Layout, Main, HeaderLayout, EmptyStateLayout } from '@strapi/design-system'; | ||
import { LinkButton } from '@strapi/design-system/v2'; | ||
import { ExternalLink, EmptyPermissions } from '@strapi/icons'; | ||
import { useIntl } from 'react-intl'; | ||
|
||
const SalesPage = () => { | ||
const { formatMessage } = useIntl(); | ||
|
||
return ( | ||
<Layout> | ||
<Main> | ||
<HeaderLayout | ||
title={formatMessage({ | ||
id: 'Settings.sso.title', | ||
defaultMessage: 'Single Sign-On', | ||
})} | ||
subtitle={formatMessage({ | ||
id: 'Settings.sso.subTitle', | ||
defaultMessage: 'Configure the settings for the Single Sign-On feature.', | ||
})} | ||
/> | ||
<Box paddingLeft={10} paddingRight={10}> | ||
<EmptyStateLayout | ||
icon={<EmptyPermissions width="10rem" />} | ||
content={formatMessage({ | ||
id: 'Settings.sso.not-available', | ||
defaultMessage: | ||
'SSO is only available as part of the Enterprise Edition. Upgrade to configure additional sign-in & sign-up methods for your administration panel.', | ||
})} | ||
action={ | ||
<LinkButton | ||
variant="default" | ||
endIcon={<ExternalLink />} | ||
href="https://strp.cc/46Fk1BA" | ||
isExternal | ||
target="_blank" | ||
> | ||
{formatMessage({ | ||
id: 'global.learn-more', | ||
defaultMessage: 'Learn more', | ||
})} | ||
</LinkButton> | ||
} | ||
/> | ||
</Box> | ||
</Main> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default SalesPage; |
Oops, something went wrong.