diff --git a/@salix/app/src/app.js b/@salix/app/src/app.js index 455437d97..45d0680d4 100644 --- a/@salix/app/src/app.js +++ b/@salix/app/src/app.js @@ -1,3 +1,7 @@ +<<<<<<< HEAD import {bootstrap} from './bootstrap'; import * as spliting from './spliting' -bootstrap(); \ No newline at end of file +bootstrap(); +======= +import {ng} from '@salix/vendor'; +>>>>>>> 123932ba64bf824cbdc2bd9fe04663b2e539eea3 diff --git a/@salix/core/src/button/button.bt.js b/@salix/core/src/button/button.bt.js index 9de37f1fa..bffd70bd1 100644 --- a/@salix/core/src/button/button.bt.js +++ b/@salix/core/src/button/button.bt.js @@ -3,11 +3,11 @@ import * as util from '../util'; import * as constant from '../constants'; import template from './button.bt.html'; -const DEFAULT_CLASS = ''; // clase css bootstrap. Pendiente de definir -const DEFAULT_TEXT = constant.BUTTON_NAME; - -export const NAME = util.getFactoryName(constant.BUTTON_NAME + constant.BOOTSTRAPFRAMEWORK) //vnbuttonmtFactory +const _NAME = 'button'; +const DEFAULT_CLASS = ''; +const DEFAULT_TEXT = 'Button'; +export const NAME = util.getFactoryName(_NAME + constant.BOOTSTRAP_FRAMEWORK); export function factory() { return { @@ -19,6 +19,6 @@ export function factory() { typeName: 'button' } } -}; +} -_module.factory(NAME, factory); \ No newline at end of file +_module.factory(NAME, factory); diff --git a/@salix/core/src/button/button.js b/@salix/core/src/button/button.js index 9ccbe4701..67b169422 100644 --- a/@salix/core/src/button/button.js +++ b/@salix/core/src/button/button.js @@ -1,17 +1,16 @@ import {module as _module} from '../module'; import * as resolveFactory from '../resolveDefaultComponents'; -import {BUTTON_NAME} from '../constants'; import * as util from '../util'; - -export const NAME = util.getName(BUTTON_NAME); +const _NAME = 'button'; +export const NAME = util.getName(_NAME); directive.$inject =[resolveFactory.NAME]; export function directive (resolve){ return{ require:'E', template: function(_,attr){ - return resolve.getTemplate(BUTTON_NAME,attr); + return resolve.getTemplate(_NAME, attr); } } } diff --git a/@salix/core/src/button/button.mt.js b/@salix/core/src/button/button.mt.js index 8df62bc37..d1b28ced1 100644 --- a/@salix/core/src/button/button.mt.js +++ b/@salix/core/src/button/button.mt.js @@ -3,13 +3,13 @@ import * as util from '../util'; import * as constant from '../constants'; import template from './button.mt.html'; +const _NAME = 'button'; const DEFAULT_CLASS = 'mdl-button mdl-js-button mdl-button--raised'; -const DEFAULT_TEXT = constant.BUTTON_NAME; +const DEFAULT_TEXT = 'Button'; -export const NAME = util.getFactoryName(constant.BUTTON_NAME + constant.MATERIALDESIGNFRAMEWORK); //buttonmtFactory +export const NAME = util.getFactoryName(_NAME + constant.MATERIAL_DESIGN_FRAMEWORK); - -export function factoryMt() { +export function factory() { return { template: template, default: { @@ -19,6 +19,6 @@ export function factoryMt() { typeName: 'button' } } -}; +} -_module.factory(NAME, factoryMt); \ No newline at end of file +_module.factory(NAME, factory); diff --git a/@salix/core/src/constants.js b/@salix/core/src/constants.js index 54088e881..8707b4c2f 100644 --- a/@salix/core/src/constants.js +++ b/@salix/core/src/constants.js @@ -1,10 +1,10 @@ -// nombre del prefijo del proyecto -export const PREFIX ='vn' -// nombre del framework css + +// Proyect prefix name +export const PREFIX ='vn'; + +// CSS frameworks export const MATERIAL_DESIGN_FRAMEWORK = 'mt'; export const BOOTSTRAP_FRAMEWORK = 'bt'; -// directive name -export const BUTTON_NAME ='button'; -export const BUTTON_ICON_NAME ='buttonIcon'; -//dependency module -export const EMPTYDEPENDECIES=[]; \ No newline at end of file + +// Module dependencies +export const EMPTY_DEPENDECIES = []; diff --git a/@salix/core/src/interpolate.js b/@salix/core/src/interpolate.js index b620667b3..f65e54dcb 100644 --- a/@salix/core/src/interpolate.js +++ b/@salix/core/src/interpolate.js @@ -164,4 +164,4 @@ export class Interpolate } -_module.provider(NAME,Interpolate); \ No newline at end of file +_module.provider(NAME, Interpolate); diff --git a/@salix/core/src/module.js b/@salix/core/src/module.js index 43b13f444..3472e0b4d 100644 --- a/@salix/core/src/module.js +++ b/@salix/core/src/module.js @@ -1,7 +1,17 @@ +<<<<<<< HEAD import * as vendors from '@salix/vendor'; import {getModuleName,getVendorDependencies} from './util'; const DEPENDENCIES = getVendorDependencies(vendors) export const NAME = getModuleName('core'); export const module = vendors.ng.module(NAME,DEPENDENCIES); +======= +import {ng} from '@salix/vendor'; +import {EMPTY_DEPENDECIES} from './constants'; +import {getModuleName} from './util'; + +export const NAME = getModuleName('core'); + +export const module = ng.module(NAME,EMPTY_DEPENDECIES); +>>>>>>> 123932ba64bf824cbdc2bd9fe04663b2e539eea3 diff --git a/index.html b/index.html index beeef2f28..609da2b6e 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,14 @@