Skip to content

Commit

Permalink
revert names for backends
Browse files Browse the repository at this point in the history
  • Loading branch information
talves committed Mar 18, 2019
1 parent 9611b19 commit d659713
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 28 deletions.
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-bitbucket/src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Control from './implementation';
import BitbucketBackend from './implementation';
import API from './API';
import AuthenticationPage from './AuthenticationPage';

export const NetlifyCmsBackendBitbucket = {
Control,
BitbucketBackend,
API,
AuthenticationPage,
};
export { Control, API, AuthenticationPage };
export { BitbucketBackend, API, AuthenticationPage };
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import jwtDecode from 'jwt-decode';
import { fromPairs, get, pick, intersection, unzip } from 'lodash';
import ini from 'ini';
import { APIError, getBlobSHA, unsentRequest } from 'netlify-cms-lib-util';
import { Control as GitHubBackend } from 'netlify-cms-backend-github';
import { Control as GitLabBackend } from 'netlify-cms-backend-gitlab';
import { Control as BitbucketBackend, API as BitBucketAPI } from 'netlify-cms-backend-bitbucket';
import { GitHubBackend } from 'netlify-cms-backend-github';
import { GitLabBackend } from 'netlify-cms-backend-gitlab';
import { BitbucketBackend, API as BitBucketAPI } from 'netlify-cms-backend-bitbucket';
import GitHubAPI from './GitHubAPI';
import GitLabAPI from './GitLabAPI';
import AuthenticationPage from './AuthenticationPage';
Expand Down
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-git-gateway/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Control from './implementation';
import GitGatewayBackend from './implementation';
import AuthenticationPage from './AuthenticationPage';

export const NetlifyCmsBackendGitGateway = {
Control,
GitGatewayBackend,
AuthenticationPage,
};
export { Control, AuthenticationPage };
export { GitGatewayBackend, AuthenticationPage };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-github/src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Control from './implementation';
import GitHubBackend from './implementation';
import API from './API';
import AuthenticationPage from './AuthenticationPage';

export const NetlifyCmsBackendGithub = {
Control,
GitHubBackend,
API,
AuthenticationPage,
};
export { Control, API, AuthenticationPage };
export { GitHubBackend, API, AuthenticationPage };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-gitlab/src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Control from './implementation';
import GitLabBackend from './implementation';
import API from './API';
import AuthenticationPage from './AuthenticationPage';

export const NetlifyCmsBackendGitlab = {
Control,
GitLabBackend,
API,
AuthenticationPage,
};
export { Control, API, AuthenticationPage };
export { GitLabBackend, API, AuthenticationPage };
6 changes: 3 additions & 3 deletions packages/netlify-cms-backend-test/src/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Control from './implementation';
import TestBackend from './implementation';
import AuthenticationPage from './AuthenticationPage';

export const NetlifyCmsBackendTest = {
Control,
TestBackend,
AuthenticationPage,
};
export { Control, AuthenticationPage };
export { TestBackend, AuthenticationPage };
20 changes: 10 additions & 10 deletions packages/netlify-cms/src/backends.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { registerBackend } from 'netlify-cms-core/src';
import { Control as NetlifyCmsBackendGithub } from 'netlify-cms-backend-github/src';
import { Control as NetlifyCmsBackendGitlab } from 'netlify-cms-backend-gitlab/src';
import { Control as NetlifyCmsBackendGitGateway } from 'netlify-cms-backend-git-gateway/src';
import { Control as NetlifyCmsBackendBitbucket } from 'netlify-cms-backend-bitbucket/src';
import { Control as NetlifyCmsBackendTest } from 'netlify-cms-backend-test/src';
import { GitHubBackend } from 'netlify-cms-backend-github/src';
import { GitLabBackend } from 'netlify-cms-backend-gitlab/src';
import { GitGatewayBackend } from 'netlify-cms-backend-git-gateway/src';
import { BitbucketBackend } from 'netlify-cms-backend-bitbucket/src';
import { TestBackend } from 'netlify-cms-backend-test/src';

registerBackend('git-gateway', NetlifyCmsBackendGitGateway);
registerBackend('github', NetlifyCmsBackendGithub);
registerBackend('gitlab', NetlifyCmsBackendGitlab);
registerBackend('bitbucket', NetlifyCmsBackendBitbucket);
registerBackend('test-repo', NetlifyCmsBackendTest);
registerBackend('git-gateway', GitGatewayBackend);
registerBackend('github', GitHubBackend);
registerBackend('gitlab', GitLabBackend);
registerBackend('bitbucket', BitbucketBackend);
registerBackend('test-repo', TestBackend);

0 comments on commit d659713

Please sign in to comment.