File size: 5,056 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
import { localizeUrl, useHasEnTranslation } from '@automattic/i18n-utils';
import { useTranslate } from 'i18n-calypso';
import InlineSupportLink from 'calypso/components/inline-support-link';
import { useHandleClickLink } from './use-handle-click-link';
export const useFeaturesList = () => {
const translate = useTranslate();
const hasEnTranslation = useHasEnTranslation();
const handleClickLink = useHandleClickLink();
return [
{
id: 'connect-to-ssh-on-wordpress-com',
title: translate( 'SFTP, SSH, and WP-CLI', {
comment: 'Feature title',
} ),
description: translate(
'Run WP-CLI commands, automate repetitive tasks, and troubleshoot your custom code with the tools you already use.',
{
comment: 'Feature description',
}
),
linkLearnMore: localizeUrl( 'https://developer.wordpress.com/docs/developer-tools/wp-cli/' ),
},
{
id: 'how-to-create-a-staging-site',
title: translate( 'Staging sites', {
comment: 'Feature title',
} ),
description: translate(
'Test changes on a WordPress.com staging site first, so you can identify and fix any vulnerabilities before they impact your live site.',
{
comment: 'Feature description',
}
),
linkLearnMore: localizeUrl(
'https://developer.wordpress.com/docs/developer-tools/staging-sites/'
),
},
{
id: 'multi-site-management',
title: hasEnTranslation( 'Agency Hosting' )
? translate( 'Agency Hosting', {
comment: 'Feature title',
} )
: translate( 'Multiple site management', {
comment: 'Feature title',
} ),
description: hasEnTranslation(
"Earn up to 50% revenue share and get volume discounts on WordPress.com hosting when you migrate sites to our platform and promote Automattic's products to clients."
)
? translate(
"Earn up to 50% revenue share and get volume discounts on WordPress.com hosting when you migrate sites to our platform and promote Automattic's products to clients.",
{
comment: 'Feature description',
}
)
: translate(
'Manage multiple WordPress sites from one place, get volume discounts on hosting products, and earn up to 50% revenue share when you migrate sites to our platform and refer our products to clients.',
{
comment: 'Feature description',
}
),
linkLearnMore: localizeUrl( 'https://wordpress.com/for-agencies?ref=wpcom-dev-dashboard' ),
linkTarget: '_self',
},
{
id: 'code',
title: translate( 'Custom code', {
comment: 'Feature title',
} ),
description: translate(
'Build anything with support and automatic updates for 50,000+ plugins and themes. Or start from scratch with your own custom code.',
{
comment: 'Feature description',
}
),
linkLearnMore: localizeUrl( 'https://wordpress.com/support/code' ),
},
{
id: 'https-ssl',
title: translate( 'Free SSL certificates', {
comment: 'Feature title',
} ),
description: translate(
'Take your site from HTTP to HTTPS at no additional cost. We encrypt every domain registered and connected to WordPress.com with a free SSL certificate.',
{
comment: 'Feature description',
}
),
linkLearnMore: localizeUrl( 'https://wordpress.com/support/domains/https-ssl' ),
},
{
id: 'help-support-options',
title: translate( '24/7 expert support', {
comment: 'Feature title',
} ),
description: translate(
"Whenever you're stuck, whatever you're trying to make happen—our Happiness Engineers have the answers.",
{
comment: 'Feature description',
}
),
linkLearnMore: localizeUrl( 'https://developer.wordpress.com/docs/glance/support/' ),
},
{
id: 'malware-scanning-removal',
title: translate( 'Malware scanning and removal', {
comment: 'Feature title',
} ),
description: translate(
'Secure and maintain your site effortlessly with {{backupsLink}}real-time backups{{/backupsLink}}, advanced {{malwareScanningLink}}malware scanning and removal{{/malwareScanningLink}}, and continuous {{siteMonitoringLink}}site monitoring{{/siteMonitoringLink}}—ensuring peak performance and security at all times.',
{
comment: 'Feature description',
components: {
backupsLink: (
<InlineSupportLink
supportPostId={ 99415 }
supportLink="https://developer.wordpress.com/docs/platform-features/real-time-backup-restore/"
showIcon={ false }
onClick={ handleClickLink }
/>
),
malwareScanningLink: (
<InlineSupportLink
supportPostId={ 99380 }
supportLink="https://developer.wordpress.com/docs/platform-features/jetpack-scan/"
showIcon={ false }
onClick={ handleClickLink }
/>
),
siteMonitoringLink: (
<InlineSupportLink
supportPostId={ 99421 }
supportLink="https://developer.wordpress.com/docs/troubleshooting/site-monitoring/"
showIcon={ false }
onClick={ handleClickLink }
/>
),
},
}
),
},
];
};
|