From 877eb4d42388aeb0108afa05418d78723711a086 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 20 Feb 2017 22:56:50 -0500 Subject: [PATCH] setup UI pages for sharing center --- src/app/app.js | 1 + src/app/config.js | 18 ++++++++++ src/app/shared/sharedFoldersController.js | 6 ++++ src/app/shared/sharedLoginsController.js | 6 ++++ src/app/shared/sharedMeController.js | 6 ++++ src/app/shared/sharedModule.js | 2 ++ src/app/shared/views/sharedFolders.html | 39 +++++++++++++++++++++ src/app/shared/views/sharedLogins.html | 41 +++++++++++++++++++++++ src/app/shared/views/sharedMe.html | 9 +++++ src/app/views/backendLayout.html | 21 ++++++++++++ src/index.html | 5 +++ 11 files changed, 154 insertions(+) create mode 100644 src/app/shared/sharedFoldersController.js create mode 100644 src/app/shared/sharedLoginsController.js create mode 100644 src/app/shared/sharedMeController.js create mode 100644 src/app/shared/sharedModule.js create mode 100644 src/app/shared/views/sharedFolders.html create mode 100644 src/app/shared/views/sharedLogins.html create mode 100644 src/app/shared/views/sharedMe.html diff --git a/src/app/app.js b/src/app/app.js index ef2a589cd1..611fbdad7a 100644 --- a/src/app/app.js +++ b/src/app/app.js @@ -15,6 +15,7 @@ 'bit.global', 'bit.accounts', 'bit.vault', + 'bit.shared', 'bit.settings', 'bit.tools' ]); diff --git a/src/app/config.js b/src/app/config.js index bf86091b78..09048de71e 100644 --- a/src/app/config.js +++ b/src/app/config.js @@ -99,6 +99,24 @@ angular controller: 'toolsController', data: { pageTitle: 'Tools' } }) + .state('backend.sharedLogins', { + url: '^/shared/logins', + templateUrl: 'app/shared/views/sharedLogins.html', + controller: 'sharedLoginsController', + data: { pageTitle: 'Shared Logins' } + }) + .state('backend.sharedFolders', { + url: '^/shared/folders', + templateUrl: 'app/shared/views/sharedFolders.html', + controller: 'sharedFoldersController', + data: { pageTitle: 'Shared Folders' } + }) + .state('backend.sharedMe', { + url: '^/shared/me', + templateUrl: 'app/shared/views/sharedMe.html', + controller: 'sharedMeController', + data: { pageTitle: 'Shared with Me' } + }) // Frontend .state('frontend', { diff --git a/src/app/shared/sharedFoldersController.js b/src/app/shared/sharedFoldersController.js new file mode 100644 index 0000000000..e8e4cf9315 --- /dev/null +++ b/src/app/shared/sharedFoldersController.js @@ -0,0 +1,6 @@ +angular + .module('bit.shared') + + .controller('sharedFoldersController', function ($scope, apiService, cryptoService, cipherService, $analytics) { + + }); diff --git a/src/app/shared/sharedLoginsController.js b/src/app/shared/sharedLoginsController.js new file mode 100644 index 0000000000..c5afd3fb4e --- /dev/null +++ b/src/app/shared/sharedLoginsController.js @@ -0,0 +1,6 @@ +angular + .module('bit.shared') + + .controller('sharedLoginsController', function ($scope, apiService, cryptoService, cipherService, $analytics) { + + }); diff --git a/src/app/shared/sharedMeController.js b/src/app/shared/sharedMeController.js new file mode 100644 index 0000000000..c11ea2a689 --- /dev/null +++ b/src/app/shared/sharedMeController.js @@ -0,0 +1,6 @@ +angular + .module('bit.shared') + + .controller('sharedMeController', function ($scope, apiService, cryptoService, cipherService, $analytics) { + + }); diff --git a/src/app/shared/sharedModule.js b/src/app/shared/sharedModule.js new file mode 100644 index 0000000000..e9eeb1bbbf --- /dev/null +++ b/src/app/shared/sharedModule.js @@ -0,0 +1,2 @@ +angular + .module('bit.shared', ['ui.bootstrap', 'ngclipboard']); diff --git a/src/app/shared/views/sharedFolders.html b/src/app/shared/views/sharedFolders.html new file mode 100644 index 0000000000..b8e481a9fc --- /dev/null +++ b/src/app/shared/views/sharedFolders.html @@ -0,0 +1,39 @@ +
+

+ Sharing Center + folders I've shared +

+
+
+
+

Loading...

+
+
+

No shared folders.

+
+
+ + + + + + + + + + + + + +
Name
+ + + {{folder.name}}
+
+
diff --git a/src/app/shared/views/sharedLogins.html b/src/app/shared/views/sharedLogins.html new file mode 100644 index 0000000000..a7d6a5cb1b --- /dev/null +++ b/src/app/shared/views/sharedLogins.html @@ -0,0 +1,41 @@ +
+

+ Sharing Center + logins I've shared +

+
+
+
+

Loading...

+
+
+

No shared logins.

+
+
+ + + + + + + + + + + + + + + +
NameUsername
+ + + {{login.name}}{{login.username}}
+
+
diff --git a/src/app/shared/views/sharedMe.html b/src/app/shared/views/sharedMe.html new file mode 100644 index 0000000000..f74925bade --- /dev/null +++ b/src/app/shared/views/sharedMe.html @@ -0,0 +1,9 @@ +
+

+ Sharing Center + shared with me +

+
+
+ TODO +
diff --git a/src/app/views/backendLayout.html b/src/app/views/backendLayout.html index aa06b304d8..8a804f96a4 100644 --- a/src/app/views/backendLayout.html +++ b/src/app/views/backendLayout.html @@ -56,6 +56,27 @@ +
  • + Sharing Center + +
  • Settings diff --git a/src/index.html b/src/index.html index b91b336400..1b1fa10259 100644 --- a/src/index.html +++ b/src/index.html @@ -116,6 +116,11 @@ + + + + +