Skip to content

Commit bf1130a

Browse files
committed
Merge pull request #39 from alfredobarron/dev
Se actualizo a la version 2.1.3
2 parents 397ba6f + b2b20d7 commit bf1130a

File tree

376 files changed

+95989
-2715
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+95989
-2715
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Folders to ignore
2-
node_modules
32
.grunt
3+
node_modules
4+
docsHTML
45

56
# Extension to ognore
67
*.zip

Gruntfile.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
'use strict';
2-
31
module.exports = function(grunt){
42
grunt.initConfig({
53
pkg: grunt.file.readJSON('package.json'),
@@ -8,7 +6,7 @@ module.exports = function(grunt){
86
js: {
97
files: {
108
'docs/dist/js/smoke.min.js': ['docs/dist/js/smoke.js'],
11-
'docs/dist/lang/smoke.en.min.js': ['docs/dist/lang/smoke.en.js']
9+
'docs/dist/lang/smoke.es.min.js': ['docs/dist/lang/smoke.es.js']
1210
}
1311
}
1412
},
@@ -30,7 +28,7 @@ module.exports = function(grunt){
3028
compress: {
3129
main: {
3230
options: {
33-
archive: 'smoke-v2.1.2.zip'
31+
archive: 'smoke-v2.1.3.zip'
3432
},
3533
files: [
3634
//{src: ['path/*'], dest: 'internal_folder/', filter: 'isFile'}, // includes files in path

LICENCIA renamed to LICENSE

File renamed without changes.

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#[Smoke](http://alfredobarron.github.io/smoke)
22

3-
Smoke es el Jquery Plugin mas completo y ligero diseñado para usarse en Bootstrap 3
3+
![Version](https://img.shields.io/bower/v/smoke.svg)
4+
![Downloads](https://img.shields.io/github/downloads/alfredobarron/smoke/latest/total.svg)
5+
6+
7+
Smoke es el Plugin Jquery mas completo y ligero diseñado para usarse en Bootstrap 3
48

59

610

@@ -24,17 +28,17 @@ Existen tres opciones disponibles para iniciar:
2428

2529
- [Descarga la versión más reciente.](https://github.com/alfredobarron/smoke/archive/master.zip)
2630
- Clona el repositorio: `git clone https://github.com/alfredobarron/smoke.git`.
27-
- Instalar con [Bower](http://bower.io/): `bower install smoke`.
31+
- Instala con [Bower](http://bower.io/): `bower install smoke`.
2832

29-
Lee la página de [primeros pasos](http://alfredobarron.github.io/smoke/getting-started.html) para obtener más información sobre el contenido.
33+
Lee la página de [primeros pasos](http://alfredobarron.github.io/smoke/#/getting-started) para obtener más información sobre el contenido.
3034

3135
##Requiere
3236

3337
Para que funcione el plugin Smoke se requiere de la librería [Jquery](http://jquery.com/) y del framework [Bootstrap 3.](http://getbootstrap.com/)
3438

3539
##Documentación
3640

37-
La documentación la puedes consultar en [http://alfredobarron.github.io/smoke/getting-started.html](http://alfredobarron.com/smoke/getting-started.html)
41+
La documentación la puedes consultar en [http://alfredobarron.github.io/smoke/#/getting-started](http://alfredobarron.github.io/smoke/#/getting-started)
3842

3943

4044
##Comunidad
@@ -52,4 +56,4 @@ Alfredo Barron
5256

5357
##Derechos de autor y licencias
5458

55-
Código y documentación (c) Copyright 2015 Alfredo Barron. Código publicado bajo la [licencia GPL v3.](https://github.com/alfredobarron/smoke/blob/master/LICENCIA)
59+
Código y documentación (c) Copyright 2015 Alfredo Barron. Código publicado bajo la [licencia GPL v3.](https://github.com/alfredobarron/smoke/blob/master/LICENSE)

bower.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
{
22
"name": "smoke",
3-
"version": "2.1.2",
4-
"homepage": "https://github.com/alfredobarron/smoke",
3+
"version": "2.1.3",
4+
"description": "Smoke is the most complete jQuery Plugin and designed for use with Bootstrap 3",
5+
"license": "GPLv3",
56
"authors": [
67
"Alfredo Barron <[email protected]>"
78
],
8-
"description": "Smoke es el Jquery Plugin mas completo y ligero diseñado para usarse en Bootstrap 3",
9-
"license": "GPLv3",
9+
"homepage": "https://github.com/alfredobarron/smoke",
10+
"keywords": [
11+
"html",
12+
"css",
13+
"js",
14+
"JavaScript",
15+
"JQuery",
16+
"plugin",
17+
"bootstrap",
18+
"front-end",
19+
"web"
20+
],
1021
"main": [
1122
"dist/css/smoke.css",
1223
"dist/js/smoke.js"
1324
],
1425
"ignore": [
1526
"**/.*",
27+
"**/.js",
28+
"**/.json",
1629
"node_modules",
1730
"bower_components",
1831
"test",
1932
"tests",
20-
"docs"
33+
"docs",
34+
"docsHTML"
2135
],
2236
"dependencies": {
2337
"jquery": ">= 1.9.1",

dist/js/smoke.js

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,45 +27,45 @@
2727
$.fn.smkValidate = function(options) {
2828

2929
var settings = $.extend({
30-
lang: 'es'
30+
lang: 'en'
3131
}, $.fn.smkValidate.Languaje, options);
3232

3333
var languaje = {
34-
es: {
34+
en: {
3535
// Mensaje de error para los input vacíos
36-
textEmpty : 'Campo requerido',
36+
textEmpty : 'Required field',
3737
// Mensaje de error para el input email
38-
textEmail : 'Ingresa una cuenta de correo válida',
38+
textEmail : 'Enter a valid email',
3939
// Mensaje de error para el input alphanumeric
40-
textAlphanumeric : 'Solo se admiten números y/o letras',
40+
textAlphanumeric : 'Only numbers and/or letters allowed',
4141
// Mensaje de error para el input number
42-
textNumber : 'Solo se admiten números',
42+
textNumber : 'Only numbers are allowed',
4343
// Mensaje de error para el input number range
44-
textNumberRange : 'El numero debe ser mayor a <b> {@} </b> y menor a <b> {@} </b>',
44+
textNumberRange : 'The numerical range must be greater than <b> {@} </b> and less than <b> {@} </b>',
4545
// Mensaje de error para el input decimal
46-
textDecimal : 'Solo se admiten números decimales',
46+
textDecimal : 'Only decimal numbers are allowed',
4747
// Mensaje de error para el input currency
48-
textCurrency : 'Ingresa una cantidad monetaria válida',
48+
textCurrency : 'Please enter a valid monetary amount',
4949
// Mensaje de error para el input select
50-
textSelect : 'Es necesario que selecciones una opción',
50+
textSelect : 'It is necessary that you select an option',
5151
// Mensaje de error para el input checkbox y radio
52-
textCheckbox : 'Es necesario que selecciones una opción',
52+
textCheckbox : 'It is necessary that you select an option',
5353
// Mensaje de error para longitud de caracteres
54-
textLength : 'El número de caracteres debe ser igual a <b> {@} </b>',
54+
textLength : 'The number of characters is equal to <b> {@} </b>',
5555
// Mensaje de error para rango de caracteres
56-
textRange : 'El número de caracteres debe ser mayor a <b> {@} </b> y menor a <b> {@} </b>',
56+
textRange : 'The number of characters must be greater than <b> {@} </b> and less than <b> {@} </b>',
5757
// Mensaje de error para strongPass Default
58-
textSPassDefault : 'Mínimo 4 caracteres',
58+
textSPassDefault : 'Minimum 4 characters',
5959
// Mensaje de error para strongPass Weak
60-
textSPassWeak : 'Mínimo 6 caracteres',
60+
textSPassWeak : 'Minimum 6 characters',
6161
// Mensaje de error para strongPass Madium
62-
textSPassMedium : 'Mínimo 6 caracteres y un número',
62+
textSPassMedium : 'Minimum 6 characters and a number',
6363
// Mensaje de error para strongPass Strong
64-
textSPassStrong : 'Mínimo 6 caracteres un número y una mayúscula'
64+
textSPassStrong : 'Minimum 6 characters a number and a capital'
6565
}
6666
};
6767

68-
if(settings.lang != 'es'){
68+
if(settings.lang != 'en'){
6969
languaje = $.fn.smkValidate.Languaje;
7070
}
7171

@@ -326,7 +326,7 @@ $.fn.smkValidate = function(options) {
326326
/*
327327
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
328328
| Usage
329-
| if($('#form').smkValidate({lang:'en'})){}
329+
| if($('#form').smkValidate({lang:'es'})){}
330330
|- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
331331
*/
332332

@@ -472,7 +472,7 @@ $.smkAddError = function (obj, text)
472472
smkText = text;
473473
}
474474

475-
// Se type es indefinido se asigna el nombre del tag
475+
// Si type es indefinido se asigna el nombre del tag
476476
if(type === undefined){
477477
type = tag;
478478
}
@@ -847,23 +847,23 @@ $.smkDate = function(options) {
847847
var settings = $.extend({
848848
date: today,
849849
format: 'yyyy-mm-dd',
850-
lang: 'es',
850+
lang: 'en',
851851
}, $.smkDate.Languaje, options);
852852

853853
var languaje = {
854-
es: {
855-
shortMonthNames : ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
856-
monthNames : ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"]
854+
en: {
855+
shortMonthNames : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
856+
monthNames : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
857857
}
858858
};
859-
860859
//Se obtienen los separadores
861860
var validDate = /\d+|[a-zA-z]/g;
862861
var separator = settings.date.replace(validDate, '\0').split('\0');
863862
// Se obtiene las partes de la fecha
864863
var splitDate = settings.date.match(validDate);
865864

866865
if(settings.lang == 'es'){
866+
languaje = $.smkDate.Languaje;
867867
// Se formatea la fecha (yyyy,mm,dd) para poder instanciar el método new Date()
868868
if(splitDate[0].length == 4){
869869
// Formato yyyy-mm-dd => yyyy,mm,dd
@@ -873,7 +873,6 @@ $.smkDate = function(options) {
873873
settings.date = new Date(splitDate[2],(splitDate[1]-1),splitDate[0]);
874874
}
875875
}else{
876-
languaje = $.smkDate.Languaje;
877876
// Se formatea la fecha (yyyy,mm,dd) para poder instanciar el método new Date()
878877
if(splitDate[0].length == 4){
879878
// Formato yyyy-dd-mm => yyyy,mm,dd

0 commit comments

Comments
 (0)