From fe1583481a6ccb5a8de3c8d7f8cc7751b2f94ffe Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Wed, 5 Jun 2019 23:18:23 +0200
Subject: [PATCH] [fix] Fix API break (missing fullscreen lib)

---
 gulpfile.js        | 4 ++--
 www/api/index.html | 1 +
 www/index.html     | 1 +
 www/js/api/app.js  | 1 +
 4 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js
index 13f8a5fd..38c45835 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -459,7 +459,7 @@ gulp.task('optimize-api-files:web', ['debug-api-files:web'], function(done) {
   var cssFilter = filter("**/*.css", { restore: true });
   var revFilesFilter = filter(['**/*', '!**/index.html', '!**/config.js'], { restore: true });
   var indexFilter = filter('**/index.html', { restore: true });
-  var uglifyOptions = {beautify: false};
+  var uglifyOptions = {beautify: false, max_line_len: 120000};;
 
   // Process index.html
   gulp.src(tmpPath + '/*/index.html')
@@ -506,7 +506,7 @@ gulp.task('optimize-files:web', ['debug-files:web'], function(done) {
   var jsFilter = filter(["**/*.js", '!**/config.js'], { restore: true });
   var cssFilter = filter("**/*.css", { restore: true });
   var revFilesFilter = filter(['**/*', '!**/index.html', '!**/config.js'], { restore: true });
-  var uglifyOptions = {beautify: false};
+  var uglifyOptions = {beautify: false, max_line_len: 120000};
 
   // Process index.html
   gulp.src(tmpPath + '/index.html')
diff --git a/www/api/index.html b/www/api/index.html
index 6a3f64ef..7badbd63 100644
--- a/www/api/index.html
+++ b/www/api/index.html
@@ -49,6 +49,7 @@
 <script src="../lib/ionic/js/angular/angular-bind-notifier.min.js"></script>
 <script src="../lib/ionic/js/angular/angular-file-saver.bundle.js"></script>
 <script src="../lib/ionic/js/angular/angular-idle.js"></script>
+<script src="../lib/ionic/js/angular/angular-fullscreen.js"></script>
 
   <script src="../js/vendor/base58.js" async></script>
   <!--removeIf(android)-->
diff --git a/www/index.html b/www/index.html
index 984b1d41..6d3c668e 100644
--- a/www/index.html
+++ b/www/index.html
@@ -25,6 +25,7 @@
     <link rel="stylesheet" type="text/css" href="css/leaflet.app.min.css">
     <link rel="stylesheet" type="text/css" href="dist/dist_css/plugins/es/css/style.css">
     <link rel="stylesheet" type="text/css" href="dist/dist_css/plugins/graph/css/style.css">
+    <link rel="stylesheet" type="text/css" href="dist/dist_css/plugins/graph/css/style.css">
     <link rel="stylesheet" type="text/css" href="dist/dist_css/plugins/map/css/style.css">
     <!--endRemoveIf(no-plugin)-->
     <!-- endbuild -->
diff --git a/www/js/api/app.js b/www/js/api/app.js
index 811e696e..86aa5673 100644
--- a/www/js/api/app.js
+++ b/www/js/api/app.js
@@ -5,6 +5,7 @@
 // the 2nd parameter is an array of 'requires'
 // 'starter.controllers' is found in controllers.js
 angular.module('cesium-api', ['ionic', 'ionic-material', 'ngMessages', 'pascalprecht.translate', 'ngApi', 'angular-cache', 'angular.screenmatch',
+  'FBAngular', // = angular-fullscreen
   // removeIf(no-device)
   'ngCordova',
   // endRemoveIf(no-device)
-- 
GitLab