From 4b695b6aa454bfa143b51a705e712c0a0c50dd9d Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 27 Dec 2016 15:38:57 -0300 Subject: [PATCH 1/2] Simple refactor Gruntfile --- Gruntfile.js | 21 +++++++-------------- app-template/index.html | 6 +++--- 2 files changed, 10 insertions(+), 17 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 765b9f9ac..b847b7b71 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -74,13 +74,9 @@ module.exports = function(grunt) { grunt.log.writeln('Waiting for more changes...'); }, }, - css: { - files: ['src/css/*.css'], - tasks: ['concat:css'] - }, sass: { files: ['src/sass/**/**/*.scss'], - tasks: ['sass', 'concat:css'] + tasks: ['sass'] }, main: { files: [ @@ -104,8 +100,9 @@ module.exports = function(grunt) { }, files: [{ expand: true, + flatten: true, src: ['src/sass/main.scss'], - dest: './', + dest: 'www/css/', ext: '.css' }] } @@ -132,7 +129,7 @@ module.exports = function(grunt) { 'angular-bitauth/angular-bitauth.js', 'angular-bitcore-wallet-client/angular-bitcore-wallet-client.js' ], - dest: 'www/lib/angular.js' + dest: 'www/lib/angular-components.js' }, js: { src: [ @@ -152,11 +149,7 @@ module.exports = function(grunt) { 'node_modules/bezier-easing/dist/bezier-easing.min.js', 'node_modules/cordova-plugin-qrscanner/dist/cordova-plugin-qrscanner-lib.min.js' ], - dest: 'www/js/copay.js' - }, - css: { - src: ['src/sass/*.css', 'src/css/*.css'], - dest: 'www/css/copay.css' + dest: 'www/js/app.js' } }, uglify: { @@ -165,8 +158,8 @@ module.exports = function(grunt) { }, prod: { files: { - 'www/js/copay.js': ['www/js/copay.js'], - 'www/lib/angular.js': ['www/lib/angular.js'] + 'www/js/app.js': ['www/js/app.js'], + 'www/lib/angular-components.js': ['www/lib/angular-components.js'] } } }, diff --git a/app-template/index.html b/app-template/index.html index 6a32429c8..f457d9310 100644 --- a/app-template/index.html +++ b/app-template/index.html @@ -6,7 +6,7 @@ - + *USERVISIBLENAME* - *PURPOSELINE* @@ -25,11 +25,11 @@ - + - + From 302dee66ce8b40a5d83b0da4bb8af3dc71e0f601 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Tue, 27 Dec 2016 15:39:33 -0300 Subject: [PATCH 2/2] Fix nav-bar become blank when drag to back (only iOS) --- src/sass/ionic.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sass/ionic.scss b/src/sass/ionic.scss index 7a5597fb7..b637730f8 100644 --- a/src/sass/ionic.scss +++ b/src/sass/ionic.scss @@ -12,6 +12,8 @@ ion-tabs.ion-tabs-transparent { background: none transparent; } +ion-nav-bar.hide { display: block !important; } + // .placeholder-icon padding cannot be modified by a variable $placeholder-icon-padding: 10px; .placeholder-icon {