diff --git a/@salix/app/src/app.js b/@salix/app/src/app.js index 55ca62470..bf5992122 100644 --- a/@salix/app/src/app.js +++ b/@salix/app/src/app.js @@ -7,5 +7,8 @@ import padding from './styles/layout.css' import margin from './styles/margin.scss' import layout from './styles/padding.scss' import background from './styles/background.scss' +import border from './styles/border.scss' +import fontStyle from './styles/font-style.scss' +import misc from './styles/misc.scss' bootstrap(); diff --git a/@salix/app/src/styles/border.scss b/@salix/app/src/styles/border.scss new file mode 100644 index 000000000..2afa4fd8a --- /dev/null +++ b/@salix/app/src/styles/border.scss @@ -0,0 +1,45 @@ +@import "colors"; + +$border-color: #AAA; +$border-thin: 1px; +$border-thick: 2px; + +html [border-none], .border-none { + border: 0; +} + +/* Solid border */ + +html [border-solid], .border-solid { + border: $border-thin solid $border-color; +} +html [border-solid-top], .border-solid-top { + border-top: $border-thin solid $border-color; +} +html [border-solid-left], .border-solid-left { + border-left: $border-thin solid $border-color; +} +html [border-solid-right], .border-solid-right { + border-right: $border-thin solid $border-color; +} +html [border-solid-bottom], .border-solid-bottom { + border-bottom: $border-thin solid $border-color; +} + +/* Dashed border */ + +html [border-dashed], .border-dashed { + border: $border-thin dashed $border-color; +} +html [border-dashed-top], .border-dashed-top { + border-top: $border-thin dashed $border-color; +} +html [border-dashed-left], .border-dashed-left { + border-left: $border-thin dashed $border-color; +} +html [border-dashed-right], .border-dashed-right { + border-right: $border-thin dashed $border-color; +} +html [border-dashed-bottom], .border-dashed-bottom { + border-bottom: $border-thin dashed $border-color; +} diff --git a/@salix/app/src/styles/colors.scss b/@salix/app/src/styles/colors.scss index 734adf05f..87226d736 100644 --- a/@salix/app/src/styles/colors.scss +++ b/@salix/app/src/styles/colors.scss @@ -1,8 +1,7 @@ $color-green: rgb(139,195,74); $color-orange: rgb(255,171,64); -$color-dark-grey: #424242; -$color-light-grey: #e6e6e6; $color-white: white; $color-dark: #3c393b; - +$color-dark-grey: #424242; +$color-light-grey: #e6e6e6; \ No newline at end of file diff --git a/@salix/app/src/styles/font-style.scss b/@salix/app/src/styles/font-style.scss new file mode 100644 index 000000000..59755abf4 --- /dev/null +++ b/@salix/app/src/styles/font-style.scss @@ -0,0 +1,10 @@ +@import "colors"; + +$font-color: $color-dark-grey; + +body { + color: $font-color; +} +html [uppercase], .uppercase { + text-transform: uppercase; +} \ No newline at end of file diff --git a/@salix/app/src/styles/misc.scss b/@salix/app/src/styles/misc.scss new file mode 100644 index 000000000..cecf042da --- /dev/null +++ b/@salix/app/src/styles/misc.scss @@ -0,0 +1,7 @@ +@import "padding"; + +.form { + height: 100%; + box-sizing: border-box; + padding: $pad-large; +} \ No newline at end of file diff --git a/@salix/core/src/buttonicon/buttonicon.bt.html b/@salix/core/src/buttonicon/buttonicon.bt.html deleted file mode 100644 index 8dbb62512..000000000 --- a/@salix/core/src/buttonicon/buttonicon.bt.html +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/@salix/core/src/buttonicon/buttonicon.bt.js b/@salix/core/src/buttonicon/buttonicon.bt.js deleted file mode 100644 index 02b0d72b6..000000000 --- a/@salix/core/src/buttonicon/buttonicon.bt.js +++ /dev/null @@ -1,23 +0,0 @@ -import {module as _module} from '../module'; -import * as util from '../util'; -import * as constant from '../constants'; -import template from './buttonicon.bt.html'; - -const _NAME = 'buttonicon'; -const DEFAULT_CLASS = 'mdl-button mdl-js-button mdl-button--icon'; - -export const NAME = util.getFactoryName(_NAME + constant.MATERIAL_DESIGN_FRAMEWORK); - -export function factory() { - return { - template: template, - default: { - className: DEFAULT_CLASS, - enabled: 'true', - typeName: 'button', - image:'', - } - } -} - -_module.factory(NAME, factory); diff --git a/@salix/core/src/buttonicon/buttonicon.mt.html b/@salix/core/src/buttonicon/buttonicon.mt.html deleted file mode 100644 index 7814cfde7..000000000 --- a/@salix/core/src/buttonicon/buttonicon.mt.html +++ /dev/null @@ -1,4 +0,0 @@ - - *[image]* - - diff --git a/@salix/core/src/buttonicon/buttonicon.mt.js b/@salix/core/src/buttonicon/buttonicon.mt.js deleted file mode 100644 index 5d951a217..000000000 --- a/@salix/core/src/buttonicon/buttonicon.mt.js +++ /dev/null @@ -1,23 +0,0 @@ -import {module as _module} from '../module'; -import * as util from '../util'; -import * as constant from '../constants'; -import template from './buttonicon.mt.html'; - -const _NAME = 'buttonicon'; -const DEFAULT_CLASS = 'mdl-button mdl-js-button mdl-button--icon'; - -export const NAME = util.getFactoryName(_NAME + constant.MATERIAL_DESIGN_FRAMEWORK); - -export function factory() { - return { - template: template, - default: { - className: DEFAULT_CLASS, - enabled: 'true', - typeName: 'button', - image:'', - } - } -} - -_module.factory(NAME, factory); diff --git a/@salix/core/src/check/check.mt.html b/@salix/core/src/check/check.mt.html index a4616186e..671daf162 100644 --- a/@salix/core/src/check/check.mt.html +++ b/@salix/core/src/check/check.mt.html @@ -1,4 +1,4 @@ - - + + *[label]* diff --git a/@salix/core/src/check/check.mt.js b/@salix/core/src/check/check.mt.js index cacd3c541..4a7a4cecd 100644 --- a/@salix/core/src/check/check.mt.js +++ b/@salix/core/src/check/check.mt.js @@ -4,7 +4,6 @@ import * as constant from '../constants'; import template from './check.mt.html'; const _NAME = 'check'; -const DEFAULT_TEXT = 'check'; const DEFAULT_CLASS = 'mdl-checkbox__input'; export const NAME = util.getFactoryName(_NAME + constant.MATERIAL_DESIGN_FRAMEWORK); @@ -13,9 +12,7 @@ export function factory() { return { template: template, default: { - label: DEFAULT_TEXT, enabled: 'true', - id: 'checkboxId', className: DEFAULT_CLASS } } diff --git a/@salix/core/src/combo/combo.js b/@salix/core/src/combo/combo.js index 745582a33..de416a116 100644 --- a/@salix/core/src/combo/combo.js +++ b/@salix/core/src/combo/combo.js @@ -5,15 +5,14 @@ import * as util from '../util'; const _NAME = 'combo'; export const NAME = util.getName(_NAME); -directive.$inject =[resolveFactory.NAME]; -export function directive (resolve){ - return{ - require:'E', +directive.$inject = [resolveFactory.NAME]; +export function directive(resolve) { + return { + require: 'E', transclude: true, - template: function(_,attr){ - return resolve.getTemplate(_NAME, attr); + template: function(_, attr) { + return resolve.getTemplate(_NAME, attr); } - } + }; } - -module.directive(NAME,directive); +module.directive(NAME, directive); diff --git a/@salix/core/src/combo/combo.mt.js b/@salix/core/src/combo/combo.mt.js index a35bb898e..598627280 100644 --- a/@salix/core/src/combo/combo.mt.js +++ b/@salix/core/src/combo/combo.mt.js @@ -2,7 +2,6 @@ import {module} from '../module'; import template from './combo.mt.html'; export const NAME = 'vnCombomtFactory'; - export function factory() { return { template: template, @@ -12,5 +11,4 @@ export function factory() { } } } - module.factory(NAME, factory); diff --git a/@salix/core/src/core.js b/@salix/core/src/core.js index 8ea3aa417..2d8168c8d 100644 --- a/@salix/core/src/core.js +++ b/@salix/core/src/core.js @@ -7,42 +7,41 @@ export * from './util' export {SplitingRegister as splitingRegister} from './splitingregister' export {NAME as RESOLVEDEFAULTCOMPONENT, ResolveDefaultComponent} from './resolveDefaultComponents' -export {NAME as INTERPOLATE,Interpolate} from './interpolate' -export {NAME as ROUTESLOADER, RoutesLoader} from './routesLoader' +export {NAME as INTERPOLATE, Interpolate} from './interpolate' +export {NAME as ROUTES_LOADER, RoutesLoader} from './routesLoader' -export {NAME as BUTTON,directive as ButtonDirective} from './button/button' -export {NAME as BUTTONMT,factory as buttonmt} from './button/button.mt' -export {NAME as BUTTONBT,factory as buttonbt} from './button/button.bt' -export {NAME as BUTTONICON,directive as ButtoniconDirective} from './buttonicon/buttonicon' -export {NAME as BUTTONICONMT,factory as buttoniconmt} from './buttonicon/buttonicon.mt' -export {NAME as BUTTONICONBT,factory as buttoniconbt} from './buttonicon/buttonicon.bt' +export {NAME as BUTTON, directive as ButtonDirective} from './button/button' +export {NAME as BUTTON_MT, factory as buttonMt} from './button/button.mt' +export {NAME as BUTTON_BT, factory as buttonBt} from './button/button.bt' export {NAME as CHECK,directive as CheckDirective} from './check/check' -export {NAME as CHECKMT,factory as checknmt} from './check/check.mt' -export {NAME as CHECKBT,factory as checkbt} from './check/check.bt' +export {NAME as CHECK_MT, factory as checknMt} from './check/check.mt' +export {NAME as CHECK_BT, factory as checkBt} from './check/check.bt' export {NAME as RADIO,directive as RadioDirective} from './radio/radio' -export {NAME as RADIOMT,factory as radionmt} from './radio/radio.mt' -export {NAME as RADIOBT,factory as radiobt} from './radio/radio.bt' -export {NAME as TEXTFIELD,directive as TextfieldDirective} from './textfield/textfield' -export {NAME as TEXTFIELDMT,factory as textfieldmt} from './textfield/textfield.mt' -export {NAME as TEXTFIELDBT,factory as textfieldbt} from './textfield/textfield.bt' -export {NAME as LABEL,directive as LabelDirective} from './label/label' -export {NAME as LABELMT,factory as labelmt} from './label/label.mt' -export {NAME as LABELBT,factory as labelbt} from './label/label.bt' +export {NAME as RADIO_MT, factory as radionMt} from './radio/radio.mt' +export {NAME as RADIO_BT, factory as radioBt} from './radio/radio.bt' +export {NAME as TEXTFIELD, directive as TextfieldDirective} from './textfield/textfield' +export {NAME as TEXTFIELD_MT, factory as textfieldMt} from './textfield/textfield.mt' +export {NAME as TEXTFIELD_BT, factory as textfieldBt} from './textfield/textfield.bt' +export {NAME as LABEL, directive as LabelDirective} from './label/label' +export {NAME as LABEL_MT, factory as labelMt} from './label/label.mt' +export {NAME as LABEL_BT, factory as labelBt} from './label/label.bt' +export {NAME as ICON_BUTTON, directive as IconButtonDirective} from './icon-button/icon-button' +export {NAME as ICON_BUTTON_MT, factory as iconButtonMt} from './icon-button/icon-button.mt' export {NAME as SEARCHBAR,factory as searchbar} from './searchbar/searchbar' -export {NAME as SEARCHBARMT,factory as searchbarmt} from './searchbar/searchbar.mt' -export {NAME as SEARCHBARBT,factory as searchbarbt} from './searchbar/searchbar.bt' -export {NAME as PASSWORD,directive as PasswordDirective} from './password/password' +export {NAME as SEARCHBAR_MT, factory as searchbarMt} from './searchbar/searchbar.mt' +export {NAME as SEARCHBAR_BT,factory as searchbarBt} from './searchbar/searchbar.bt' +export {NAME as PASSWORD, directive as PasswordDirective} from './password/password' export {NAME as PASSWORD_MT,factory as passwordMt} from './password/password.mt' -export {NAME as SUBMIT,directive as SubmitDirective} from './submit/submit' -export {NAME as SUBMIT_MT,factory as submitMt} from './submit/submit.mt' -export {NAME as SNACKBAR,directive as SnackbarDirective} from './snackbar/snackbar' -export {NAME as SNACKBAR_MT,factory as snackbarMt} from './snackbar/snackbar.mt' -export {NAME as SPINNER,directive as SpinnerDirective} from './spinner/spinner' -export {NAME as SPINNER_MT,factory as spinnerMt} from './spinner/spinner.mt' -export {NAME as COMBO,directive as ComboDirective} from './combo/combo' -export {NAME as COMBO_MT,factory as comboMt} from './combo/combo.mt' -export {NAME as DATE_PICKER,directive as DatePickerDirective} from './date-picker/date-picker' -export {NAME as DATE_PICKER_MT,factory as datePickerMt} from './date-picker/date-picker.mt' +export {NAME as SUBMIT, directive as SubmitDirective} from './submit/submit' +export {NAME as SUBMIT_MT, factory as submitMt} from './submit/submit.mt' +export {NAME as SNACKBAR, directive as SnackbarDirective} from './snackbar/snackbar' +export {NAME as SNACKBAR_MT, factory as snackbarMt} from './snackbar/snackbar.mt' +export {NAME as SPINNER, directive as SpinnerDirective} from './spinner/spinner' +export {NAME as SPINNER_MT, factory as spinnerMt} from './spinner/spinner.mt' +export {NAME as COMBO, directive as ComboDirective} from './combo/combo' +export {NAME as COMBO_MT, factory as comboMt} from './combo/combo.mt' +export {NAME as DATE_PICKER, directive as DatePickerDirective} from './date-picker/date-picker' +export {NAME as DATE_PICKER_MT, factory as datePickerMt} from './date-picker/date-picker.mt' export {NAME as VN_MAINMENU, COMPONENT as VN_MAINMENU_COMPONENT} from './main-menu/main-menu'; @@ -50,5 +49,5 @@ export {NAME as ACTIONS, COMPONENT as ACTIONS_COMPONENT} from './left-menu/actio export {NAME as DESCRIPTOR, COMPONENT as DESCRIPTOR_COMPONENT} from './left-menu/descriptor'; export {NAME as LEFT_MENU, COMPONENT as LEFTMENU_COMPONENT} from './left-menu/left-menu'; export {NAME as MENU_ITEM, COMPONENT as MENU_ITEM_COMPONENT} from './left-menu/menu-item'; -export {NAME as CLIENT_TOP_BAR, COMPONENT as CLIENT_TOP_BAR_COMPONENT} from './topbar/topbar'; +export {NAME as CLIENT_TOPBAR, COMPONENT as CLIENT_TOPBAR_COMPONENT} from './topbar/topbar'; diff --git a/@salix/core/src/date-picker/date-picker.js b/@salix/core/src/date-picker/date-picker.js index c9230b8d5..371498a41 100644 --- a/@salix/core/src/date-picker/date-picker.js +++ b/@salix/core/src/date-picker/date-picker.js @@ -5,14 +5,13 @@ import * as util from '../util'; const _NAME = 'datePicker'; export const NAME = util.getName(_NAME); -directive.$inject =[resolveFactory.NAME]; -export function directive (resolve){ - return{ - require:'E', - template: function(_,attr){ - return resolve.getTemplate(_NAME, attr); +directive.$inject = [resolveFactory.NAME]; +export function directive(resolve) { + return { + require: 'E', + template: function(_, attr) { + return resolve.getTemplate(_NAME, attr); } - } + }; } - -module.directive(NAME,directive); +module.directive(NAME, directive); diff --git a/@salix/core/src/date-picker/date-picker.mt.html b/@salix/core/src/date-picker/date-picker.mt.html index c9a546eb4..cd1617e7b 100644 --- a/@salix/core/src/date-picker/date-picker.mt.html +++ b/@salix/core/src/date-picker/date-picker.mt.html @@ -1,4 +1,4 @@ - + *[label]* diff --git a/@salix/core/src/date-picker/date-picker.mt.js b/@salix/core/src/date-picker/date-picker.mt.js index 52371047e..e9c401385 100644 --- a/@salix/core/src/date-picker/date-picker.mt.js +++ b/@salix/core/src/date-picker/date-picker.mt.js @@ -2,16 +2,13 @@ import {module} from '../module'; import template from './date-picker.mt.html'; export const NAME = 'vnDatePickermtFactory'; - export function factory() { return { template: template, default: { label: 'Label', - enabled: 'enabled', - className: 'mdl-textfield__input' + enabled: 'enabled' } } } - module.factory(NAME, factory); diff --git a/@salix/core/src/buttonicon/buttonicon.js b/@salix/core/src/icon-button/icon-button.js similarity index 76% rename from @salix/core/src/buttonicon/buttonicon.js rename to @salix/core/src/icon-button/icon-button.js index add5b650b..095911090 100644 --- a/@salix/core/src/buttonicon/buttonicon.js +++ b/@salix/core/src/icon-button/icon-button.js @@ -1,8 +1,8 @@ -import {module as _module} from '../module'; +import {module} from '../module'; import * as resolveFactory from '../resolveDefaultComponents'; import * as util from '../util'; -const _NAME = 'buttonicon'; +const _NAME = 'iconButton'; export const NAME = util.getName(_NAME); directive.$inject = [resolveFactory.NAME]; @@ -14,6 +14,4 @@ export function directive(resolve) { } }; } - -_module.directive(NAME, directive); - +module.directive(NAME, directive); diff --git a/@salix/core/src/icon-button/icon-button.mt.html b/@salix/core/src/icon-button/icon-button.mt.html new file mode 100644 index 000000000..5335a59c8 --- /dev/null +++ b/@salix/core/src/icon-button/icon-button.mt.html @@ -0,0 +1,3 @@ + + *[icon]* + \ No newline at end of file diff --git a/@salix/core/src/icon-button/icon-button.mt.js b/@salix/core/src/icon-button/icon-button.mt.js new file mode 100644 index 000000000..7ef6c222d --- /dev/null +++ b/@salix/core/src/icon-button/icon-button.mt.js @@ -0,0 +1,15 @@ +import {module} from '../module'; +import template from './icon-button.mt.html'; + +export const NAME = 'vnIconButtonmtFactory'; +export function factory() { + return { + template: template, + default: { + enabled: 'true', + typeName: 'button', + icon: '', + } + } +} +module.factory(NAME, factory); diff --git a/@salix/core/src/radio/radio.mt.html b/@salix/core/src/radio/radio.mt.html index 0d9e7e77c..5563b2d84 100644 --- a/@salix/core/src/radio/radio.mt.html +++ b/@salix/core/src/radio/radio.mt.html @@ -1,2 +1,2 @@ - - *[text]* + +*[text]* diff --git a/@salix/core/src/radio/radio.mt.js b/@salix/core/src/radio/radio.mt.js index 1fee7e597..3d523cdea 100644 --- a/@salix/core/src/radio/radio.mt.js +++ b/@salix/core/src/radio/radio.mt.js @@ -4,7 +4,6 @@ import * as constant from '../constants'; import template from './radio.mt.html'; const _NAME = 'radio'; -const DEFAULT_TEXT = 'radio'; const DEFAULT_CLASS = 'mdl-radio mdl-js-radio mdl-js-ripple-effect'; export const NAME = util.getFactoryName(_NAME + constant.MATERIAL_DESIGN_FRAMEWORK); @@ -13,7 +12,6 @@ export function factory() { return { template: template, default: { - text: DEFAULT_TEXT, enabled: 'true', className: DEFAULT_CLASS } diff --git a/@salix/core/src/resolveDefaultComponents.js b/@salix/core/src/resolveDefaultComponents.js index 4013a77d2..03a46d2e0 100644 --- a/@salix/core/src/resolveDefaultComponents.js +++ b/@salix/core/src/resolveDefaultComponents.js @@ -6,7 +6,6 @@ import Interpolate from './interpolate'; export const NAME = util.getProviderName('ResolveDefaultComponent'); export class ResolveDefaultComponent { - constructor(){ this._frameworkName="mt"; } @@ -14,7 +13,6 @@ export class ResolveDefaultComponent { //mt or bt this._frameworkName = value; } - $get($injector,vnInterpolate){ //Service Locator return { @@ -35,5 +33,4 @@ export class ResolveDefaultComponent { } } -// _module.provider(NAME,ResolveDefaultComponent) _module.provider(NAME,() => new ResolveDefaultComponent()); \ No newline at end of file diff --git a/@salix/crud/src/client/addresses/index.html b/@salix/crud/src/client/addresses/index.html index c936878b9..6dc691c09 100644 --- a/@salix/crud/src/client/addresses/index.html +++ b/@salix/crud/src/client/addresses/index.html @@ -1,27 +1,31 @@ - + Addresses - + Default Consignee Enabled - + - + - - - Edit - - {{i.consignee}} - {{i.street}} - {{i.city}}, {{i.province}} - {{i.phone}}, {{i.mobile}} + + + + {{i.consignee}} + {{i.street}} + {{i.city}}, {{i.province}} + {{i.phone}}, {{i.mobile}} + + + + + - + \ No newline at end of file diff --git a/@salix/crud/src/client/addresses/index.js b/@salix/crud/src/client/addresses/index.js index 97e782528..83cee40fd 100644 --- a/@salix/crud/src/client/addresses/index.js +++ b/@salix/crud/src/client/addresses/index.js @@ -6,27 +6,25 @@ export const COMPONENT = { template: template, controller: function ($http) { - this.addresses = [{ - consignee: 'Consignee 1', - street: 'Street', - city: 'City', - postcode: '46600', - province: 'Province', - country: 'Country', - phone: 'XX-XXX-XX-XX', - mobile: 'XX-6XX-XX-XX', - enabled: true - },{ - consignee: 'Consignee 2', - street: 'Street', - city: 'City', - postcode: '46600', - province: 'Province', - country: 'Country', - phone: 'XX-XXX-XX-XX', - mobile: 'XX-6XX-XX-XX', - enabled: false - }]; +/* $http.get('/client/api/Addresses', this.model).then ( + (json) => { this.addresses = json.data; }, + (json) => console.error (json.data.error.message) + ); +*/ + 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 + }); }, }; module.component(NAME, COMPONENT); diff --git a/@salix/crud/src/client/client.js b/@salix/crud/src/client/client.js index 5c86bc714..f1b5077cf 100644 --- a/@salix/crud/src/client/client.js +++ b/@salix/crud/src/client/client.js @@ -5,4 +5,8 @@ export {NAME as CLIENT_BASIC_DATA_INDEX, export {NAME as CLIENT_ADDRESSES, COMPONENT as CLIENT_ADDRESSES_COMPONENT} from './addresses/index'; export {NAME as CLIENTS, - COMPONENT as CLIENTS_COMPONENT} from './index/index'; \ No newline at end of file + COMPONENT as CLIENTS_COMPONENT} from './index/index'; +export {NAME as CLIENT_FISCAL_DATA_INDEX, + COMPONENT as CLIENT_FISCAL_DATA_INDEX_COMPONENT} from './fiscal-data/index'; +export {NAME as CLIENT_WEB_ACCESS, + COMPONENT as CLIENT_WEB_ACCESS_COMPONENT} from './web-access/index'; diff --git a/@salix/crud/src/client/fiscal-data/index.html b/@salix/crud/src/client/fiscal-data/index.html new file mode 100644 index 000000000..bbcef4277 --- /dev/null +++ b/@salix/crud/src/client/fiscal-data/index.html @@ -0,0 +1,64 @@ + + + + + Datos fiscales y de facturación + + + + + + + + + + + + + + + + + + Comercial 1 + Comercial 2 + + + + + + + + + + Información de facturación + + + + + + + + + + + + + + + + DOCUMENTACION + + + + + + + + + + + + + + \ No newline at end of file diff --git a/@salix/crud/src/client/fiscal-data/index.js b/@salix/crud/src/client/fiscal-data/index.js new file mode 100644 index 000000000..d46d8d7cc --- /dev/null +++ b/@salix/crud/src/client/fiscal-data/index.js @@ -0,0 +1,16 @@ +import template from './index.html'; +import {module} from '../../module'; + +export const NAME = 'vnClientFiscalData'; +export const COMPONENT = { + template: template, + controller: function($http) { + this.submit = function() { + $http.post('/client/api/Clients', this.model).then( + json => console.log(json.statusText), + json => console.error(json.data.error.message) + ); + }; + } +}; +module.component(NAME, COMPONENT); diff --git a/@salix/crud/src/client/routes.js b/@salix/crud/src/client/routes.js index cf5889c35..e8725a1a4 100644 --- a/@salix/crud/src/client/routes.js +++ b/@salix/crud/src/client/routes.js @@ -24,7 +24,18 @@ state: 'client.addresses', template: '', module: 'crud' + }, + { + url: '/fiscal-data', + state: 'client.fiscaldata', + template: '', + module: 'crud' + }, { + url: '/web-access', + state: 'client.webaccess', + template: '', + module: 'crud' } -] +]; diff --git a/@salix/crud/src/client/web-access/index.html b/@salix/crud/src/client/web-access/index.html new file mode 100644 index 000000000..f0a1d0b8e --- /dev/null +++ b/@salix/crud/src/client/web-access/index.html @@ -0,0 +1,16 @@ + + + + Acceso Web + + + + + + + + + + + + \ No newline at end of file diff --git a/@salix/crud/src/customer/webclient/index.js b/@salix/crud/src/client/web-access/index.js similarity index 63% rename from @salix/crud/src/customer/webclient/index.js rename to @salix/crud/src/client/web-access/index.js index b9207f05e..1660ec601 100644 --- a/@salix/crud/src/customer/webclient/index.js +++ b/@salix/crud/src/client/web-access/index.js @@ -1,7 +1,7 @@ import template from './index.html'; import {module} from '../../module'; -export const NAME = 'customerWebClient'; +export const NAME = 'vnClientWebAccess'; export const COMPONENT = { template: template }; diff --git a/@salix/crud/src/crud.js b/@salix/crud/src/crud.js index 62666d119..863c65a42 100644 --- a/@salix/crud/src/crud.js +++ b/@salix/crud/src/crud.js @@ -1,5 +1,5 @@ export * from './module'; -export * from './client/client' +export * from './client/client'; export {NAME as CUSTOMER_INDEX, COMPONENT as CUSTOMER_INDEX_COMPONENT} from './customer/index'; @@ -14,9 +14,6 @@ export {NAME as CUSTOMER_DESCRIPTOR, export {NAME as CUSTOMER_ACTIONS, COMPONENT as CUSTOMER_ACTIONS_COMPONENT} from './customer/edit/actions'; -export {NAME as CUSTOMER_WEB_CLIENT_INDEX, - COMPONENT as CUSTOMER_WEB_CLIENT_INDEX_COMPONENT} from './customer/webclient'; - export {NAME as NAVIGATION_INDEX, COMPONENT as NAVIGATION_INDEX_COMPONENT} from './navigation/index'; export {NAME as NAVIGATION_ITEM, diff --git a/@salix/crud/src/customer/routes.js b/@salix/crud/src/customer/routes.js index a2ada44a6..9eed639df 100644 --- a/@salix/crud/src/customer/routes.js +++ b/@salix/crud/src/customer/routes.js @@ -34,5 +34,4 @@ description: '', image: '' } - ] diff --git a/@salix/crud/src/customer/webclient/index.html b/@salix/crud/src/customer/webclient/index.html deleted file mode 100644 index e065cd47b..000000000 --- a/@salix/crud/src/customer/webclient/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - CLIENTE_acceso web - - - - - - - - - - - \ No newline at end of file diff --git a/dev.sh b/dev.sh index 6c789897d..87123d9fe 100755 --- a/dev.sh +++ b/dev.sh @@ -13,7 +13,6 @@ case "$1" in $0 stop echo "################################ Starting services" forever start forever.json - forever list "$nginxBin" -c "$nginxConf" -p "$nginxPrefix" cd @salix && gulp ;;