Commit 8e72bafc823f36222fbc50b7538feddd53d96ee0
1 parent
c19b19d494
Exists in
master
ignore
Showing
5 changed files
with
9 additions
and
53 deletions
Show diff stats
.gitignore
| 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. | 1 | # See http://help.github.com/ignore-files/ for more about ignoring files. |
| 2 | 2 | ||
| 3 | # compiled output | 3 | # compiled output |
| 4 | /dist | 4 | /dist |
| 5 | /tmp | 5 | /tmp |
| 6 | /out-tsc | 6 | /out-tsc |
| 7 | 7 | ||
| 8 | # Only exists if Bazel was run | 8 | # Only exists if Bazel was run |
| 9 | /bazel-out | 9 | /bazel-out |
| 10 | 10 | ||
| 11 | # dependencies | 11 | # dependencies |
| 12 | /node_modules | 12 | /node_modules |
| 13 | /www/* | 13 | /www/* |
| 14 | /plugins/* | 14 | /plugins/* |
| 15 | /platforms/* | 15 | /platforms/* |
| 16 | 16 | ||
| 17 | # profiling files | 17 | # profiling files |
| 18 | chrome-profiler-events.json | 18 | chrome-profiler-events.json |
| 19 | speed-measure-plugin.json | 19 | speed-measure-plugin.json |
| 20 | 20 | ||
| 21 | # IDEs and editors | 21 | # IDEs and editors |
| 22 | /.idea | 22 | /.idea |
| 23 | .project | 23 | .project |
| 24 | .classpath | 24 | .classpath |
| 25 | .c9/ | 25 | .c9/ |
| 26 | *.launch | 26 | *.launch |
| 27 | .settings/ | 27 | .settings/ |
| 28 | *.sublime-workspace | 28 | *.sublime-workspace |
| 29 | 29 | ||
| 30 | # IDE - VSCode | 30 | # IDE - VSCode |
| 31 | .vscode/* | 31 | .vscode/* |
| 32 | !.vscode/settings.json | 32 | !.vscode/settings.json |
| 33 | !.vscode/tasks.json | 33 | !.vscode/tasks.json |
| 34 | !.vscode/launch.json | 34 | !.vscode/launch.json |
| 35 | !.vscode/extensions.json | 35 | !.vscode/extensions.json |
| 36 | .history/* | 36 | .history/* |
| 37 | 37 | ||
| 38 | # misc | 38 | # misc |
| 39 | /.sass-cache | 39 | /.sass-cache |
| 40 | /connect.lock | 40 | /connect.lock |
| 41 | /coverage | 41 | /coverage |
| 42 | /libpeerconnection.log | 42 | /libpeerconnection.log |
| 43 | npm-debug.log | 43 | npm-debug.log |
| 44 | yarn-error.log | 44 | yarn-error.log |
| 45 | testem.log | 45 | testem.log |
| 46 | /typings | 46 | /typings |
| 47 | 47 | ||
| 48 | # System Files | 48 | # System Files |
| 49 | .DS_Store | 49 | .DS_Store |
| 50 | Thumbs.db | 50 | Thumbs.db |
| 51 | 51 | ||
| 52 | # config | 52 | # config |
| 53 | /etc/AppSeting.ts | 53 | /src/etc/AppSetings.ts |
| 54 | 54 |
package.json
| 1 | { | 1 | { |
| 2 | "name": "distribucion-comprobantes", | 2 | "name": "distribucion-comprobantes", |
| 3 | "version": "0.0.0", | 3 | "version": "0.0.0", |
| 4 | "main": "main.js", | ||
| 4 | "scripts": { | 5 | "scripts": { |
| 5 | "ng": "ng", | 6 | "ng": "ng", |
| 6 | "start": "ng serve", | 7 | "start": "ng serve", |
| 7 | "build": "ng build", | 8 | "build": "ng build", |
| 8 | "test": "ng test", | 9 | "test": "ng test", |
| 9 | "lint": "ng lint", | 10 | "lint": "ng lint", |
| 10 | "e2e": "ng e2e", | 11 | "e2e": "ng e2e", |
| 12 | "electron": "electron .", | ||
| 13 | "electron-build": "ng build --prod && electron .", | ||
| 11 | "apkToDrop": "cp ./platforms/android/app/build/outputs/apk/debug/app-debug.apk C:/Users/Usuario/Dropbox/Apks_PlanexDEBO/v0.0.1" | 14 | "apkToDrop": "cp ./platforms/android/app/build/outputs/apk/debug/app-debug.apk C:/Users/Usuario/Dropbox/Apks_PlanexDEBO/v0.0.1" |
| 12 | }, | 15 | }, |
| 13 | "private": true, | 16 | "private": true, |
| 14 | "dependencies": { | 17 | "dependencies": { |
| 15 | "@angular/animations": "~8.0.0", | 18 | "@angular/animations": "~8.0.0", |
| 16 | "@angular/common": "~8.0.0", | 19 | "@angular/common": "~8.0.0", |
| 17 | "@angular/compiler": "~8.0.0", | 20 | "@angular/compiler": "~8.0.0", |
| 18 | "@angular/core": "~8.0.0", | 21 | "@angular/core": "~8.0.0", |
| 19 | "@angular/forms": "~8.0.0", | 22 | "@angular/forms": "~8.0.0", |
| 20 | "@angular/platform-browser": "~8.0.0", | 23 | "@angular/platform-browser": "~8.0.0", |
| 21 | "@angular/platform-browser-dynamic": "~8.0.0", | 24 | "@angular/platform-browser-dynamic": "~8.0.0", |
| 22 | "@angular/router": "~8.0.0", | 25 | "@angular/router": "~8.0.0", |
| 23 | "@ng-bootstrap/ng-bootstrap": "^4.2.0", | 26 | "@ng-bootstrap/ng-bootstrap": "^4.2.0", |
| 24 | "angular2-ladda": "^2.0.1", | 27 | "angular2-ladda": "^2.0.1", |
| 25 | "cordova-android": "^8.0.0", | 28 | "cordova-android": "^8.0.0", |
| 29 | "electron-debug": "^3.0.1", | ||
| 26 | "font-awesome": "^4.7.0", | 30 | "font-awesome": "^4.7.0", |
| 27 | "rxjs": "~6.4.0", | 31 | "rxjs": "~6.4.0", |
| 28 | "tslib": "^1.9.0", | 32 | "tslib": "^1.9.0", |
| 29 | "zone.js": "~0.9.1" | 33 | "zone.js": "~0.9.1" |
| 30 | }, | 34 | }, |
| 31 | "devDependencies": { | 35 | "devDependencies": { |
| 32 | "@angular-devkit/build-angular": "~0.800.0", | 36 | "@angular-devkit/build-angular": "~0.800.0", |
| 33 | "@angular/cli": "~8.0.0", | 37 | "@angular/cli": "~8.0.0", |
| 34 | "@angular/compiler-cli": "~8.0.0", | 38 | "@angular/compiler-cli": "~8.0.0", |
| 35 | "@angular/language-service": "~8.0.0", | 39 | "@angular/language-service": "~8.0.0", |
| 36 | "@types/node": "~8.9.4", | ||
| 37 | "@types/jasmine": "~3.3.8", | 40 | "@types/jasmine": "~3.3.8", |
| 38 | "@types/jasminewd2": "~2.0.3", | 41 | "@types/jasminewd2": "~2.0.3", |
| 42 | "@types/node": "~8.9.4", | ||
| 39 | "codelyzer": "^5.0.0", | 43 | "codelyzer": "^5.0.0", |
| 44 | "electron": "^5.0.8", | ||
| 40 | "jasmine-core": "~3.4.0", | 45 | "jasmine-core": "~3.4.0", |
| 41 | "jasmine-spec-reporter": "~4.2.1", | 46 | "jasmine-spec-reporter": "~4.2.1", |
| 42 | "karma": "~4.1.0", | 47 | "karma": "~4.1.0", |
| 43 | "karma-chrome-launcher": "~2.2.0", | 48 | "karma-chrome-launcher": "~2.2.0", |
| 44 | "karma-coverage-istanbul-reporter": "~2.0.1", | 49 | "karma-coverage-istanbul-reporter": "~2.0.1", |
| 45 | "karma-jasmine": "~2.0.1", | 50 | "karma-jasmine": "~2.0.1", |
| 46 | "karma-jasmine-html-reporter": "^1.4.0", | 51 | "karma-jasmine-html-reporter": "^1.4.0", |
| 47 | "protractor": "~5.4.0", | 52 | "protractor": "~5.4.0", |
| 48 | "ts-node": "~7.0.0", | 53 | "ts-node": "~7.0.0", |
| 49 | "tslint": "~5.15.0", | 54 | "tslint": "~5.15.0", |
| 50 | "typescript": "~3.4.3" | 55 | "typescript": "~3.4.3" |
| 51 | }, | 56 | }, |
| 52 | "cordova": { | 57 | "cordova": { |
| 53 | "plugins": { | 58 | "plugins": { |
| 54 | "cordova-plugin-whitelist": {} | 59 | "cordova-plugin-whitelist": {} |
| 55 | }, | 60 | }, |
| 56 | "platforms": [ | 61 | "platforms": [ |
| 57 | "android" | 62 | "android" |
| 58 | ] | 63 | ] |
| 59 | } | 64 | } |
src/app/botonera/botonera.component.css
| 1 | .botonera-principal-comprobante { | File was deleted | |
| 2 | background-image: url('/assets/img/comprobante.png'); | ||
| 3 | background-size: 90px 90px; | ||
| 4 | display: inline-block; | ||
| 5 | text-align: center; | ||
| 6 | border-radius: 12px; | ||
| 7 | border-width: 0; | ||
| 8 | height: 90px; | ||
| 9 | position: relative; | ||
| 10 | width: 90px; | ||
| 11 | outline: 0; | ||
| 12 | } | ||
| 13 | .botonera-principal-comprobante:hover { | ||
| 14 | background-color:rgb(250,250,250); | ||
| 15 | filter:drop-shadow(4px 4px 4px gray); | ||
| 16 | } | ||
| 17 | .botonera-principal-comprobante:active { | ||
| 18 | background-color: rgb(230, 230, 230); | ||
| 19 | filter:drop-shadow(4px 4px 4px gray); | ||
| 20 | } | ||
| 21 | @media (min-width: 992px) and (max-width: 1200px) { | ||
| 22 | .botonera-principal-comprobante { | ||
| 23 | width: 150px; | ||
| 24 | } | ||
| 25 | } | ||
| 26 | .botonera-principal-comprobante > span { | ||
| 27 | left: 0; | ||
| 28 | position: absolute; | ||
| 29 | text-align: center; | ||
| 30 | top: 90px; | ||
| 31 | width: 100%; | ||
| 32 | font-size: 12px; | ||
| 33 | color: #777777 | ||
| 34 | } | ||
| 35 | .botonera-principal-logo { | ||
| 36 | width: 50%; | ||
| 37 | margin-left: 75%; | ||
| 38 | opacity: .8; | ||
| 39 | } | ||
| 40 | @media (max-width: 576px) { | ||
| 41 | .botonera-principal-logo { | ||
| 42 | width: 180%; | ||
| 43 | margin-left: 20%; | ||
| 44 | opacity: .8; | ||
| 45 | } | ||
| 46 | } | ||
| 47 | .swiper { | ||
| 48 | height: 300px; | ||
| 49 | } | ||
| 50 | 1 | .botonera-principal-comprobante { |
src/app/botonera/botonera.component.ts
| 1 | import { Component } from '@angular/core'; | 1 | import { Component } from '@angular/core'; |
| 2 | import { BotonServiceService } from 'src/app/boton-service.service'; | 2 | import { BotonServiceService } from 'src/app/boton-service.service'; |
| 3 | 3 | ||
| 4 | @Component({ | 4 | @Component({ |
| 5 | selector: 'app-botonera', | 5 | selector: 'app-botonera', |
| 6 | templateUrl: './botonera.component.html', | 6 | templateUrl: './botonera.component.html', |
| 7 | styleUrls: ['./botonera.component.css'] | 7 | styleUrls: ['./botonera.component.scss'] |
| 8 | }) | 8 | }) |
| 9 | 9 | ||
| 10 | export class AppBotonera { | 10 | export class AppBotonera { |
| 11 | botones = new BotonServiceService().getBotones(); | 11 | botones = new BotonServiceService().getBotones(); |
| 12 | paginas = [1]; | 12 | paginas = [1]; |
| 13 | 13 | ||
| 14 | showTerminal() { | 14 | showTerminal() { |
| 15 | alert('No disponible aún'); | 15 | alert('No disponible aún'); |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | } | 18 | } |
| 19 | 19 |
src/etc/AppSetings.ts
| 1 | export class AppSetings { | 1 | export class AppSetings { |
| 2 | public static END_POINT='http://10.231.45.234:6060/gateway-debo'; | 2 | public static END_POINT='http://localhost:6060/gateway-debo'; |
| 3 | } | 3 | } |
| 4 | 4 |