提交 213d8601 编写于 作者: B bryk

Rename JS files from dot to underscore case

This is a required change because with dot case we cannot reference
other modules inside JSDoc `@type` annotations. For example, if you want
to reference `@type {./deploy.controller.FooType}` does not work,
because the compiler does not know whether `deploy` is a module or
`deploy.controller`. Changing dot case to undersocre, camel or dash case
solves this problem.

I decided to go with underscore case because this is what golang uses
(e.g., `foo_test.js`) so we'll have higher similarity of backend and
frontend codebases.
上级 942d6c35
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import ChromeController from './chrome.controller';
import ChromeController from './chrome_controller';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import chromeDirective from './chrome.directive';
import chromeDirective from './chrome_directive';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import stateConfig from './deploy.state';
import stateConfig from './deploy_state';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import DeployController from './deploy.controller';
import DeployController from './deploy_controller';
/**
......
......@@ -16,13 +16,13 @@
* @fileoverview Entry point module to the application. Loads and configures other modules needed
* to bootstrap the application.
*/
import chromeModule from './chrome/chrome.module';
import deployModule from './deploy/deploy.module';
import indexConfig from './index.config';
import routeConfig from './index.route';
import replicaSetDetailModule from './replicasetdetail/replicasetdetail.module';
import replicaSetListModule from './replicasetlist/replicasetlist.module';
import zerostateModule from './zerostate/zerostate.module';
import chromeModule from './chrome/chrome_module';
import deployModule from './deploy/deploy_module';
import indexConfig from './index_config';
import routeConfig from './index_route';
import replicaSetDetailModule from './replicasetdetail/replicasetdetail_module';
import replicaSetListModule from './replicasetlist/replicasetlist_module';
import zerostateModule from './zerostate/zerostate_module';
export default angular.module(
......
......@@ -18,7 +18,7 @@
*
* @final
*/
export default class ReplicaSetDetailsController {
export default class ReplicaSetDetailController {
/**
* @param {!angular.$log} $log
* @ngInject
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import stateConfig from './replicasetdetail.state';
import stateConfig from './replicasetdetail_state';
/**
......@@ -21,7 +21,7 @@ import stateConfig from './replicasetdetail.state';
* The view shows detailed view of a Replica Sets.
*/
export default angular.module(
'kubernetesDashboard.replicaSetDetails',
'kubernetesDashboard.replicaSetDetail',
[
'ngMaterial',
'ui.router',
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import ReplicaSetDetailController from './replicasetdetail.controller';
import ReplicaSetDetailController from './replicasetdetail_controller';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import stateConfig from './replicasetlist.state';
import stateConfig from './replicasetlist_state';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import ReplicaSetListController from './replicasetlist.controller';
import ReplicaSetListController from './replicasetlist_controller';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import stateConfig from './zerostate.state';
import stateConfig from './zerostate_state';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import ZeroStateController from './zerostate.controller';
import ZeroStateController from './zerostate_controller';
/**
......
......@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
import ZerostateController from 'zerostate/zerostate.controller';
import ZerostateController from 'zerostate/zerostate_controller';
describe('Main controller', () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册