From a8e90e881df48dfb9af591d8da92a3f7141c1ca4 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Sun, 16 Dec 2018 15:24:46 +0200 Subject: [PATCH] style(app): remove whitespaces --- app/portainer/__module.js | 2 +- .../components/endpoint-list/endpoint-list.js | 3 +- app/portainer/views/sidebar/sidebar.html | 1 - gruntfile.js | 33 ++++++++++--------- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/app/portainer/__module.js b/app/portainer/__module.js index dcc4474f3..e47a1ad03 100644 --- a/app/portainer/__module.js +++ b/app/portainer/__module.js @@ -55,7 +55,7 @@ angular.module('portainer.app', []) }, views: { 'content@': { - templateUrl: "./views/auth/auth.html", + templateUrl: './views/auth/auth.html', controller: 'AuthenticationController' }, 'sidebar@': {} diff --git a/app/portainer/components/endpoint-list/endpoint-list.js b/app/portainer/components/endpoint-list/endpoint-list.js index b4c307c9f..e4ce9cff5 100644 --- a/app/portainer/components/endpoint-list/endpoint-list.js +++ b/app/portainer/components/endpoint-list/endpoint-list.js @@ -1,6 +1,5 @@ -import template from './endpointList.html' angular.module('portainer.app').component('endpointList', { - templateUrl: template, + templateUrl: './endpointList.html', controller: 'EndpointListController', bindings: { titleText: '@', diff --git a/app/portainer/views/sidebar/sidebar.html b/app/portainer/views/sidebar/sidebar.html index f492e6bc0..b0de26514 100644 --- a/app/portainer/views/sidebar/sidebar.html +++ b/app/portainer/views/sidebar/sidebar.html @@ -19,7 +19,6 @@ :', function( - p = 'linux', - a = arch - ) { - grunt.task.run([ - 'config:prod', - 'env:prod', - 'clean:all', - 'copy:templates', - 'shell:buildBinary:' + p + ':' + a, - 'shell:downloadDockerBinary:' + p + ':' + a, - 'webpack:prod' - ]); - }); + grunt.task.registerTask('release', 'release::', + function (p = 'linux', a = arch) { + grunt.task.run([ + 'config:prod', + 'env:prod', + 'clean:all', + 'copy:templates', + 'shell:buildBinary:' + p + ':' + a, + 'shell:downloadDockerBinary:' + p + ':' + a, + 'webpack:prod' + ]); + }); grunt.registerTask('lint', ['eslint']);