ar-poncho 2.0.308 → 2.0.310
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build-poncho.yml +15 -32
- package/dist/css/device-breadcrumb.css +1 -1
- package/dist/css/icono-arg.css +110 -8
- package/dist/css/poncho-map.css +1 -1
- package/dist/css/poncho.css +2 -2
- package/dist/css/poncho.min.css +2 -2
- package/dist/css/poncho_mobile.css +2 -2
- package/dist/fonts/{icono-arg_a6cc69d556789499dda37d7617476d6b.ttf → icono-arg_62584f1d69ebd710fc7e1ea3cfa4bceb.eot} +0 -0
- package/dist/fonts/{icono-arg_a6cc69d556789499dda37d7617476d6b.svg → icono-arg_62584f1d69ebd710fc7e1ea3cfa4bceb.svg} +440 -32
- package/dist/fonts/{icono-arg_a6cc69d556789499dda37d7617476d6b.eot → icono-arg_62584f1d69ebd710fc7e1ea3cfa4bceb.ttf} +0 -0
- package/dist/fonts/icono-arg_62584f1d69ebd710fc7e1ea3cfa4bceb.woff +0 -0
- package/dist/fonts/icono-arg_62584f1d69ebd710fc7e1ea3cfa4bceb.woff2 +0 -0
- package/dist/js/device-breadcrumb.js +1 -1
- package/dist/js/mapa-argentina.js +1 -1
- package/dist/js/poncho.js +2650 -1016
- package/dist/js/poncho.min.js +1 -1
- package/dist/js/showdown-extensions.js +2 -2
- package/dist/jsons/icono-arg.json +7603 -0
- package/gulpfile.js +10 -15
- package/package-lock.json +14866 -10143
- package/package.json +59 -49
- package/dist/css/argentina.css +0 -7
- package/dist/fonts/icono-arg_a6cc69d556789499dda37d7617476d6b.woff +0 -0
- package/dist/fonts/icono-arg_a6cc69d556789499dda37d7617476d6b.woff2 +0 -0
- package/test/color.test.js +0 -16
- package/test/gapi-sheet-data.test.js +0 -17
- package/test/html.test.js +0 -18
- package/test/poncho-gapi-legacy.test.js +0 -7
- package/test/resources/response.js +0 -56
- package/test/string.test.js +0 -20
package/package.json
CHANGED
|
@@ -1,50 +1,60 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
2
|
+
"name": "ar-poncho",
|
|
3
|
+
"version": "2.0.310",
|
|
4
|
+
"description": "Base de html y css para la creación de sitios pertenecientes a la Administración Pública Nacional de la República Argentina.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "jest",
|
|
8
|
+
"gulp": "gulp"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/argob/poncho.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"template",
|
|
16
|
+
"poncho",
|
|
17
|
+
"argentina",
|
|
18
|
+
"bootstrap",
|
|
19
|
+
"html",
|
|
20
|
+
"css",
|
|
21
|
+
"scss"
|
|
22
|
+
],
|
|
23
|
+
"author": "Dirección Nacional de Servicios Digitales de la Subsecretaría de Tecnologías de la Información.",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/argob/poncho/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://argob.github.io/poncho",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@babel/core": "^7.0",
|
|
31
|
+
"@babel/preset-env": "^7.19",
|
|
32
|
+
"@babel/types": "^7.24.0",
|
|
33
|
+
"babel-cli": "^6.26.0",
|
|
34
|
+
"gulp": "^5.0.0",
|
|
35
|
+
"gulp-babel": "^8.0.0",
|
|
36
|
+
"gulp-cli": "^3.0.0",
|
|
37
|
+
"gulp-concat": "^2.6.1",
|
|
38
|
+
"gulp-if": "^3.0.0",
|
|
39
|
+
"gulp-jshint": "^2.1.0",
|
|
40
|
+
"gulp-plumber": "^1.2.1",
|
|
41
|
+
"gulp-rename": "^2.0.0",
|
|
42
|
+
"gulp-replace": "^1.1",
|
|
43
|
+
"gulp-sass": "^5.1.0",
|
|
44
|
+
"gulp-uglify": "^3.0.2",
|
|
45
|
+
"gulp-uglifyes": "^0.2.1",
|
|
46
|
+
"install": "^0.13.0",
|
|
47
|
+
"jshint": "^2.13.6",
|
|
48
|
+
"npm": "^10",
|
|
49
|
+
"sass": "^1.75",
|
|
50
|
+
"uglify-js": "^3.17.0",
|
|
51
|
+
"with": "^7.0.2",
|
|
52
|
+
"jest": "^29.7.0"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"babel-types": "^6.26.0"
|
|
56
|
+
},
|
|
57
|
+
"engines": {
|
|
58
|
+
"node": "^18.19.0"
|
|
59
|
+
}
|
|
60
|
+
}
|
package/dist/css/argentina.css
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Poncho v0.2 (https://github.com/argob/poncho)
|
|
3
|
-
* Copyright 2016
|
|
4
|
-
* Subsecretaría de Gobierno Digital
|
|
5
|
-
* Presidencia de la Nación Argentina
|
|
6
|
-
* Licenciado bajo MIT (https://github.com/argob/poncho/LICENSE)
|
|
7
|
-
*/body{margin:0;font-size:16px}main a[href^="http://"][target^=_blank]:after,main a[href^="https://"][target^=_blank]:after,main footer[href^="http://"][target^=_blank]:after,main footer[href^="https://"][target^=_blank]:after{content:" ";display:inline-block;margin-left:5px;vertical-align:-1px;font:normal normal normal 14px/1 FontAwesome;text-rendering:auto;-webkit-font-smoothing:antialiased}main a.btn:after,main a[href^="http://www.argentina.gob.ar"]:after,main a[href^="https://www.argentina.gob.ar"]:after,main a.panel:after,main a.not-external:after,main footer.btn:after,main footer[href^="http://www.argentina.gob.ar"]:after,main footer[href^="https://www.argentina.gob.ar"]:after,main footer.panel:after,main footer.btn:after,main footer.not-external:after{content:none !important}main .social-share a:after,main .panel a:after,main .alert a:after,main a.alert:after,main .nav a:after,main .gm-style a:after{content:none !important}.form-type-date .form-inline{margin:0 -15px;background:none;border:none;box-shadow:none;padding:0;width:initial}.form-type-date .form-inline:after{content:"";display:block;clear:left}.form-type-date .form-inline>div{width:33.33%;padding:0 15px;display:block;float:left}.form-type-date .form-inline>div label{display:block}.form-type-date .form-inline>div input,.form-type-date .form-inline>div select{width:100%;box-sizing:border-box}.form-item input{font-size:16px;line-height:1;padding:15px}.form-item input[type=hidden]+input{border-radius:4px 0 0 4px !important}.form-item .input-group-btn .btn{min-width:200px}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{padding:0}fieldset.panel.collapsible{border:none;background:none;box-shadow:none;padding:0;height:initial !important}fieldset.panel.collapsible legend.panel-heading{border:0;min-height:0;background:none;padding:0;margin:0}fieldset.panel.collapsible legend.panel-heading a{display:inline-block;font-size:16px;font-weight:500;margin-bottom:10px;padding:16px 25px;border-radius:4px;text-transform:uppercase;vertical-align:top;color:#0072bc;text-decoration:underline !important;background-color:#e5e5e5 !important}fieldset.panel.collapsible legend.panel-heading a span{display:none}fieldset.panel.collapsible legend.panel-heading a:hover,fieldset.panel.collapsible legend.panel-heading a:focus{background-color:#ccc !important;color:#0072bc}fieldset.panel.collapsible .panel-body{border:1px solid #ccc;border-radius:4px;padding:30px 30px 0}fieldset.panel.collapsible .panel-body .form-group>label.control-label{font-weight:400}#cd-login{display:inline-block}main .container img{max-width:100%;border-radius:4px;height:auto}main .container .media img{max-width:none}@media(min-width: 768px)and (max-width: 1200px){.navbar .navbar-brand img{width:236px}}@media(max-width: 768px){#cd-login button{width:100%;margin:0 0 20px}}@media print{.main-footer,.pane-argentinagobar-bloques-reportes-formulario-reportes,.book-navigation{display:none}}.form-radios label{font-weight:400}.icon-item{text-align:center}.icon-item i{justify-content:center}.jumbotron .jumbotron_bar{padding:10px 0 5px 0}.pane-page-breadcrumb .breadcrumb li,.jumbotron_bar .breadcrumb li{display:inline}.pane-page-breadcrumb .pane-content,.jumbotron_bar .col-md-12{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:flex-start}.pane-page-breadcrumb .pane-content .breadcrumb,.jumbotron_bar .col-md-12 .breadcrumb{float:none !important;margin-right:10px}.pane-page-breadcrumb .pane-content .list-inline.pull-right,.jumbotron_bar .col-md-12>.list-inline.pull-right{float:none !important;order:2;margin-top:1px}@media(max-width: 768px){.jumbotron div.jumbotron_bar .col-md-12 .list-inline li{display:inline-block !important;margin-top:0}}@media(max-width: 530px){.jumbotron_bar .dropdown-menu-right{right:auto;left:0}}footer ul.nav li a{text-decoration:underline !important}.icon-item{text-align:center;margin:10px 0}.h3.section-title{color:#333}.m-l-m15{margin-left:-15px}.dropdown-menu-right{left:auto;right:0}.nav.nav-icons li a:hover i,.nav.nav-icons li a:focus i{color:#0072bb !important;background:#fff !important;box-shadow:none;border:solid 1px #ddd}.nav.nav-icons.nav-icons-selected li:not(.active) a:hover i{color:#0072bb !important;background:#fff !important;box-shadow:none;border:solid 1px #ddd}.nav.nav-icons li a span{color:#333}.panel time{opacity:1}.panel .h3_title,.h3_title{font-size:1.3em !important;font-weight:500 !important;line-height:1.3 !important;margin:.25em 0 !important}.icon-item .h3_title{font-size:1.6em !important;margin-top:0 !important;margin-bottom:.2em;font-weight:600}.markerCSS .leaflet-popup-content-wrapper{background:#2ce897;color:#eee;font-size:12px;line-height:24px;border-radius:0px}.markerCSS .leaflet-popup-content-wrapper a{color:rgba(200,200,200,.1)}.markerCSS .leaflet-popup-content{width:400px}.markerCSS .leaflet-popup-tip-container{margin-left:-5px}.markerCSScluster{text-align:center}.textCluster{color:#fff;margin-top:13px}.leaflet-fade-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-zoom-animated{will-change:auto !important}#campaign h2{font-size:14px !important;font-weight:500 !important;padding:2px 0 !important}#campaign a:hover{text-decoration:none !important}#campaign .bg-primary{background-color:#37bbed !important}@media screen and (max-width: 767px){.c_bajada{display:none}}#divnoticias .panel h3,#divnoticias .panel .h3{font-weight:600 !important;font-size:18px;line-height:1.3}.pane-area-estructura .img-rounded{margin-top:10px !important}#destacados .panel-default{border:none !important}#destacados h3,#destacados p{color:#fff !important}.tramites-iconos .panel-default{border:none !important;margin-bottom:5px !important}.tramites-iconos{text-align:center !important}.tramites-iconos .media-left{display:block;padding:0 !important}.tramites-iconos .media-left i{padding:20px;margin:0 auto 15px auto;display:block;width:90px;height:90px;border-radius:90px;color:#fff !important;vertical-align:middle}.tramites-iconos .media-left i.fa{padding:30px 20px 20px 20px}header nav .btn-link{color:#0072bb !important;margin-left:20px !important}header nav input#buscar{opacity:.9}header nav input#buscar:focus{opacity:1}.panel h3,.panel .h3{color:#333}.tramites-iconos .panel h3,.tramites-iconos .panel .h3{color:#333}.main-footer{padding:50px 0 0 0;margin-top:10px;background:#f3faff !important}.sub-footer{background-color:#37bbed;padding:20px 0 40px 0}@media(max-width: 767px){.navbar .navbar-brand{padding:10px 15px 10px 0}#campaign h2{margin-right:auto;margin-left:auto}.navbar.navbar-top.state-search .navbar-nav.navbar-right>.btn{margin-left:0 !important}}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-top-left-radius:10px;border-bottom-left-radius:10px;border:none !important}footer section section{padding:0 0 30px 0 !important}@media(max-width: 490px){.navbar .btn{margin-top:10px}}@media(max-width: 767px){.navbar .btn{margin:13px 0 8px 10px}.jumbotron .jumbotron_bar .breadcrumb,.pane-page-breadcrumb .breadcrumb{margin-bottom:5px !important;min-width:260px}}@media(max-width: 490px){.navbar.navbar-top .input-group{margin:9px 0 0 0}.navbar-default{min-height:70px}}@media(max-width: 768px){.jumbotron div.jumbotron_bar .col-md-12 .list-inline li{display:inline-block !important;margin-top:0}footer section section{padding:0 !important}footer section section ul{margin-bottom:0 !important;padding:0}}.breadcrumb a:hover{color:#333}ul.dropdown-menu li a{width:350px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pagination>li:first-child>a,.pagination>li:first-child>span,.pagination>li:last-child>a,.pagination>li:last-child>span{border-radius:30px !important}.checkbox label,.radio label{margin-top:0 !important}main>div>div>div>section{padding-top:20px}.main-footer{margin-top:0 !important}footer .nav>li>a:focus,footer .nav>li>a:hover{background-color:rgba(0,0,0,0);opacity:.8}.nav-pills>li>a{border-radius:30px}.dropdown .list-inline li{margin-bottom:0 !important}.panel-disabled,.panel-disabled .h3,.panel-disabled h3,.panel-disabled p{color:#333 !important}.pane-area-estructura h2{margin-bottom:10px !important}.pane-area-estructura .img-rounded{margin-bottom:20px !important}.well{border-width:2px !important}.node-unpublished{background-color:#fff !important}.panel-icon.panel-primary .panel-heading{background-color:#0072bb !important}.panel-icon.panel-success .panel-heading{background-color:#2e7d33 !important}.panel-icon.panel-info .panel-heading{background-color:#2897d4 !important}.panel-icon.panel-danger .panel-heading{background-color:#c62828 !important}.panel-icon.panel-warning .panel-heading{background-color:#f9a822 !important}.panel-icon.panel-gray .panel-heading{background-color:#e5e5e5 !important}.panel-icon.panel-white .panel-heading{background-color:#fff !important;border:solid 1px #ddd;border-radius:10px}.panel-icon.panel-muted .panel-heading{background-color:#555 !important}.panel-icon.panel-fucsia .panel-heading{background-color:#ec407a !important}.panel-icon.panel-arandano .panel-heading{background-color:#c2185b !important}.panel-icon.panel-uva .panel-heading{background-color:#6a1b99 !important}.panel-icon.panel-cielo .panel-heading{background-color:#039be5 !important}.panel-icon.panel-verdin .panel-heading{background-color:#6ea100 !important}.panel-icon.panel-lima .panel-heading{background-color:#cddc39 !important}.panel-icon.panel-maiz .panel-heading{background-color:#ffce00 !important}.panel-icon.panel-tomate .panel-heading{background-color:#ef5350 !important}.panel-icon.panel-naranja .panel-heading{background-color:#ef6c00 !important}.panel-icon.panel-verde-azulado .panel-heading{background-color:#008388 !important}small{font-weight:500 !important}.social-share a{font-size:20px;margin-top:-6px}#campaign a{text-decoration:none !important}.etapa2 .h3{color:#333 !important;font-size:20px !important;text-shadow:none !important}.etapa2 p{font-size:16px !important;line-height:22px !important;text-shadow:none !important;font-weight:500 !important;color:#555 !important}.etapa2 .text-muted{text-shadow:none !important}.mt-3{margin-top:30px}.input-search{border:none !important}.input-search:hover,.input-search:focus{-webkit-box-shadow:none !important;box-shadow:none !important}.box-campania{padding:30px 0 0 0;background-color:#f3faff}.container-campania{border-radius:10px;width:1270px !important;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media(max-width: 768px){#campaign02{line-height:1.4}.panel-camp-principal{margin-top:160px}.box-camp-principal{padding:0px !important}}.container-campania{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto;border-radius:10px !important}@media(min-width: 300px){.container-campania{width:100% !important}}@media(max-width: 767px){.container-campania{width:100% !important;border-radius:0px !important;height:250px;overflow:visible}.container-campania:not(:root:root){margin-bottom:155px}.box-campania{padding:0px}}@media(min-width: 768px){.container-campania{width:750px !important}}@media only screen and (min-width: 768px)and (max-width: 991px){.container-campania.jumbotron{height:275px;margin-bottom:150px}.panel.panel-default.panel-border-escarapela.etapa2.panel-camp-principal{margin-bottom:30px;margin-top:162px}}@media(min-width: 992px){.container-campania{width:970px !important;min-height:354px}}@media(min-width: 1200px){.container-campania{width:1170px !important}}@media(min-width: 1270px){.container-campania{width:1270px !important}}.d-inline-block{display:inline-block !important}.btn-search-reset{padding:8px 11px !important;border:3px solid #fff !important;line-height:1.38 !important}@media(min-width: 768px)and (max-width: 991.98px){#pastilla-campana-2 .panel-heading,#pastilla-campana-3 .panel-heading,#pastilla-campana-4 .panel-heading,#pastilla-campana-2 .panel-body,#pastilla-campana-3 .panel-body,#pastilla-campana-4 .panel-body{width:50%;float:left;-webkit-border-top-right-radius:0 !important;-moz-border-radius-topright:0px !important;border-top-right-radius:0px !important}}.align-middle .media-body{vertical-align:middle !important}
|
|
Binary file
|
|
Binary file
|
package/test/color.test.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const {ponchoColor, findPonchoColorByHex} = require('../src/js/utils/color');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
test('Colores Poncho por nombre', () => {
|
|
5
|
-
expect(ponchoColor('amarillo')).toBe('#f9a822');
|
|
6
|
-
expect(ponchoColor('warning')).toBe('#f9a822');
|
|
7
|
-
expect(ponchoColor('Esto no es un color')).toBe('Esto no es un color');
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
test("Buscar colores por su valor hexadecimal", () => {
|
|
12
|
-
expect(findPonchoColorByHex("333").code).toBe("black");
|
|
13
|
-
expect(findPonchoColorByHex("333333").code).toBe("black");
|
|
14
|
-
expect(findPonchoColorByHex("#333").code).toBe("black");
|
|
15
|
-
expect(findPonchoColorByHex(333).code).toBe("black");
|
|
16
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const GapiSheetData = require('../src/js/gapi-sheet-data/gapi-sheet-data');
|
|
2
|
-
const jsonData = require('./resources/response');
|
|
3
|
-
|
|
4
|
-
test('GAPI', () => {
|
|
5
|
-
const gapi = new GapiSheetData();
|
|
6
|
-
|
|
7
|
-
const url = gapi.url("dataset", "13fMXLCN-aqeAVo6YH9eNP1ojljFWB0ocRR3sWNMYaIg");
|
|
8
|
-
expect(url).toBe('https://sheets.googleapis.com/v4/spreadsheets/13fMXLCN-aqeAVo6YH9eNP1ojljFWB0ocRR3sWNMYaIg/values/dataset?key=AIzaSyCq2wEEKL9-6RmX-TkW23qJsrmnFHFf5tY&alt=json');
|
|
9
|
-
|
|
10
|
-
const gapi_data = gapi.json_data(jsonData);
|
|
11
|
-
const {headers={}, entries={}, feed={}} = gapi_data;
|
|
12
|
-
expect(feed[1].direccion).toBe("Mendoza 2419, Santa Fe Capital")
|
|
13
|
-
expect(headers["filtro-provincia"]).toBe("Provincia");
|
|
14
|
-
expect(headers["btn-ver"]).toBe("Ubicalo en el mapa");
|
|
15
|
-
expect(entries[0]["filtro-provincia"]).toBe("Santa Fe");
|
|
16
|
-
expect(entries[0]["btn-ver"]).toBe('/prueba-mapas-enfermedades-poco-frecuentes#0000001');
|
|
17
|
-
});
|
package/test/html.test.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const {secureHTML} = require('../src/js/utils/html');
|
|
2
|
-
|
|
3
|
-
test('Secure HTML', () => {
|
|
4
|
-
expect(secureHTML('<h1>Hello world!</h1> <a href="#">Link</a>', ["a"]))
|
|
5
|
-
.toBe('<h1>Hello world!</h1> <a href="#">Link</a>');
|
|
6
|
-
|
|
7
|
-
expect(secureHTML('<h1>Hello world!</h1> <a href="#">Link</a>', []))
|
|
8
|
-
.toBe('<h1>Hello world!</h1> <a href="#">Link</a>');
|
|
9
|
-
|
|
10
|
-
expect(secureHTML('<h1>Hello world!</h1> <a href="#">Link</a>', ["*"]))
|
|
11
|
-
.toBe('<h1>Hello world!</h1> <a href="#">Link</a>');
|
|
12
|
-
|
|
13
|
-
expect(secureHTML('<< Texto en <strong>negrita</strong> >>', ["strong"]))
|
|
14
|
-
.toBe('<< Texto en <strong>negrita</strong> >>');
|
|
15
|
-
|
|
16
|
-
expect(secureHTML('<<strong>negrita</strong>>', ["strong"]))
|
|
17
|
-
.toBe('<<strong>negrita</strong>>');
|
|
18
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const gapi_legacy = require('../src/js/utils/gapi-legacy');
|
|
2
|
-
const jsonData = require('./resources/response');
|
|
3
|
-
|
|
4
|
-
test('GApi legacy', () => {
|
|
5
|
-
const legacy = gapi_legacy(jsonData);
|
|
6
|
-
expect(legacy.feed.entry[0]["gsx$area"]["$t"]).toBe("Área, servicio o grupo");
|
|
7
|
-
});
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
const jsonData = {
|
|
2
|
-
"range": "'Hoja 1'!A1:Z999",
|
|
3
|
-
"majorDimension": "ROWS",
|
|
4
|
-
"values": [
|
|
5
|
-
[
|
|
6
|
-
"filtro-categoria",
|
|
7
|
-
"filtro-provincia",
|
|
8
|
-
"tipo",
|
|
9
|
-
"nombre",
|
|
10
|
-
"area",
|
|
11
|
-
"direccion",
|
|
12
|
-
"latitud",
|
|
13
|
-
"longitud",
|
|
14
|
-
"telefono",
|
|
15
|
-
"mail",
|
|
16
|
-
"btn-ir",
|
|
17
|
-
"keywords",
|
|
18
|
-
"idTabla",
|
|
19
|
-
"btn-ver"
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
"Categoría",
|
|
23
|
-
"Provincia",
|
|
24
|
-
"Tipo",
|
|
25
|
-
"Institución",
|
|
26
|
-
"Área, servicio o grupo",
|
|
27
|
-
"Dirección",
|
|
28
|
-
"Latitud",
|
|
29
|
-
"Longitud",
|
|
30
|
-
"Teléfono",
|
|
31
|
-
"Correo electrónico",
|
|
32
|
-
"Web",
|
|
33
|
-
"keywords",
|
|
34
|
-
"idTabla",
|
|
35
|
-
"Ubicalo en el mapa"
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
"Enfermedades neuromusculares",
|
|
39
|
-
"Santa Fe",
|
|
40
|
-
"Pública",
|
|
41
|
-
"CEMAFE - Centro de Especialidades Médicas Ambulatorias Santa Fe",
|
|
42
|
-
"Grupo de trabajo de EPF",
|
|
43
|
-
"Mendoza 2419, Santa Fe Capital",
|
|
44
|
-
"-31.6497366",
|
|
45
|
-
"-60.705748",
|
|
46
|
-
"0342 4844400 | 0342 4844411",
|
|
47
|
-
"epf.cemafe@gmail.com",
|
|
48
|
-
"",
|
|
49
|
-
"enfermedad genética, manchas café con leche, neurofibroma, nódulo de lisch, plexiforme, nf1, gen, neurinoma del acústico, herencia",
|
|
50
|
-
"0000001",
|
|
51
|
-
"/prueba-mapas-enfermedades-poco-frecuentes#0000001"
|
|
52
|
-
],
|
|
53
|
-
]
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
module.exports = jsonData;
|
package/test/string.test.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const {slugify, replaceSpecialChars} = require('../src/js/utils/string.js');
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
test('Slugify', () => {
|
|
5
|
-
expect(slugify('El murciélago remolón')).toBe('el-murcielago-remolon');
|
|
6
|
-
expect(slugify('Inglés Français')).toBe('ingles-francais');
|
|
7
|
-
expect(slugify('Las niñas juegan')).toBe('las-ninas-juegan');
|
|
8
|
-
expect(slugify('--Las [niñas]-. juegan.')).toBe('las-ninas-juegan');
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
test('Removedor de acentos y caracteres especiales', () => {
|
|
13
|
-
expect(replaceSpecialChars('AGUSTÍN Bouillet juega como un niño'))
|
|
14
|
-
.toBe('AGUSTIN Bouillet juega como un nino');
|
|
15
|
-
expect(replaceSpecialChars(
|
|
16
|
-
'El hijo de Rolón, «el niño Joaquín», jugaba con un paragüas'))
|
|
17
|
-
.toBe('El hijo de Rolon, «el nino Joaquin», jugaba con un paraguas');
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
|