From 6afcd8cc2ee29f052e2e15ac94aca93f42f8a22c Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Wed, 7 May 2014 18:48:56 -0300 Subject: [PATCH] spinner while derivating passphrase --- config.template.js | 2 +- css/main.css | 30 ++++++++++++++++++++++ index.html | 10 ++++++-- js/controllers/import.js | 11 +++----- js/controllers/setup.js | 26 +++++++++---------- js/controllers/signin.js | 49 ++++++++++++++++++------------------ js/models/core/Passphrase.js | 10 ++++++++ 7 files changed, 91 insertions(+), 47 deletions(-) diff --git a/config.template.js b/config.template.js index d100063bc..0628849f0 100644 --- a/config.template.js +++ b/config.template.js @@ -98,7 +98,7 @@ var config = { port: 3001 }, passphrase: { - iterations: 1, + iterations: 1000, storageSalt: 'mjuBtGybi/4=', }, themes: ['default'], diff --git a/css/main.css b/css/main.css index 942f143a0..fefd14439 100644 --- a/css/main.css +++ b/css/main.css @@ -443,3 +443,33 @@ a.loading { display: block; margin: 0 auto; } + +@keyframes rotateThis { + from { transform: scale( 1 ) rotate( 0deg ); } + to { transform: scale( 1 ) rotate( 360deg ); } +} + +@-webkit-keyframes rotateThis { + from { -webkit-transform: scale( 1 ) rotate( 0deg ); } + to { -webkit-transform: scale( 1 ) rotate( 360deg ); } +} + +.icon-rotate { + animation-name: rotateThis; + animation-duration: 2s; + animation-iteration-count: infinite; + animation-timing-function: linear; + -webkit-animation-name: rotateThis; + -webkit-animation-duration: 2s; + -webkit-animation-iteration-count: infinite; + -webkit-animation-timing-function: linear; +} + +.spinner { + display:inline-block; + width: 1em; + text-align:center; + line-height:1em; + vertical-align:middle +} + diff --git a/index.html b/index.html index 565e3d79f..006d40874 100644 --- a/index.html +++ b/index.html @@ -145,6 +145,7 @@