Fix creazione manifest.json

altre fix minori
This commit is contained in:
Luca 2022-11-28 11:44:56 +01:00
parent 4a1c2a8113
commit 8d23e05d14
3 changed files with 29 additions and 23 deletions

View File

@ -124,7 +124,9 @@ const JS = gulp.parallel(() => {
vendor[i] = config.nodeDirectory + '/' + vendor[i];
}
return gulp.src(vendor)
return gulp.src(vendor, {
allowEmpty: true
})
.pipe(babel(config.babelOptions))
.pipe(concat('app.min.js'))
.pipe(gulpIf(!config.debug, minifyJS()))
@ -181,7 +183,9 @@ const CSS = gulp.parallel(() => {
vendor[i] = config.nodeDirectory + '/' + vendor[i];
}
return gulp.src(vendor)
return gulp.src(vendor, {
allowEmpty: true
})
.pipe(gulpIf('*.scss', sass(), gulpIf('*.less', less(), gulpIf('*.styl', stylus()))))
.pipe(autoprefixer())
.pipe(minifyCSS({

View File

@ -181,26 +181,26 @@ if (post('db_host') !== null) {
else {
// Creazione manifest.json
$manifest = '{
"dir" : "ltr",
"lang" : "it-IT",
"name" : "OpenSTAManager",
"scope" : "'.base_path().'",
"display" : "fullscreen",
"start_url" : "'.base_path().'",
"short_name" : "OSM",
"theme_color" : "transparent",
"description" : "OpenSTAManager",
"orientation" : "any",
"background_color" : "transparent",
"generated" : "true",
"icons" : [
{
"src": "assets/dist/img/logo_completo.png",
"type": "image/png",
"sizes": "489x91"
}
]
}';
"dir" : "ltr",
"lang" : "'.((empty($lang) || $lang == '|lang|') ? 'it-IT' : str_replace('_','-',$lang)).'",
"name" : "'.tr('OpenSTAManager').'",
"scope" : "'.((empty(base_path()) || base_path()=='/') ? '' : '.').'",
"display" : "fullscreen",
"start_url" : "'.((empty(base_path()) || base_path()=='/') ? '/' : './').'",
"short_name" : "OSM",
"theme_color" : "transparent",
"description" : "'.tr('OpenSTAManager').'",
"orientation" : "any",
"background_color" : "transparent",
"generated" : "true",
"icons" : [
{
"src": "assets/dist/img/logo_completo.png",
"type": "image/png",
"sizes": "489x91"
}
]
}';
file_put_contents('manifest.json', $manifest);
redirect(base_path().'/index.php');
@ -209,6 +209,8 @@ if (post('db_host') !== null) {
}
}
// Controlla che i parametri di configurazione permettano l'accesso al database
if ((file_exists('config.inc.php') || $valid_config) && !$dbo->isConnected()) {
echo '

View File

@ -20,7 +20,7 @@
"dropzone": "^5.7.2",
"eonasdan-bootstrap-datetimepicker": "^4.17.49",
"font-awesome": "^4.7.0",
"fullcalendar": "^3.10.4",
"fullcalendar": "^3.10.5",
"geocomplete": "^1.7.0",
"hotkeys-js": "^3.8.5",
"html5sortable": "^0.13.2",