From 5fd261381aedac50945d543ce4f62643e6cb212a Mon Sep 17 00:00:00 2001 From: Cyrille Bourgois Date: Tue, 19 Jul 2022 11:11:33 +0200 Subject: [PATCH] fix(app): remove unused dependencies (#7593) ref: MANAGER-9752 Signed-off-by: Cyrille Bourgois --- .../manager/tools/sao-ovh-manager-app/lib/update-pkg.js | 2 -- .../tools/sao-ovh-manager-app/template/src/app.module.js | 4 ---- .../manager/tools/sao-ovh-manager-app/template/src/index.js | 6 ------ 3 files changed, 12 deletions(-) diff --git a/packages/manager/tools/sao-ovh-manager-app/lib/update-pkg.js b/packages/manager/tools/sao-ovh-manager-app/lib/update-pkg.js index 9f6b131cf273..d74e5b9995f0 100644 --- a/packages/manager/tools/sao-ovh-manager-app/lib/update-pkg.js +++ b/packages/manager/tools/sao-ovh-manager-app/lib/update-pkg.js @@ -24,7 +24,6 @@ module.exports = ({ name, description, regions }) => ({ '@ovh-ux/manager-error-page': '^2.0.0', [`@ovh-ux/manager-${name}`]: '^0.0.0 || ^1.0.0', '@ovh-ux/manager-ng-layout-helpers': '^2.0.0', - '@ovh-ux/manager-preloader': '^1.1.0', '@ovh-ux/ng-ovh-api-wrappers': '^4.0.4', '@ovh-ux/ng-ovh-http': '^5.0.0', '@ovh-ux/ng-ovh-request-tagger': '^1.1.0', @@ -32,7 +31,6 @@ module.exports = ({ name, description, regions }) => ({ '@ovh-ux/ng-ovh-swimming-poll': '^5.0.0', '@ovh-ux/ng-translate-async-loader': '^2.1.0', '@ovh-ux/ng-ui-router-breadcrumb': '^1.0.0', - '@ovh-ux/ng-ui-router-line-progress': '^1.2.2', '@ovh-ux/ufrontend': '^1.1.1 || ^2.0.0', '@ovh-ux/ui-kit': '^4.4.3', '@uirouter/angularjs': '^1.0.23', diff --git a/packages/manager/tools/sao-ovh-manager-app/template/src/app.module.js b/packages/manager/tools/sao-ovh-manager-app/template/src/app.module.js index cc3b8cfa8be6..dc45365bdfd3 100644 --- a/packages/manager/tools/sao-ovh-manager-app/template/src/app.module.js +++ b/packages/manager/tools/sao-ovh-manager-app/template/src/app.module.js @@ -2,8 +2,6 @@ import angular from 'angular'; import uiRouter from '@uirouter/angularjs'; import { registerCoreModule } from '@ovh-ux/manager-core'; -import { detach as detachPreloader } from '@ovh-ux/manager-preloader'; -import ngOvhUiRouterLineProgress from '@ovh-ux/ng-ui-router-line-progress'; import ngUiRouterBreadcrumb from '@ovh-ux/ng-ui-router-breadcrumb'; import errorPage from './error'; @@ -19,7 +17,6 @@ export default (containerEl, environment) => { moduleName, [ registerCoreModule(environment), - ngOvhUiRouterLineProgress, ngUiRouterBreadcrumb, uiRouter, errorPage, @@ -38,7 +35,6 @@ export default (containerEl, environment) => { .run( /* @ngInject */($rootScope, $transitions) => { const unregisterHook = $transitions.onSuccess({}, () => { - detachPreloader(); $rootScope.$broadcast('app:started'); unregisterHook(); }); diff --git a/packages/manager/tools/sao-ovh-manager-app/template/src/index.js b/packages/manager/tools/sao-ovh-manager-app/template/src/index.js index 6a3e5e121a1e..10d2df9270e1 100644 --- a/packages/manager/tools/sao-ovh-manager-app/template/src/index.js +++ b/packages/manager/tools/sao-ovh-manager-app/template/src/index.js @@ -1,14 +1,8 @@ import 'script-loader!jquery'; // eslint-disable-line import 'core-js/stable'; import 'whatwg-fetch'; -import { - attach as attachPreloader, - displayMessage, -} from '@ovh-ux/manager-preloader'; import { registerApplication } from '@ovh-ux/ufrontend'; -import { findAvailableLocale, detectUserLocale } from '@ovh-ux/manager-config'; -attachPreloader(findAvailableLocale(detectUserLocale())); registerApplication('<%= name %>').then(({ environment }) => { environment.setVersion(__VERSION__);