-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(telephony.carrier.sip): add new module
ref: MANAGER-3210 Co-authored-by: Marie JONES <[email protected]> Co-authored-by: JeremyDec <[email protected]>
- Loading branch information
1 parent
f8b015a
commit c2d4efe
Showing
16 changed files
with
327 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...ges/manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/cdr/cdr.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import angular from 'angular'; | ||
|
||
// Module dependencies. | ||
import uiRouter from '@uirouter/angularjs'; | ||
import ovhManagerCarrierSip from '@ovh-ux/manager-carrier-sip'; | ||
|
||
// Routing and configuration. | ||
import routing from './cdr.routing'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSipDashboardCdr'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
ovhManagerCarrierSip, | ||
uiRouter, | ||
]) | ||
.config(routing); | ||
|
||
export default moduleName; |
8 changes: 8 additions & 0 deletions
8
...es/manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/cdr/cdr.routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('telecom.telephony.carrierSip.cdr', { | ||
url: '/cdr', | ||
views: { | ||
'@telecom.telephony.carrierSip': 'carrierSipCdr', | ||
}, | ||
}); | ||
}; |
25 changes: 25 additions & 0 deletions
25
packages/manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/cdr/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import angular from 'angular'; | ||
|
||
// Module dependencies. | ||
import uiRouter from '@uirouter/angularjs'; | ||
import oclazyload from 'oclazyload'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSipDashboardCdrLazyLoading'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
oclazyload, | ||
uiRouter, | ||
]) | ||
.config(/* @ngInject */($stateProvider) => { | ||
$stateProvider.state('telecom.telephony.carrierSip.cdr.**', { | ||
url: '/cdr', | ||
lazyLoad: ($transition$) => { | ||
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); | ||
|
||
return import('./cdr.module') | ||
.then(mod => $ocLazyLoad.inject(mod.default || mod)); | ||
}, | ||
}); | ||
}); | ||
export default moduleName; |
22 changes: 22 additions & 0 deletions
22
...s/manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/dashboard.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import angular from 'angular'; | ||
|
||
// Module dependencies. | ||
import uiRouter from '@uirouter/angularjs'; | ||
|
||
import cdr from './cdr'; | ||
import endpoints from './endpoints'; | ||
|
||
// Routing and configuration. | ||
import routing from './dashboard.routing'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSipDashboard'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
cdr, | ||
endpoints, | ||
uiRouter, | ||
]) | ||
.config(routing); | ||
|
||
export default moduleName; |
47 changes: 47 additions & 0 deletions
47
.../manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/dashboard.routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('telecom.telephony.carrierSip', { | ||
url: '/carrierSip/:serviceName', | ||
views: { | ||
'[email protected]': 'carrierSipDashboard', | ||
}, | ||
resolve: { | ||
billingAccount: /* @ngInject */ $transition$ => $transition$.params().billingAccount, | ||
billingLink: /* @ngInject */ ( | ||
$state, | ||
billingAccount, | ||
) => $state.href('telecom.telephony.billing', { billingAccount }), | ||
carrierSip: /* @ngInject */ ( | ||
billingAccount, | ||
CarrierSipService, | ||
serviceName, | ||
) => CarrierSipService.getCarrierSip(billingAccount, serviceName), | ||
cdrsLink: /* @ngInject */ ( | ||
$state, | ||
billingAccount, | ||
serviceName, | ||
) => $state.href('telecom.telephony.carrierSip.cdr', { billingAccount, serviceName }), | ||
currentActiveLink: /* @ngInject */ ($transition$, $state) => () => $state | ||
.href($state.current.name, $transition$.params()), | ||
dashboardLink: /* @ngInject */ ( | ||
$state, | ||
billingAccount, | ||
serviceName, | ||
) => $state.href('telecom.telephony.carrierSip', { billingAccount, serviceName }), | ||
endpointsLink: /* @ngInject */ ( | ||
$state, | ||
billingAccount, | ||
serviceName, | ||
) => $state.href('telecom.telephony.carrierSip.endpoints', { billingAccount, serviceName }), | ||
serviceInfos: /* @ngInject */ ( | ||
CarrierSipService, | ||
serviceName, | ||
) => CarrierSipService.getServiceInfos(serviceName), | ||
serviceName: /* @ngInject */ $transition$ => $transition$.params().serviceName, | ||
settings: /* @ngInject */ ( | ||
billingAccount, | ||
CarrierSipService, | ||
serviceName, | ||
) => CarrierSipService.getSettings(billingAccount, serviceName), | ||
}, | ||
}); | ||
}; |
19 changes: 19 additions & 0 deletions
19
...apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/endpoints/endpoints.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import angular from 'angular'; | ||
|
||
// Module dependencies. | ||
import uiRouter from '@uirouter/angularjs'; | ||
import ovhManagerCarrierSip from '@ovh-ux/manager-carrier-sip'; | ||
|
||
// Routing and configuration. | ||
import routing from './endpoints.routing'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSipDashboardEndpoints'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
ovhManagerCarrierSip, | ||
uiRouter, | ||
]) | ||
.config(routing); | ||
|
||
export default moduleName; |
15 changes: 15 additions & 0 deletions
15
...pps/telecom/src/app/telecom/telephony/carrierSip/dashboard/endpoints/endpoints.routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('telecom.telephony.carrierSip.endpoints', { | ||
url: '/endpoints', | ||
views: { | ||
'@telecom.telephony.carrierSip': 'carrierSipEndpoints', | ||
}, | ||
resolve: { | ||
endpoints: /* @ngInject */ ( | ||
billingAccount, | ||
CarrierSipService, | ||
serviceName, | ||
) => CarrierSipService.getEndpoints(billingAccount, serviceName), | ||
}, | ||
}); | ||
}; |
26 changes: 26 additions & 0 deletions
26
...es/manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/endpoints/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import angular from 'angular'; | ||
|
||
// Module dependencies. | ||
import uiRouter from '@uirouter/angularjs'; | ||
import oclazyload from 'oclazyload'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSipDashboardEndpointsLazyLoading'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
oclazyload, | ||
uiRouter, | ||
]) | ||
.config(/* @ngInject */($stateProvider) => { | ||
$stateProvider.state('telecom.telephony.carrierSip.endpoints.**', { | ||
url: '/endpoints', | ||
lazyLoad: ($transition$) => { | ||
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); | ||
|
||
return import('./endpoints.module') | ||
.then(mod => $ocLazyLoad.inject(mod.default || mod)); | ||
}, | ||
}); | ||
}); | ||
|
||
export default moduleName; |
25 changes: 25 additions & 0 deletions
25
packages/manager/apps/telecom/src/app/telecom/telephony/carrierSip/dashboard/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import angular from 'angular'; | ||
|
||
// Module dependencies. | ||
import uiRouter from '@uirouter/angularjs'; | ||
import oclazyload from 'oclazyload'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSipDashboardLazyLoading'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
oclazyload, | ||
uiRouter, | ||
]) | ||
.config(/* @ngInject */($stateProvider) => { | ||
$stateProvider.state('telecom.telephony.carrierSip.**', { | ||
url: '/carrierSip', | ||
lazyLoad: ($transition$) => { | ||
const $ocLazyLoad = $transition$.injector().get('$ocLazyLoad'); | ||
|
||
return import('./dashboard.module') | ||
.then(mod => $ocLazyLoad.inject(mod.default || mod)); | ||
}, | ||
}); | ||
}); | ||
export default moduleName; |
15 changes: 15 additions & 0 deletions
15
packages/manager/apps/telecom/src/app/telecom/telephony/carrierSip/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import angular from 'angular'; | ||
import ovhManagerCarrierSip from '@ovh-ux/manager-carrier-sip'; | ||
|
||
// Module dependencies. | ||
import dashboard from './dashboard'; | ||
|
||
const moduleName = 'ovhManagerTelecomCarrierSip'; | ||
|
||
angular | ||
.module(moduleName, [ | ||
dashboard, | ||
ovhManagerCarrierSip, | ||
]); | ||
|
||
export default moduleName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.