From 50a05b522e6da61a1787e39cf0b80560eab86be0 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 8 Sep 2016 22:37:29 -0400 Subject: [PATCH] add site setup --- src/popup/app/config.js | 39 ++++--- src/popup/app/vault/views/vault.html | 3 +- src/popup/app/vault/views/vaultAddSite.html | 114 +++++++++----------- 3 files changed, 75 insertions(+), 81 deletions(-) diff --git a/src/popup/app/config.js b/src/popup/app/config.js index 3da5f429ab..a102933911 100644 --- a/src/popup/app/config.js +++ b/src/popup/app/config.js @@ -30,23 +30,20 @@ url: "/login", controller: 'accountsLoginController', templateUrl: "app/accounts/views/accountsLogin.html", - data: { - authorize: false - } + data: { authorize: false } + }) + .state('twoFactor', { + url: "/two-factor", + controller: 'accountsLoginController', + templateUrl: "app/accounts/views/accountsLoginTwoFactor.html", + data: { authorize: false } }) - .state('login.twoFactor', { - url: "/two-factor", - controller: 'accountsLoginController', - templateUrl: "app/accounts/views/accountsLoginTwoFactor.html" - }) .state('tabs', { url: "/tab", abstract: true, templateUrl: "app/global/tabs.html", - data: { - authorize: true - } + data: { authorize: true } }) .state('tabs.current', { url: "/current", @@ -68,16 +65,24 @@ templateUrl: "app/tools/views/tools.html", controller: 'toolsController' }) + .state('viewSite', { url: "/view-site?siteId", templateUrl: "app/vault/views/vaultViewSite.html", controller: 'vaultViewSiteController', - params: { - siteId: null - }, - data: { - authorize: true - } + data: { authorize: true } + }) + .state('addSite', { + url: "/add-site", + templateUrl: "app/vault/views/vaultAddSite.html", + controller: 'vaultAddSiteController', + data: { authorize: true } + }) + .state('editSite', { + url: "/edit-site?siteId", + templateUrl: "app/vault/views/vaultEditSite.html", + controller: 'vaultEditSiteController', + data: { authorize: true } }); }) .run(function ($rootScope, userService, loginService, tokenService, $state) { diff --git a/src/popup/app/vault/views/vault.html b/src/popup/app/vault/views/vault.html index ad8ba17fd1..bd5a75d5d8 100644 --- a/src/popup/app/vault/views/vault.html +++ b/src/popup/app/vault/views/vault.html @@ -1,6 +1,5 @@ 
- Back - +
My Vault
diff --git a/src/popup/app/vault/views/vaultAddSite.html b/src/popup/app/vault/views/vaultAddSite.html index 71c8c26558..3aad81e3c5 100644 --- a/src/popup/app/vault/views/vaultAddSite.html +++ b/src/popup/app/vault/views/vaultAddSite.html @@ -1,63 +1,53 @@ - - - -

Add Site

- -
- -
-
- Site Information -
- - - - - - Generate Password - - -
-   -
- -
- Favorite - -
-
- Notes -
-
- -
-
-   -
+
+ Close + Save +
Add Site
+
+
+
+
+ Site Information
- - +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ + Generate Password + + +
+   +
+
+ + +
+
+ + +
+
+ Notes +
+
+ +
+
+