ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [19/51] [abbrv] ignite git commit: IGNITE-3319 Upgraded to latest jszip.
Date Fri, 01 Jul 2016 07:18:06 GMT
IGNITE-3319 Upgraded to latest jszip.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/ab9f2da4
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/ab9f2da4
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/ab9f2da4

Branch: refs/heads/ignite-3262
Commit: ab9f2da407abe2407f642c38e9551a6cd89c7585
Parents: b2d7562
Author: Andrey Novikov <anovikov@apache.org>
Authored: Tue Jun 28 17:54:23 2016 +0700
Committer: Andrey Novikov <anovikov@apache.org>
Committed: Tue Jun 28 17:54:23 2016 +0700

----------------------------------------------------------------------
 .../states/configuration/summary/summary.controller.js        | 7 +++----
 .../js/gulpfile.babel.js/webpack/environments/development.js  | 2 +-
 2 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ab9f2da4/modules/web-console/src/main/js/app/modules/states/configuration/summary/summary.controller.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/app/modules/states/configuration/summary/summary.controller.js
b/modules/web-console/src/main/js/app/modules/states/configuration/summary/summary.controller.js
index 866d97f..bba1ae0 100644
--- a/modules/web-console/src/main/js/app/modules/states/configuration/summary/summary.controller.js
+++ b/modules/web-console/src/main/js/app/modules/states/configuration/summary/summary.controller.js
@@ -17,6 +17,7 @@
 
 import _ from 'lodash';
 import JSZip from 'jszip';
+import saver from 'file-saver';
 
 export default [
     '$rootScope', '$scope', '$http', '$common', '$loading', '$filter', 'ConfigurationSummaryResource',
'JavaTypes', 'IgniteVersion', 'GeneratorDocker', 'GeneratorPom',
@@ -326,10 +327,8 @@ export default [
 
             $generatorOptional.optionalContent(zip, cluster);
 
-            const blob = zip.generate({type: 'blob', compression: 'DEFLATE', mimeType: 'application/octet-stream'});
-
-            // Download archive.
-            saveAs(blob, cluster.name + '-project.zip');
+            zip.generateAsync({type: 'blob', compression: 'DEFLATE', mimeType: 'application/octet-stream'})
+                .then((blob) => saver.saveAs(blob, cluster.name + '-project.zip'));
         };
 
         /**

http://git-wip-us.apache.org/repos/asf/ignite/blob/ab9f2da4/modules/web-console/src/main/js/gulpfile.babel.js/webpack/environments/development.js
----------------------------------------------------------------------
diff --git a/modules/web-console/src/main/js/gulpfile.babel.js/webpack/environments/development.js
b/modules/web-console/src/main/js/gulpfile.babel.js/webpack/environments/development.js
index 6b23450..aad4b37 100644
--- a/modules/web-console/src/main/js/gulpfile.babel.js/webpack/environments/development.js
+++ b/modules/web-console/src/main/js/gulpfile.babel.js/webpack/environments/development.js
@@ -26,7 +26,7 @@ export default () => {
     return {
         context: rootDir,
         debug: true,
-        devtool: 'cheap-module-eval-source-map',
+        devtool: 'source-map',
         watch: true,
         devServer: {
             historyApiFallback: true,


Mime
View raw message