Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6902cb

Browse files
committed
Shuffle some CSS class names a little
1 parent a5dbc8b commit a6902cb

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

lib/controllers/root-controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export default class RootController extends React.Component {
292292
<PaneItem
293293
workspace={this.props.workspace}
294294
uriPattern={GitHubTabItem.uriPattern}
295-
className="github-GithubTabController-root">
295+
className="github-GitHub-root">
296296
{({itemHolder}) => (
297297
<GitHubTabItem
298298
ref={itemHolder.setter}

lib/github-package.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ export default class GithubPackage {
342342
this.gitTabStubItem = this.gitTabStubItem || item;
343343
break;
344344
case 'atom-github://dock-item/github':
345-
item = this.createGithubTabControllerStub(uri);
345+
item = this.createGitHubStub(uri);
346346
this.githubTabStubItem = this.githubTabStubItem || item;
347347
break;
348348
default:
@@ -361,8 +361,8 @@ export default class GithubPackage {
361361
}, uri);
362362
}
363363

364-
createGithubTabControllerStub(uri) {
365-
return StubItem.create('github-tab-controller', {
364+
createGitHubStub(uri) {
365+
return StubItem.create('github', {
366366
title: 'GitHub (preview)',
367367
}, uri);
368368
}

lib/views/github-tab-view.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export default class GitHubTabView extends React.Component {
3030

3131
render() {
3232
return (
33-
<div className="github-GithubTabController" ref={this.props.rootHolder.setter}>
34-
<div className="github-GithubTabController-content">
33+
<div className="github-GitHub" ref={this.props.rootHolder.setter}>
34+
<div className="github-GitHub-content">
3535
{this.renderRemote()}
3636
</div>
3737
</div>
@@ -73,7 +73,7 @@ export default class GitHubTabView extends React.Component {
7373
// No remotes available
7474
// TODO: display a view that lets you create a repository on GitHub
7575
return (
76-
<div className="github-GithubTabController-no-remotes">
76+
<div className="github-GitHub-noRemotes">
7777
This repository does not have any remotes hosted at GitHub.com.
7878
</div>
7979
);

styles/github-controller.less renamed to styles/github-tab.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
.github-StubItem-github-tab-controller,
2-
.github-GithubTabController-root {
1+
.github-StubItem-github,
2+
.github-GitHub-root {
33
flex: 1;
44
display: flex;
55
}
66

7-
.github-GithubTabController {
7+
.github-Github {
88
flex: 1;
99
min-width: 0;
1010
display: flex;
@@ -16,7 +16,7 @@
1616
flex-direction: column;
1717
}
1818

19-
&-no-remotes {
19+
&-noRemotes {
2020
margin: 10px;
2121
font-size: @font-size * 1.25;
2222
}

test/controllers/github-tab-controller.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ import React from 'react';
22
import {shallow} from 'enzyme';
33

44
import {gitHubTabControllerProps} from '../fixtures/props/github-tab-props';
5-
import GithubTabController from '../../lib/controllers/github-tab-controller';
5+
import GitHubTabController from '../../lib/controllers/github-tab-controller';
66
import Repository from '../../lib/models/repository';
77
import BranchSet from '../../lib/models/branch-set';
88
import Branch, {nullBranch} from '../../lib/models/branch';
99
import RemoteSet from '../../lib/models/remote-set';
1010
import Remote from '../../lib/models/remote';
1111

12-
describe('GithubTabController', function() {
12+
describe('GitHubTabController', function() {
1313
let atomEnv;
1414

1515
beforeEach(function() {
@@ -26,7 +26,7 @@ describe('GithubTabController', function() {
2626
...overrideProps,
2727
};
2828

29-
return <GithubTabController {...gitHubTabControllerProps(atomEnv, props.repository, props)} />;
29+
return <GitHubTabController {...gitHubTabControllerProps(atomEnv, props.repository, props)} />;
3030
}
3131

3232
describe('derived view props', function() {

test/items/github-tab-item.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ describe('GitHubTabItem', function() {
6969
documentActiveElement: () => activeElement,
7070
}));
7171
const item = await atomEnv.workspace.open(GitHubTabItem.buildURI());
72-
await assert.async.isTrue(wrapper.update().find('.github-GithubTabController').exists());
72+
await assert.async.isTrue(wrapper.update().find('.github-GitHub').exists());
7373

7474
assert.isFalse(item.hasFocus());
7575

76-
activeElement = wrapper.find('.github-GithubTabController').getDOMNode();
76+
activeElement = wrapper.find('.github-GitHub').getDOMNode();
7777
assert.isTrue(item.hasFocus());
7878
});
7979
});

test/views/github-tab-view.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ describe('GitHubTabView', function() {
5656

5757
it('renders a static message when no remotes are available', function() {
5858
const wrapper = shallow(buildApp({currentRemote: nullRemote, manyRemotesAvailable: false}));
59-
assert.isTrue(wrapper.find('.github-GithubTabController-no-remotes').exists());
59+
assert.isTrue(wrapper.find('.github-GitHub-noRemotes').exists());
6060
});
6161
});

0 commit comments

Comments
 (0)