Skip to content

Commit 2e79dd1

Browse files
jleveuglejleveugle
authored andcommitted
fix: add data-, ngInject and strict-di
1 parent fa156e1 commit 2e79dd1

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

packages/manager/apps/public-cloud/src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8" />
66
</head>
77
<body class="h-100">
8-
<div data-ng-app="ovhStack" class="h-100 d-flex flex-column overflow-hidden" data-ng-controller="PublicCloudController as $ctrl">
8+
<div data-ng-app="ovhStack" data-ng-strict-di class="h-100 d-flex flex-column overflow-hidden" data-ng-controller="PublicCloudController as $ctrl">
99
<div>
1010
<ovh-manager-navbar></ovh-manager-navbar>
1111
</div>
@@ -15,7 +15,7 @@
1515
<div class="col-md-2 p-0 h-100 d-flex flex-column" data-ng-if="$ctrl.shouldDisplaySidebar()">
1616
<cloud-sidebar></cloud-sidebar>
1717
</div>
18-
<div class="h-100 d-flex" data-ng-class="{ 'col-md-10': $ctrl.shouldDisplaySidebar(), 'col-md-12': !$ctrl.shouldDisplaySidebar() }" ui-view>
18+
<div class="h-100 d-flex" data-ng-class="{ 'col-md-10': $ctrl.shouldDisplaySidebar(), 'col-md-12': !$ctrl.shouldDisplaySidebar() }" data-ui-view>
1919
<div class="m-auto text-center">
2020
<span class="oui-icon oui-icon-clock-wait mb-4" style="font-size: 5rem;"></span>
2121
<h1 class="font-weight-bold" data-translate="public_cloud_coming_soon"></h1>

packages/manager/apps/public-cloud/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'script-loader!jquery'; // eslint-disable-line
22
import 'script-loader!lodash'; // eslint-disable-line
33

44
import angular from 'angular';
5-
import core from '@ovh-ux/manager-core';
5+
import ovhManagerCore from '@ovh-ux/manager-core';
66
import ngOvhApiWrappers from '@ovh-ux/ng-ovh-api-wrappers';
77

88
import 'ovh-ui-kit/dist/oui.css';
@@ -18,7 +18,7 @@ import service from './index.service';
1818

1919
angular
2020
.module('ovhStack', [
21-
core,
21+
ovhManagerCore,
2222
navbar,
2323
ngOvhApiWrappers,
2424
sidebar,

packages/manager/apps/public-cloud/src/index.service.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import _ from 'lodash';
22

3-
export default /* @ngInject */ class PublicCloud {
3+
export default class PublicCloud {
4+
/* @ngInject */
45
constructor(iceberg) {
56
this.iceberg = iceberg;
67
}
@@ -10,7 +11,7 @@ export default /* @ngInject */ class PublicCloud {
1011
.iceberg('/cloud/project')
1112
.query()
1213
.expand('CachedObjectList-Cursor')
13-
.sort('description') // Doesn't work as long as cache is not enaled
14+
.sort('description') // Doesn't work as long as cache is not enabled
1415
.execute()
1516
.$promise
1617
.then(projects => _.sortBy(projects, 'description')); // Fallback

packages/manager/apps/public-cloud/src/sidebar/project-list/project-list.controller.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
export default /* @ngInject */ class ProjectListController {
1+
export default class ProjectListController {
2+
/* @ngInject */
23
constructor(publicCloud, iceberg) {
34
this.publicCloud = publicCloud;
45
this.iceberg = iceberg;

0 commit comments

Comments
 (0)