Skip to content

Commit 4b8cef2

Browse files
committed
build(deps): aggiornamento libreria ua-parser-js per gestione icone
1 parent 9fe3291 commit 4b8cef2

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

gulpfile.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,15 +139,12 @@ const JS = gulp.parallel(function vendorJS() {
139139
'admin-lte/dist/js/adminlte.js',
140140
'bootstrap/dist/js/bootstrap.min.js',
141141
'bootstrap-daterangepicker/daterangepicker.js',
142-
'datatables.net-bs/js/dataTables.bootstrap.js',
143-
'datatables.net-buttons-bs/js/buttons.bootstrap.js',
144142
'smartwizard/dist/js/jquery.smartWizard.min.js',
145143
'bootstrap-maxlength/dist/bootstrap-maxlength.js',
146144
'leaflet/dist/leaflet.js',
147145
'leaflet-gesture-handling/dist/leaflet-gesture-handling.min.js',
148146
'leaflet.fullscreen/Control.FullScreen.js',
149147
'ismobilejs/dist/isMobile.min.js',
150-
'ua-parser-js/dist/ua-parser.min.js',
151148
'readmore.js/readmore.js',
152149
];
153150

@@ -456,11 +453,18 @@ function pdfjs() {
456453
}
457454

458455
function uaparser() {
459-
return gulp.src([
456+
const js = gulp.src([
457+
config.nodeDirectory + '/ua-parser-js/dist/ua-parser.min.js',
458+
])
459+
.pipe(gulp.dest(config.production + '/' + config.paths.js));
460+
461+
const icons = gulp.src([
460462
config.nodeDirectory + '/ua-parser-js/dist/icons/mono/**/*',
461463
'!' + config.nodeDirectory + '/ua-parser-js/dist/icons/mono/LICENSE.md',
462464
], {encoding: false})
463465
.pipe(gulp.dest(config.production + '/' + config.paths.images + '/icons/'));
466+
467+
return merge(js, icons);
464468
}
465469

466470
// Elaborazione e minificazione delle informazioni sull'internazionalizzazione

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"sweetalert2": "^6.11.4",
6060
"toastr": "^2.1.4",
6161
"tooltipster": "^4.2.5",
62-
"ua-parser-js": "^2.0.0"
62+
"ua-parser-js": "github:Pek5892/ua-parser-js#patch-1"
6363
},
6464
"devDependencies": {
6565
"@babel/core": "^7.11.1",

src/App.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class App
5959
// JS
6060
'js' => [
6161
'app.min.js',
62+
'ua-parser.min.js',
6263
'functions.min.js',
6364
'custom.min.js',
6465
'i18n/parsleyjs/|lang|.min.js',

0 commit comments

Comments
 (0)