From 18a2ffb056ec500e0bce3c0a57559a47b363a5c9 Mon Sep 17 00:00:00 2001 From: Sander van de Graaf Date: Thu, 3 Aug 2017 09:19:39 +0200 Subject: [PATCH 1/2] Make html consistent --- app/partials/accounts/list.html | 24 +-- app/partials/accounts/show.html | 70 +++---- app/partials/bookmarks/index.html | 7 +- app/partials/bookmarks/list.html | 55 +++--- app/partials/bookmarks/otp.html | 16 +- app/partials/bookmarks/show.html | 70 +++---- app/partials/common/empty.html | 2 +- app/partials/common/list-index.html | 7 +- app/partials/footer/empty.html | 2 +- app/partials/footer/footer.html | 39 ++-- app/partials/header/accounts.html | 19 +- app/partials/header/bookmarks.html | 19 +- app/partials/header/setup.html | 3 +- app/partials/header/welcome.html | 3 +- app/partials/settings.html | 269 +++++++++++++-------------- app/partials/setup.html | 274 +++++++++++++--------------- app/partials/welcome.html | 4 +- gruntfile.js | 18 +- 18 files changed, 423 insertions(+), 478 deletions(-) diff --git a/app/partials/accounts/list.html b/app/partials/accounts/list.html index e2af0c7..1788ca7 100644 --- a/app/partials/accounts/list.html +++ b/app/partials/accounts/list.html @@ -1,18 +1,14 @@ - + {{account.name}} - + \ No newline at end of file diff --git a/app/partials/accounts/show.html b/app/partials/accounts/show.html index 5bac12a..568cc5f 100644 --- a/app/partials/accounts/show.html +++ b/app/partials/accounts/show.html @@ -1,49 +1,37 @@ - + - + - + - +
- + - -
+ + \ No newline at end of file diff --git a/app/partials/bookmarks/index.html b/app/partials/bookmarks/index.html index b1ae398..d782ab5 100644 --- a/app/partials/bookmarks/index.html +++ b/app/partials/bookmarks/index.html @@ -1,3 +1,4 @@ - -
-
+ +
+
\ No newline at end of file diff --git a/app/partials/bookmarks/list.html b/app/partials/bookmarks/list.html index c2e139e..bf0bf84 100644 --- a/app/partials/bookmarks/list.html +++ b/app/partials/bookmarks/list.html @@ -1,30 +1,27 @@ - - - - - -

{{bookmark.name}}

-

{{bookmark.account_number}}/{{bookmark.role_name}}

- -
+ + + + + +

{{bookmark.name}}

+

{{bookmark.account_number}}/{{bookmark.role_name}}

+ +
diff --git a/app/partials/bookmarks/otp.html b/app/partials/bookmarks/otp.html index 1cabb57..59cbebb 100644 --- a/app/partials/bookmarks/otp.html +++ b/app/partials/bookmarks/otp.html @@ -1,11 +1,9 @@
- +
\ No newline at end of file diff --git a/app/partials/bookmarks/show.html b/app/partials/bookmarks/show.html index 8be0089..323614a 100644 --- a/app/partials/bookmarks/show.html +++ b/app/partials/bookmarks/show.html @@ -1,49 +1,37 @@ - + - + - + - +
- + - -
+ + \ No newline at end of file diff --git a/app/partials/common/empty.html b/app/partials/common/empty.html index 31800c0..f182cdd 100644 --- a/app/partials/common/empty.html +++ b/app/partials/common/empty.html @@ -1 +1 @@ -
+
\ No newline at end of file diff --git a/app/partials/common/list-index.html b/app/partials/common/list-index.html index c325cb9..e9f5da5 100644 --- a/app/partials/common/list-index.html +++ b/app/partials/common/list-index.html @@ -1,3 +1,4 @@ - - - + + + \ No newline at end of file diff --git a/app/partials/footer/empty.html b/app/partials/footer/empty.html index 646963c..25b9a31 100644 --- a/app/partials/footer/empty.html +++ b/app/partials/footer/empty.html @@ -1,2 +1,2 @@
-
+ \ No newline at end of file diff --git a/app/partials/footer/footer.html b/app/partials/footer/footer.html index 299821a..2d3552b 100644 --- a/app/partials/footer/footer.html +++ b/app/partials/footer/footer.html @@ -1,24 +1,21 @@
- + - + - -
\ No newline at end of file + + diff --git a/app/partials/header/accounts.html b/app/partials/header/accounts.html index 46e98e4..54da141 100644 --- a/app/partials/header/accounts.html +++ b/app/partials/header/accounts.html @@ -1,13 +1,10 @@ - + - + -

Accounts

+

Accounts

\ No newline at end of file diff --git a/app/partials/header/bookmarks.html b/app/partials/header/bookmarks.html index e190223..c7120ac 100644 --- a/app/partials/header/bookmarks.html +++ b/app/partials/header/bookmarks.html @@ -1,13 +1,10 @@ - + - + -

Bookmarks

\ No newline at end of file +

Bookmarks

\ No newline at end of file diff --git a/app/partials/header/setup.html b/app/partials/header/setup.html index 7e5b461..3f67dbb 100644 --- a/app/partials/header/setup.html +++ b/app/partials/header/setup.html @@ -1 +1,2 @@ -

Setup

+

Setup

\ No newline at end of file diff --git a/app/partials/header/welcome.html b/app/partials/header/welcome.html index bca796a..181080b 100644 --- a/app/partials/header/welcome.html +++ b/app/partials/header/welcome.html @@ -1 +1,2 @@ -

Welcome

\ No newline at end of file +

Welcome

\ No newline at end of file diff --git a/app/partials/settings.html b/app/partials/settings.html index eb8f150..d1ff700 100644 --- a/app/partials/settings.html +++ b/app/partials/settings.html @@ -1,143 +1,126 @@ - -
-
-
- -
-
- -
-
Locksmith
- -
- Use Local Storage - -
- -
- Use Switch Role - -
- -
- Use Incognito Sessions - -
-
- -
-
Locksmith API
- - - - - - -
- -
-
AWS Credentials
- - - - - - -
- -
-
Management
- -
- Account Management - -
-
-
- - -

 

-
+ +
+
+
+ +
+
+ +
+
Locksmith
+ +
+ Use Local Storage + +
+ +
+ Use Switch Role + +
+ +
+ Use Incognito Sessions + +
+
+ +
+
Locksmith API
+ + + + + + +
+ +
+
AWS Credentials
+ + + + + + +
+ +
+
Management
+ +
+ Account Management + +
+
+
+ + +

 

+
\ No newline at end of file diff --git a/app/partials/setup.html b/app/partials/setup.html index 119449a..ad3b4a4 100644 --- a/app/partials/setup.html +++ b/app/partials/setup.html @@ -1,147 +1,133 @@ - -
-
- You have followed a link to apply a configuration in - Locksmith. - Please carefully review the following configuration and - apply these settings using the save button at the bottom. -
+ +
+
+ You have followed a link to apply a configuration in Locksmith. Please carefully review the following configuration and apply these settings using the save button at the bottom. +
+
+ +
+
Locksmith
+ +
+ Use Local Storage +
+ +
+
Locksmit API
+ + + + + + +
+ +
+
AWS Credentials
+ + + + + + +
+ +
+
Management
+ +
+ Account Management + +
+
+ +
+ +
-

 

- +

 

+ \ No newline at end of file diff --git a/app/partials/welcome.html b/app/partials/welcome.html index 1bbbb77..dc32615 100644 --- a/app/partials/welcome.html +++ b/app/partials/welcome.html @@ -1,3 +1,3 @@
-
Welcome
-
+
Welcome
+
\ No newline at end of file diff --git a/gruntfile.js b/gruntfile.js index bf9667f..2fa2183 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -2,8 +2,21 @@ module.exports = function (grunt) { grunt.initConfig({ jsbeautifier: { - files : ["app/js/**/*.js"], + files : [ + "app/js/**/*.js", + "app/partials/**/*.html" + ], options : { + html: { + braceStyle: "collapse", + indentChar: " ", + indentScripts: "keep", + indentSize: 4, + maxPreserveNewlines: 10, + preserveNewlines: true, + unformatted: ["a", "sub", "sup", "b", "i", "u"], + wrapAttributes: 'force-aligned' + } } }, @@ -102,8 +115,9 @@ grunt.loadNpmTasks('grunt-contrib-cssmin'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-zip'); + // register at least this one task -grunt.registerTask('default', [ 'jsbeautifier', 'uglify', 'cssmin', 'copy', 'zip' ]); +grunt.registerTask('default', [ 'jsbeautifier', 'uglify', 'cssmin', 'copy', 'zip']); }; From 35101710870eff21ea6a21f5598b0ac5faf97b35 Mon Sep 17 00:00:00 2001 From: Sander van de Graaf Date: Thu, 7 Sep 2017 08:38:40 +0200 Subject: [PATCH 2/2] the space is back from the bar --- gruntfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gruntfile.js b/gruntfile.js index 2fa2183..a143f58 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -117,7 +117,7 @@ grunt.loadNpmTasks('grunt-zip'); // register at least this one task -grunt.registerTask('default', [ 'jsbeautifier', 'uglify', 'cssmin', 'copy', 'zip']); +grunt.registerTask('default', [ 'jsbeautifier', 'uglify', 'cssmin', 'copy', 'zip' ]); };