__html: translate('onboarding.analysis.sq_scanner.execute.text')
}}
/>
- <Command command={command1} isWindows={props.os === 'win'} />
- <Command command={command2} isWindows={props.os === 'win'} />
+ <Command command={command1} isOneLine={true} />
+ <Command command={command2} isOneLine={props.os === 'win'} />
<p
className="big-spacer-top markdown"
dangerouslySetInnerHTML={{ __html: translate('onboarding.analysis.sq_scanner.docs') }}
/*::
type Props = {
command: string | Array<?string>,
- isWindows?: boolean
+ isOneLine?: boolean
};
*/
/*:: props: Props; */
render() {
- const { command, isWindows } = this.props;
+ const { command, isOneLine } = this.props;
const commandArray = Array.isArray(command) ? command.filter(line => line != null) : [command];
- const finalCommand = isWindows ? commandArray.join(' ') : commandArray.join(s);
+ const finalCommand = isOneLine ? commandArray.join(' ') : commandArray.join(s);
return (
<div
- className={classNames('onboarding-command', { 'onboarding-command-windows': isWindows })}>
+ className={classNames('onboarding-command', { 'onboarding-command-oneline': isOneLine })}>
<pre>{finalCommand}</pre>
<ClipboardButton copyValue={finalCommand} tooltipPlacement="top" />
</div>
__html: translate('onboarding.analysis.msbuild.execute.text')
}}
/>
- <Command command={command1} isWindows={true} />
- <Command command={command2} isWindows={true} />
- <Command command={command3} isWindows={true} />
+ <Command command={command1} isOneLine={true} />
+ <Command command={command2} isOneLine={true} />
+ <Command command={command3} isOneLine={true} />
<p
className="big-spacer-top markdown"
dangerouslySetInnerHTML={{ __html: translate('onboarding.analysis.msbuild.docs') }}
__html: translate('onboarding.analysis.msbuild.execute.text')
}}
/>
- <Command command={command1} isWindows={true} />
- <Command command={command2} isWindows={true} />
- <Command command={command3} isWindows={true} />
+ <Command command={command1} isOneLine={true} />
+ <Command command={command2} isOneLine={true} />
+ <Command command={command3} isOneLine={true} />
<p
className="big-spacer-top markdown"
dangerouslySetInnerHTML={{ __html: translate('onboarding.analysis.msbuild.docs') }}
__html: translate('onboarding.analysis.sq_scanner.execute.text')
}}
/>
- <Command command={command} isWindows={props.os === 'win'} />
+ <Command command={command} isOneLine={props.os === 'win'} />
<p
className="big-spacer-top markdown"
dangerouslySetInnerHTML={{ __html: translate('onboarding.analysis.sq_scanner.docs') }}
/>
<Command
command="build-wrapper-win-x86-64.exe --out-dir bw-output make clean all"
- isWindows={true}
+ isOneLine={true}
/>
<Command
command={
"-Dsonar.login=token",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<p
className="big-spacer-top markdown"
/>
<Command
command="build-wrapper-linux-x86-64 --out-dir bw-output make clean all"
- isWindows={false}
+ isOneLine={true}
/>
<Command
command={
"-Dsonar.login=token",
]
}
- isWindows={false}
+ isOneLine={false}
/>
<p
className="big-spacer-top markdown"
/>
<Command
command="build-wrapper-linux-x86-64 --out-dir bw-output make clean all"
- isWindows={false}
+ isOneLine={true}
/>
<Command
command={
"-Dsonar.login=token",
]
}
- isWindows={false}
+ isOneLine={false}
/>
<p
className="big-spacer-top markdown"
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<Command
command="MsBuild.exe /t:Rebuild"
- isWindows={true}
+ isOneLine={true}
/>
<Command
command={
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<p
className="big-spacer-top markdown"
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<Command
command="MsBuild.exe /t:Rebuild"
- isWindows={true}
+ isOneLine={true}
/>
<Command
command={
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<p
className="big-spacer-top markdown"
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<Command
command="build-wrapper-win-x86-64.exe --out-dir bw-output MsBuild.exe /t:Rebuild"
- isWindows={true}
+ isOneLine={true}
/>
<Command
command={
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<p
className="big-spacer-top markdown"
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<Command
command="build-wrapper-win-x86-64.exe --out-dir bw-output MsBuild.exe /t:Rebuild"
- isWindows={true}
+ isOneLine={true}
/>
<Command
command={
"/d:sonar.login=\\"token\\"",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<p
className="big-spacer-top markdown"
"-Dsonar.login=token",
]
}
- isWindows={true}
+ isOneLine={true}
/>
<p
className="big-spacer-top markdown"
"-Dsonar.login=token",
]
}
- isWindows={false}
+ isOneLine={false}
/>
<p
className="big-spacer-top markdown"
"-Dsonar.login=token",
]
}
- isWindows={false}
+ isOneLine={false}
/>
<p
className="big-spacer-top markdown"
color: #404040;
}
-.onboarding-command-windows pre {
+.onboarding-command-oneline pre {
padding-bottom: 40px;
}
-.onboarding-command-windows button {
+.onboarding-command-oneline button {
top: auto;
top: 40px;
}