From 637740fb682629d84d66c5f7c59b0a4acf2f1ad1 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 3 Oct 2017 15:53:33 +0200 Subject: [PATCH] SONAR-9378 finish renaming in web app --- .../js/app/components/DefaultHelmetContainer.js | 8 +++----- .../src/main/js/app/components/GlobalFooter.js | 10 +++++----- .../js/app/components/GlobalFooterContainer.js | 2 +- ...arQubeDotCom.js => GlobalFooterSonarCloud.js} | 2 +- .../components/__tests__/GlobalFooter-test.js | 6 +++--- ...om-test.js => GlobalFooterSonarCloud-test.js} | 4 ++-- .../__snapshots__/GlobalFooter-test.js.snap | 2 +- ....snap => GlobalFooterSonarCloud-test.js.snap} | 0 .../main/js/apps/about/components/AboutApp.js | 12 ++++++------ ...rSonarQubeDotCom.js => AboutAppSonarCloud.js} | 16 ++++++++-------- ...Loader.js => AboutAppSonarCloudLazyLoader.js} | 16 ++++++++-------- ...eDotCom.js => AboutQualityModelSonarCloud.js} | 14 +++++++------- ...onarQubeDotCom.js => AboutRulesSonarCloud.js} | 2 +- ...orSonarQubeDotCom.js => BugIconSonarCloud.js} | 2 +- ...rQubeDotCom.js => CodeSmellIconSonarCloud.js} | 2 +- ...ubeDotCom.js => EntryIssueTypesSonarCloud.js} | 14 +++++++------- ...eDotCom.js => VulnerabilityIconSonarCloud.js} | 2 +- ...-dot-com-styles.css => sonarcloud-styles.css} | 0 18 files changed, 56 insertions(+), 58 deletions(-) rename server/sonar-web/src/main/js/app/components/{GlobalFooterForSonarQubeDotCom.js => GlobalFooterSonarCloud.js} (96%) rename server/sonar-web/src/main/js/app/components/__tests__/{GlobalFooterForSonarQubeDotCom-test.js => GlobalFooterSonarCloud-test.js} (86%) rename server/sonar-web/src/main/js/app/components/__tests__/__snapshots__/{GlobalFooterForSonarQubeDotCom-test.js.snap => GlobalFooterSonarCloud-test.js.snap} (100%) rename server/sonar-web/src/main/js/apps/about/components/{AboutAppForSonarQubeDotCom.js => AboutAppSonarCloud.js} (86%) rename server/sonar-web/src/main/js/apps/about/components/{AboutAppForSonarQubeDotComLazyLoader.js => AboutAppSonarCloudLazyLoader.js} (68%) rename server/sonar-web/src/main/js/apps/about/components/{AboutQualityModelForSonarQubeDotCom.js => AboutQualityModelSonarCloud.js} (83%) rename server/sonar-web/src/main/js/apps/about/components/{AboutRulesForSonarQubeDotCom.js => AboutRulesSonarCloud.js} (97%) rename server/sonar-web/src/main/js/apps/about/components/{BugIconForSonarQubeDotCom.js => BugIconSonarCloud.js} (97%) rename server/sonar-web/src/main/js/apps/about/components/{CodeSmellIconForSonarQubeDotCom.js => CodeSmellIconSonarCloud.js} (97%) rename server/sonar-web/src/main/js/apps/about/components/{EntryIssueTypesForSonarQubeDotCom.js => EntryIssueTypesSonarCloud.js} (87%) rename server/sonar-web/src/main/js/apps/about/components/{VulnerabilityIconForSonarQubeDotCom.js => VulnerabilityIconSonarCloud.js} (97%) rename server/sonar-web/src/main/js/apps/about/{sonarqube-dot-com-styles.css => sonarcloud-styles.css} (100%) diff --git a/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js b/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js index 8a3be89e41f..0ba3947f417 100644 --- a/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js +++ b/server/sonar-web/src/main/js/app/components/DefaultHelmetContainer.js @@ -22,13 +22,11 @@ import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { getGlobalSettingValue } from '../../store/rootReducer'; -function DefaultHelmetContainer({ children, sonarqubeDotCom }) { +function DefaultHelmetContainer({ children, onSonarCloud }) { return (
{children}
@@ -36,7 +34,7 @@ function DefaultHelmetContainer({ children, sonarqubeDotCom }) { } const mapStateToProps = state => ({ - sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled') + onSonarCloud: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled') }); export default connect(mapStateToProps)(DefaultHelmetContainer); diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooter.js b/server/sonar-web/src/main/js/app/components/GlobalFooter.js index 2f104f6958f..6cd008827fa 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooter.js +++ b/server/sonar-web/src/main/js/app/components/GlobalFooter.js @@ -20,7 +20,7 @@ // @flow import React from 'react'; import { Link } from 'react-router'; -import GlobalFooterForSonarQubeDotCom from './GlobalFooterForSonarQubeDotCom'; +import GlobalFooterSonarCloud from './GlobalFooterSonarCloud'; import GlobalFooterBranding from './GlobalFooterBranding'; import { translate, translateWithParameters } from '../../helpers/l10n'; @@ -28,16 +28,16 @@ import { translate, translateWithParameters } from '../../helpers/l10n'; type Props = { hideLoggedInInfo?: boolean, productionDatabase: boolean, - sonarqubeDotCom?: { value: string }, + onSonarCloud?: { value: string }, sonarqubeVersion?: string }; */ export default function GlobalFooter( - { hideLoggedInInfo, productionDatabase, sonarqubeDotCom, sonarqubeVersion } /*: Props */ + { hideLoggedInInfo, productionDatabase, onSonarCloud, sonarqubeVersion } /*: Props */ ) { - if (sonarqubeDotCom && sonarqubeDotCom.value === 'true') { - return ; + if (onSonarCloud && onSonarCloud.value === 'true') { + return ; } return ( diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js b/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js index 4a2a7725cef..8d68f322369 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js +++ b/server/sonar-web/src/main/js/app/components/GlobalFooterContainer.js @@ -25,7 +25,7 @@ import GlobalFooter from './GlobalFooter'; const mapStateToProps = state => ({ sonarqubeVersion: getAppState(state).version, productionDatabase: getAppState(state).productionDatabase, - sonarqubeDotCom: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled') + onSonarCloud: getGlobalSettingValue(state, 'sonar.sonarcloud.enabled') }); export default connect(mapStateToProps)(GlobalFooter); diff --git a/server/sonar-web/src/main/js/app/components/GlobalFooterForSonarQubeDotCom.js b/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.js similarity index 96% rename from server/sonar-web/src/main/js/app/components/GlobalFooterForSonarQubeDotCom.js rename to server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.js index f05bb330fda..d81f101e78b 100644 --- a/server/sonar-web/src/main/js/app/components/GlobalFooterForSonarQubeDotCom.js +++ b/server/sonar-web/src/main/js/app/components/GlobalFooterSonarCloud.js @@ -22,7 +22,7 @@ import React from 'react'; import { Link } from 'react-router'; import { translate } from '../../helpers/l10n'; -export default function GlobalFooterForSonarQubeDotCom() { +export default function GlobalFooterSonarCloud() { return (