import { Helmet } from 'react-helmet-async'; | import { Helmet } from 'react-helmet-async'; | ||||
import { FormattedMessage } from 'react-intl'; | import { FormattedMessage } from 'react-intl'; | ||||
import { Link } from 'react-router'; | import { Link } from 'react-router'; | ||||
import { Alert } from 'sonar-ui-common/components/ui/Alert'; | |||||
import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; | import DeferredSpinner from 'sonar-ui-common/components/ui/DeferredSpinner'; | ||||
import { translate } from 'sonar-ui-common/helpers/l10n'; | import { translate } from 'sonar-ui-common/helpers/l10n'; | ||||
import { | import { | ||||
<div className="page-description"> | <div className="page-description"> | ||||
<p>{translate('marketplace.page.plugins.description')}</p> | <p>{translate('marketplace.page.plugins.description')}</p> | ||||
{currentEdition !== EditionKey.community && ( | {currentEdition !== EditionKey.community && ( | ||||
<p className="spacer-top"> | |||||
<Alert className="spacer-top" variant="info"> | |||||
<FormattedMessage | <FormattedMessage | ||||
id="marketplace.page.plugins.description2" | id="marketplace.page.plugins.description2" | ||||
defaultMessage={translate('marketplace.page.plugins.description2')} | defaultMessage={translate('marketplace.page.plugins.description2')} | ||||
) | ) | ||||
}} | }} | ||||
/> | /> | ||||
</p> | |||||
</Alert> | |||||
)} | )} | ||||
</div> | </div> | ||||
</header> | </header> |
<p> | <p> | ||||
marketplace.page.plugins.description | marketplace.page.plugins.description | ||||
</p> | </p> | ||||
<p | |||||
<Alert | |||||
className="spacer-top" | className="spacer-top" | ||||
variant="info" | |||||
> | > | ||||
<FormattedMessage | <FormattedMessage | ||||
defaultMessage="marketplace.page.plugins.description2" | defaultMessage="marketplace.page.plugins.description2" | ||||
} | } | ||||
} | } | ||||
/> | /> | ||||
</p> | |||||
</Alert> | |||||
</div> | </div> | ||||
</header> | </header> | ||||
<PluginRiskConsentBox | <PluginRiskConsentBox | ||||
<p> | <p> | ||||
marketplace.page.plugins.description | marketplace.page.plugins.description | ||||
</p> | </p> | ||||
<p | |||||
<Alert | |||||
className="spacer-top" | className="spacer-top" | ||||
variant="info" | |||||
> | > | ||||
<FormattedMessage | <FormattedMessage | ||||
defaultMessage="marketplace.page.plugins.description2" | defaultMessage="marketplace.page.plugins.description2" | ||||
} | } | ||||
} | } | ||||
/> | /> | ||||
</p> | |||||
</Alert> | |||||
</div> | </div> | ||||
</header> | </header> | ||||
<PluginRiskConsentBox | <PluginRiskConsentBox |
marketplace.risk_consent.title=Installation of plugins | marketplace.risk_consent.title=Installation of plugins | ||||
marketplace.risk_consent.description=Plugins are not provided by SonarSource and are therefore installed at your own risk. SonarSource disclaims all liability for installing and using such plugins. | marketplace.risk_consent.description=Plugins are not provided by SonarSource and are therefore installed at your own risk. SonarSource disclaims all liability for installing and using such plugins. | ||||
marketplace.risk_consent.installation=You can install plugins directly from the list below after you acknowledge the risk. | marketplace.risk_consent.installation=You can install plugins directly from the list below after you acknowledge the risk. | ||||
marketplace.risk_consent.action=I understand the risk. | |||||
marketplace.risk_consent.action=I understand the risk | |||||
plugin_risk_consent.title=Installation of plugins | plugin_risk_consent.title=Installation of plugins | ||||
plugin_risk_consent.description=A plugin has been detected. | plugin_risk_consent.description=A plugin has been detected. |