diff --git a/@salix/app/src/components/left-menu/actions.html b/@salix/app/src/components/left-menu/actions.html index 3daf705512..b794c7faa9 100644 --- a/@salix/app/src/components/left-menu/actions.html +++ b/@salix/app/src/components/left-menu/actions.html @@ -1,5 +1,5 @@ diff --git a/@salix/app/src/components/left-menu/actions.js b/@salix/app/src/components/left-menu/actions.js index 01b7dd0d4e..a477eb0a34 100644 --- a/@salix/app/src/components/left-menu/actions.js +++ b/@salix/app/src/components/left-menu/actions.js @@ -4,6 +4,7 @@ import {module} from '../../module'; export const NAME = 'vnActions'; export const COMPONENT = { template: template, + controllerAs: "action", bindings: { items: '<' } diff --git a/@salix/app/src/components/left-menu/left-menu.html b/@salix/app/src/components/left-menu/left-menu.html index e90ce15068..dd68d8a7ec 100644 --- a/@salix/app/src/components/left-menu/left-menu.html +++ b/@salix/app/src/components/left-menu/left-menu.html @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/@salix/app/src/components/left-menu/left-menu.js b/@salix/app/src/components/left-menu/left-menu.js index 3d0c527edd..9c02324133 100644 --- a/@salix/app/src/components/left-menu/left-menu.js +++ b/@salix/app/src/components/left-menu/left-menu.js @@ -5,6 +5,7 @@ import {module} from '../../module'; export const NAME = "vnLeftMenu"; export const COMPONENT = { template: template, + controllerAs: "menu", bindings: { items: '<' } diff --git a/@salix/app/src/components/left-menu/menu-item.html b/@salix/app/src/components/left-menu/menu-item.html index ac04772d90..3f38ba07e5 100644 --- a/@salix/app/src/components/left-menu/menu-item.html +++ b/@salix/app/src/components/left-menu/menu-item.html @@ -1,7 +1,7 @@
  • - + keyboard_arrow_right - {{$ctrl.item.icon}} - {{$ctrl.item.description}} + {{menu.item.icon}} + {{menu.item.description}}
  • \ No newline at end of file diff --git a/@salix/app/src/components/left-menu/menu-item.js b/@salix/app/src/components/left-menu/menu-item.js index a5b8f582c2..b85250bc72 100644 --- a/@salix/app/src/components/left-menu/menu-item.js +++ b/@salix/app/src/components/left-menu/menu-item.js @@ -4,6 +4,7 @@ import {module} from '../../module'; export const NAME = 'vnMenuItem'; export const COMPONENT = { template: template, + controllerAs: "menu", bindings: { item: '<' } diff --git a/@salix/app/src/components/main-menu/main-menu.html b/@salix/app/src/components/main-menu/main-menu.html index e3d2e7f7f0..cc39d6c752 100644 --- a/@salix/app/src/components/main-menu/main-menu.html +++ b/@salix/app/src/components/main-menu/main-menu.html @@ -1,5 +1,5 @@
    - exit_to_app + exit_to_app apps notifications account_circle diff --git a/@salix/app/src/components/main-menu/main-menu.js b/@salix/app/src/components/main-menu/main-menu.js index afb5869c3d..aa20ba198c 100644 --- a/@salix/app/src/components/main-menu/main-menu.js +++ b/@salix/app/src/components/main-menu/main-menu.js @@ -5,6 +5,7 @@ import {module} from '../../module'; export const NAME = 'vnMainMenu'; export const COMPONENT = { template: template, + controllerAs: "mainMenu", controller: function () { this.onLogoutClick = function () diff --git a/@salix/app/src/configroutes.js b/@salix/app/src/configroutes.js index c21ef7a7a2..2a5ae738e3 100644 --- a/@salix/app/src/configroutes.js +++ b/@salix/app/src/configroutes.js @@ -4,6 +4,7 @@ import * as deps from './spliting/deps.json'; function loader(module) { + return function load($ocLazyLoad, $q){ return $q((resolve) => { core.splitingRegister.execute(module).then(function (dependencies) { @@ -16,37 +17,37 @@ function loader(module) { load.$inject = ['$ocLazyLoad', '$q']; } -function getParams(route){ +function getParams(route) { var params = "", - temporalParams=[]; - - if(!route.params){ + temporalParams = []; + + if (!route.params) { return params; } - - Object.keys(route.params).forEach((key)=>{ + + Object.keys(route.params).forEach(key => { temporalParams.push(key + `= "${route.params[key]}"`); }); - return temporalParams.join(" "); + return temporalParams.join(" "); } function config($stateProvider, $urlRouterProvider) { core.splitingRegister.registerGraph(deps); $urlRouterProvider.otherwise('/clients'); - for (var file in routes) + for (var file in routes) { let fileRoutes = routes[file].routes; - let module = routes[file].module; + let module = routes[file].module; fileRoutes.forEach(function(route) { $stateProvider.state(route.state, { url: route.url, template: `<${route.component} full-height ${getParams(route)}>`, resolve: { - loader: loader(module) - } - }) + loader: loader(module) + } + }); }); } } diff --git a/@salix/crud/src/client/addresses/index.html b/@salix/crud/src/client/addresses/index.html index d8bb95e7aa..e51684d82c 100644 --- a/@salix/crud/src/client/addresses/index.html +++ b/@salix/crud/src/client/addresses/index.html @@ -5,7 +5,7 @@ Consignee Enabled - + diff --git a/@salix/crud/src/client/addresses/index.js b/@salix/crud/src/client/addresses/index.js index 1770cd80ce..f00d9ea39a 100644 --- a/@salix/crud/src/client/addresses/index.js +++ b/@salix/crud/src/client/addresses/index.js @@ -4,23 +4,25 @@ import {module} from '../../module'; export const NAME = 'vnClientAddresses'; export const COMPONENT = { template: template, - controller: function ($http) - { - this.addresses = []; + controllerAs: 'address', + controller: function($http) + { - for (var i = 1; i <= 4; i++) - this.addresses.push ({ - "consignee": "Consignee", - "street": "Street", - "city": "City", - "postcode": "46600", - "province": "Province", - "country": "Country", - "phone": "+XX XXX XX XX XX", - "mobile": "+XX 6XX XX XX XX", - "enabled": true - }); - }, + this.addresses = []; + + for (var i = 1; i <= 4; i++) + this.addresses.push({ + consignee: "Consignee", + street: "Street", + city: "City", + postcode: "46600", + province: "Province", + country: "Country", + phone: "+XX XXX XX XX XX", + mobile: "+XX 6XX XX XX XX", + enabled: true + }); + } }; COMPONENT.controller.$inject = ['$http']; diff --git a/@salix/crud/src/client/basic-data/index.html b/@salix/crud/src/client/basic-data/index.html index 92558f1c9c..1d9faafcfb 100644 --- a/@salix/crud/src/client/basic-data/index.html +++ b/@salix/crud/src/client/basic-data/index.html @@ -1,20 +1,20 @@ -
    + Datos básicos - - + + - - + + - - + + - - + + diff --git a/@salix/crud/src/client/basic-data/index.js b/@salix/crud/src/client/basic-data/index.js index 55d9812047..ade9623184 100644 --- a/@salix/crud/src/client/basic-data/index.js +++ b/@salix/crud/src/client/basic-data/index.js @@ -4,6 +4,7 @@ import {module} from '../../module'; export const NAME = 'vnClientBasicData'; export const COMPONENT = { template: template, + controllerAs: 'basicData', bindings: { client: '<' }, diff --git a/@salix/crud/src/client/card/card.html b/@salix/crud/src/client/card/card.html index 137c36488b..d20991987e 100644 --- a/@salix/crud/src/client/card/card.html +++ b/@salix/crud/src/client/card/card.html @@ -2,8 +2,8 @@ - - + + diff --git a/@salix/crud/src/client/card/card.js b/@salix/crud/src/client/card/card.js index 180443dde3..041b285590 100644 --- a/@salix/crud/src/client/card/card.js +++ b/@salix/crud/src/client/card/card.js @@ -6,6 +6,7 @@ const _NAME = 'clientClient'; export const NAME = "vnClientCard"; export const COMPONENT = { template: template, + controllerAs: 'card', controller: function($http, $stateParams) { let clientRoutes = routes['src/client/routes.js'].routes; this.items = []; diff --git a/@salix/crud/src/client/descriptor/descriptor.html b/@salix/crud/src/client/descriptor/descriptor.html index 5d3b47fc20..ce29df7b74 100644 --- a/@salix/crud/src/client/descriptor/descriptor.html +++ b/@salix/crud/src/client/descriptor/descriptor.html @@ -3,9 +3,9 @@ person - {{$ctrl.descriptor.clientId}} - {{$ctrl.descriptor.name}} - {{$ctrl.descriptor.phone}} + {{descriptor.descriptor.clientId}} + {{descriptor.descriptor.name}} + {{descriptor.descriptor.phone}} diff --git a/@salix/crud/src/client/descriptor/descriptor.js b/@salix/crud/src/client/descriptor/descriptor.js index 930d8ef980..012ad8f5db 100644 --- a/@salix/crud/src/client/descriptor/descriptor.js +++ b/@salix/crud/src/client/descriptor/descriptor.js @@ -4,6 +4,7 @@ import {module} from '../../module'; export const NAME = 'vnDescriptor'; export const COMPONENT = { template: template, + controllerAs: 'descriptor', bindings: { descriptor: '<' } diff --git a/@salix/crud/src/client/fiscal-data/index.html b/@salix/crud/src/client/fiscal-data/index.html index 7cd9c08292..77e1fb6254 100644 --- a/@salix/crud/src/client/fiscal-data/index.html +++ b/@salix/crud/src/client/fiscal-data/index.html @@ -1,47 +1,47 @@ - + Datos fiscales y de facturación - - - + + + - - + + - - - + + + - - - + + +
    Información de facturación
    - - - + + + - - - - + + + +
    Documentación
    - - - + + + diff --git a/@salix/crud/src/client/fiscal-data/index.js b/@salix/crud/src/client/fiscal-data/index.js index 7dac6e7ba8..d951f6b79d 100644 --- a/@salix/crud/src/client/fiscal-data/index.js +++ b/@salix/crud/src/client/fiscal-data/index.js @@ -4,6 +4,7 @@ import {module} from '../../module'; export const NAME = 'vnClientFiscalData'; export const COMPONENT = { template: template, + controllerAs: 'fiscal', controller: function($http) { this.submit = function() { $http.post('/client/api/Clients', this.model).then( diff --git a/@salix/crud/src/client/index/index.html b/@salix/crud/src/client/index/index.html index 11a34cf461..575bbbb37d 100644 --- a/@salix/crud/src/client/index/index.html +++ b/@salix/crud/src/client/index/index.html @@ -9,7 +9,7 @@ - + diff --git a/@salix/crud/src/client/index/index.js b/@salix/crud/src/client/index/index.js index 32cbe9f856..1938dc461c 100644 --- a/@salix/crud/src/client/index/index.js +++ b/@salix/crud/src/client/index/index.js @@ -1,17 +1,20 @@ import template from './index.html'; import {module} from '../../module'; -export const NAME = "vnClientIndex"; +export const NAME = 'vnClientIndex'; export const COMPONENT = { template: template, + controllerAs: 'search', controller: function($http) { this.clients = []; - + $http.get('/client/api/Clients').then( - (json) => {this.clients = json.data; }, - (json) => console.error (json.data.error.message) + json => { + this.clients = json.data; + }, + json => console.error(json.data.error.message) ); - + this.submit = function() { var query = {where: this.model, fields: {id: true}}; diff --git a/@salix/crud/src/client/index/item-client.html b/@salix/crud/src/client/index/item-client.html index 4ee649cd3a..cfd940ac23 100644 --- a/@salix/crud/src/client/index/item-client.html +++ b/@salix/crud/src/client/index/item-client.html @@ -1,12 +1,12 @@ -
    {{$ctrl.client.alias}}
    -
    {{$ctrl.client.name}}
    -
    {{$ctrl.client.phone}}, {{$ctrl.client.contact}}
    +
    {{itemClient.client.alias}}
    +
    {{itemClient.client.name}}
    +
    {{itemClient.client.phone}}, {{itemClient.client.contact}}
    - +
    \ No newline at end of file diff --git a/@salix/crud/src/client/index/item-client.js b/@salix/crud/src/client/index/item-client.js index 0ee02cb753..65f0a26f28 100644 --- a/@salix/crud/src/client/index/item-client.js +++ b/@salix/crud/src/client/index/item-client.js @@ -4,6 +4,7 @@ import {module} from '../../module'; export const NAME = 'vnItemClient'; export const COMPONENT = { template: template, + controllerAs: 'itemClient', bindings: { client: '<' } diff --git a/@salix/crud/src/client/notes/index.html b/@salix/crud/src/client/notes/index.html index 3361a18461..39ccf46d0e 100644 --- a/@salix/crud/src/client/notes/index.html +++ b/@salix/crud/src/client/notes/index.html @@ -1,5 +1,5 @@ - + Notas - + \ No newline at end of file diff --git a/@salix/crud/src/client/notes/index.js b/@salix/crud/src/client/notes/index.js index b8e2aa334d..f5d7378a9f 100644 --- a/@salix/crud/src/client/notes/index.js +++ b/@salix/crud/src/client/notes/index.js @@ -3,6 +3,7 @@ import {module} from '../../module'; export const NAME = 'vnClientNotes'; export const COMPONENT = { + controllerAs: 'note', template: template }; module.component(NAME, COMPONENT); \ No newline at end of file diff --git a/@salix/crud/src/client/routes.js b/@salix/crud/src/client/routes.js index a4abf29072..fafd52143b 100644 --- a/@salix/crud/src/client/routes.js +++ b/@salix/crud/src/client/routes.js @@ -13,7 +13,7 @@ state: "clientCard.basicData", component: "vn-client-basic-data", params: { - client: "$ctrl.client" + client: "card.client" }, description: "Datos básicos", icon: "person" diff --git a/@salix/crud/src/client/search-panel/search-panel.html b/@salix/crud/src/client/search-panel/search-panel.html index 57d39588cd..96c819fdcf 100644 --- a/@salix/crud/src/client/search-panel/search-panel.html +++ b/@salix/crud/src/client/search-panel/search-panel.html @@ -1,22 +1,22 @@
    -
    + - - + + - + - + - - + + - - + + add_shopping_cartAdd to shopping cart diff --git a/@salix/crud/src/client/search-panel/search-panel.js b/@salix/crud/src/client/search-panel/search-panel.js index 559a95a275..73e2a9e398 100644 --- a/@salix/crud/src/client/search-panel/search-panel.js +++ b/@salix/crud/src/client/search-panel/search-panel.js @@ -3,6 +3,7 @@ import {module} from '../../module'; export const NAME = "vnSearchPanel"; export const COMPONENT = { + controllerAs: 'search', template: template }; module.component(NAME, COMPONENT); diff --git a/@salix/crud/src/client/web-access/index.html b/@salix/crud/src/client/web-access/index.html index 9efea2ebac..16542a5b6e 100644 --- a/@salix/crud/src/client/web-access/index.html +++ b/@salix/crud/src/client/web-access/index.html @@ -1,6 +1,6 @@ - + Acceso Web - - + + \ No newline at end of file diff --git a/@salix/crud/src/client/web-access/index.js b/@salix/crud/src/client/web-access/index.js index 1660ec601f..fb2807c33e 100644 --- a/@salix/crud/src/client/web-access/index.js +++ b/@salix/crud/src/client/web-access/index.js @@ -3,6 +3,7 @@ import {module} from '../../module'; export const NAME = 'vnClientWebAccess'; export const COMPONENT = { + controllerAs: 'web', template: template }; module.component(NAME, COMPONENT); \ No newline at end of file diff --git a/services/nginx/logs/error.log b/services/nginx/logs/error.log new file mode 100644 index 0000000000..e69de29bb2