1
0
mirror of https://github.com/bitwarden/web synced 2026-01-11 04:53:14 +00:00

setup UI pages for sharing center

This commit is contained in:
Kyle Spearrin
2017-02-20 22:56:50 -05:00
parent a37a5fa1b5
commit 877eb4d423
11 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
angular
.module('bit.shared')
.controller('sharedFoldersController', function ($scope, apiService, cryptoService, cipherService, $analytics) {
});

View File

@@ -0,0 +1,6 @@
angular
.module('bit.shared')
.controller('sharedLoginsController', function ($scope, apiService, cryptoService, cipherService, $analytics) {
});

View File

@@ -0,0 +1,6 @@
angular
.module('bit.shared')
.controller('sharedMeController', function ($scope, apiService, cryptoService, cipherService, $analytics) {
});

View File

@@ -0,0 +1,2 @@
angular
.module('bit.shared', ['ui.bootstrap', 'ngclipboard']);

View File

@@ -0,0 +1,39 @@
<section class="content-header">
<h1>
Sharing Center
<small>folders I've shared</small>
</h1>
</section>
<section class="content">
<div ng-show="loading && !folders.length">
<p>Loading...</p>
</div>
<div ng-show="!loading && !folders.length">
<p>No shared folders.</p>
</div>
<div class="table-responsive" ng-show="folders.length">
<table class="table table-striped table-hover">
<thead>
<tr>
<th style="width: 75px; min-width: 75px;"></th>
<th>Name</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="folder in folders">
<td>
<button type="button" ng-click="revoke(folder)" class="btn btn-link btn-table"
uib-tooltip="Revoke Access">
<i class="fa fa-lg fa-close"></i>
</button>
<button type="button" ng-click="edit(folder)" class="btn btn-link btn-table"
uib-tooltip="View/Edit">
<i class="fa fa-lg fa-pencil"></i>
</button>
</td>
<td>{{folder.name}}</td>
</tr>
</tbody>
</table>
</div>
</section>

View File

@@ -0,0 +1,41 @@
<section class="content-header">
<h1>
Sharing Center
<small>logins I've shared</small>
</h1>
</section>
<section class="content">
<div ng-show="loading && !logins.length">
<p>Loading...</p>
</div>
<div ng-show="!loading && !logins.length">
<p>No shared logins.</p>
</div>
<div class="table-responsive" ng-show="logins.length">
<table class="table table-striped table-hover">
<thead>
<tr>
<th style="width: 75px; min-width: 75px;"></th>
<th>Name</th>
<th style="width: 300px;">Username</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="login in logins">
<td>
<button type="button" ng-click="revoke(login)" class="btn btn-link btn-table"
uib-tooltip="Revoke Access">
<i class="fa fa-lg fa-close"></i>
</button>
<button type="button" ng-click="edit(login)" class="btn btn-link btn-table"
uib-tooltip="View/Edit">
<i class="fa fa-lg fa-pencil"></i>
</button>
</td>
<td>{{login.name}}</td>
<td>{{login.username}}</td>
</tr>
</tbody>
</table>
</div>
</section>

View File

@@ -0,0 +1,9 @@
<section class="content-header">
<h1>
Sharing Center
<small>shared with me</small>
</h1>
</section>
<section class="content">
TODO
</section>