diff --git a/client/spliting.js b/client/spliting.js deleted file mode 100644 index 6601929e4..000000000 --- a/client/spliting.js +++ /dev/null @@ -1,18 +0,0 @@ -export default { - client: - cb => require.ensure([], () => cb(require('client'))), - route: - cb => require.ensure([], () => cb(require('route'))), - item: - cb => require.ensure([], () => cb(require('item'))), - ticket: - cb => require.ensure([], () => cb(require('ticket'))), - order: - cb => require.ensure([], () => cb(require('order'))), - claim: - cb => require.ensure([], () => cb(require('claim'))), - agency: - cb => require.ensure([], () => cb(require('agency'))), - travel: - cb => require.ensure([], () => cb(require('travel'))) -}; diff --git a/client/auth/index.js b/front/auth/index.js similarity index 100% rename from client/auth/index.js rename to front/auth/index.js diff --git a/client/auth/src/auth.js b/front/auth/src/auth.js similarity index 100% rename from client/auth/src/auth.js rename to front/auth/src/auth.js diff --git a/client/auth/src/login/locale/en.yml b/front/auth/src/login/locale/en.yml similarity index 100% rename from client/auth/src/login/locale/en.yml rename to front/auth/src/login/locale/en.yml diff --git a/client/auth/src/login/locale/es.yml b/front/auth/src/login/locale/es.yml similarity index 100% rename from client/auth/src/login/locale/es.yml rename to front/auth/src/login/locale/es.yml diff --git a/client/auth/src/login/login.html b/front/auth/src/login/login.html similarity index 100% rename from client/auth/src/login/login.html rename to front/auth/src/login/login.html diff --git a/client/auth/src/login/login.js b/front/auth/src/login/login.js similarity index 100% rename from client/auth/src/login/login.js rename to front/auth/src/login/login.js diff --git a/client/auth/src/login/logo.svg b/front/auth/src/login/logo.svg similarity index 100% rename from client/auth/src/login/logo.svg rename to front/auth/src/login/logo.svg diff --git a/client/auth/src/login/style.scss b/front/auth/src/login/style.scss similarity index 100% rename from client/auth/src/login/style.scss rename to front/auth/src/login/style.scss diff --git a/client/auth/src/module.js b/front/auth/src/module.js similarity index 100% rename from client/auth/src/module.js rename to front/auth/src/module.js diff --git a/client/core/index.js b/front/core/index.js similarity index 100% rename from client/core/index.js rename to front/core/index.js diff --git a/client/core/src/components/array-model/array-model.js b/front/core/src/components/array-model/array-model.js similarity index 100% rename from client/core/src/components/array-model/array-model.js rename to front/core/src/components/array-model/array-model.js diff --git a/client/core/src/components/autocomplete/autocomplete.html b/front/core/src/components/autocomplete/autocomplete.html similarity index 100% rename from client/core/src/components/autocomplete/autocomplete.html rename to front/core/src/components/autocomplete/autocomplete.html diff --git a/client/core/src/components/autocomplete/autocomplete.js b/front/core/src/components/autocomplete/autocomplete.js similarity index 100% rename from client/core/src/components/autocomplete/autocomplete.js rename to front/core/src/components/autocomplete/autocomplete.js diff --git a/client/core/src/components/autocomplete/autocomplete.spec.js b/front/core/src/components/autocomplete/autocomplete.spec.js similarity index 100% rename from client/core/src/components/autocomplete/autocomplete.spec.js rename to front/core/src/components/autocomplete/autocomplete.spec.js diff --git a/client/core/src/components/autocomplete/style.scss b/front/core/src/components/autocomplete/style.scss similarity index 100% rename from client/core/src/components/autocomplete/style.scss rename to front/core/src/components/autocomplete/style.scss diff --git a/client/core/src/components/button-menu/button-menu.html b/front/core/src/components/button-menu/button-menu.html similarity index 100% rename from client/core/src/components/button-menu/button-menu.html rename to front/core/src/components/button-menu/button-menu.html diff --git a/client/core/src/components/button-menu/button-menu.js b/front/core/src/components/button-menu/button-menu.js similarity index 100% rename from client/core/src/components/button-menu/button-menu.js rename to front/core/src/components/button-menu/button-menu.js diff --git a/client/core/src/components/button-menu/button-menu.spec.js b/front/core/src/components/button-menu/button-menu.spec.js similarity index 100% rename from client/core/src/components/button-menu/button-menu.spec.js rename to front/core/src/components/button-menu/button-menu.spec.js diff --git a/client/core/src/components/button-menu/style.scss b/front/core/src/components/button-menu/style.scss similarity index 100% rename from client/core/src/components/button-menu/style.scss rename to front/core/src/components/button-menu/style.scss diff --git a/client/core/src/components/button/button.html b/front/core/src/components/button/button.html similarity index 100% rename from client/core/src/components/button/button.html rename to front/core/src/components/button/button.html diff --git a/client/core/src/components/button/button.js b/front/core/src/components/button/button.js similarity index 100% rename from client/core/src/components/button/button.js rename to front/core/src/components/button/button.js diff --git a/client/core/src/components/button/style.scss b/front/core/src/components/button/style.scss similarity index 100% rename from client/core/src/components/button/style.scss rename to front/core/src/components/button/style.scss diff --git a/client/core/src/components/calendar/index.html b/front/core/src/components/calendar/index.html similarity index 100% rename from client/core/src/components/calendar/index.html rename to front/core/src/components/calendar/index.html diff --git a/client/core/src/components/calendar/index.js b/front/core/src/components/calendar/index.js similarity index 100% rename from client/core/src/components/calendar/index.js rename to front/core/src/components/calendar/index.js diff --git a/client/core/src/components/calendar/style.scss b/front/core/src/components/calendar/style.scss similarity index 100% rename from client/core/src/components/calendar/style.scss rename to front/core/src/components/calendar/style.scss diff --git a/client/core/src/components/card/card.html b/front/core/src/components/card/card.html similarity index 100% rename from client/core/src/components/card/card.html rename to front/core/src/components/card/card.html diff --git a/client/core/src/components/card/card.js b/front/core/src/components/card/card.js similarity index 100% rename from client/core/src/components/card/card.js rename to front/core/src/components/card/card.js diff --git a/client/core/src/components/card/style.scss b/front/core/src/components/card/style.scss similarity index 100% rename from client/core/src/components/card/style.scss rename to front/core/src/components/card/style.scss diff --git a/client/core/src/components/check/check.html b/front/core/src/components/check/check.html similarity index 100% rename from client/core/src/components/check/check.html rename to front/core/src/components/check/check.html diff --git a/client/core/src/components/check/check.js b/front/core/src/components/check/check.js similarity index 100% rename from client/core/src/components/check/check.js rename to front/core/src/components/check/check.js diff --git a/client/core/src/components/check/style.scss b/front/core/src/components/check/style.scss similarity index 100% rename from client/core/src/components/check/style.scss rename to front/core/src/components/check/style.scss diff --git a/client/core/src/components/chip/index.html b/front/core/src/components/chip/index.html similarity index 100% rename from client/core/src/components/chip/index.html rename to front/core/src/components/chip/index.html diff --git a/client/core/src/components/chip/index.js b/front/core/src/components/chip/index.js similarity index 100% rename from client/core/src/components/chip/index.js rename to front/core/src/components/chip/index.js diff --git a/client/core/src/components/chip/index.spec.js b/front/core/src/components/chip/index.spec.js similarity index 56% rename from client/core/src/components/chip/index.spec.js rename to front/core/src/components/chip/index.spec.js index 7985e463f..c7710b655 100644 --- a/client/core/src/components/chip/index.spec.js +++ b/front/core/src/components/chip/index.spec.js @@ -4,19 +4,14 @@ import template from './index.html'; describe('Component vnChip', () => { let $element; let $scope; - let $httpBackend; let controller; - beforeEach(() => { - angular.mock.module('client'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_, _$timeout_) => { + beforeEach(angular.mock.inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); $element = angular.element(`
${template}
`); - $httpBackend = _$httpBackend_; - $httpBackend.when('GET', /\/locale\/\w+\/[a-z]{2}\.json/).respond({}); - controller = _$componentController_('vnChip', {$element, $scope, $httpBackend, $transclude: () => {}}); + controller = $componentController('vnChip', {$element, $scope, $transclude: () => {}}); })); describe('remove()', () => { diff --git a/client/core/src/components/chip/style.scss b/front/core/src/components/chip/style.scss similarity index 100% rename from client/core/src/components/chip/style.scss rename to front/core/src/components/chip/style.scss diff --git a/client/core/src/components/combo/combo.html b/front/core/src/components/combo/combo.html similarity index 100% rename from client/core/src/components/combo/combo.html rename to front/core/src/components/combo/combo.html diff --git a/client/core/src/components/combo/combo.js b/front/core/src/components/combo/combo.js similarity index 100% rename from client/core/src/components/combo/combo.js rename to front/core/src/components/combo/combo.js diff --git a/client/core/src/components/confirm/confirm.html b/front/core/src/components/confirm/confirm.html similarity index 100% rename from client/core/src/components/confirm/confirm.html rename to front/core/src/components/confirm/confirm.html diff --git a/client/core/src/components/confirm/confirm.js b/front/core/src/components/confirm/confirm.js similarity index 100% rename from client/core/src/components/confirm/confirm.js rename to front/core/src/components/confirm/confirm.js diff --git a/client/core/src/components/crud-model/crud-model.js b/front/core/src/components/crud-model/crud-model.js similarity index 100% rename from client/core/src/components/crud-model/crud-model.js rename to front/core/src/components/crud-model/crud-model.js diff --git a/client/core/src/components/date-picker/date-picker.html b/front/core/src/components/date-picker/date-picker.html similarity index 100% rename from client/core/src/components/date-picker/date-picker.html rename to front/core/src/components/date-picker/date-picker.html diff --git a/client/core/src/components/date-picker/date-picker.js b/front/core/src/components/date-picker/date-picker.js similarity index 100% rename from client/core/src/components/date-picker/date-picker.js rename to front/core/src/components/date-picker/date-picker.js diff --git a/client/core/src/components/date-picker/style.scss b/front/core/src/components/date-picker/style.scss similarity index 100% rename from client/core/src/components/date-picker/style.scss rename to front/core/src/components/date-picker/style.scss diff --git a/client/core/src/components/dialog/dialog.html b/front/core/src/components/dialog/dialog.html similarity index 100% rename from client/core/src/components/dialog/dialog.html rename to front/core/src/components/dialog/dialog.html diff --git a/client/core/src/components/dialog/dialog.js b/front/core/src/components/dialog/dialog.js similarity index 100% rename from client/core/src/components/dialog/dialog.js rename to front/core/src/components/dialog/dialog.js diff --git a/client/core/src/components/dialog/dialog.spec.js b/front/core/src/components/dialog/dialog.spec.js similarity index 92% rename from client/core/src/components/dialog/dialog.spec.js rename to front/core/src/components/dialog/dialog.spec.js index f6008d010..4937fdba3 100644 --- a/client/core/src/components/dialog/dialog.spec.js +++ b/front/core/src/components/dialog/dialog.spec.js @@ -1,14 +1,10 @@ describe('Component vnDialog', () => { - let $componentController; let $element; let controller; - beforeEach(() => { - angular.mock.module('client'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject(_$componentController_ => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject($componentController => { $element = angular.element(''); controller = $componentController('vnDialog', {$element, $transclude: null}); controller.onOpen = jasmine.createSpy('onOpen'); diff --git a/client/core/src/components/dialog/style.scss b/front/core/src/components/dialog/style.scss similarity index 100% rename from client/core/src/components/dialog/style.scss rename to front/core/src/components/dialog/style.scss diff --git a/client/core/src/components/drop-down/drop-down.html b/front/core/src/components/drop-down/drop-down.html similarity index 100% rename from client/core/src/components/drop-down/drop-down.html rename to front/core/src/components/drop-down/drop-down.html diff --git a/client/core/src/components/drop-down/drop-down.js b/front/core/src/components/drop-down/drop-down.js similarity index 100% rename from client/core/src/components/drop-down/drop-down.js rename to front/core/src/components/drop-down/drop-down.js diff --git a/client/core/src/components/drop-down/drop-down.spec.js b/front/core/src/components/drop-down/drop-down.spec.js similarity index 100% rename from client/core/src/components/drop-down/drop-down.spec.js rename to front/core/src/components/drop-down/drop-down.spec.js diff --git a/client/core/src/components/drop-down/style.scss b/front/core/src/components/drop-down/style.scss similarity index 100% rename from client/core/src/components/drop-down/style.scss rename to front/core/src/components/drop-down/style.scss diff --git a/client/core/src/components/fetched-tags/index.html b/front/core/src/components/fetched-tags/index.html similarity index 100% rename from client/core/src/components/fetched-tags/index.html rename to front/core/src/components/fetched-tags/index.html diff --git a/client/core/src/components/fetched-tags/index.js b/front/core/src/components/fetched-tags/index.js similarity index 100% rename from client/core/src/components/fetched-tags/index.js rename to front/core/src/components/fetched-tags/index.js diff --git a/client/core/src/components/fetched-tags/style.scss b/front/core/src/components/fetched-tags/style.scss similarity index 100% rename from client/core/src/components/fetched-tags/style.scss rename to front/core/src/components/fetched-tags/style.scss diff --git a/client/core/src/components/float-button/float-button.html b/front/core/src/components/float-button/float-button.html similarity index 100% rename from client/core/src/components/float-button/float-button.html rename to front/core/src/components/float-button/float-button.html diff --git a/client/core/src/components/float-button/float-button.js b/front/core/src/components/float-button/float-button.js similarity index 100% rename from client/core/src/components/float-button/float-button.js rename to front/core/src/components/float-button/float-button.js diff --git a/client/core/src/components/icon-button/icon-button.html b/front/core/src/components/icon-button/icon-button.html similarity index 100% rename from client/core/src/components/icon-button/icon-button.html rename to front/core/src/components/icon-button/icon-button.html diff --git a/client/core/src/components/icon-button/icon-button.js b/front/core/src/components/icon-button/icon-button.js similarity index 100% rename from client/core/src/components/icon-button/icon-button.js rename to front/core/src/components/icon-button/icon-button.js diff --git a/client/core/src/components/icon-button/style.scss b/front/core/src/components/icon-button/style.scss similarity index 100% rename from client/core/src/components/icon-button/style.scss rename to front/core/src/components/icon-button/style.scss diff --git a/client/core/src/components/icon-focusable/icon-focusable.html b/front/core/src/components/icon-focusable/icon-focusable.html similarity index 100% rename from client/core/src/components/icon-focusable/icon-focusable.html rename to front/core/src/components/icon-focusable/icon-focusable.html diff --git a/client/core/src/components/icon-focusable/icon-focusable.js b/front/core/src/components/icon-focusable/icon-focusable.js similarity index 100% rename from client/core/src/components/icon-focusable/icon-focusable.js rename to front/core/src/components/icon-focusable/icon-focusable.js diff --git a/client/core/src/components/icon-focusable/style.scss b/front/core/src/components/icon-focusable/style.scss similarity index 100% rename from client/core/src/components/icon-focusable/style.scss rename to front/core/src/components/icon-focusable/style.scss diff --git a/client/core/src/components/icon-menu/icon-menu.html b/front/core/src/components/icon-menu/icon-menu.html similarity index 100% rename from client/core/src/components/icon-menu/icon-menu.html rename to front/core/src/components/icon-menu/icon-menu.html diff --git a/client/core/src/components/icon-menu/icon-menu.js b/front/core/src/components/icon-menu/icon-menu.js similarity index 100% rename from client/core/src/components/icon-menu/icon-menu.js rename to front/core/src/components/icon-menu/icon-menu.js diff --git a/client/core/src/components/icon-menu/style.scss b/front/core/src/components/icon-menu/style.scss similarity index 100% rename from client/core/src/components/icon-menu/style.scss rename to front/core/src/components/icon-menu/style.scss diff --git a/client/core/src/components/icon/icon.js b/front/core/src/components/icon/icon.js similarity index 100% rename from client/core/src/components/icon/icon.js rename to front/core/src/components/icon/icon.js diff --git a/client/core/src/components/icon/style.scss b/front/core/src/components/icon/style.scss similarity index 100% rename from client/core/src/components/icon/style.scss rename to front/core/src/components/icon/style.scss diff --git a/client/core/src/components/index.js b/front/core/src/components/index.js similarity index 100% rename from client/core/src/components/index.js rename to front/core/src/components/index.js diff --git a/client/core/src/components/input-number/index.html b/front/core/src/components/input-number/index.html similarity index 100% rename from client/core/src/components/input-number/index.html rename to front/core/src/components/input-number/index.html diff --git a/client/core/src/components/input-number/index.js b/front/core/src/components/input-number/index.js similarity index 100% rename from client/core/src/components/input-number/index.js rename to front/core/src/components/input-number/index.js diff --git a/client/core/src/components/input-number/index.spec.js b/front/core/src/components/input-number/index.spec.js similarity index 94% rename from client/core/src/components/input-number/index.spec.js rename to front/core/src/components/input-number/index.spec.js index 4663e3c8b..886b2948b 100644 --- a/client/core/src/components/input-number/index.spec.js +++ b/front/core/src/components/input-number/index.spec.js @@ -1,22 +1,17 @@ import './index.js'; describe('Component vnInputNumber', () => { - let $componentController; let $scope; let $attrs; let $timeout; let $element; let controller; - beforeEach(() => { - angular.mock.module('claim'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_, _$timeout_) => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); $attrs = {}; - $timeout = _$timeout_; $element = angular.element('
'); controller = $componentController('vnInputNumber', {$element, $scope, $attrs, $timeout, $transclude: () => {}}); })); diff --git a/client/core/src/components/input-number/style.scss b/front/core/src/components/input-number/style.scss similarity index 100% rename from client/core/src/components/input-number/style.scss rename to front/core/src/components/input-number/style.scss diff --git a/client/core/src/components/input-range/index.html b/front/core/src/components/input-range/index.html similarity index 100% rename from client/core/src/components/input-range/index.html rename to front/core/src/components/input-range/index.html diff --git a/client/core/src/components/input-range/index.js b/front/core/src/components/input-range/index.js similarity index 100% rename from client/core/src/components/input-range/index.js rename to front/core/src/components/input-range/index.js diff --git a/client/core/src/components/input-range/style.scss b/front/core/src/components/input-range/style.scss similarity index 100% rename from client/core/src/components/input-range/style.scss rename to front/core/src/components/input-range/style.scss diff --git a/client/core/src/components/input-time/index.html b/front/core/src/components/input-time/index.html similarity index 100% rename from client/core/src/components/input-time/index.html rename to front/core/src/components/input-time/index.html diff --git a/client/core/src/components/input-time/index.js b/front/core/src/components/input-time/index.js similarity index 100% rename from client/core/src/components/input-time/index.js rename to front/core/src/components/input-time/index.js diff --git a/client/core/src/components/input-time/index.spec.js b/front/core/src/components/input-time/index.spec.js similarity index 86% rename from client/core/src/components/input-time/index.spec.js rename to front/core/src/components/input-time/index.spec.js index b47c50362..8952670d0 100644 --- a/client/core/src/components/input-time/index.spec.js +++ b/front/core/src/components/input-time/index.spec.js @@ -1,22 +1,17 @@ import './index.js'; describe('Component vnInputNumber', () => { - let $componentController; let $scope; let $attrs; let $timeout; let $element; let controller; - beforeEach(() => { - angular.mock.module('claim'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_, _$timeout_) => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); $attrs = {}; - $timeout = _$timeout_; $element = angular.element('
'); controller = $componentController('vnInputNumber', {$element, $scope, $attrs, $timeout, $transclude: () => {}}); })); diff --git a/client/core/src/components/input-time/style.scss b/front/core/src/components/input-time/style.scss similarity index 100% rename from client/core/src/components/input-time/style.scss rename to front/core/src/components/input-time/style.scss diff --git a/client/core/src/components/label-value/label-value.html b/front/core/src/components/label-value/label-value.html similarity index 100% rename from client/core/src/components/label-value/label-value.html rename to front/core/src/components/label-value/label-value.html diff --git a/client/core/src/components/label-value/label-value.js b/front/core/src/components/label-value/label-value.js similarity index 100% rename from client/core/src/components/label-value/label-value.js rename to front/core/src/components/label-value/label-value.js diff --git a/client/core/src/components/label-value/style.scss b/front/core/src/components/label-value/style.scss similarity index 100% rename from client/core/src/components/label-value/style.scss rename to front/core/src/components/label-value/style.scss diff --git a/client/core/src/components/log/index.html b/front/core/src/components/log/index.html similarity index 100% rename from client/core/src/components/log/index.html rename to front/core/src/components/log/index.html diff --git a/client/core/src/components/log/index.js b/front/core/src/components/log/index.js similarity index 100% rename from client/core/src/components/log/index.js rename to front/core/src/components/log/index.js diff --git a/client/core/src/components/log/locale/es.yml b/front/core/src/components/log/locale/es.yml similarity index 100% rename from client/core/src/components/log/locale/es.yml rename to front/core/src/components/log/locale/es.yml diff --git a/client/core/src/components/log/style.scss b/front/core/src/components/log/style.scss similarity index 100% rename from client/core/src/components/log/style.scss rename to front/core/src/components/log/style.scss diff --git a/client/core/src/components/menu/menu.js b/front/core/src/components/menu/menu.js similarity index 100% rename from client/core/src/components/menu/menu.js rename to front/core/src/components/menu/menu.js diff --git a/client/core/src/components/model-proxy/model-proxy.js b/front/core/src/components/model-proxy/model-proxy.js similarity index 100% rename from client/core/src/components/model-proxy/model-proxy.js rename to front/core/src/components/model-proxy/model-proxy.js diff --git a/client/core/src/components/multi-check/multi-check.html b/front/core/src/components/multi-check/multi-check.html similarity index 100% rename from client/core/src/components/multi-check/multi-check.html rename to front/core/src/components/multi-check/multi-check.html diff --git a/client/core/src/components/multi-check/multi-check.js b/front/core/src/components/multi-check/multi-check.js similarity index 100% rename from client/core/src/components/multi-check/multi-check.js rename to front/core/src/components/multi-check/multi-check.js diff --git a/client/core/src/components/multi-check/multi-check.spec.js b/front/core/src/components/multi-check/multi-check.spec.js similarity index 85% rename from client/core/src/components/multi-check/multi-check.spec.js rename to front/core/src/components/multi-check/multi-check.spec.js index 86bc7e72f..748fa5871 100644 --- a/client/core/src/components/multi-check/multi-check.spec.js +++ b/front/core/src/components/multi-check/multi-check.spec.js @@ -1,16 +1,12 @@ import './multi-check.js'; describe('Component vnMultiCheck', () => { - let $componentController; let controller; let $element; - beforeEach(() => { - angular.mock.module('ticket'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject(_$componentController_ => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject($componentController => { $element = angular.element(`
`); controller = $componentController('vnMultiCheck', {$element: $element}); })); diff --git a/client/core/src/components/pagination/pagination.html b/front/core/src/components/pagination/pagination.html similarity index 100% rename from client/core/src/components/pagination/pagination.html rename to front/core/src/components/pagination/pagination.html diff --git a/client/core/src/components/pagination/pagination.js b/front/core/src/components/pagination/pagination.js similarity index 100% rename from client/core/src/components/pagination/pagination.js rename to front/core/src/components/pagination/pagination.js diff --git a/client/core/src/components/pagination/style.scss b/front/core/src/components/pagination/style.scss similarity index 100% rename from client/core/src/components/pagination/style.scss rename to front/core/src/components/pagination/style.scss diff --git a/client/core/src/components/paging/paging.html b/front/core/src/components/paging/paging.html similarity index 100% rename from client/core/src/components/paging/paging.html rename to front/core/src/components/paging/paging.html diff --git a/client/core/src/components/paging/paging.js b/front/core/src/components/paging/paging.js similarity index 100% rename from client/core/src/components/paging/paging.js rename to front/core/src/components/paging/paging.js diff --git a/client/core/src/components/paging/paging.spec.js b/front/core/src/components/paging/paging.spec.js similarity index 85% rename from client/core/src/components/paging/paging.spec.js rename to front/core/src/components/paging/paging.spec.js index ab36635d5..06fec2658 100644 --- a/client/core/src/components/paging/paging.spec.js +++ b/front/core/src/components/paging/paging.spec.js @@ -1,20 +1,14 @@ import './paging.js'; describe('Component vnPaging', () => { - let $componentController; let $scope; - let $httpBackend; let controller; - beforeEach(() => { - angular.mock.module('client'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$httpBackend_) => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); - $httpBackend = _$httpBackend_; - controller = $componentController('vnPaging', {$scope, $httpBackend}); + controller = $componentController('vnPaging', {$scope}); })); describe('$onChanges()', () => { diff --git a/client/core/src/components/paging/style.scss b/front/core/src/components/paging/style.scss similarity index 100% rename from client/core/src/components/paging/style.scss rename to front/core/src/components/paging/style.scss diff --git a/client/core/src/components/popover/popover.html b/front/core/src/components/popover/popover.html similarity index 100% rename from client/core/src/components/popover/popover.html rename to front/core/src/components/popover/popover.html diff --git a/client/core/src/components/popover/popover.js b/front/core/src/components/popover/popover.js similarity index 100% rename from client/core/src/components/popover/popover.js rename to front/core/src/components/popover/popover.js diff --git a/client/core/src/components/popover/popover.spec.js b/front/core/src/components/popover/popover.spec.js similarity index 100% rename from client/core/src/components/popover/popover.spec.js rename to front/core/src/components/popover/popover.spec.js diff --git a/client/core/src/components/popover/style.scss b/front/core/src/components/popover/style.scss similarity index 100% rename from client/core/src/components/popover/style.scss rename to front/core/src/components/popover/style.scss diff --git a/client/core/src/components/radio/radio.html b/front/core/src/components/radio/radio.html similarity index 100% rename from client/core/src/components/radio/radio.html rename to front/core/src/components/radio/radio.html diff --git a/client/core/src/components/radio/radio.js b/front/core/src/components/radio/radio.js similarity index 100% rename from client/core/src/components/radio/radio.js rename to front/core/src/components/radio/radio.js diff --git a/client/core/src/components/searchbar/search-panel.js b/front/core/src/components/searchbar/search-panel.js similarity index 100% rename from client/core/src/components/searchbar/search-panel.js rename to front/core/src/components/searchbar/search-panel.js diff --git a/client/core/src/components/searchbar/searchbar.html b/front/core/src/components/searchbar/searchbar.html similarity index 100% rename from client/core/src/components/searchbar/searchbar.html rename to front/core/src/components/searchbar/searchbar.html diff --git a/client/core/src/components/searchbar/searchbar.js b/front/core/src/components/searchbar/searchbar.js similarity index 100% rename from client/core/src/components/searchbar/searchbar.js rename to front/core/src/components/searchbar/searchbar.js diff --git a/client/core/src/components/searchbar/style.scss b/front/core/src/components/searchbar/style.scss similarity index 100% rename from client/core/src/components/searchbar/style.scss rename to front/core/src/components/searchbar/style.scss diff --git a/client/core/src/components/snackbar/snackbar.html b/front/core/src/components/snackbar/snackbar.html similarity index 100% rename from client/core/src/components/snackbar/snackbar.html rename to front/core/src/components/snackbar/snackbar.html diff --git a/client/core/src/components/snackbar/snackbar.js b/front/core/src/components/snackbar/snackbar.js similarity index 100% rename from client/core/src/components/snackbar/snackbar.js rename to front/core/src/components/snackbar/snackbar.js diff --git a/client/core/src/components/snackbar/style.scss b/front/core/src/components/snackbar/style.scss similarity index 100% rename from client/core/src/components/snackbar/style.scss rename to front/core/src/components/snackbar/style.scss diff --git a/client/core/src/components/spinner/spinner.html b/front/core/src/components/spinner/spinner.html similarity index 100% rename from client/core/src/components/spinner/spinner.html rename to front/core/src/components/spinner/spinner.html diff --git a/client/core/src/components/spinner/spinner.js b/front/core/src/components/spinner/spinner.js similarity index 100% rename from client/core/src/components/spinner/spinner.js rename to front/core/src/components/spinner/spinner.js diff --git a/client/core/src/components/spinner/spinner.spec.js b/front/core/src/components/spinner/spinner.spec.js similarity index 89% rename from client/core/src/components/spinner/spinner.spec.js rename to front/core/src/components/spinner/spinner.spec.js index d5bad0746..09090ef8c 100644 --- a/client/core/src/components/spinner/spinner.spec.js +++ b/front/core/src/components/spinner/spinner.spec.js @@ -1,17 +1,13 @@ import './spinner.js'; describe('Component vnSpinner', () => { - let $componentController; let $scope; let $element; let controller; - beforeEach(() => { - angular.mock.module('client'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope) => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); $element = angular.element('
'); controller = $componentController('vnSpinner', {$scope, $element}); diff --git a/client/core/src/components/spinner/style.css b/front/core/src/components/spinner/style.css similarity index 100% rename from client/core/src/components/spinner/style.css rename to front/core/src/components/spinner/style.css diff --git a/client/core/src/components/step-control/step-control.html b/front/core/src/components/step-control/step-control.html similarity index 100% rename from client/core/src/components/step-control/step-control.html rename to front/core/src/components/step-control/step-control.html diff --git a/client/core/src/components/step-control/step-control.js b/front/core/src/components/step-control/step-control.js similarity index 100% rename from client/core/src/components/step-control/step-control.js rename to front/core/src/components/step-control/step-control.js diff --git a/client/core/src/components/step-control/step-control.spec.js b/front/core/src/components/step-control/step-control.spec.js similarity index 84% rename from client/core/src/components/step-control/step-control.spec.js rename to front/core/src/components/step-control/step-control.spec.js index 51360e7ee..944457cfe 100644 --- a/client/core/src/components/step-control/step-control.spec.js +++ b/front/core/src/components/step-control/step-control.spec.js @@ -1,16 +1,12 @@ import './step-control.js'; describe('Component vnStepControl', () => { - let $componentController; let controller; let $state; - beforeEach(() => { - angular.mock.module('ticket'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, _$state_) => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject(($componentController, _$state_) => { $state = _$state_; spyOn($state, 'go'); controller = $componentController('vnStepControl', {$state: $state}); @@ -43,19 +39,19 @@ describe('Component vnStepControl', () => { it(`should call the onStepChange method then return false and never call the go method`, () => { controller.onStepChange = jasmine.createSpy(controller, 'onStepChange').and.returnValue(false); - controller.currentState = "something"; + controller.currentState = 'something'; expect(controller.onStepChange).toHaveBeenCalledWith({state: 'something'}); - expect(controller.$state.go).not.toHaveBeenCalledWith("something"); + expect(controller.$state.go).not.toHaveBeenCalledWith('something'); }); it(`should call the onStepChange method then return true and finally call the go method`, () => { controller.onStepChange = jasmine.createSpy(controller, 'onStepChange').and.returnValue(true); - controller.currentState = "something"; + controller.currentState = 'something'; expect(controller.onStepChange).toHaveBeenCalledWith({state: 'something'}); - expect(controller.$state.go).toHaveBeenCalledWith("something"); + expect(controller.$state.go).toHaveBeenCalledWith('something'); }); }); diff --git a/client/core/src/components/step-control/style.scss b/front/core/src/components/step-control/style.scss similarity index 100% rename from client/core/src/components/step-control/style.scss rename to front/core/src/components/step-control/style.scss diff --git a/client/core/src/components/submit/submit.html b/front/core/src/components/submit/submit.html similarity index 100% rename from client/core/src/components/submit/submit.html rename to front/core/src/components/submit/submit.html diff --git a/client/core/src/components/submit/submit.js b/front/core/src/components/submit/submit.js similarity index 100% rename from client/core/src/components/submit/submit.js rename to front/core/src/components/submit/submit.js diff --git a/client/core/src/components/subtitle/subtitle.html b/front/core/src/components/subtitle/subtitle.html similarity index 100% rename from client/core/src/components/subtitle/subtitle.html rename to front/core/src/components/subtitle/subtitle.html diff --git a/client/core/src/components/subtitle/subtitle.js b/front/core/src/components/subtitle/subtitle.js similarity index 100% rename from client/core/src/components/subtitle/subtitle.js rename to front/core/src/components/subtitle/subtitle.js diff --git a/client/core/src/components/switch/switch.html b/front/core/src/components/switch/switch.html similarity index 100% rename from client/core/src/components/switch/switch.html rename to front/core/src/components/switch/switch.html diff --git a/client/core/src/components/switch/switch.js b/front/core/src/components/switch/switch.js similarity index 100% rename from client/core/src/components/switch/switch.js rename to front/core/src/components/switch/switch.js diff --git a/client/core/src/components/table/index.html b/front/core/src/components/table/index.html similarity index 100% rename from client/core/src/components/table/index.html rename to front/core/src/components/table/index.html diff --git a/client/core/src/components/table/index.js b/front/core/src/components/table/index.js similarity index 100% rename from client/core/src/components/table/index.js rename to front/core/src/components/table/index.js diff --git a/client/core/src/components/table/style.scss b/front/core/src/components/table/style.scss similarity index 100% rename from client/core/src/components/table/style.scss rename to front/core/src/components/table/style.scss diff --git a/client/core/src/components/textarea/style.scss b/front/core/src/components/textarea/style.scss similarity index 100% rename from client/core/src/components/textarea/style.scss rename to front/core/src/components/textarea/style.scss diff --git a/client/core/src/components/textarea/textarea.html b/front/core/src/components/textarea/textarea.html similarity index 100% rename from client/core/src/components/textarea/textarea.html rename to front/core/src/components/textarea/textarea.html diff --git a/client/core/src/components/textarea/textarea.js b/front/core/src/components/textarea/textarea.js similarity index 100% rename from client/core/src/components/textarea/textarea.js rename to front/core/src/components/textarea/textarea.js diff --git a/client/core/src/components/textarea/textarea.spec.js b/front/core/src/components/textarea/textarea.spec.js similarity index 85% rename from client/core/src/components/textarea/textarea.spec.js rename to front/core/src/components/textarea/textarea.spec.js index d70484c30..0f0bb5770 100644 --- a/client/core/src/components/textarea/textarea.spec.js +++ b/front/core/src/components/textarea/textarea.spec.js @@ -1,25 +1,19 @@ import './textarea.js'; describe('Component vnTextarea', () => { - let $componentController; let $scope; let $attrs; - let $timeout; let $element; let controller; - beforeEach(() => { - angular.mock.module('client'); - }); + beforeEach(ngModule('vnCore')); - beforeEach(angular.mock.inject((_$componentController_, $rootScope, _$timeout_) => { - $componentController = _$componentController_; + beforeEach(angular.mock.inject(($componentController, $rootScope) => { $scope = $rootScope.$new(); $attrs = {}; - $timeout = _$timeout_; $element = angular.element('