comments and variable names

Summary:
renaming across the app:
- comments
- variable names
- constants

Reviewed By: passy

Differential Revision: D9861792

fbshipit-source-id: 72dea05d1427b1dc0f54a7865cc0ecffd69bdb27
This commit is contained in:
Daniel Büchele
2018-09-18 06:38:25 -07:00
committed by Facebook Github Bot
parent df0a0da744
commit e9490ca3b4
13 changed files with 28 additions and 28 deletions

View File

@@ -102,7 +102,7 @@ export default class AutoUpdateVersion extends Component<{}, State> {
<span
tabIndex={-1}
role="button"
title="Update available. Restart Sonar."
title="Update available. Restart Flipper."
onClick={remote.autoUpdater.quitAndInstall}>
<Glyph color={colors.light30} name="breaking-news" />
</span>

View File

@@ -23,7 +23,7 @@ const {spawn} = require('child_process');
const path = require('path');
const {app, shell} = require('electron').remote;
const SONAR_PLUGIN_PATH = path.join(app.getPath('home'), '.flipper');
const FLIPPER_PLUGIN_PATH = path.join(app.getPath('home'), '.flipper');
const DYNAMIC_PLUGINS = JSON.parse(window.process.env.PLUGINS || '[]');
type NPMModule = {
@@ -133,7 +133,7 @@ const getLatestVersion = (name: string): Promise<NPMModule> => {
const getPluginList = (): Promise<Array<NPMModule>> => {
return fetch(
'http://registry.npmjs.org/-/v1/search?text=keywords:sonar&size=250',
'http://registry.npmjs.org/-/v1/search?text=keywords:flipper&size=250',
)
.then(res => res.json())
.then(res => res.objects.map(o => o.package));
@@ -161,7 +161,7 @@ class PluginItem extends PureComponent<
const {name, status: initialStatus} = this.props.plugin;
this.setState({working: true});
const npm = spawn('npm', [action, name], {
cwd: SONAR_PLUGIN_PATH,
cwd: FLIPPER_PLUGIN_PATH,
});
npm.stderr.on('data', e => {
@@ -203,7 +203,7 @@ class PluginItem extends PureComponent<
<FlexRow>
{managed ? (
<Text size="0.9em" color={colors.light30}>
This plugin is not managed by Sonar, but loaded from{' '}
This plugin is not managed by Flipper, but loaded from{' '}
<Text size="1em" code={true}>
{rootDir}
</Text>
@@ -255,7 +255,7 @@ class PluginManager extends PureComponent<Props, State> {
plugins: DYNAMIC_PLUGINS.reduce((acc, plugin) => {
acc[plugin.name] = {
...plugin,
managed: !(plugin.entry, '').startsWith(SONAR_PLUGIN_PATH),
managed: !(plugin.entry, '').startsWith(FLIPPER_PLUGIN_PATH),
status: 'installed',
};
return acc;

View File

@@ -133,7 +133,7 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
onClick={() =>
shell.openExternal('https://fbflipper.com/docs/understand.html')
}>
<Icon size={20} name="rocket" color={brandColors.Sonar} />
<Icon size={20} name="rocket" color={brandColors.Flipper} />
<FlexColumn>
<ItemTitle>Using Flipper</ItemTitle>
<ItemSubTitle>
@@ -147,7 +147,7 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
'https://fbflipper.com/docs/create-plugin.html',
)
}>
<Icon size={20} name="magic-wand" color={brandColors.Sonar} />
<Icon size={20} name="magic-wand" color={brandColors.Flipper} />
<FlexColumn>
<ItemTitle>Create your own plugin</ItemTitle>
<ItemSubTitle>Get started with these pointers</ItemSubTitle>
@@ -159,7 +159,7 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
'https://fbflipper.com/docs/getting-started.html',
)
}>
<Icon size={20} name="tools" color={brandColors.Sonar} />
<Icon size={20} name="tools" color={brandColors.Flipper} />
<FlexColumn>
<ItemTitle>Add Flipper support to your app</ItemTitle>
<ItemSubTitle>Get started with these pointers</ItemSubTitle>
@@ -169,7 +169,7 @@ export default class WelcomeScreen extends PureComponent<Props, State> {
onClick={() =>
shell.openExternal('https://github.com/facebook/flipper/issues')
}>
<Icon size={20} name="posts" color={brandColors.Sonar} />
<Icon size={20} name="posts" color={brandColors.Flipper} />
<FlexColumn>
<ItemTitle>Contributing and Feedback</ItemTitle>
<ItemSubTitle>