Commit c6931a27ff5bcde5dc6c899349f9de83d46e74d5
1 parent
22b3d1b8bc
Exists in
master
and in
2 other branches
cambio visualizacion login
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
package.json
1 | { | 1 | { |
2 | "name": "foca-login", | 2 | "name": "foca-login", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "Login", | 4 | "description": "Login", |
5 | "main": "dist/foca-login.js", | 5 | "main": "dist/foca-login.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "refresh": "gulp uglify && cp tmp/foca-login.js ../wrapper-demo/node_modules/foca-login/dist/foca-login.min.js", | ||
7 | "test": "echo \"Error: no test specified\" && exit 1", | 8 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | "gulp-pre-commit": "gulp pre-commit", | 9 | "gulp-pre-commit": "gulp pre-commit", |
9 | "postinstall": "gulp uglify && gulp clean-post-install", | 10 | "postinstall": "gulp uglify && gulp clean-post-install", |
10 | "install-dev": "npm install -D gulp gulp-connect jasmine-core pre-commit angular angular-route angular-cookies bootstrap font-awesome gulp-angular-templatecache gulp-clean gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-sequence gulp-uglify gulp-replace jquery jshint pump && npm i -D git+https://debo.suite.repo/modulos-npm/foca-directivas" | 11 | "install-dev": "npm install -D gulp gulp-connect jasmine-core pre-commit angular angular-route angular-cookies bootstrap font-awesome gulp-angular-templatecache gulp-clean gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-sequence gulp-uglify gulp-replace jquery jshint pump && npm i -D git+https://debo.suite.repo/modulos-npm/foca-directivas" |
11 | }, | 12 | }, |
12 | "pre-commit": [ | 13 | "pre-commit": [ |
13 | "gulp-pre-commit" | 14 | "gulp-pre-commit" |
14 | ], | 15 | ], |
15 | "repository": { | 16 | "repository": { |
16 | "type": "git", | 17 | "type": "git", |
17 | "url": "https://debo.suite.repo/modulos-npm/foca-login.git" | 18 | "url": "https://debo.suite.repo/modulos-npm/foca-login.git" |
18 | }, | 19 | }, |
19 | "author": "Foca Software", | 20 | "author": "Foca Software", |
20 | "license": "ISC", | 21 | "license": "ISC", |
21 | "peerDependencies": { | 22 | "peerDependencies": { |
22 | "angular": "^1.7.x", | 23 | "angular": "^1.7.x", |
23 | "bootstrap": "^4.1.x", | 24 | "bootstrap": "^4.1.x", |
24 | "jquery": "^3.3.x", | 25 | "jquery": "^3.3.x", |
25 | "font-awesome": "^4.7.x", | 26 | "font-awesome": "^4.7.x", |
26 | "gulp": "^3.9.x", | 27 | "gulp": "^3.9.x", |
27 | "gulp-concat": "2.6.x", | 28 | "gulp-concat": "2.6.x", |
28 | "gulp-jshint": "^2.1.x", | 29 | "gulp-jshint": "^2.1.x", |
29 | "gulp-rename": "^1.4.x", | 30 | "gulp-rename": "^1.4.x", |
30 | "gulp-replace": "^1.0.x", | 31 | "gulp-replace": "^1.0.x", |
31 | "gulp-uglify-es": "^1.0.x", | 32 | "gulp-uglify-es": "^1.0.x", |
32 | "jshint": "^2.9.x", | 33 | "jshint": "^2.9.x", |
33 | "pump": "^3.0.x", | 34 | "pump": "^3.0.x", |
34 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git" | 35 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git" |
35 | }, | 36 | }, |
36 | "devDependencies": { | 37 | "devDependencies": { |
37 | "angular": "^1.7.5", | 38 | "angular": "^1.7.5", |
38 | "angular-cookies": "^1.7.5", | 39 | "angular-cookies": "^1.7.5", |
39 | "angular-route": "^1.7.5", | 40 | "angular-route": "^1.7.5", |
40 | "bootstrap": "^4.1.3", | 41 | "bootstrap": "^4.1.3", |
41 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", | 42 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", |
42 | "font-awesome": "^4.7.0", | 43 | "font-awesome": "^4.7.0", |
43 | "gulp": "^3.9.1", | 44 | "gulp": "^3.9.1", |
44 | "gulp-angular-templatecache": "^2.2.2", | 45 | "gulp-angular-templatecache": "^2.2.2", |
45 | "gulp-clean": "^0.4.0", | 46 | "gulp-clean": "^0.4.0", |
46 | "gulp-connect": "^5.7.0", | 47 | "gulp-connect": "^5.7.0", |
47 | "gulp-htmlmin": "^5.0.1", | 48 | "gulp-htmlmin": "^5.0.1", |
48 | "gulp-jshint": "^2.1.0", | 49 | "gulp-jshint": "^2.1.0", |
49 | "gulp-rename": "^1.4.0", | 50 | "gulp-rename": "^1.4.0", |
50 | "gulp-replace": "^1.0.0", | 51 | "gulp-replace": "^1.0.0", |
51 | "gulp-sequence": "^1.0.0", | 52 | "gulp-sequence": "^1.0.0", |
52 | "gulp-uglify": "^3.0.1", | 53 | "gulp-uglify": "^3.0.1", |
53 | "jasmine-core": "^3.3.0", | 54 | "jasmine-core": "^3.3.0", |
54 | "jquery": "^3.3.1", | 55 | "jquery": "^3.3.1", |
55 | "jshint": "^2.9.7", | 56 | "jshint": "^2.9.7", |
56 | "pre-commit": "^1.2.2", | 57 | "pre-commit": "^1.2.2", |
57 | "pump": "^3.0.0" | 58 | "pump": "^3.0.0" |
58 | } | 59 | } |
59 | } | 60 | } |
60 | 61 |
src/views/foca-login.html
1 | <img src="img/logo.png" class="w-25 rounded mx-auto d-block"> | 1 | <img src="img/logo.png" class="w-25 rounded mx-auto d-block"> |
2 | <div class="login mt-5 p-3 border-0"> | 2 | <div class="login mt-5 p-3 border-0"> |
3 | <form name="login"> | 3 | <form name="login"> |
4 | 4 | <div class="login-titulo"> | |
5 | <div class="login-titulo"> | ||
6 | <span>Ingreso de usuario</span> | 5 | <span>Ingreso de usuario</span> |
7 | </div> | 6 | </div> |
8 | <div class="login-campo"> | 7 | <div class="login-campo"> |
9 | <label>Usuario</label> | 8 | <label>Usuario</label> |
10 | <input | 9 | <input |
11 | type = "text" | 10 | type = "text" |
12 | ng-model = "usuario.idUsuario" | 11 | ng-model = "usuario.idUsuario" |
13 | ng-focus = "paso = 1" | 12 | ng-focus = "paso = 1" |
14 | foca-focus = "paso == 1" | 13 | foca-focus = "paso == 1" |
15 | ng-keyup = "$event.keyCode == 13 && irPaso(2)" | 14 | ng-keyup = "$event.keyCode == 13 && irPaso(2)" |
16 | ladda = "loginLoading" | 15 | ladda = "loginLoading" |
17 | teclado-virtual | 16 | teclado-virtual |
18 | /> | 17 | /> |
19 | </div> | 18 | </div> |
20 | <div class="login-campo"> | 19 | <div class="login-campo"> |
21 | <label>Contraseña</label> | 20 | <label>Contraseña</label> |
22 | <input | 21 | <input |
23 | id = "password" | 22 | id = "password" |
24 | type = "password" | 23 | type = "password" |
25 | ng-model = "usuario.clave" | 24 | ng-model = "usuario.clave" |
26 | foca-focus = "paso == 2" | 25 | foca-focus = "paso == 2" |
27 | ng-keyup = "$event.keyCode == 13 && enviar()" | 26 | ng-keyup = "$event.keyCode == 13 && enviar()" |
28 | ladda = "loginLoading" | 27 | ladda = "loginLoading" |
29 | teclado-virtual | 28 | teclado-virtual |
30 | /> | 29 | /> |
31 | </div> | 30 | </div> |
32 | <button | 31 | <button |
33 | type="button" | 32 | type="button" |
34 | ng-click="enviar()" | 33 | ng-click="enviar()" |
35 | class="login-button btn mt-3 btn-login" | 34 | class="login-button btn mt-3 btn-login" |
36 | ladda="loginLoading" | 35 | ladda="loginLoading" |
37 | >Ingresar</button> | 36 | >Ingresar</button> |
38 | </form> | 37 | </form> |
39 | <img src="img/logo-foca.png" class="w-50 rounded mx-auto d-block"> | 38 | <img src="img/logo-foca.png" class="w-50 rounded mx-auto d-block"> |
40 | </div> | 39 | </div> |
40 |