Commit 7d24e304797d3a544812defb6293b98706da51c8
Exists in
master
Merge remote-tracking branch 'upstream/master'
Showing
3 changed files
Show diff stats
gulpfile.js
1 | const gulp = require('gulp'); | 1 | const gulp = require('gulp'); |
2 | const sass = require('gulp-sass'); | 2 | const sass = require('gulp-sass'); |
3 | const concat = require('gulp-concat'); | 3 | const concat = require('gulp-concat'); |
4 | const rename = require('gulp-rename'); | 4 | const rename = require('gulp-rename'); |
5 | const uglify = require('gulp-uglify'); | 5 | const uglify = require('gulp-uglify'); |
6 | const pump = require('pump'); | 6 | const pump = require('pump'); |
7 | const jshint = require('gulp-jshint'); | 7 | const jshint = require('gulp-jshint'); |
8 | const replace = require('gulp-replace'); | 8 | const replace = require('gulp-replace'); |
9 | const connect = require('gulp-connect'); | 9 | const connect = require('gulp-connect'); |
10 | const watch = require('gulp-watch'); | 10 | const watch = require('gulp-watch'); |
11 | 11 | ||
12 | var paths = { | 12 | var paths = { |
13 | srcHTML : 'src/views/*.html', | 13 | srcHTML : 'src/views/*.html', |
14 | srcJS : 'src/js/*.js', | 14 | srcJS : 'src/js/*.js', |
15 | confJS : 'src/etc/develop.js', | 15 | confJS : 'src/etc/develop.js', |
16 | dist : 'dist/', | 16 | dist : 'dist/', |
17 | distHTML : 'dist/views/' | 17 | distHTML : 'dist/views/' |
18 | }; | 18 | }; |
19 | 19 | ||
20 | gulp.task('uglify', function() { | 20 | gulp.task('uglify', function() { |
21 | pump( | 21 | pump( |
22 | [ | 22 | [ |
23 | gulp.src([paths.srcJS, paths.confJS]), | 23 | gulp.src([paths.srcJS, paths.confJS]), |
24 | concat('wrapper-demo.js'), | 24 | concat('wrapper-demo.js'), |
25 | replace('/src/', '/dist/'), | 25 | replace('/src/', '/dist/'), |
26 | gulp.dest(paths.dist), | 26 | gulp.dest(paths.dist), |
27 | rename('wrapper-demo.min.js'), | 27 | rename('wrapper-demo.min.js'), |
28 | uglify(), | 28 | uglify(), |
29 | gulp.dest(paths.dist) | 29 | gulp.dest(paths.dist) |
30 | ] | 30 | ] |
31 | ); | 31 | ); |
32 | }); | 32 | }); |
33 | 33 | ||
34 | gulp.task('html', function() { | 34 | gulp.task('html', function() { |
35 | pump([ | 35 | pump([ |
36 | gulp.src('index.html'), | 36 | gulp.src('index.html'), |
37 | replace(/\<!\-\- BUILD \-\-\>.*\<!\-\- \/BUILD \-\-\>/sgm, '<script src="wrapper-demo.min.js"></script>'), | 37 | replace(/\<!\-\- BUILD \-\-\>.*\<!\-\- \/BUILD \-\-\>/sgm, '<script src="wrapper-demo.min.js"></script>'), |
38 | gulp.dest(paths.dist) | 38 | gulp.dest(paths.dist) |
39 | ]); | 39 | ]); |
40 | pump([ | 40 | pump([ |
41 | gulp.src(paths.srcHTML), | 41 | gulp.src(paths.srcHTML), |
42 | gulp.dest(paths.distHTML) | 42 | gulp.dest(paths.distHTML) |
43 | ]); | 43 | ]); |
44 | }) | 44 | }) |
45 | 45 | ||
46 | gulp.task('sass', function() { | 46 | gulp.task('sass', function() { |
47 | return gulp.src('src/sass/*.scss') | 47 | return gulp.src('src/sass/*.scss') |
48 | .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError)) | 48 | .pipe(sass({outputStyle: 'compressed'}).on('error', sass.logError)) |
49 | .pipe(gulp.dest('css')); | 49 | .pipe(gulp.dest('css')); |
50 | }); | 50 | }); |
51 | 51 | ||
52 | gulp.task('pre-install', function() { | ||
53 | pump([ | ||
54 | gulp.src('package.json'), | ||
55 | replace('debonline.dyndns.org', 'git.focasoftware.com'), | ||
56 | gulp.dest('') | ||
57 | ]); | ||
58 | }) | ||
59 | |||
60 | gulp.task('post-install', function() { | ||
61 | pump([ | ||
62 | gulp.src('package.json'), | ||
63 | replace('git.focasoftware.com', 'debonline.dyndns.org'), | ||
64 | gulp.dest('') | ||
65 | ]); | ||
66 | }) | ||
67 | |||
52 | gulp.task('pre-commit', function() { | 68 | gulp.task('pre-commit', function() { |
53 | pump( | 69 | pump( |
54 | [ | 70 | [ |
55 | gulp.src(paths.srcJS), | 71 | gulp.src(paths.srcJS), |
56 | jshint('.jshintrc'), | 72 | jshint('.jshintrc'), |
57 | jshint.reporter('default'), | 73 | jshint.reporter('default'), |
58 | jshint.reporter('fail') | 74 | jshint.reporter('fail') |
59 | ] | 75 | ] |
60 | ); | 76 | ); |
61 | gulp.start('uglify'); | 77 | gulp.start('uglify'); |
62 | gulp.start('sass'); | 78 | gulp.start('sass'); |
63 | }); | 79 | }); |
64 | 80 | ||
65 | gulp.task('webserver', function() { | 81 | gulp.task('webserver', function() { |
66 | pump [ | 82 | pump [ |
67 | connect.server( | 83 | connect.server( |
68 | { | 84 | { |
69 | port: 8086, | 85 | port: 8086, |
70 | host: '0.0.0.0', | 86 | host: '0.0.0.0', |
71 | livereload: true | 87 | livereload: true |
72 | } | 88 | } |
73 | ) | 89 | ) |
74 | ] | 90 | ] |
75 | }); | 91 | }); |
76 | 92 | ||
77 | gulp.task('watch', function() { | 93 | gulp.task('watch', function() { |
78 | gulp.watch([paths.srcJS], ['uglify']); | 94 | gulp.watch([paths.srcJS], ['uglify']); |
79 | gulp.watch('src/sass/*.scss', ['sass']); | 95 | gulp.watch('src/sass/*.scss', ['sass']); |
80 | }) | 96 | }) |
81 | 97 | ||
82 | gulp.task('reload'), function() { | 98 | gulp.task('reload'), function() { |
83 | connect.reload(); | 99 | connect.reload(); |
84 | } | 100 | } |
85 | 101 | ||
86 | gulp.task('livereload', function() { | 102 | gulp.task('livereload', function() { |
87 | gulp.watch('css/*.css', ['reload']); | 103 | gulp.watch('css/*.css', ['reload']); |
88 | gulp.watch('js/dist/*.js', ['reload']); | 104 | gulp.watch('js/dist/*.js', ['reload']); |
89 | gulp.watch('vistas/**/*.html', ['reload']); | 105 | gulp.watch('vistas/**/*.html', ['reload']); |
90 | gulp.watch('index.html', ['reload']); | 106 | gulp.watch('index.html', ['reload']); |
91 | }); | 107 | }); |
92 | 108 | ||
93 | gulp.task('default', ['webserver', 'livereload', 'watch']); | 109 | gulp.task('default', ['webserver', 'livereload', 'watch']); |
94 | 110 |
package.json
1 | { | 1 | { |
2 | "name": "wrapper-demo", | 2 | "name": "wrapper-demo", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "", | 4 | "description": "", |
5 | "main": "main.js", | 5 | "main": "main.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "initdev": "npm install gulp --global && npm install && npm install -g jshint", | 7 | "initdev": "npm install gulp --global && npm install && npm install -g jshint", |
8 | "gulp-pre-commit": "gulp pre-commit", | 8 | "gulp-pre-commit": "gulp pre-commit", |
9 | "compile": "gulp uglify && gulp sass", | 9 | "compile": "gulp uglify && gulp sass", |
10 | "postinstall": "npm install foca-abm-plazo-pago foca-abm-precios-condiciones foca-abm-sectores foca-admin-seguimiento foca-botonera-principal foca-busqueda-cliente foca-configuracion foca-crear-hoja-ruta foca-crear-nota-pedido foca-crear-remito foca-directivas foca-filtros foca-hoja-ruta foca-login foca-modal foca-modal-busqueda-productos foca-modal-chofer foca-modal-cotizacion foca-modal-detalle-hoja-ruta foca-modal-domicilio foca-modal-flete foca-modal-moneda foca-modal-nota-pedido foca-modal-precio-condiciones foca-modal-proveedor foca-modal-remito foca-modal-tarifa-flete foca-modal-transportista foca-modal-vehiculo foca-modal-vendedores foca-nombre-empresa foca-seguimiento foca-teclado", | 10 | "postinstall": "npm install foca-abm-plazo-pago foca-abm-precios-condiciones foca-abm-sectores foca-abm-vehiculo foca-admin-seguimiento foca-botonera-principal foca-busqueda-cliente foca-configuracion foca-crear-cobranza foca-crear-hoja-ruta foca-crear-nota-pedido foca-crear-remito foca-directivas foca-filtros foca-hoja-ruta foca-login foca-modal foca-modal-banco foca-modal-busqueda-productos foca-modal-cheque foca-modal-chofer foca-modal-cobrador foca-modal-cotizacion foca-modal-detalle-hoja-ruta foca-modal-domicilio foca-modal-efectivo foca-modal-factura foca-modal-flete foca-modal-localidad foca-modal-moneda foca-modal-nota-pedido foca-modal-precio-condiciones foca-modal-proveedor foca-modal-provincia foca-modal-remito foca-modal-tarifa-flete foca-modal-transportista foca-modal-vehiculo foca-modal-vendedores foca-nombre-empresa foca-seguimiento foca-teclado", |
11 | "actualizar": "git pull origin master", | 11 | "actualizar": "git pull origin master", |
12 | "electron": "electron .", | 12 | "install-dev": "gulp pre-install && npm install && gulp post-install" |
13 | "electron-build": "gulp uglify && gulp html && gulp sass && electron .", | ||
14 | "install-dev": "npm install angular angular-cookies angular-i18n angular-ladda angular-route angular-sanitize angular-ui-swiper bootstrap font-awesome gulp gulp-clean gulp-connect gulp-jshint jshint pump gulp-replace gulp-sass gulp-angular-templatecache gulp-htmlmin gulp-uglify gulp-uglify-es jquery ladda leaflet ngstorage node-sass uglify ui-bootstrap4 git+http://git.focasoftware.com/npm/foca-abm-plazo-pago.git git+http://git.focasoftware.com/npm/foca-abm-precios-condiciones.git git+http://git.focasoftware.com/npm/foca-abm-sectores.git git+http://git.focasoftware.com/npm/foca-abm-vehiculo.git git+http://git.focasoftware.com/npm/foca-admin-seguimiento.git git+http://git.focasoftware.com/npm/foca-botonera-principal.git git+http://git.focasoftware.com/npm/foca-busqueda-cliente.git git+http://git.focasoftware.com/npm/foca-configuracion.git git+http://git.focasoftware.com/npm/foca-crear-cobranza.git git+http://git.focasoftware.com/npm/foca-crear-hoja-ruta.git git+http://git.focasoftware.com/npm/foca-crear-nota-pedido.git git+http://git.focasoftware.com/npm/foca-crear-remito.git git+http://git.focasoftware.com/npm/foca-directivas.git git+http://git.focasoftware.com/npm/foca-filtros.git git+http://git.focasoftware.com/npm/foca-hoja-ruta.git git+http://git.focasoftware.com/npm/foca-login.git git+http://git.focasoftware.com/npm/foca-modal.git git+http://git.focasoftware.com/npm/foca-modal-busqueda-productos.git git+http://git.focasoftware.com/npm/foca-modal-cheque.git git+http://git.focasoftware.com/npm/foca-modal-chofer.git git+http://git.focasoftware.com/npm/foca-modal-cobrador.git git+http://git.focasoftware.com/npm/foca-modal-cotizacion.git git+http://git.focasoftware.com/npm/foca-modal-detalle-hoja-ruta.git git+http://git.focasoftware.com/npm/foca-modal-domicilio.git git+http://git.focasoftware.com/npm/foca-modal-efectivo.git git+http://git.focasoftware.com/npm/foca-modal-factura.git git+http://git.focasoftware.com/npm/foca-modal-flete.git git+http://git.focasoftware.com/npm/foca-modal-moneda.git git+http://git.focasoftware.com/npm/foca-modal-nota-pedido.git git+http://git.focasoftware.com/npm/foca-modal-precio-condiciones.git git+http://git.focasoftware.com/npm/foca-modal-proveedor.git git+http://git.focasoftware.com/npm/foca-modal-remito.git git+http://git.focasoftware.com/npm/foca-modal-tarifa-flete.git git+http://git.focasoftware.com/npm/foca-modal-transportista.git git+http://git.focasoftware.com/npm/foca-modal-vehiculo.git git+http://git.focasoftware.com/npm/foca-modal-vendedores.git git+http://git.focasoftware.com/npm/foca-seguimiento.git git+http://git.focasoftware.com/npm/foca-teclado.git git+http://git.focasoftware.com/npm/foca-modal-banco.git git+http://git.focasoftware.com/npm/foca-modal-localidad.git git+http://git.focasoftware.com/npm/foca-modal-provincia.git" | ||
15 | }, | 13 | }, |
16 | "pre-commit": [ | 14 | "pre-commit": [ |
17 | "gulp-pre-commit" | 15 | "gulp-pre-commit" |
18 | ], | 16 | ], |
19 | "repository": { | 17 | "repository": { |
20 | "type": "git", | 18 | "type": "git", |
21 | "url": "ssh://git@debonline.dyndns.org:npm/wrapper-demo.git" | 19 | "url": "ssh://git@debonline.dyndns.org:npm/wrapper-demo.git" |
22 | }, | 20 | }, |
23 | "author": "Foca Software", | 21 | "author": "Foca Software", |
24 | "license": "ISC", | 22 | "license": "ISC", |
25 | "dependencies": { | 23 | "dependencies": { |
26 | "angular": "^1.7.5", | 24 | "angular": "^1.7.5", |
27 | "angular-cookies": "^1.7.5", | 25 | "angular-cookies": "^1.7.5", |
28 | "angular-i18n": "^1.7.5", | 26 | "angular-i18n": "^1.7.5", |
29 | "angular-ladda": "^0.4.3", | 27 | "angular-ladda": "^0.4.3", |
30 | "angular-route": "^1.7.5", | 28 | "angular-route": "^1.7.5", |
31 | "angular-sanitize": "^1.7.5", | 29 | "angular-sanitize": "^1.7.5", |
32 | "angular-ui-swiper": "^2.3.8", | 30 | "angular-ui-swiper": "^2.3.8", |
33 | "bootstrap": "^4.1.3", | 31 | "bootstrap": "^4.1.3", |
34 | "foca-abm-plazo-pago": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-plazo-pago.git", | 32 | "foca-abm-plazo-pago": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-plazo-pago.git", |
35 | "foca-abm-precios-condiciones": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-precios-condiciones.git", | 33 | "foca-abm-precios-condiciones": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-precios-condiciones.git", |
36 | "foca-abm-sectores": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-sectores.git", | 34 | "foca-abm-sectores": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-sectores.git", |
37 | "foca-abm-vehiculo": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-vehiculo.git", | 35 | "foca-abm-vehiculo": "git+ssh://git@debonline.dyndns.org:npm/foca-abm-vehiculo.git", |
38 | "foca-admin-seguimiento": "git+ssh://git@debonline.dyndns.org:npm/foca-admin-seguimiento.git", | 36 | "foca-admin-seguimiento": "git+ssh://git@debonline.dyndns.org:npm/foca-admin-seguimiento.git", |
39 | "foca-botonera-principal": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-principal.git", | 37 | "foca-botonera-principal": "git+ssh://git@debonline.dyndns.org:npm/foca-botonera-principal.git", |
40 | "foca-busqueda-cliente": "git+ssh://git@debonline.dyndns.org:npm/foca-busqueda-cliente.git", | 38 | "foca-busqueda-cliente": "git+ssh://git@debonline.dyndns.org:npm/foca-busqueda-cliente.git", |
41 | "foca-configuracion": "git+ssh://git@debonline.dyndns.org:npm/foca-configuracion.git", | 39 | "foca-configuracion": "git+ssh://git@debonline.dyndns.org:npm/foca-configuracion.git", |
42 | "foca-crear-cobranza": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-cobranza.git", | 40 | "foca-crear-cobranza": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-cobranza.git", |
43 | "foca-crear-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-hoja-ruta.git", | 41 | "foca-crear-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-hoja-ruta.git", |
44 | "foca-crear-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-nota-pedido.git", | 42 | "foca-crear-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-nota-pedido.git", |
45 | "foca-crear-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-remito.git", | 43 | "foca-crear-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-crear-remito.git", |
46 | "foca-directivas": "git+ssh://git@debonline.dyndns.org:npm/foca-directivas.git", | 44 | "foca-directivas": "git+ssh://git@debonline.dyndns.org:npm/foca-directivas.git", |
47 | "foca-filtros": "git+ssh://git@debonline.dyndns.org:npm/foca-filtros.git", | 45 | "foca-filtros": "git+ssh://git@debonline.dyndns.org:npm/foca-filtros.git", |
48 | "foca-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-hoja-ruta.git", | 46 | "foca-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-hoja-ruta.git", |
49 | "foca-login": "git+ssh://git@debonline.dyndns.org:npm/foca-login.git", | 47 | "foca-login": "git+ssh://git@debonline.dyndns.org:npm/foca-login.git", |
50 | "foca-modal": "git+ssh://git@debonline.dyndns.org:npm/foca-modal.git", | 48 | "foca-modal": "git+ssh://git@debonline.dyndns.org:npm/foca-modal.git", |
51 | "foca-modal-banco": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-banco.git", | 49 | "foca-modal-banco": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-banco.git", |
52 | "foca-modal-busqueda-productos": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-busqueda-productos.git", | 50 | "foca-modal-busqueda-productos": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-busqueda-productos.git", |
53 | "foca-modal-cheque": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cheque.git", | 51 | "foca-modal-cheque": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cheque.git", |
54 | "foca-modal-chofer": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-chofer.git", | 52 | "foca-modal-chofer": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-chofer.git", |
55 | "foca-modal-cobrador": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cobrador.git", | 53 | "foca-modal-cobrador": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cobrador.git", |
56 | "foca-modal-cotizacion": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cotizacion.git", | 54 | "foca-modal-cotizacion": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-cotizacion.git", |
57 | "foca-modal-detalle-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-detalle-hoja-ruta.git", | 55 | "foca-modal-detalle-hoja-ruta": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-detalle-hoja-ruta.git", |
58 | "foca-modal-domicilio": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-domicilio.git", | 56 | "foca-modal-domicilio": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-domicilio.git", |
59 | "foca-modal-efectivo": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-efectivo.git", | 57 | "foca-modal-efectivo": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-efectivo.git", |
60 | "foca-modal-factura": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-factura.git", | 58 | "foca-modal-factura": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-factura.git", |
61 | "foca-modal-flete": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-flete.git", | 59 | "foca-modal-flete": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-flete.git", |
62 | "foca-modal-localidad": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-localidad.git", | 60 | "foca-modal-localidad": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-localidad.git", |
63 | "foca-modal-moneda": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-moneda.git", | 61 | "foca-modal-moneda": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-moneda.git", |
64 | "foca-modal-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-nota-pedido.git", | 62 | "foca-modal-nota-pedido": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-nota-pedido.git", |
65 | "foca-modal-precio-condiciones": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-precio-condiciones.git", | 63 | "foca-modal-precio-condiciones": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-precio-condiciones.git", |
66 | "foca-modal-proveedor": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-proveedor.git", | 64 | "foca-modal-proveedor": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-proveedor.git", |
67 | "foca-modal-provincia": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-provincia.git", | 65 | "foca-modal-provincia": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-provincia.git", |
68 | "foca-modal-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-remito.git", | 66 | "foca-modal-remito": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-remito.git", |
69 | "foca-modal-tarifa-flete": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-tarifa-flete.git", | 67 | "foca-modal-tarifa-flete": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-tarifa-flete.git", |
70 | "foca-modal-transportista": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-transportista.git", | 68 | "foca-modal-transportista": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-transportista.git", |
71 | "foca-modal-vehiculo": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-vehiculo.git", | 69 | "foca-modal-vehiculo": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-vehiculo.git", |
72 | "foca-modal-vendedores": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-vendedores.git", | 70 | "foca-modal-vendedores": "git+ssh://git@debonline.dyndns.org:npm/foca-modal-vendedores.git", |
73 | "foca-nombre-empresa": "git+ssh://git@debonline.dyndns.org:npm/foca-nombre-empresa.git", | 71 | "foca-nombre-empresa": "git+ssh://git@debonline.dyndns.org:npm/foca-nombre-empresa.git", |
74 | "foca-seguimiento": "git+ssh://git@debonline.dyndns.org:npm/foca-seguimiento.git", | 72 | "foca-seguimiento": "git+ssh://git@debonline.dyndns.org:npm/foca-seguimiento.git", |
75 | "foca-teclado": "git+ssh://git@debonline.dyndns.org:npm/foca-teclado.git", | 73 | "foca-teclado": "git+ssh://git@debonline.dyndns.org:npm/foca-teclado.git", |
76 | "font-awesome": "^4.7.0", | 74 | "font-awesome": "^4.7.0", |
77 | "gulp-angular-templatecache": "^2.2.1", | 75 | "gulp-angular-templatecache": "^2.2.1", |
78 | "gulp-htmlmin": "^5.0.1", | 76 | "gulp-htmlmin": "^5.0.1", |
79 | "gulp-uglify": "^3.0.1", | 77 | "gulp-uglify": "^3.0.1", |
80 | "gulp-uglify-es": "^1.0.4", | 78 | "gulp-uglify-es": "^1.0.4", |
81 | "jquery": "^3.3.1", | 79 | "jquery": "^3.3.1", |
82 | "ladda": "1.0.6", | 80 | "ladda": "1.0.6", |
83 | "leaflet": "1.3.4", | 81 | "leaflet": "1.3.4", |
84 | "ngstorage": "^0.3.11", | 82 | "ngstorage": "^0.3.11", |
85 | "node-sass": "^4.10.0", | 83 | "node-sass": "^4.10.0", |
86 | "uglify": "^0.1.5", | 84 | "uglify": "^0.1.5", |
87 | "ui-bootstrap4": "^3.0.5" | 85 | "ui-bootstrap4": "^3.0.5" |
88 | }, | 86 | }, |
89 | "devDependencies": { | 87 | "devDependencies": { |
90 | "electron": "^3.0.2", | 88 | "electron": "^3.0.2", |
91 | "gulp": "^3.9.1", | 89 | "gulp": "^3.9.1", |
92 | "gulp-clean": "^0.4.0", | 90 | "gulp-clean": "^0.4.0", |
93 | "gulp-concat": "^2.6.1", | 91 | "gulp-concat": "^2.6.1", |
94 | "gulp-connect": "^5.6.1", | 92 | "gulp-connect": "^5.6.1", |
95 | "gulp-jshint": "^2.1.0", | 93 | "gulp-jshint": "^2.1.0", |
96 | "gulp-rename": "^1.4.0", | 94 | "gulp-rename": "^1.4.0", |
97 | "gulp-replace": "^1.0.0", | 95 | "gulp-replace": "^1.0.0", |
98 | "gulp-sass": "^4.0.1", | 96 | "gulp-sass": "^4.0.1", |
99 | "gulp-uglify": "^1.0.4", | 97 | "gulp-uglify": "^1.0.4", |
100 | "gulp-watch": "^5.0.1", | 98 | "gulp-watch": "^5.0.1", |
101 | "jasmine-core": "^3.2.1", | 99 | "jasmine-core": "^3.2.1", |
102 | "jshint": "^2.9.6", | 100 | "jshint": "^2.9.6", |
103 | "pre-commit": "^1.2.2", | 101 | "pre-commit": "^1.2.2", |
104 | "pump": "^3.0.0" | 102 | "pump": "^3.0.0" |
105 | } | 103 | } |
106 | } | 104 | } |
107 | 105 |
src/sass/_botonera-principal.scss
1 | .botonera-principal { | 1 | .botonera-principal { |
2 | menuitem { | 2 | menuitem { |
3 | display: inline-block; | 3 | display: inline-block; |
4 | height: 130px; | 4 | height: 130px; |
5 | text-align: center; | 5 | text-align: center; |
6 | width: 180px; | 6 | width: 180px; |
7 | @media (max-width: 576px) { | 7 | @media (max-width: 576px) { |
8 | width: 100%; | 8 | width: 100%; |
9 | } | 9 | } |
10 | } | 10 | } |
11 | button { | 11 | button { |
12 | background-image: url('../img/botonera.png'); | 12 | background-image: url('../img/botonera.png'); |
13 | border-radius: 12px; | 13 | border-radius: 12px; |
14 | border-width: 0; | 14 | border-width: 0; |
15 | height: 90px; | 15 | height: 90px; |
16 | position: relative; | 16 | position: relative; |
17 | width: 90px; | 17 | width: 90px; |
18 | span { | 18 | span { |
19 | left: 0; | 19 | left: 0; |
20 | position: absolute; | 20 | position: absolute; |
21 | text-align: center; | 21 | text-align: center; |
22 | top: 90px; | 22 | top: 90px; |
23 | width: 100%; | 23 | width: 100%; |
24 | font-size: 12px; | 24 | font-size: 12px; |
25 | color: #777777; | 25 | color: #777777; |
26 | } | 26 | } |
27 | } | 27 | } |
28 | &-menu { | 28 | &-menu { |
29 | padding-left: 90px; | 29 | padding-left: 90px; |
30 | @media (max-width: 576px) { | 30 | @media (max-width: 576px) { |
31 | padding: 0; | 31 | padding: 0; |
32 | } | 32 | } |
33 | } | 33 | } |
34 | &-logo { | 34 | &-logo { |
35 | width: 80%; | 35 | width: 80%; |
36 | opacity: .8; | 36 | opacity: .8; |
37 | @media (max-width: 576px) { | 37 | @media (max-width: 576px) { |
38 | width: 100%; | 38 | width: 100%; |
39 | } | 39 | } |
40 | } | 40 | } |
41 | &-vacio { | 41 | &-vacio { |
42 | & button { | 42 | & button { |
43 | background-position: -4380px 0; | 43 | background-position: -4380px 0; |
44 | &:hover { | 44 | &:hover { |
45 | background-position: -4380px -90px; | 45 | background-position: -4380px -90px; |
46 | } | 46 | } |
47 | } | 47 | } |
48 | } | 48 | } |
49 | &-abrir-turno { | 49 | &-abrir-turno { |
50 | & button { | 50 | & button { |
51 | background-position: 0 0; | 51 | background-position: 0 0; |
52 | &:hover { | 52 | &:hover { |
53 | background-position: 0 -90px; | 53 | background-position: 0 -90px; |
54 | } | 54 | } |
55 | } | 55 | } |
56 | } | 56 | } |
57 | &-cerrar-turno { | 57 | &-cerrar-turno { |
58 | & button { | 58 | & button { |
59 | background-position: -90px 0; | 59 | background-position: -90px 0; |
60 | &:hover { | 60 | &:hover { |
61 | background-position: -90px -90px; | 61 | background-position: -90px -90px; |
62 | } | 62 | } |
63 | } | 63 | } |
64 | } | 64 | } |
65 | &-caja { | 65 | &-caja { |
66 | & button { | 66 | & button { |
67 | background-position: -180px 0; | 67 | background-position: -180px 0; |
68 | &:hover { | 68 | &:hover { |
69 | background-position: -180px -90px; | 69 | background-position: -180px -90px; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | } | 72 | } |
73 | &-facturador { | 73 | &-facturador { |
74 | & button { | 74 | & button { |
75 | background-position: -270px 0px; | 75 | background-position: -270px 0px; |
76 | &:hover { | 76 | &:hover { |
77 | background-position: -270px -90px; | 77 | background-position: -270px -90px; |
78 | } | 78 | } |
79 | } | 79 | } |
80 | } | 80 | } |
81 | &-nota-pedido { | 81 | &-nota-pedido { |
82 | & button { | 82 | & button { |
83 | background-position: -1250px 0px; | 83 | background-position: -1250px 0px; |
84 | &:hover { | 84 | &:hover { |
85 | background-position: -1250px -90px; | 85 | background-position: -1250px -90px; |
86 | } | 86 | } |
87 | } | 87 | } |
88 | } | 88 | } |
89 | &-remito { | 89 | &-remito { |
90 | & button { | 90 | & button { |
91 | background-position: -4560px 0px; | 91 | background-position: -4560px 0px; |
92 | &:hover { | 92 | &:hover { |
93 | background-position: -4560px -90px; | 93 | background-position: -4560px -90px; |
94 | } | 94 | } |
95 | } | 95 | } |
96 | } | 96 | } |
97 | &-hoja-ruta { | 97 | &-hoja-ruta { |
98 | & button { | 98 | & button { |
99 | background-position: -4650px 0px; | 99 | background-position: -4650px 0px; |
100 | &:hover { | 100 | &:hover { |
101 | background-position: -4650px -90px; | 101 | background-position: -4650px -90px; |
102 | } | 102 | } |
103 | } | 103 | } |
104 | } | 104 | } |
105 | &-seguimiento { | 105 | &-seguimiento { |
106 | & button { | 106 | & button { |
107 | background-position: -4470px 0px; | 107 | background-position: -4470px 0px; |
108 | &:hover { | 108 | &:hover { |
109 | background-position: -4470px -90px; | 109 | background-position: -4470px -90px; |
110 | } | 110 | } |
111 | } | 111 | } |
112 | } | 112 | } |
113 | &-cobranzas { | 113 | &-cobranzas { |
114 | & button { | 114 | & button { |
115 | background-position: -4680px 0px; | 115 | background-position: -1880 0px; |
116 | &:hover { | 116 | &:hover { |
117 | background-position: -4680px -90px; | 117 | background-position: -1880 -90px; |
118 | } | 118 | } |
119 | } | 119 | } |
120 | } | 120 | } |
121 | .swiper-pagination { | 121 | .swiper-pagination { |
122 | bottom: 0px !important; | 122 | bottom: 0px !important; |
123 | } | 123 | } |
124 | 124 | ||
125 | .swiper-button-next { | 125 | .swiper-button-next { |
126 | background-image: url('../img/derecha.png'); | 126 | background-image: url('../img/derecha.png'); |
127 | } | 127 | } |
128 | 128 | ||
129 | .swiper-button-prev { | 129 | .swiper-button-prev { |
130 | background-image: url('../img/izquierda.png'); | 130 | background-image: url('../img/izquierda.png'); |
131 | } | 131 | } |
132 | } | 132 | } |
133 | 133 |