Browse Source

SONAR-14736 Highlight that installing plugins is manual

tags/8.9.0.43852
Jeremy Davis 3 years ago
parent
commit
6954d3d1b7

+ 3
- 2
server/sonar-web/src/main/js/apps/marketplace/App.tsx View File

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>

+ 6
- 4
server/sonar-web/src/main/js/apps/marketplace/__tests__/__snapshots__/App-test.tsx.snap View File

<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

+ 1
- 1
sonar-core/src/main/resources/org/sonar/l10n/core.properties View File

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.

Loading…
Cancel
Save